Skip to content

feat(release): point required and recommended skill sources at plugins - #4

Merged
alexeyv merged 1 commit into
mainfrom
required-skills-source
Dec 1, 2026
Merged

alexeyv merged 1 commit into
mainfrom
required-skills-source

Conversation

@alexeyv

@alexeyv alexeyv commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

What

release.py now rewrites the source of every required_skills and recommended_skills entry in a built plugin's bmod.toml to plugin:<plugin that ships the skill>. Modular plugins point at the plugin that owns the skill, per catalog.toml. The bmad portal bundle points at itself.

Before this change, a skill running from a plugin pointed its dependencies at GitHub (github:bmad-code-org/BMAD-METHOD/...), so a model offered a GitHub or npx install next to plugin-managed modules.

Plugin Required Recommended
founder, creative, method, toolsmith plugin:bmad-core-tools plugin:bmad-core-tools
tea plugin:bmad-core-tools none
bmad-loop bmad → plugin:bmad-core-tools; bmad-build-auto → plugin:bmad-method plugin:bmad-method
bmad (bundle) plugin:bmad plugin:bmad

How

  • Rewriter:
    • It is still line-based, keeps comments, and still checks the full parse against the expected result, so only the intended values can change.
    • It handles bare strings, inline tables and arrays that span lines, under both [bmod] and [skill].
    • The build fails on a source that no plugin in catalog.toml ships.
  • --only: it also reads the source repos that the selected modules' requirements come from.
  • --validate: each requirement source must name the plugin that actually ships the skill.
  • plugins/: regenerated. With source values masked, the diff is empty.

The BMAD-METHOD v7.1.0 runtime already accepts plugin: on requirements. Setup treats them as plugin dependencies and builds no fetch command for them. Nothing upstream is needed.

Testing

  • test_release.py passes. The new tests cover every entry shape, unmapped or unrewritable sources, how targets are chosen, and the end-to-end built sources. An existing negative case no longer clones from GitHub, so the suite runs in seconds.
  • --validate and --zip-existing pass.
  • Headless Claude Code with only the founder plugin loaded and the BMAD-METHOD#3318 prose: both Fable 5.2 and Sonnet 5.5 offered to install bmad-core-tools as a plugin. Neither offered npx or a GitHub source.
  • Regression with the dependency present:
    • The bmad bundle alone completes setup and reports its modules as plugin-managed.
    • core-tools + founder: setup.py, run directly with both plugin roots, reports both modules as plugin-managed with no unmet requirements.

Summary by CodeRabbit

  • New Features
    • Builds now resolve required and recommended skills to the plugin that provides each skill, including references within the same plugin.
    • Build checks validate these skill sources and flag missing or ambiguous mappings and incorrect targets.
  • Documentation
    • Updated guidance to describe how skill sources are rewritten during builds and checked during validation.

A built add-on still named the GitHub repository as the source of the
core skills it depends on, which steered agents toward fetching from
GitHub when core was missing. The build now rewrites every
required_skills / recommended_skills source to plugin:<name> for the
plugin that ships the skill, or to the portal bundle itself for skills
it carries. The rewrite stays line-based, keeps comments, fails on any
source no catalog plugin ships, and proves nothing else changed.

--only also reads source repositories that selected modules depend on,
--validate checks each requirement names the plugin shipping the skill,
and plugins/ is regenerated.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The release build now rewrites required_skills and recommended_skills sources to plugin references. Repository validation checks those references against plugin ownership, and builds discover catalog repositories named by requirement sources.

Changes

Skill requirement source mapping

Layer / File(s) Summary
Rewrite skill requirement sources
release.py, test_release.py, README.md, plugins/*/skills/*/bmod.toml
Release staging maps requirement sources to plugin owners and rewrites them to plugin: references. Skill metadata and tests reflect the rewritten sources. The Maintainers documentation describes the rewrite and validation rules.
Discover and validate requirement sources
release.py, test_release.py
Builds collect requirement source slugs and fetch referenced catalog repositories. Repository validation checks that each requirement points to the plugin shipping the skill. Tests cover target selection, validation failures, and selected-module builds.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant Build
  participant Catalog
  participant _stage_plugin
  participant requirement_targets
  participant rewrite_bmod_toml
  Build->>Catalog: Fetch repositories referenced by requirement source slugs
  Build->>_stage_plugin: Pass catalog and selected module
  _stage_plugin->>requirement_targets: Map requirement sources to plugin owners
  _stage_plugin->>rewrite_bmod_toml: Pass requirement target mapping
Loading

Suggested reviewers: bmadcode

Merge Risk: Minimal · up to 2cfcf

This change points skill dependency sources at plugin references instead of GitHub paths. The build and repository validation checks reject unmappable or mismatched sources, so incorrect metadata is unlikely to ship. No merge-blocking risk is evident.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: release.py now points required_skills and recommended_skills sources at the plugin that ships each skill. The raw summary and objectives both describe this rewrite as …
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.
Full details: Title check

Explanation

The title names the main change: release.py now points required_skills and recommended_skills sources at the plugin that ships each skill. The raw summary and objectives both describe this rewrite as the core change, with tests and validation supporting it. The conventional-commit prefix 'feat(release)' matches the release.py change. The title is specific and no part of the title is unrelated to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

A rabbit checks each source line,
And sees plugin names align.
Required skills hop into place,
Recommended ones join the trace.
The build finds catalogs to explore,
Then checks each owner at the door.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d65f7a45-bfa3-41f0-b580-a9040afdcba4
Commits

Reviewing files that changed from the base of the PR and between 7093397 and 2cfcf87.

Files selected for processing: 17

  • README.md
  • plugins/bmad-loop/skills/bmod-bmad-loop/bmod.toml
  • plugins/bmad/skills/bmad-agent-architect/bmod.toml
  • plugins/bmad/skills/bmad-agent-ux-designer/bmod.toml
  • plugins/bmad/skills/bmad-toolsmith/bmod.toml
  • plugins/bmad/skills/bmod-method/bmod.toml
  • plugins/bmad/skills/bmod-toolsmith/bmod.toml
  • plugins/creative/skills/bmad-creative-agent-director/bmod.toml
  • plugins/founder/skills/bmad-founder-agent-advisor/bmod.toml
  • plugins/method/skills/bmad-agent-architect/bmod.toml
  • plugins/method/skills/bmad-agent-ux-designer/bmod.toml
  • plugins/method/skills/bmod-method/bmod.toml
  • plugins/tea/skills/bmod-tea/bmod.toml
  • plugins/toolsmith/skills/bmad-toolsmith/bmod.toml
  • plugins/toolsmith/skills/bmod-toolsmith/bmod.toml
  • release.py
  • test_release.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@alexeyv
alexeyv merged commit f83b4c9 into main Dec 1, 2026
2 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