Skip to content

refactor: replace bmad-init with direct config loading#17

Merged
bmadcode merged 1 commit intomainfrom
bmad-init-remove
Mar 29, 2026
Merged

refactor: replace bmad-init with direct config loading#17
bmadcode merged 1 commit intomainfrom
bmad-init-remove

Conversation

@bmadcode
Copy link
Copy Markdown
Contributor

@bmadcode bmadcode commented Mar 29, 2026

Summary

Test plan

  • Verify agent activation loads config correctly

Summary by CodeRabbit

  • Refactor

    • Updated configuration handling for brainstorming coach, creative problem-solver, design-thinking coach, innovation strategist, presentation master, and storyteller skills.
    • Standardized output document language support across skills.
  • Chores

    • Adjusted workflow execution modes for design-thinking, innovation-strategy, problem-solving, and storytelling workflows.

…cess

Update all 6 CIS agents to load config directly from
{project-root}/_bmad/cis/config.yaml instead of delegating to the
bmad-init skill. Remove empty frontmatter from 4 workflow files.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 29, 2026

Walkthrough

This PR modifies configuration loading patterns across six agent skills to directly read from a configuration file instead of relying on an initialization skill, and removes the standalone: true flag from four workflow files.

Changes

Cohort / File(s) Summary
Agent Skills Configuration Loading
src/skills/bmad-cis-agent-brainstorming-coach/SKILL.md, src/skills/bmad-cis-agent-creative-problem-solver/SKILL.md, src/skills/bmad-cis-agent-design-thinking-coach/SKILL.md, src/skills/bmad-cis-agent-innovation-strategist/SKILL.md, src/skills/bmad-cis-agent-presentation-master/SKILL.md, src/skills/bmad-cis-agent-storyteller/SKILL.md
Updated activation procedures to load configuration directly from {project-root}/_bmad/cis/config.yaml instead of using the bmad-init skill. Replaced generic variable storage behavior with explicit configuration mappings: {user_name} for greetings, {communication_language} for communications, and {document_output_language} for output documents.
Workflow Standalone Flag Removal
src/skills/bmad-cis-design-thinking/workflow.md, src/skills/bmad-cis-innovation-strategy/workflow.md, src/skills/bmad-cis-problem-solving/workflow.md, src/skills/bmad-cis-storytelling/workflow.md
Removed the standalone: true frontmatter flag from workflow definitions, allowing workflows to inherit default runtime behavior.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

🐰 Hopping through configs with glee,
Direct paths now, no init to see,
Documents speak their language true,
Workflows stripped of flags askew!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main refactoring: replacing bmad-init skill dependency with direct config loading from yaml file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bmad-init-remove

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@augmentcode
Copy link
Copy Markdown

augmentcode bot commented Mar 29, 2026

🤖 Augment PR Summary

Summary: Refactors Creative Intelligence Suite (CIS) agents/workflows to remove reliance on the deprecated bmad-init skill.

Changes:

  • Updated 6 CIS agent SKILL.md files to load configuration directly from {project-root}/_bmad/cis/config.yaml.
  • Adjusted activation instructions to resolve and use config variables (e.g., user_name, communication_language, and a new/explicit document_output_language).
  • Simplified workflow frontmatter in 4 workflows by removing the standalone: true field while retaining main_config.

