Skip to content

feat(bmm): add improve architecture skill#2474

Open
kylewvl-ship-it wants to merge 2 commits into
bmad-code-org:mainfrom
kylewvl-ship-it:archimprove
Open

feat(bmm): add improve architecture skill#2474
kylewvl-ship-it wants to merge 2 commits into
bmad-code-org:mainfrom
kylewvl-ship-it:archimprove

Conversation

@kylewvl-ship-it

Copy link
Copy Markdown

What
Adds bmad-improve-architecture as a built-in BMM skill in the framework source so it is installed with BMAD instead of requiring separate module registration. It also registers the skill in the BMM help catalog so it appears as a first-party solutioning workflow.
Why
This is needed to make the architecture-improvement capability part of the normal BMAD install experience, with the skill already baked into BMM. It removes the extra install/setup step and makes the workflow available immediately in projects that install BMAD.
How
Added a new built-in skill at src/bmm-skills/3-solutioning/bmad-improve-architecture/ with SKILL.md, LANGUAGE.md, DEEPENING.md, INTERFACE-DESIGN.md, and customize.toml.
Adapted the skill to the framework’s built-in BMM workflow model by reading standard BMM config and writing artifacts under {planning_artifacts}/architecture-review.
Registered the new skill in src/bmm-skills/module-help.csv so the installer-generated help/catalog includes it at install time.
Testing
Ran npm ci successfully and ran npm run test:install, which passed. I also attempted the full repo validation path, but npm run quality and npm run validate:skills are currently blocked by existing repo-baseline issues unrelated to this change.

@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Adds a new bmad-improve-architecture skill under src/bmm-skills/3-solutioning/, consisting of a main SKILL.md workflow specification, three reference documents (LANGUAGE.md, DEEPENING.md, INTERFACE-DESIGN.md), and a customize.toml configuration file.

Changes

bmad-improve-architecture skill

Layer / File(s) Summary
Architecture vocabulary and process reference documents
src/bmm-skills/3-solutioning/bmad-improve-architecture/LANGUAGE.md, DEEPENING.md, INTERFACE-DESIGN.md
LANGUAGE.md defines standardized terms (Module, Interface, Depth, Seam, Adapter, Leverage, Locality) with usage rules and a deletion test for depth. DEEPENING.md categorizes dependencies (in-process, local-substitutable, remote-but-owned, true external) and provides seam-discipline and testing rules. INTERFACE-DESIGN.md specifies the interface-option generation process: at least three options plus an optional Ports-and-Adapters option, required contents per option, comparison criteria, and a single-recommendation rule.
Skill specification and workflow config
src/bmm-skills/3-solutioning/bmad-improve-architecture/customize.toml, SKILL.md
customize.toml sets activation_steps_prepend/append to empty arrays, configures persistent_facts with a project-context.md glob, and sets on_complete to an empty string. SKILL.md defines the full 217-line activation sequence, required pre-read document list, output artifact paths, and the main deepening loop: build working map → find candidates → user selects one → grilling loop → ≥3 interface options → recommendation → generate ADR/slice/test artifacts → route to next BMad workflow.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • bmad-code-org/BMAD-METHOD#2308: Introduces the same customize.toml customization surface keys (activation_steps_prepend, activation_steps_append, persistent_facts, on_complete) that the new bmad-improve-architecture/customize.toml and SKILL.md activation steps rely on.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat(bmm): add improve architecture skill' directly and clearly describes the main change: adding a new built-in architecture-improvement skill to the BMM framework.
Description check ✅ Passed The description provides detailed context about what was added (the skill at src/bmm-skills/3-solutioning/bmad-improve-architecture/), why it matters (integrated install experience), and how it was tested, all directly related to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
src/bmm-skills/3-solutioning/bmad-improve-architecture/LANGUAGE.md (1)

33-36: 💤 Low value

Reduce repetitive sentence starters in LANGUAGE.md and SKILL.md.

Both files open multiple consecutive rules or questions with the same word, creating monotonous repetition flagged by style analysis.

  • src/bmm-skills/3-solutioning/bmad-improve-architecture/LANGUAGE.md#L33-L36: Lines 33–35 in the Rules section all begin with "Use." Rephrase one or two to vary sentence structure.
  • src/bmm-skills/3-solutioning/bmad-improve-architecture/SKILL.md#L149-L154: Lines 150–152 in the grilling loop all begin with "Which." Rephrase one or two to improve readability.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/bmm-skills/3-solutioning/bmad-improve-architecture/LANGUAGE.md` around
lines 33 - 36, Reduce repetitive sentence starters across two files. In
src/bmm-skills/3-solutioning/bmad-improve-architecture/LANGUAGE.md at lines
33-36, the first three rules all begin with "Use" which creates monotonous
repetition—rephrase one or two of these rules to vary the sentence structure
(for example, rephrasing one to use imperative phrasing or a different
grammatical construction). In
src/bmm-skills/3-solutioning/bmad-improve-architecture/SKILL.md at lines
149-154, the grilling loop questions at lines 150-152 all begin with "Which" in
a similar repetitive pattern—rephrase one or two of these questions to improve
readability by using alternative question structures or starting words.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@src/bmm-skills/3-solutioning/bmad-improve-architecture/LANGUAGE.md`:
- Around line 33-36: Reduce repetitive sentence starters across two files. In
src/bmm-skills/3-solutioning/bmad-improve-architecture/LANGUAGE.md at lines
33-36, the first three rules all begin with "Use" which creates monotonous
repetition—rephrase one or two of these rules to vary the sentence structure
(for example, rephrasing one to use imperative phrasing or a different
grammatical construction). In
src/bmm-skills/3-solutioning/bmad-improve-architecture/SKILL.md at lines
149-154, the grilling loop questions at lines 150-152 all begin with "Which" in
a similar repetitive pattern—rephrase one or two of these questions to improve
readability by using alternative question structures or starting words.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3444f18d-de66-4b1e-8442-456c31b0dabe

📥 Commits

Reviewing files that changed from the base of the PR and between 242dc6e and 0b49183.

⛔ Files ignored due to path filters (1)
  • src/bmm-skills/module-help.csv is excluded by !**/*.csv
📒 Files selected for processing (5)
  • src/bmm-skills/3-solutioning/bmad-improve-architecture/DEEPENING.md
  • src/bmm-skills/3-solutioning/bmad-improve-architecture/INTERFACE-DESIGN.md
  • src/bmm-skills/3-solutioning/bmad-improve-architecture/LANGUAGE.md
  • src/bmm-skills/3-solutioning/bmad-improve-architecture/SKILL.md
  • src/bmm-skills/3-solutioning/bmad-improve-architecture/customize.toml

@bmadcode

Copy link
Copy Markdown
Collaborator

@kylewvl-ship-it there are some really good ideas in here, i dont think this needs to be a separate skill though, this could be another mode progressively disclosed if chosen or if an existing architecture is input. could you rework this as a feature of the new bmad-architecture that routes to if user wants to do this.

im not sure of the terminology deepen, have never heard that in regards to architecture - maybe there is some more common verbiage.

one of the goals with the evolving bmad-architecture and upcoming v7 approach is altitude appropriate decisioning at each layer for the architecture, producing an architectural spine and optional other artifact or deep dive into certain areas as needed. but generally that can be done further down the tree in individual epics, keeping the highest level architecture focused on the invariants and decisions that must be made so lower levels do not make conflicting decisions.

@kylewvl-ship-it

kylewvl-ship-it commented Jun 18, 2026 via email

Copy link
Copy Markdown
Author

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.

2 participants