Repository navigation
feat(release): point required and recommended skill sources at plugins - #4
Conversation
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.
|
No actionable comments were generated in the recent review. WalkthroughThe release build now rewrites ChangesSkill requirement source mapping
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
Suggested reviewers: Merge Risk:
|
What
release.pynow rewrites thesourceof everyrequired_skillsandrecommended_skillsentry in a built plugin'sbmod.tomltoplugin:<plugin that ships the skill>. Modular plugins point at the plugin that owns the skill, percatalog.toml. Thebmadportal 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 ornpxinstall next to plugin-managed modules.plugin:bmad-core-toolsplugin:bmad-core-toolsplugin:bmad-core-toolsbmad→plugin:bmad-core-tools;bmad-build-auto→plugin:bmad-methodplugin:bmad-methodplugin:bmadplugin:bmadHow
[bmod]and[skill].catalog.tomlships.--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. Withsourcevalues 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.pypasses. 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.--validateand--zip-existingpass.bmad-core-toolsas a plugin. Neither offerednpxor a GitHub source.bmadbundle alone completes setup and reports its modules as plugin-managed.setup.py, run directly with both plugin roots, reports both modules as plugin-managed with no unmet requirements.Summary by CodeRabbit