bmad-method 6.12.4 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +107 -54
- package/agents.json +640 -0
- package/bin/bmad-method.js +4 -0
- package/messages.yaml +260 -0
- package/modules.yaml +56 -0
- package/package.json +32 -110
- package/src/agent-picks.js +77 -0
- package/src/agents.js +141 -0
- package/src/bmad-scripts.js +167 -0
- package/src/cli.js +266 -0
- package/src/commands/agent-choice.js +67 -0
- package/src/commands/apply.js +38 -0
- package/src/commands/deps.js +25 -0
- package/src/commands/ending.js +54 -0
- package/src/commands/existing-install.js +50 -0
- package/src/commands/install-plan.js +130 -0
- package/src/commands/install-steps.js +66 -0
- package/src/commands/install.js +86 -0
- package/src/commands/status.js +39 -0
- package/src/commands/update.js +106 -0
- package/src/installed.js +48 -0
- package/src/messages.js +84 -0
- package/src/modules.js +221 -0
- package/src/preflight.js +124 -0
- package/src/project-lock.js +68 -0
- package/src/prompts.js +626 -0
- package/src/report.js +199 -0
- package/src/run.js +124 -0
- package/src/self-update.js +88 -0
- package/src/skills-cli.js +133 -0
- package/src/version.js +11 -0
- package/.claude-plugin/marketplace.json +0 -53
- package/AGENTS.md +0 -24
- package/CLAUDE.md +0 -1
- package/README_CN.md +0 -98
- package/README_KR.md +0 -90
- package/README_VN.md +0 -99
- package/bmad-modules.yaml +0 -140
- package/body.md +0 -17
- package/greptile.json +0 -52
- package/pr2.md +0 -11
- package/removals.txt +0 -87
- package/src/bmm-skills/agents/bmad-agent-analyst/SKILL.md +0 -76
- package/src/bmm-skills/agents/bmad-agent-analyst/customize.toml +0 -103
- package/src/bmm-skills/agents/bmad-agent-architect/SKILL.md +0 -76
- package/src/bmm-skills/agents/bmad-agent-architect/customize.toml +0 -63
- package/src/bmm-skills/agents/bmad-agent-dev/SKILL.md +0 -76
- package/src/bmm-skills/agents/bmad-agent-dev/customize.toml +0 -81
- package/src/bmm-skills/agents/bmad-agent-pm/SKILL.md +0 -76
- package/src/bmm-skills/agents/bmad-agent-pm/customize.toml +0 -73
- package/src/bmm-skills/agents/bmad-agent-ux-designer/SKILL.md +0 -76
- package/src/bmm-skills/agents/bmad-agent-ux-designer/customize.toml +0 -58
- package/src/bmm-skills/module-help.csv +0 -19
- package/src/bmm-skills/module.yaml +0 -85
- package/src/bmm-skills/plan/bmad-architecture/SKILL.md +0 -85
- package/src/bmm-skills/plan/bmad-architecture/assets/spine-template.md +0 -79
- package/src/bmm-skills/plan/bmad-architecture/customize.toml +0 -101
- package/src/bmm-skills/plan/bmad-architecture/references/headless.md +0 -26
- package/src/bmm-skills/plan/bmad-architecture/references/reviewer-gate.md +0 -13
- package/src/bmm-skills/plan/bmad-architecture/scripts/lint_spine.py +0 -261
- package/src/bmm-skills/plan/bmad-architecture/scripts/tests/test_lint_spine.py +0 -270
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/SKILL.md +0 -93
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/customize.toml +0 -39
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -263
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-02-design-epics.md +0 -242
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-03-create-stories.md +0 -255
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-04-final-validation.md +0 -141
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/templates/epics-template.md +0 -62
- package/src/bmm-skills/plan/bmad-generate-project-context/SKILL.md +0 -12
- package/src/bmm-skills/plan/bmad-prd/SKILL.md +0 -94
- package/src/bmm-skills/plan/bmad-prd/assets/headless-schemas.md +0 -76
- package/src/bmm-skills/plan/bmad-prd/assets/prd-template.md +0 -165
- package/src/bmm-skills/plan/bmad-prd/assets/prd-validation-checklist.md +0 -135
- package/src/bmm-skills/plan/bmad-prd/assets/validation-report-template.html +0 -325
- package/src/bmm-skills/plan/bmad-prd/customize.toml +0 -148
- package/src/bmm-skills/plan/bmad-prd/references/headless.md +0 -39
- package/src/bmm-skills/plan/bmad-prd/references/validate.md +0 -97
- package/src/bmm-skills/plan/bmad-prfaq/SKILL.md +0 -135
- package/src/bmm-skills/plan/bmad-prfaq/agents/artifact-analyzer.md +0 -60
- package/src/bmm-skills/plan/bmad-prfaq/agents/web-researcher.md +0 -49
- package/src/bmm-skills/plan/bmad-prfaq/assets/prfaq-template.md +0 -62
- package/src/bmm-skills/plan/bmad-prfaq/bmad-manifest.json +0 -16
- package/src/bmm-skills/plan/bmad-prfaq/customize.toml +0 -39
- package/src/bmm-skills/plan/bmad-prfaq/references/customer-faq.md +0 -55
- package/src/bmm-skills/plan/bmad-prfaq/references/internal-faq.md +0 -51
- package/src/bmm-skills/plan/bmad-prfaq/references/press-release.md +0 -60
- package/src/bmm-skills/plan/bmad-prfaq/references/verdict.md +0 -83
- package/src/bmm-skills/plan/bmad-product-brief/SKILL.md +0 -91
- package/src/bmm-skills/plan/bmad-product-brief/assets/brief-template.md +0 -41
- package/src/bmm-skills/plan/bmad-product-brief/customize.toml +0 -100
- package/src/bmm-skills/plan/bmad-project-context/SKILL.md +0 -121
- package/src/bmm-skills/plan/bmad-project-context/customize.toml +0 -24
- package/src/bmm-skills/plan/bmad-project-context/references/best-practices.md +0 -84
- package/src/bmm-skills/plan/bmad-project-context/references/template.md +0 -55
- package/src/bmm-skills/plan/bmad-spec/SKILL.md +0 -160
- package/src/bmm-skills/plan/bmad-spec/assets/headless-schemas.md +0 -33
- package/src/bmm-skills/plan/bmad-spec/assets/spec-template.md +0 -49
- package/src/bmm-skills/plan/bmad-spec/assets/stories-schema.md +0 -44
- package/src/bmm-skills/plan/bmad-spec/customize.toml +0 -52
- package/src/bmm-skills/plan/bmad-sprint-planning/SKILL.md +0 -62
- package/src/bmm-skills/plan/bmad-sprint-planning/customize.toml +0 -39
- package/src/bmm-skills/plan/bmad-sprint-planning/references/fix-sprint-status.md +0 -30
- package/src/bmm-skills/plan/bmad-sprint-planning/references/generate-tracking.md +0 -25
- package/src/bmm-skills/plan/bmad-sprint-planning/references/readiness-gate.md +0 -20
- package/src/bmm-skills/plan/bmad-sprint-planning/references/status-view.md +0 -14
- package/src/bmm-skills/plan/bmad-sprint-planning/references/validate.md +0 -10
- package/src/bmm-skills/plan/bmad-sprint-planning/scripts/__pycache__/sprint_plan.cpython-311.pyc +0 -0
- package/src/bmm-skills/plan/bmad-sprint-planning/scripts/sprint_plan.py +0 -701
- package/src/bmm-skills/plan/bmad-sprint-planning/scripts/tests/__pycache__/test_sprint_plan.cpython-311-pytest-9.1.1.pyc +0 -0
- package/src/bmm-skills/plan/bmad-sprint-planning/scripts/tests/test_sprint_plan.py +0 -524
- package/src/bmm-skills/plan/bmad-sprint-planning/sprint-status-template.yaml +0 -71
- package/src/bmm-skills/plan/bmad-ux/SKILL.md +0 -90
- package/src/bmm-skills/plan/bmad-ux/assets/color-themes.md +0 -9
- package/src/bmm-skills/plan/bmad-ux/assets/design-directions.md +0 -9
- package/src/bmm-skills/plan/bmad-ux/assets/design-example-editorial.md +0 -158
- package/src/bmm-skills/plan/bmad-ux/assets/design-example-mobile.md +0 -93
- package/src/bmm-skills/plan/bmad-ux/assets/design-example-shadcn.md +0 -109
- package/src/bmm-skills/plan/bmad-ux/assets/excalidraw-wireframe.md +0 -19
- package/src/bmm-skills/plan/bmad-ux/assets/experience-example-mobile.md +0 -112
- package/src/bmm-skills/plan/bmad-ux/assets/experience-example-shadcn.md +0 -133
- package/src/bmm-skills/plan/bmad-ux/assets/headless-schemas.md +0 -84
- package/src/bmm-skills/plan/bmad-ux/assets/key-screens.md +0 -29
- package/src/bmm-skills/plan/bmad-ux/assets/validation-report-template.html +0 -319
- package/src/bmm-skills/plan/bmad-ux/customize.toml +0 -100
- package/src/bmm-skills/plan/bmad-ux/references/creative-tools.md +0 -19
- package/src/bmm-skills/plan/bmad-ux/references/design-md-spec.md +0 -50
- package/src/bmm-skills/plan/bmad-ux/references/headless.md +0 -37
- package/src/bmm-skills/plan/bmad-ux/references/validate.md +0 -115
- package/src/bmm-skills/ship/bmad-build/SKILL.md +0 -13
- package/src/bmm-skills/ship/bmad-build/compile-epic-context.md +0 -62
- package/src/bmm-skills/ship/bmad-build/customize.toml +0 -152
- package/src/bmm-skills/ship/bmad-build/references/claims-check.md +0 -14
- package/src/bmm-skills/ship/bmad-build/references/deletion-check.md +0 -14
- package/src/bmm-skills/ship/bmad-build/review-prompts/edge-case-hunter.md +0 -112
- package/src/bmm-skills/ship/bmad-build/review-prompts/verification-gap.md +0 -113
- package/src/bmm-skills/ship/bmad-build/spec-template.md +0 -111
- package/src/bmm-skills/ship/bmad-build/step-01-clarify-and-route.md +0 -100
- package/src/bmm-skills/ship/bmad-build/step-02-plan.md +0 -62
- package/src/bmm-skills/ship/bmad-build/step-03-implement.md +0 -51
- package/src/bmm-skills/ship/bmad-build/step-04-review.md +0 -85
- package/src/bmm-skills/ship/bmad-build/step-05-present.md +0 -43
- package/src/bmm-skills/ship/bmad-build/step-oneshot.md +0 -107
- package/src/bmm-skills/ship/bmad-build/sync-sprint-status.md +0 -5
- package/src/bmm-skills/ship/bmad-build/workflow.md +0 -84
- package/src/bmm-skills/ship/bmad-build-auto/SKILL.md +0 -13
- package/src/bmm-skills/ship/bmad-build-auto/compile-epic-context.md +0 -62
- package/src/bmm-skills/ship/bmad-build-auto/customize.toml +0 -119
- package/src/bmm-skills/ship/bmad-build-auto/references/claims-check.md +0 -14
- package/src/bmm-skills/ship/bmad-build-auto/references/deletion-check.md +0 -14
- package/src/bmm-skills/ship/bmad-build-auto/review-prompts/edge-case-hunter.md +0 -112
- package/src/bmm-skills/ship/bmad-build-auto/review-prompts/verification-gap.md +0 -113
- package/src/bmm-skills/ship/bmad-build-auto/spec-template.md +0 -96
- package/src/bmm-skills/ship/bmad-build-auto/step-01-clarify-and-route.md +0 -84
- package/src/bmm-skills/ship/bmad-build-auto/step-02-plan.md +0 -27
- package/src/bmm-skills/ship/bmad-build-auto/step-03-implement.md +0 -48
- package/src/bmm-skills/ship/bmad-build-auto/step-04-review.md +0 -116
- package/src/bmm-skills/ship/bmad-build-auto/workflow.md +0 -104
- package/src/bmm-skills/ship/bmad-code-review/SKILL.md +0 -90
- package/src/bmm-skills/ship/bmad-code-review/customize.toml +0 -110
- package/src/bmm-skills/ship/bmad-code-review/references/claims-check.md +0 -14
- package/src/bmm-skills/ship/bmad-code-review/references/deletion-check.md +0 -14
- package/src/bmm-skills/ship/bmad-code-review/review-prompts/edge-case-hunter.md +0 -112
- package/src/bmm-skills/ship/bmad-code-review/review-prompts/verification-gap.md +0 -113
- package/src/bmm-skills/ship/bmad-code-review/steps/step-01-gather-context.md +0 -94
- package/src/bmm-skills/ship/bmad-code-review/steps/step-02-review.md +0 -32
- package/src/bmm-skills/ship/bmad-code-review/steps/step-03-triage.md +0 -54
- package/src/bmm-skills/ship/bmad-code-review/steps/step-04-present.md +0 -134
- package/src/bmm-skills/ship/bmad-correct-course/SKILL.md +0 -308
- package/src/bmm-skills/ship/bmad-correct-course/checklist.md +0 -288
- package/src/bmm-skills/ship/bmad-correct-course/customize.toml +0 -39
- package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/SKILL.md +0 -176
- package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/checklist.md +0 -33
- package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/customize.toml +0 -39
- package/src/bmm-skills/ship/bmad-retrospective/SKILL.md +0 -94
- package/src/bmm-skills/ship/bmad-retrospective/customize.toml +0 -39
- package/src/bmm-skills/ship/bmad-retrospective/references/acceptance-verdict.md +0 -55
- package/src/bmm-skills/ship/bmad-retrospective/references/aggregate-views.md +0 -17
- package/src/bmm-skills/ship/bmad-retrospective/references/evidence-gathering.md +0 -30
- package/src/bmm-skills/ship/bmad-retrospective/references/retro-document.md +0 -84
- package/src/bmm-skills/ship/bmad-retrospective/references/team-discussion.md +0 -22
- package/src/bmm-skills/ship/bmad-retrospective/scripts/__pycache__/sprint_status.cpython-311.pyc +0 -0
- package/src/bmm-skills/ship/bmad-retrospective/scripts/git_evidence.py +0 -308
- package/src/bmm-skills/ship/bmad-retrospective/scripts/sprint_status.py +0 -750
- package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_git_evidence.cpython-311-pytest-9.1.1.pyc +0 -0
- package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_sprint_status.cpython-311-pytest-9.1.1.pyc +0 -0
- package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/fixtures/sprint-status-template.yaml +0 -71
- package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_git_evidence.py +0 -750
- package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_sprint_status.py +0 -1579
- package/src/bmm-skills/ship/bmad-walkthrough/SKILL.md +0 -68
- package/src/bmm-skills/ship/bmad-walkthrough/customize.toml +0 -39
- package/src/bmm-skills/ship/bmad-walkthrough/generate-trail.md +0 -38
- package/src/bmm-skills/ship/bmad-walkthrough/step-01-orientation.md +0 -105
- package/src/bmm-skills/ship/bmad-walkthrough/step-02-walkthrough.md +0 -89
- package/src/bmm-skills/ship/bmad-walkthrough/step-03-detail-pass.md +0 -106
- package/src/bmm-skills/ship/bmad-walkthrough/step-04-testing.md +0 -74
- package/src/bmm-skills/ship/bmad-walkthrough/step-05-wrapup.md +0 -30
- package/src/bmm-skills/v6-shims/README.md +0 -29
- package/src/bmm-skills/v6-shims/bmad-checkpoint-preview/SKILL.md +0 -21
- package/src/bmm-skills/v6-shims/bmad-create-architecture/SKILL.md +0 -32
- package/src/bmm-skills/v6-shims/bmad-create-architecture/customize.toml +0 -39
- package/src/bmm-skills/v6-shims/bmad-create-prd/SKILL.md +0 -32
- package/src/bmm-skills/v6-shims/bmad-create-prd/customize.toml +0 -39
- package/src/bmm-skills/v6-shims/bmad-create-story/SKILL.md +0 -436
- package/src/bmm-skills/v6-shims/bmad-create-story/checklist.md +0 -357
- package/src/bmm-skills/v6-shims/bmad-create-story/customize.toml +0 -39
- package/src/bmm-skills/v6-shims/bmad-create-story/discover-inputs.md +0 -88
- package/src/bmm-skills/v6-shims/bmad-create-story/template.md +0 -49
- package/src/bmm-skills/v6-shims/bmad-dev-auto/SKILL.md +0 -21
- package/src/bmm-skills/v6-shims/bmad-dev-story/SKILL.md +0 -504
- package/src/bmm-skills/v6-shims/bmad-dev-story/checklist.md +0 -80
- package/src/bmm-skills/v6-shims/bmad-dev-story/customize.toml +0 -39
- package/src/bmm-skills/v6-shims/bmad-document-project/SKILL.md +0 -16
- package/src/bmm-skills/v6-shims/bmad-domain-research/SKILL.md +0 -16
- package/src/bmm-skills/v6-shims/bmad-edit-prd/SKILL.md +0 -32
- package/src/bmm-skills/v6-shims/bmad-edit-prd/customize.toml +0 -40
- package/src/bmm-skills/v6-shims/bmad-market-research/SKILL.md +0 -16
- package/src/bmm-skills/v6-shims/bmad-quick-dev/SKILL.md +0 -21
- package/src/bmm-skills/v6-shims/bmad-sprint-status/SKILL.md +0 -28
- package/src/bmm-skills/v6-shims/bmad-sprint-status/customize.toml +0 -39
- package/src/bmm-skills/v6-shims/bmad-technical-research/SKILL.md +0 -16
- package/src/bmm-skills/v6-shims/bmad-validate-prd/SKILL.md +0 -32
- package/src/bmm-skills/v6-shims/bmad-validate-prd/customize.toml +0 -40
- package/src/core-skills/bmad-advanced-elicitation/SKILL.md +0 -64
- package/src/core-skills/bmad-advanced-elicitation/assets/methods.csv +0 -72
- package/src/core-skills/bmad-advanced-elicitation/customize.toml +0 -54
- package/src/core-skills/bmad-advanced-elicitation/scripts/pick_methods.py +0 -233
- package/src/core-skills/bmad-advanced-elicitation/scripts/tests/test_pick_methods.py +0 -228
- package/src/core-skills/bmad-brainstorming/SKILL.md +0 -80
- package/src/core-skills/bmad-brainstorming/assets/brain-icons.json +0 -166
- package/src/core-skills/bmad-brainstorming/assets/brain-methods.csv +0 -109
- package/src/core-skills/bmad-brainstorming/assets/brain-selector.html +0 -328
- package/src/core-skills/bmad-brainstorming/customize.toml +0 -83
- package/src/core-skills/bmad-brainstorming/references/converge.md +0 -24
- package/src/core-skills/bmad-brainstorming/references/finalize.md +0 -26
- package/src/core-skills/bmad-brainstorming/references/headless.md +0 -54
- package/src/core-skills/bmad-brainstorming/references/in-chat-techniques.md +0 -18
- package/src/core-skills/bmad-brainstorming/references/mode-autonomous.md +0 -10
- package/src/core-skills/bmad-brainstorming/references/mode-facilitator.md +0 -11
- package/src/core-skills/bmad-brainstorming/references/mode-partner.md +0 -16
- package/src/core-skills/bmad-brainstorming/references/resume.md +0 -5
- package/src/core-skills/bmad-brainstorming/scripts/brain.py +0 -789
- package/src/core-skills/bmad-brainstorming/scripts/tests/test_brain.py +0 -289
- package/src/core-skills/bmad-customize/SKILL.md +0 -111
- package/src/core-skills/bmad-customize/scripts/list_customizable_skills.py +0 -235
- package/src/core-skills/bmad-customize/scripts/tests/test_list_customizable_skills.py +0 -249
- package/src/core-skills/bmad-deep-recon/SKILL.md +0 -82
- package/src/core-skills/bmad-deep-recon/assets/research.template.md +0 -18
- package/src/core-skills/bmad-deep-recon/customize.toml +0 -212
- package/src/core-skills/bmad-deep-recon/references/draft.md +0 -8
- package/src/core-skills/bmad-deep-recon/references/finalize.md +0 -11
- package/src/core-skills/bmad-deep-recon/references/html-briefing.md +0 -16
- package/src/core-skills/bmad-deep-recon/references/lifecycle.md +0 -11
- package/src/core-skills/bmad-deep-recon/references/process.md +0 -10
- package/src/core-skills/bmad-deep-recon/references/run.md +0 -73
- package/src/core-skills/bmad-deep-recon/references/selection.md +0 -13
- package/src/core-skills/bmad-deep-recon/references/synthesis.md +0 -16
- package/src/core-skills/bmad-deep-recon/references/verification.md +0 -29
- package/src/core-skills/bmad-deep-recon/scripts/recon_kit.py +0 -326
- package/src/core-skills/bmad-deep-recon/scripts/tests/test_recon_kit.py +0 -144
- package/src/core-skills/bmad-deep-recon/types/academic-lit.md +0 -19
- package/src/core-skills/bmad-deep-recon/types/competitive.md +0 -19
- package/src/core-skills/bmad-deep-recon/types/domain.md +0 -19
- package/src/core-skills/bmad-deep-recon/types/market.md +0 -19
- package/src/core-skills/bmad-deep-recon/types/technical.md +0 -19
- package/src/core-skills/bmad-deep-recon/types/user-voice.md +0 -19
- package/src/core-skills/bmad-forge-idea/SKILL.md +0 -107
- package/src/core-skills/bmad-forge-idea/customize.toml +0 -41
- package/src/core-skills/bmad-forge-idea/scripts/resolve_personas.py +0 -277
- package/src/core-skills/bmad-forge-idea/scripts/tests/test_resolve_personas.py +0 -160
- package/src/core-skills/bmad-help/SKILL.md +0 -77
- package/src/core-skills/bmad-party-mode/SKILL.md +0 -60
- package/src/core-skills/bmad-party-mode/customize.toml +0 -211
- package/src/core-skills/bmad-party-mode/references/create-party.md +0 -70
- package/src/core-skills/bmad-party-mode/references/mode-agent-team.md +0 -13
- package/src/core-skills/bmad-party-mode/references/mode-auto.md +0 -13
- package/src/core-skills/bmad-party-mode/references/mode-subagent.md +0 -31
- package/src/core-skills/bmad-party-mode/references/party-memory.md +0 -51
- package/src/core-skills/bmad-party-mode/scripts/resolve_party.py +0 -300
- package/src/core-skills/bmad-party-mode/scripts/tests/test_resolve_party.py +0 -183
- package/src/core-skills/bmad-review/SKILL.md +0 -50
- package/src/core-skills/bmad-review/customize.toml +0 -141
- package/src/core-skills/bmad-review/references/editorial-common.md +0 -56
- package/src/core-skills/bmad-review/references/lens-adversarial.md +0 -19
- package/src/core-skills/bmad-review/references/lens-edge-case-hunter.md +0 -72
- package/src/core-skills/bmad-review/references/lens-prose.md +0 -7
- package/src/core-skills/bmad-review/references/lens-structure.md +0 -9
- package/src/core-skills/bmad-review/references/lens-verification-gap.md +0 -92
- package/src/core-skills/bmad-review/references/structure-models.md +0 -44
- package/src/core-skills/bmad-review/scripts/tests/test_word_metrics.py +0 -62
- package/src/core-skills/bmad-review/scripts/word_metrics.py +0 -102
- package/src/core-skills/module-help.csv +0 -10
- package/src/core-skills/module.yaml +0 -38
- package/src/core-skills/v6-shims/README.md +0 -25
- package/src/core-skills/v6-shims/bmad-editorial-review/SKILL.md +0 -8
- package/src/core-skills/v6-shims/bmad-editorial-review/customize.toml +0 -31
- package/src/core-skills/v6-shims/bmad-editorial-review-prose/SKILL.md +0 -8
- package/src/core-skills/v6-shims/bmad-editorial-review-structure/SKILL.md +0 -8
- package/src/core-skills/v6-shims/bmad-review-adversarial-general/SKILL.md +0 -8
- package/src/core-skills/v6-shims/bmad-review-edge-case-hunter/SKILL.md +0 -8
- package/src/core-skills/v6-shims/bmad-review-verification-gap/SKILL.md +0 -8
- package/src/scripts/__pycache__/config_utils.cpython-311.pyc +0 -0
- package/src/scripts/config_utils.py +0 -119
- package/src/scripts/memlog.py +0 -228
- package/src/scripts/render_skill.py +0 -401
- package/src/scripts/resolve_config.py +0 -82
- package/src/scripts/resolve_customization.py +0 -164
- package/src/scripts/tests/__pycache__/test_config_utils.cpython-311.pyc +0 -0
- package/src/scripts/tests/__pycache__/test_resolve_config.cpython-311.pyc +0 -0
- package/src/scripts/tests/__pycache__/test_resolve_customization.cpython-311.pyc +0 -0
- package/src/scripts/tests/test_config_utils.py +0 -85
- package/src/scripts/tests/test_memlog.py +0 -306
- package/src/scripts/tests/test_resolve_config.py +0 -117
- package/src/scripts/tests/test_resolve_customization.py +0 -179
- package/tools/bundle-web-bundles.js +0 -117
- package/tools/format-workflow-md.js +0 -263
- package/tools/installer/README.md +0 -60
- package/tools/installer/bmad-cli.js +0 -105
- package/tools/installer/cli-utils.js +0 -57
- package/tools/installer/commands/install.js +0 -151
- package/tools/installer/commands/status.js +0 -65
- package/tools/installer/commands/uninstall.js +0 -167
- package/tools/installer/core/config.js +0 -76
- package/tools/installer/core/existing-install.js +0 -121
- package/tools/installer/core/install-paths.js +0 -132
- package/tools/installer/core/installer.js +0 -1826
- package/tools/installer/core/legacy-warnings.js +0 -151
- package/tools/installer/core/manifest-generator.js +0 -883
- package/tools/installer/core/manifest.js +0 -439
- package/tools/installer/core/shim-policy.js +0 -159
- package/tools/installer/core/uv-check.js +0 -195
- package/tools/installer/core/wsl-node-check.js +0 -109
- package/tools/installer/file-ops.js +0 -204
- package/tools/installer/fs-native.js +0 -116
- package/tools/installer/ide/_config-driven.js +0 -972
- package/tools/installer/ide/manager.js +0 -324
- package/tools/installer/ide/platform-codes.js +0 -80
- package/tools/installer/ide/platform-codes.yaml +0 -363
- package/tools/installer/ide/shared/installed-skills.js +0 -50
- package/tools/installer/ide/shared/path-utils.js +0 -219
- package/tools/installer/ide/shared/skill-manifest.js +0 -57
- package/tools/installer/install-messages.yaml +0 -44
- package/tools/installer/list-options.js +0 -210
- package/tools/installer/message-loader.js +0 -83
- package/tools/installer/modules/channel-plan.js +0 -216
- package/tools/installer/modules/channel-resolver.js +0 -241
- package/tools/installer/modules/custom-module-manager.js +0 -924
- package/tools/installer/modules/external-manager.js +0 -673
- package/tools/installer/modules/git-env.js +0 -47
- package/tools/installer/modules/module-help-schema.js +0 -13
- package/tools/installer/modules/official-modules.js +0 -2289
- package/tools/installer/modules/plugin-resolver.js +0 -398
- package/tools/installer/modules/version-resolver.js +0 -336
- package/tools/installer/project-root.js +0 -224
- package/tools/installer/prompts.js +0 -804
- package/tools/installer/set-overrides.js +0 -330
- package/tools/installer/ui.js +0 -2262
- package/tools/installer/yaml-format.js +0 -245
- package/tools/javascript-conventions.md +0 -5
- package/tools/migrate-custom-module-paths.js +0 -124
- package/tools/skill-validator.md +0 -312
- package/tools/tests/__pycache__/test_validate_skills.cpython-311.pyc +0 -0
- package/tools/tests/fixtures/validate-skills/bmad/SKILL.md +0 -8
- package/tools/tests/fixtures/validate-skills/deprecated-shim/SKILL.md +0 -9
- package/tools/tests/fixtures/validate-skills/missing-trigger/SKILL.md +0 -9
- package/tools/tests/fixtures/validate-skills/with-trigger/SKILL.md +0 -8
- package/tools/tests/test_validate_skills.py +0 -476
- package/tools/validate-published-implementation-model.mjs +0 -59
- package/tools/validate-sidebar-order.js +0 -388
- package/tools/validate-svg-changes.sh +0 -356
- package/tools/validate_skills.py +0 -698
- package/web-bundles/README.md +0 -46
- package/web-bundles/brainstorming-coach/INSTRUCTIONS.md +0 -86
- package/web-bundles/brainstorming-coach/SKILL.md +0 -83
- package/web-bundles/brainstorming-coach/brain-methods.csv +0 -62
- package/web-bundles/bundles.json +0 -139
- package/web-bundles/market-and-industry-research/INSTRUCTIONS.md +0 -88
- package/web-bundles/market-and-industry-research/SKILL.md +0 -59
- package/web-bundles/prd-coach/INSTRUCTIONS.md +0 -86
- package/web-bundles/prd-coach/SKILL.md +0 -101
- package/web-bundles/prd-coach/prd-template.md +0 -165
- package/web-bundles/prd-coach/prd-validation-checklist.md +0 -135
- package/web-bundles/prfaq-coach/INSTRUCTIONS.md +0 -86
- package/web-bundles/prfaq-coach/SKILL.md +0 -139
- package/web-bundles/product-brief-coach/INSTRUCTIONS.md +0 -86
- package/web-bundles/product-brief-coach/SKILL.md +0 -113
- package/web-bundles/ux-coach/INSTRUCTIONS.md +0 -92
- package/web-bundles/ux-coach/SKILL.md +0 -187
- package/web-bundles/ux-coach/ux-validation.md +0 -100
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
const fs = require('../fs-native');
|
|
2
|
-
const path = require('node:path');
|
|
3
|
-
const yaml = require('yaml');
|
|
4
|
-
const { MODULE_HELP_CSV_HEADER } = require('./module-help-schema');
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Resolves how to install a plugin from marketplace.json by analyzing
|
|
8
|
-
* where module.yaml and module-help.csv live relative to the listed skills.
|
|
9
|
-
*
|
|
10
|
-
* Five strategies, tried in order:
|
|
11
|
-
* 1. Root module files at the common parent of all skills
|
|
12
|
-
* 2. A -setup skill with assets/module.yaml + assets/module-help.csv
|
|
13
|
-
* 3. Single standalone skill with both files in its assets/
|
|
14
|
-
* 4. Multiple standalone skills, each with both files in assets/
|
|
15
|
-
* 5. Fallback: synthesize from marketplace.json + SKILL.md frontmatter
|
|
16
|
-
*/
|
|
17
|
-
class PluginResolver {
|
|
18
|
-
/**
|
|
19
|
-
* Resolve a plugin to one or more installable module definitions.
|
|
20
|
-
* @param {string} repoPath - Absolute path to the cloned repository root
|
|
21
|
-
* @param {Object} plugin - Plugin object from marketplace.json
|
|
22
|
-
* @param {string} plugin.name - Plugin identifier
|
|
23
|
-
* @param {string} [plugin.source] - Relative path from repo root
|
|
24
|
-
* @param {string} [plugin.version] - Semantic version
|
|
25
|
-
* @param {string} [plugin.description] - Plugin description
|
|
26
|
-
* @param {string[]} [plugin.skills] - Relative paths to skill directories
|
|
27
|
-
* @returns {Promise<ResolvedModule[]>} Array of resolved module definitions
|
|
28
|
-
*/
|
|
29
|
-
async resolve(repoPath, plugin) {
|
|
30
|
-
const skillRelPaths = plugin.skills || [];
|
|
31
|
-
|
|
32
|
-
// No skills array: legacy behavior - caller should use existing findModuleSource
|
|
33
|
-
if (skillRelPaths.length === 0) {
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Resolve skill paths to absolute, constrain to repo root, filter non-existent
|
|
38
|
-
const repoRoot = path.resolve(repoPath);
|
|
39
|
-
const skillPaths = [];
|
|
40
|
-
for (const rel of skillRelPaths) {
|
|
41
|
-
const normalized = rel.replace(/^\.\//, '');
|
|
42
|
-
const abs = path.resolve(repoPath, normalized);
|
|
43
|
-
// Guard against path traversal (.. segments, absolute paths in marketplace.json)
|
|
44
|
-
if (!abs.startsWith(repoRoot + path.sep) && abs !== repoRoot) {
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
if (await fs.pathExists(abs)) {
|
|
48
|
-
skillPaths.push(abs);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (skillPaths.length === 0) {
|
|
53
|
-
return [];
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Try each strategy in order
|
|
57
|
-
const result =
|
|
58
|
-
(await this._tryRootModuleFiles(repoPath, plugin, skillPaths)) ||
|
|
59
|
-
(await this._trySetupSkill(repoPath, plugin, skillPaths)) ||
|
|
60
|
-
(await this._trySingleStandalone(repoPath, plugin, skillPaths)) ||
|
|
61
|
-
(await this._tryMultipleStandalone(repoPath, plugin, skillPaths)) ||
|
|
62
|
-
(await this._synthesizeFallback(repoPath, plugin, skillPaths));
|
|
63
|
-
|
|
64
|
-
return result;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// ─── Strategy 1: Root Module Files ──────────────────────────────────────────
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Check if module.yaml + module-help.csv exist at the common parent of all skills.
|
|
71
|
-
*/
|
|
72
|
-
async _tryRootModuleFiles(repoPath, plugin, skillPaths) {
|
|
73
|
-
const commonParent = this._computeCommonParent(skillPaths);
|
|
74
|
-
const moduleYamlPath = path.join(commonParent, 'module.yaml');
|
|
75
|
-
const moduleHelpPath = path.join(commonParent, 'module-help.csv');
|
|
76
|
-
|
|
77
|
-
if (!(await fs.pathExists(moduleYamlPath)) || !(await fs.pathExists(moduleHelpPath))) {
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
const moduleData = await this._readModuleYaml(moduleYamlPath);
|
|
82
|
-
if (!moduleData) return null;
|
|
83
|
-
|
|
84
|
-
return [
|
|
85
|
-
{
|
|
86
|
-
code: moduleData.code || plugin.name,
|
|
87
|
-
name: moduleData.name || plugin.name,
|
|
88
|
-
version: plugin.version || moduleData.module_version || null,
|
|
89
|
-
description: moduleData.description || plugin.description || '',
|
|
90
|
-
strategy: 1,
|
|
91
|
-
pluginName: plugin.name,
|
|
92
|
-
moduleYamlPath,
|
|
93
|
-
moduleHelpCsvPath: moduleHelpPath,
|
|
94
|
-
skillPaths,
|
|
95
|
-
synthesizedModuleYaml: null,
|
|
96
|
-
synthesizedHelpCsv: null,
|
|
97
|
-
},
|
|
98
|
-
];
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// ─── Strategy 2: Setup Skill ────────────────────────────────────────────────
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Search for a skill ending in -setup with assets/module.yaml + assets/module-help.csv.
|
|
105
|
-
*/
|
|
106
|
-
async _trySetupSkill(repoPath, plugin, skillPaths) {
|
|
107
|
-
for (const skillPath of skillPaths) {
|
|
108
|
-
const dirName = path.basename(skillPath);
|
|
109
|
-
if (!dirName.endsWith('-setup')) continue;
|
|
110
|
-
|
|
111
|
-
const moduleYamlPath = path.join(skillPath, 'assets', 'module.yaml');
|
|
112
|
-
const moduleHelpPath = path.join(skillPath, 'assets', 'module-help.csv');
|
|
113
|
-
|
|
114
|
-
if (!(await fs.pathExists(moduleYamlPath)) || !(await fs.pathExists(moduleHelpPath))) {
|
|
115
|
-
continue;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const moduleData = await this._readModuleYaml(moduleYamlPath);
|
|
119
|
-
if (!moduleData) continue;
|
|
120
|
-
|
|
121
|
-
return [
|
|
122
|
-
{
|
|
123
|
-
code: moduleData.code || plugin.name,
|
|
124
|
-
name: moduleData.name || plugin.name,
|
|
125
|
-
version: plugin.version || moduleData.module_version || null,
|
|
126
|
-
description: moduleData.description || plugin.description || '',
|
|
127
|
-
strategy: 2,
|
|
128
|
-
pluginName: plugin.name,
|
|
129
|
-
moduleYamlPath,
|
|
130
|
-
moduleHelpCsvPath: moduleHelpPath,
|
|
131
|
-
skillPaths,
|
|
132
|
-
synthesizedModuleYaml: null,
|
|
133
|
-
synthesizedHelpCsv: null,
|
|
134
|
-
},
|
|
135
|
-
];
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return null;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// ─── Strategy 3: Single Standalone Skill ────────────────────────────────────
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* One skill listed, with assets/module.yaml + assets/module-help.csv.
|
|
145
|
-
*/
|
|
146
|
-
async _trySingleStandalone(repoPath, plugin, skillPaths) {
|
|
147
|
-
if (skillPaths.length !== 1) return null;
|
|
148
|
-
|
|
149
|
-
const skillPath = skillPaths[0];
|
|
150
|
-
const moduleYamlPath = path.join(skillPath, 'assets', 'module.yaml');
|
|
151
|
-
const moduleHelpPath = path.join(skillPath, 'assets', 'module-help.csv');
|
|
152
|
-
|
|
153
|
-
if (!(await fs.pathExists(moduleYamlPath)) || !(await fs.pathExists(moduleHelpPath))) {
|
|
154
|
-
return null;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
const moduleData = await this._readModuleYaml(moduleYamlPath);
|
|
158
|
-
if (!moduleData) return null;
|
|
159
|
-
|
|
160
|
-
return [
|
|
161
|
-
{
|
|
162
|
-
code: moduleData.code || plugin.name,
|
|
163
|
-
name: moduleData.name || plugin.name,
|
|
164
|
-
version: plugin.version || moduleData.module_version || null,
|
|
165
|
-
description: moduleData.description || plugin.description || '',
|
|
166
|
-
strategy: 3,
|
|
167
|
-
pluginName: plugin.name,
|
|
168
|
-
moduleYamlPath,
|
|
169
|
-
moduleHelpCsvPath: moduleHelpPath,
|
|
170
|
-
skillPaths,
|
|
171
|
-
synthesizedModuleYaml: null,
|
|
172
|
-
synthesizedHelpCsv: null,
|
|
173
|
-
},
|
|
174
|
-
];
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// ─── Strategy 4: Multiple Standalone Skills ─────────────────────────────────
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Multiple skills, each with assets/module.yaml + assets/module-help.csv.
|
|
181
|
-
* Each becomes its own installable module.
|
|
182
|
-
*/
|
|
183
|
-
async _tryMultipleStandalone(repoPath, plugin, skillPaths) {
|
|
184
|
-
if (skillPaths.length < 2) return null;
|
|
185
|
-
|
|
186
|
-
const resolved = [];
|
|
187
|
-
|
|
188
|
-
for (const skillPath of skillPaths) {
|
|
189
|
-
const moduleYamlPath = path.join(skillPath, 'assets', 'module.yaml');
|
|
190
|
-
const moduleHelpPath = path.join(skillPath, 'assets', 'module-help.csv');
|
|
191
|
-
|
|
192
|
-
if (!(await fs.pathExists(moduleYamlPath)) || !(await fs.pathExists(moduleHelpPath))) {
|
|
193
|
-
continue;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
const moduleData = await this._readModuleYaml(moduleYamlPath);
|
|
197
|
-
if (!moduleData) continue;
|
|
198
|
-
|
|
199
|
-
resolved.push({
|
|
200
|
-
code: moduleData.code || path.basename(skillPath),
|
|
201
|
-
name: moduleData.name || path.basename(skillPath),
|
|
202
|
-
version: plugin.version || moduleData.module_version || null,
|
|
203
|
-
description: moduleData.description || '',
|
|
204
|
-
strategy: 4,
|
|
205
|
-
pluginName: plugin.name,
|
|
206
|
-
moduleYamlPath,
|
|
207
|
-
moduleHelpCsvPath: moduleHelpPath,
|
|
208
|
-
skillPaths: [skillPath],
|
|
209
|
-
synthesizedModuleYaml: null,
|
|
210
|
-
synthesizedHelpCsv: null,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// Only use strategy 4 if ALL skills have module files
|
|
215
|
-
if (resolved.length === skillPaths.length) {
|
|
216
|
-
return resolved;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// Partial match: fall through to strategy 5
|
|
220
|
-
return null;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// ─── Strategy 5: Fallback (Synthesized) ─────────────────────────────────────
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* No module files found anywhere. Synthesize from marketplace.json metadata
|
|
227
|
-
* and SKILL.md frontmatter.
|
|
228
|
-
*/
|
|
229
|
-
async _synthesizeFallback(repoPath, plugin, skillPaths) {
|
|
230
|
-
const skillInfos = [];
|
|
231
|
-
|
|
232
|
-
for (const skillPath of skillPaths) {
|
|
233
|
-
const frontmatter = await this._parseSkillFrontmatter(skillPath);
|
|
234
|
-
skillInfos.push({
|
|
235
|
-
dirName: path.basename(skillPath),
|
|
236
|
-
name: frontmatter.name || path.basename(skillPath),
|
|
237
|
-
description: frontmatter.description || '',
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
const moduleName = this._formatDisplayName(plugin.name);
|
|
242
|
-
const code = plugin.name;
|
|
243
|
-
|
|
244
|
-
const synthesizedYaml = {
|
|
245
|
-
code,
|
|
246
|
-
name: moduleName,
|
|
247
|
-
description: plugin.description || '',
|
|
248
|
-
module_version: plugin.version || '1.0.0',
|
|
249
|
-
default_selected: false,
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
const synthesizedCsv = this._buildSynthesizedHelpCsv(moduleName, skillInfos);
|
|
253
|
-
|
|
254
|
-
return [
|
|
255
|
-
{
|
|
256
|
-
code,
|
|
257
|
-
name: moduleName,
|
|
258
|
-
version: plugin.version || null,
|
|
259
|
-
description: plugin.description || '',
|
|
260
|
-
strategy: 5,
|
|
261
|
-
pluginName: plugin.name,
|
|
262
|
-
moduleYamlPath: null,
|
|
263
|
-
moduleHelpCsvPath: null,
|
|
264
|
-
skillPaths,
|
|
265
|
-
synthesizedModuleYaml: synthesizedYaml,
|
|
266
|
-
synthesizedHelpCsv: synthesizedCsv,
|
|
267
|
-
},
|
|
268
|
-
];
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
// ─── Helpers ────────────────────────────────────────────────────────────────
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Compute the deepest common ancestor directory of an array of absolute paths.
|
|
275
|
-
* @param {string[]} absPaths - Absolute directory paths
|
|
276
|
-
* @returns {string} Common parent directory
|
|
277
|
-
*/
|
|
278
|
-
_computeCommonParent(absPaths) {
|
|
279
|
-
if (absPaths.length === 0) return '/';
|
|
280
|
-
if (absPaths.length === 1) return path.dirname(absPaths[0]);
|
|
281
|
-
|
|
282
|
-
const segments = absPaths.map((p) => p.split(path.sep));
|
|
283
|
-
const minLen = Math.min(...segments.map((s) => s.length));
|
|
284
|
-
const common = [];
|
|
285
|
-
|
|
286
|
-
for (let i = 0; i < minLen; i++) {
|
|
287
|
-
const segment = segments[0][i];
|
|
288
|
-
if (segments.every((s) => s[i] === segment)) {
|
|
289
|
-
common.push(segment);
|
|
290
|
-
} else {
|
|
291
|
-
break;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
return common.join(path.sep) || '/';
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Read and parse a module.yaml file.
|
|
300
|
-
* @param {string} yamlPath - Absolute path to module.yaml
|
|
301
|
-
* @returns {Object|null} Parsed content or null on failure
|
|
302
|
-
*/
|
|
303
|
-
async _readModuleYaml(yamlPath) {
|
|
304
|
-
try {
|
|
305
|
-
const content = await fs.readFile(yamlPath, 'utf8');
|
|
306
|
-
return yaml.parse(content);
|
|
307
|
-
} catch {
|
|
308
|
-
return null;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Extract name and description from a SKILL.md YAML frontmatter block.
|
|
314
|
-
* @param {string} skillDirPath - Absolute path to the skill directory
|
|
315
|
-
* @returns {Object} { name, description } or empty strings
|
|
316
|
-
*/
|
|
317
|
-
async _parseSkillFrontmatter(skillDirPath) {
|
|
318
|
-
const skillMdPath = path.join(skillDirPath, 'SKILL.md');
|
|
319
|
-
try {
|
|
320
|
-
const content = await fs.readFile(skillMdPath, 'utf8');
|
|
321
|
-
const match = content.match(/^---\s*\n([\s\S]*?)\n---/);
|
|
322
|
-
if (!match) return { name: '', description: '' };
|
|
323
|
-
|
|
324
|
-
const parsed = yaml.parse(match[1]);
|
|
325
|
-
return {
|
|
326
|
-
name: parsed.name || '',
|
|
327
|
-
description: parsed.description || '',
|
|
328
|
-
};
|
|
329
|
-
} catch {
|
|
330
|
-
return { name: '', description: '' };
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Build a synthesized module-help.csv from plugin metadata and skill frontmatter.
|
|
336
|
-
* Uses the standard 13-column format.
|
|
337
|
-
* @param {string} moduleName - Display name for the module column
|
|
338
|
-
* @param {Array<{dirName: string, name: string, description: string}>} skillInfos
|
|
339
|
-
* @returns {string} CSV content
|
|
340
|
-
*/
|
|
341
|
-
_buildSynthesizedHelpCsv(moduleName, skillInfos) {
|
|
342
|
-
const rows = [MODULE_HELP_CSV_HEADER];
|
|
343
|
-
|
|
344
|
-
for (const info of skillInfos) {
|
|
345
|
-
const displayName = this._formatDisplayName(info.name || info.dirName);
|
|
346
|
-
const menuCode = this._generateMenuCode(info.name || info.dirName);
|
|
347
|
-
const description = this._escapeCSVField(info.description);
|
|
348
|
-
|
|
349
|
-
rows.push(`${moduleName},${info.dirName},${displayName},${menuCode},${description},activate,,anytime,,,false,,`);
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
return rows.join('\n') + '\n';
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* Format a kebab-case or snake_case name into a display name.
|
|
357
|
-
* Strips common prefixes like "bmad-" or "bmad-agent-".
|
|
358
|
-
* @param {string} name - Raw name
|
|
359
|
-
* @returns {string} Formatted display name
|
|
360
|
-
*/
|
|
361
|
-
_formatDisplayName(name) {
|
|
362
|
-
let cleaned = name.replace(/^bmad-agent-/, '').replace(/^bmad-/, '');
|
|
363
|
-
return cleaned
|
|
364
|
-
.split(/[-_]/)
|
|
365
|
-
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
366
|
-
.join(' ');
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Generate a short menu code from a skill name.
|
|
371
|
-
* Takes first letter of each significant word, uppercased, max 3 chars.
|
|
372
|
-
* @param {string} name - Skill name (kebab-case)
|
|
373
|
-
* @returns {string} Menu code (e.g., "CC" for "code-coach")
|
|
374
|
-
*/
|
|
375
|
-
_generateMenuCode(name) {
|
|
376
|
-
const cleaned = name.replace(/^bmad-agent-/, '').replace(/^bmad-/, '');
|
|
377
|
-
const words = cleaned.split(/[-_]/).filter((w) => w.length > 0);
|
|
378
|
-
return words
|
|
379
|
-
.map((w) => w.charAt(0).toUpperCase())
|
|
380
|
-
.join('')
|
|
381
|
-
.slice(0, 3);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Escape a value for CSV output (wrap in quotes if it contains commas, quotes, or newlines).
|
|
386
|
-
* @param {string} value
|
|
387
|
-
* @returns {string}
|
|
388
|
-
*/
|
|
389
|
-
_escapeCSVField(value) {
|
|
390
|
-
if (!value) return '';
|
|
391
|
-
if (value.includes(',') || value.includes('"') || value.includes('\n')) {
|
|
392
|
-
return `"${value.replaceAll('"', '""')}"`;
|
|
393
|
-
}
|
|
394
|
-
return value;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
module.exports = { PluginResolver };
|