Technical Notes: This aligns CIS with upstream framework changes (BMAD-METHOD#2159) that removed the bmad-init dependency; ensure the consuming project provides the expected CIS config keys or defaults.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestion posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

- Use `{user_name}` for greeting
- Use `{communication_language}` for all communications
- Use `{document_output_language}` for output documents

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now instructs agents to use {document_output_language}, but this repo’s CIS configuration reference/defaults only define output_folder, user_name, and communication_language; if the key isn’t present in a user’s _bmad/cis/config.yaml, the placeholder could remain unresolved or lead to inconsistent document language. Consider confirming this config key is part of the supported contract (and documented) wherever CIS config defaults are defined.

Severity: medium

Other Locations
  • src/skills/bmad-cis-agent-creative-problem-solver/SKILL.md:42
  • src/skills/bmad-cis-agent-design-thinking-coach/SKILL.md:43
  • src/skills/bmad-cis-agent-innovation-strategist/SKILL.md:42
  • src/skills/bmad-cis-agent-presentation-master/SKILL.md:53
  • src/skills/bmad-cis-agent-storyteller/SKILL.md:47

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/skills/bmad-cis-agent-design-thinking-coach/SKILL.md`:
- Around line 39-42: The activation flow currently trusts loading
`{project-root}/_bmad/cis/config.yaml` and can hard-fail; update the
config-loading logic to catch file-not-found and YAML parse errors, validate
presence of `{user_name}`, `{communication_language}`, and
`{document_output_language}` keys, and apply safe defaults (e.g.,
user_name="User", communication_language="en", document_output_language="en")
when missing or invalid; ensure errors are logged (warning for missing keys,
error for parse failures) but do not throw, and keep the agent activation
predictable by proceeding with the defaulted values and replacing placeholders
accordingly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c1a8014c-8328-4627-8968-76f6278923c4

📥 Commits

Reviewing files that changed from the base of the PR and between 1384f15 and 5ff3e20.

📒 Files selected for processing (10)
  • src/skills/bmad-cis-agent-brainstorming-coach/SKILL.md
  • src/skills/bmad-cis-agent-creative-problem-solver/SKILL.md
  • src/skills/bmad-cis-agent-design-thinking-coach/SKILL.md
  • src/skills/bmad-cis-agent-innovation-strategist/SKILL.md
  • src/skills/bmad-cis-agent-presentation-master/SKILL.md
  • src/skills/bmad-cis-agent-storyteller/SKILL.md
  • src/skills/bmad-cis-design-thinking/workflow.md
  • src/skills/bmad-cis-innovation-strategy/workflow.md
  • src/skills/bmad-cis-problem-solving/workflow.md
  • src/skills/bmad-cis-storytelling/workflow.md
💤 Files with no reviewable changes (4)
  • src/skills/bmad-cis-storytelling/workflow.md
  • src/skills/bmad-cis-innovation-strategy/workflow.md
  • src/skills/bmad-cis-design-thinking/workflow.md
  • src/skills/bmad-cis-problem-solving/workflow.md

Comment on lines +39 to +42
1. Load config from `{project-root}/_bmad/cis/config.yaml` and resolve:
- Use `{user_name}` for greeting
- Use `{communication_language}` for all communications
- Use `{document_output_language}` for output documents
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Define fallback/error handling for config load failures.

This activation flow can hard-fail if config.yaml is missing, malformed, or missing keys. Add explicit fallback/default behavior so agent activation remains predictable.

Suggested doc patch
 1. Load config from `{project-root}/_bmad/cis/config.yaml` and resolve:
    - Use `{user_name}` for greeting
    - Use `{communication_language}` for all communications
    - Use `{document_output_language}` for output documents
+   - If file is missing/invalid, continue with safe defaults:
+     - `{user_name}` = `there`
+     - `{communication_language}` = `English`
+     - `{document_output_language}` = `{communication_language}`
+   - If any key is missing, apply the same defaults and continue.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
1. Load config from `{project-root}/_bmad/cis/config.yaml` and resolve:
- Use `{user_name}` for greeting
- Use `{communication_language}` for all communications
- Use `{document_output_language}` for output documents
1. Load config from `{project-root}/_bmad/cis/config.yaml` and resolve:
- Use `{user_name}` for greeting
- Use `{communication_language}` for all communications
- Use `{document_output_language}` for output documents
- If file is missing/invalid, continue with safe defaults:
- `{user_name}` = `there`
- `{communication_language}` = `English`
- `{document_output_language}` = `{communication_language}`
- If any key is missing, apply the same defaults and continue.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/skills/bmad-cis-agent-design-thinking-coach/SKILL.md` around lines 39 -
42, The activation flow currently trusts loading
`{project-root}/_bmad/cis/config.yaml` and can hard-fail; update the
config-loading logic to catch file-not-found and YAML parse errors, validate
presence of `{user_name}`, `{communication_language}`, and
`{document_output_language}` keys, and apply safe defaults (e.g.,
user_name="User", communication_language="en", document_output_language="en")
when missing or invalid; ensure errors are logged (warning for missing keys,
error for parse failures) but do not throw, and keep the agent activation
predictable by proceeding with the defaulted values and replacing placeholders
accordingly.

@bmadcode bmadcode merged commit e7365e8 into main Mar 29, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant