bmad-opencode-converter 1.0.0 → 1.3.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/README.md +51 -38
- package/dist/cli.js +28 -9
- package/dist/cli.js.map +1 -1
- package/dist/converter.d.ts +5 -3
- package/dist/converter.d.ts.map +1 -1
- package/dist/converter.js +73 -203
- package/dist/converter.js.map +1 -1
- package/dist/converters/agent-converter.d.ts +4 -7
- package/dist/converters/agent-converter.d.ts.map +1 -1
- package/dist/converters/agent-converter.js +123 -137
- package/dist/converters/agent-converter.js.map +1 -1
- package/dist/converters/task-converter.d.ts +2 -3
- package/dist/converters/task-converter.d.ts.map +1 -1
- package/dist/converters/task-converter.js +14 -62
- package/dist/converters/task-converter.js.map +1 -1
- package/dist/converters/workflow-converter.d.ts +2 -3
- package/dist/converters/workflow-converter.d.ts.map +1 -1
- package/dist/converters/workflow-converter.js +35 -76
- package/dist/converters/workflow-converter.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/parsers/csv-parser.d.ts +1 -4
- package/dist/parsers/csv-parser.d.ts.map +1 -1
- package/dist/parsers/csv-parser.js +46 -46
- package/dist/parsers/csv-parser.js.map +1 -1
- package/dist/parsers/index.d.ts +2 -3
- package/dist/parsers/index.d.ts.map +1 -1
- package/dist/parsers/index.js +2 -3
- package/dist/parsers/index.js.map +1 -1
- package/dist/parsers/manifest-parser.d.ts +8 -0
- package/dist/parsers/manifest-parser.d.ts.map +1 -0
- package/dist/parsers/manifest-parser.js +12 -0
- package/dist/parsers/manifest-parser.js.map +1 -0
- package/dist/parsers/markdown-parser.d.ts +7 -0
- package/dist/parsers/markdown-parser.d.ts.map +1 -0
- package/dist/parsers/markdown-parser.js +32 -0
- package/dist/parsers/markdown-parser.js.map +1 -0
- package/dist/types/bmad.d.ts +19 -116
- package/dist/types/bmad.d.ts.map +1 -1
- package/dist/types/bmad.js +1 -4
- package/dist/types/bmad.js.map +1 -1
- package/dist/types/opencode.d.ts +13 -67
- package/dist/types/opencode.d.ts.map +1 -1
- package/dist/types/opencode.js +1 -0
- package/dist/types/opencode.js.map +1 -1
- package/dist/writers/handlebars-writer.d.ts +6 -0
- package/dist/writers/handlebars-writer.d.ts.map +1 -0
- package/dist/writers/handlebars-writer.js +48 -0
- package/dist/writers/handlebars-writer.js.map +1 -0
- package/dist/writers/index.d.ts +2 -0
- package/dist/writers/index.d.ts.map +1 -0
- package/dist/writers/index.js +2 -0
- package/dist/writers/index.js.map +1 -0
- package/package.json +11 -25
- package/plan.md +210 -0
- package/src/agent-skills.json +153 -0
- package/src/cli.ts +104 -0
- package/src/converter.ts +106 -0
- package/src/converters/agent-converter.ts +185 -0
- package/src/converters/index.ts +3 -0
- package/src/converters/task-converter.ts +31 -0
- package/src/converters/workflow-converter.ts +58 -0
- package/src/index.ts +6 -0
- package/src/parsers/csv-parser.ts +60 -0
- package/src/parsers/index.ts +3 -0
- package/src/parsers/manifest-parser.ts +21 -0
- package/src/parsers/markdown-parser.ts +43 -0
- package/src/templates/agent.hbs +24 -0
- package/src/templates/skill.hbs +18 -0
- package/src/types/bmad.ts +57 -0
- package/src/types/index.ts +2 -0
- package/src/types/opencode.ts +44 -0
- package/src/writers/handlebars-writer.ts +79 -0
- package/src/writers/index.ts +1 -0
- package/tests/sources/.opencode/command/bmad-agent-bmad-master.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-bmm-analyst.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-bmm-architect.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-bmm-dev.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-bmm-pm.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-bmm-qa.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-bmm-quick-flow-solo-dev.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-bmm-sm.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-bmm-tech-writer.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-bmm-ux-designer.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-cis-brainstorming-coach.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-cis-creative-problem-solver.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-cis-design-thinking-coach.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-cis-innovation-strategist.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-cis-presentation-master.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-cis-storyteller.md +16 -0
- package/tests/sources/.opencode/command/bmad-agent-tea-tea.md +16 -0
- package/tests/sources/.opencode/command/bmad-bmm-check-implementation-readiness.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-code-review.md +15 -0
- package/tests/sources/.opencode/command/bmad-bmm-correct-course.md +15 -0
- package/tests/sources/.opencode/command/bmad-bmm-create-architecture.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-create-epics-and-stories.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-create-prd.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-create-product-brief.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-create-story.md +15 -0
- package/tests/sources/.opencode/command/bmad-bmm-create-ux-design.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-dev-story.md +15 -0
- package/tests/sources/.opencode/command/bmad-bmm-document-project.md +15 -0
- package/tests/sources/.opencode/command/bmad-bmm-domain-research.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-edit-prd.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-generate-project-context.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-market-research.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-qa-automate.md +15 -0
- package/tests/sources/.opencode/command/bmad-bmm-quick-dev.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-quick-spec.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-retrospective.md +15 -0
- package/tests/sources/.opencode/command/bmad-bmm-sprint-planning.md +15 -0
- package/tests/sources/.opencode/command/bmad-bmm-sprint-status.md +15 -0
- package/tests/sources/.opencode/command/bmad-bmm-technical-research.md +7 -0
- package/tests/sources/.opencode/command/bmad-bmm-validate-prd.md +7 -0
- package/tests/sources/.opencode/command/bmad-brainstorming.md +7 -0
- package/tests/sources/.opencode/command/bmad-cis-design-thinking.md +15 -0
- package/tests/sources/.opencode/command/bmad-cis-innovation-strategy.md +15 -0
- package/tests/sources/.opencode/command/bmad-cis-problem-solving.md +15 -0
- package/tests/sources/.opencode/command/bmad-cis-storytelling.md +15 -0
- package/tests/sources/.opencode/command/bmad-editorial-review-prose.md +10 -0
- package/tests/sources/.opencode/command/bmad-editorial-review-structure.md +10 -0
- package/tests/sources/.opencode/command/bmad-help.md +10 -0
- package/tests/sources/.opencode/command/bmad-index-docs.md +10 -0
- package/tests/sources/.opencode/command/bmad-party-mode.md +7 -0
- package/tests/sources/.opencode/command/bmad-review-adversarial-general.md +10 -0
- package/tests/sources/.opencode/command/bmad-shard-doc.md +10 -0
- package/tests/sources/.opencode/command/bmad-tea-teach-me-testing.md +7 -0
- package/tests/sources/.opencode/command/bmad-tea-testarch-atdd.md +15 -0
- package/tests/sources/.opencode/command/bmad-tea-testarch-automate.md +15 -0
- package/tests/sources/.opencode/command/bmad-tea-testarch-ci.md +15 -0
- package/tests/sources/.opencode/command/bmad-tea-testarch-framework.md +15 -0
- package/tests/sources/.opencode/command/bmad-tea-testarch-nfr.md +15 -0
- package/tests/sources/.opencode/command/bmad-tea-testarch-test-design.md +15 -0
- package/tests/sources/.opencode/command/bmad-tea-testarch-test-review.md +15 -0
- package/tests/sources/.opencode/command/bmad-tea-testarch-trace.md +15 -0
- package/tests/sources/_bmad/_config/agent-manifest.csv +18 -0
- package/tests/sources/_bmad/_config/agents/bmm-analyst.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/bmm-architect.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/bmm-dev.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/bmm-pm.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/bmm-qa.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/bmm-quick-flow-solo-dev.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/bmm-sm.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/bmm-tech-writer.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/bmm-ux-designer.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/cis-brainstorming-coach.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/cis-creative-problem-solver.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/cis-design-thinking-coach.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/cis-innovation-strategist.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/cis-presentation-master.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/cis-storyteller.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/core-bmad-master.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/agents/tea-tea.customize.yaml +41 -0
- package/tests/sources/_bmad/_config/bmad-help.csv +53 -0
- package/tests/sources/_bmad/_config/files-manifest.csv +444 -0
- package/tests/sources/_bmad/_config/manifest.yaml +35 -0
- package/tests/sources/_bmad/_config/task-manifest.csv +7 -0
- package/tests/sources/_bmad/_config/tool-manifest.csv +1 -0
- package/tests/sources/_bmad/_config/workflow-manifest.csv +39 -0
- package/tests/sources/_bmad/_memory/config.yaml +11 -0
- package/tests/sources/_bmad/_memory/storyteller-sidecar/stories-told.md +7 -0
- package/tests/sources/_bmad/_memory/storyteller-sidecar/story-preferences.md +7 -0
- package/tests/sources/_bmad/_memory/tech-writer-sidecar/documentation-standards.md +224 -0
- package/tests/sources/_bmad/bmm/agents/analyst.md +78 -0
- package/tests/sources/_bmad/bmm/agents/architect.md +58 -0
- package/tests/sources/_bmad/bmm/agents/dev.md +69 -0
- package/tests/sources/_bmad/bmm/agents/pm.md +72 -0
- package/tests/sources/_bmad/bmm/agents/qa.md +92 -0
- package/tests/sources/_bmad/bmm/agents/quick-flow-solo-dev.md +69 -0
- package/tests/sources/_bmad/bmm/agents/sm.md +70 -0
- package/tests/sources/_bmad/bmm/agents/tech-writer/tech-writer.md +70 -0
- package/tests/sources/_bmad/bmm/agents/ux-designer.md +57 -0
- package/tests/sources/_bmad/bmm/config.yaml +16 -0
- package/tests/sources/_bmad/bmm/data/project-context-template.md +26 -0
- package/tests/sources/_bmad/bmm/module-help.csv +31 -0
- package/tests/sources/_bmad/bmm/teams/default-party.csv +20 -0
- package/tests/sources/_bmad/bmm/teams/team-fullstack.yaml +12 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/product-brief.template.md +10 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md +177 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md +161 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md +199 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md +202 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md +205 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md +219 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +162 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md +57 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +137 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +229 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +238 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +206 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +234 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +443 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +182 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +237 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +249 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +259 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +177 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +475 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/research.template.md +29 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +137 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +239 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +248 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +202 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +239 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +486 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/workflow-domain-research.md +54 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/workflow-market-research.md +54 -0
- package/tests/sources/_bmad/bmm/workflows/1-analysis/research/workflow-technical-research.md +54 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/data/domain-complexity.csv +15 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/data/prd-purpose.md +197 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/data/project-types.csv +11 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01-init.md +191 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01b-continue.md +153 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02-discovery.md +224 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-03-success.md +226 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md +213 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-05-domain.md +207 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-06-innovation.md +226 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-07-project-type.md +237 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-08-scoping.md +228 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-09-functional.md +231 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-10-nonfunctional.md +242 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-11-polish.md +217 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md +124 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-01-discovery.md +247 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-01b-legacy-conversion.md +208 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-02-review.md +249 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-03-edit.md +253 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-04-complete.md +168 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-01-discovery.md +218 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-02-format-detection.md +191 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-02b-parity-check.md +209 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-03-density-validation.md +174 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-04-brief-coverage-validation.md +214 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-05-measurability-validation.md +228 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-06-traceability-validation.md +217 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-07-implementation-leakage-validation.md +205 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-08-domain-compliance-validation.md +243 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-09-project-type-validation.md +263 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-10-smart-validation.md +209 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-11-holistic-quality-validation.md +264 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-12-completeness-validation.md +242 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-13-report-complete.md +231 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/templates/prd-template.md +10 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md +63 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-edit-prd.md +65 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md +65 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +135 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +127 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +190 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +216 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +219 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +234 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +252 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +254 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +224 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +224 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +241 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +248 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +237 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +264 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +171 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +13 -0
- package/tests/sources/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +42 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md +190 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md +178 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md +179 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md +139 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md +252 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +135 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/templates/readiness-report-template.md +4 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +54 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/architecture-decision-template.md +12 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/data/domain-complexity.csv +13 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/data/project-types.csv +7 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md +153 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md +164 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md +224 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md +331 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md +318 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md +359 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md +379 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md +359 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +76 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md +49 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +259 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +233 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +272 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +149 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/templates/epics-template.md +57 -0
- package/tests/sources/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +58 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/code-review/checklist.md +23 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/code-review/instructions.xml +227 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +48 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/correct-course/checklist.md +288 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/correct-course/instructions.md +206 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +56 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/create-story/checklist.md +358 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/create-story/instructions.xml +345 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/create-story/template.md +49 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +57 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/dev-story/checklist.md +80 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/dev-story/instructions.xml +410 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +23 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/retrospective/instructions.md +1443 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +55 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +33 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +225 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +55 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +51 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-status/instructions.md +229 -0
- package/tests/sources/_bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml +30 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-01-mode-detection.md +176 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-02-context-gathering.md +120 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-03-execute.md +113 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-04-self-check.md +113 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-05-adversarial-review.md +106 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-06-resolve-findings.md +149 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +50 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-01-understand.md +192 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-02-investigate.md +145 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-03-generate.md +128 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-04-review.md +201 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/tech-spec-template.md +74 -0
- package/tests/sources/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md +78 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/checklist.md +245 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/documentation-requirements.csv +12 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/instructions.md +221 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/templates/deep-dive-template.md +345 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/templates/index-template.md +169 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/templates/project-overview-template.md +103 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +160 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/templates/source-tree-template.md +135 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/workflow.yaml +22 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +298 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +31 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +1106 -0
- package/tests/sources/_bmad/bmm/workflows/document-project/workflows/full-scan.yaml +31 -0
- package/tests/sources/_bmad/bmm/workflows/generate-project-context/project-context-template.md +21 -0
- package/tests/sources/_bmad/bmm/workflows/generate-project-context/steps/step-01-discover.md +184 -0
- package/tests/sources/_bmad/bmm/workflows/generate-project-context/steps/step-02-generate.md +318 -0
- package/tests/sources/_bmad/bmm/workflows/generate-project-context/steps/step-03-complete.md +278 -0
- package/tests/sources/_bmad/bmm/workflows/generate-project-context/workflow.md +49 -0
- package/tests/sources/_bmad/bmm/workflows/qa/automate/checklist.md +33 -0
- package/tests/sources/_bmad/bmm/workflows/qa/automate/instructions.md +110 -0
- package/tests/sources/_bmad/bmm/workflows/qa/automate/workflow.yaml +47 -0
- package/tests/sources/_bmad/cis/agents/brainstorming-coach.md +61 -0
- package/tests/sources/_bmad/cis/agents/creative-problem-solver.md +61 -0
- package/tests/sources/_bmad/cis/agents/design-thinking-coach.md +61 -0
- package/tests/sources/_bmad/cis/agents/innovation-strategist.md +61 -0
- package/tests/sources/_bmad/cis/agents/presentation-master.md +67 -0
- package/tests/sources/_bmad/cis/agents/storyteller/storyteller.md +58 -0
- package/tests/sources/_bmad/cis/config.yaml +12 -0
- package/tests/sources/_bmad/cis/module-help.csv +6 -0
- package/tests/sources/_bmad/cis/teams/creative-squad.yaml +7 -0
- package/tests/sources/_bmad/cis/teams/default-party.csv +12 -0
- package/tests/sources/_bmad/cis/workflows/README.md +139 -0
- package/tests/sources/_bmad/cis/workflows/design-thinking/README.md +56 -0
- package/tests/sources/_bmad/cis/workflows/design-thinking/design-methods.csv +31 -0
- package/tests/sources/_bmad/cis/workflows/design-thinking/instructions.md +202 -0
- package/tests/sources/_bmad/cis/workflows/design-thinking/template.md +111 -0
- package/tests/sources/_bmad/cis/workflows/design-thinking/workflow.yaml +27 -0
- package/tests/sources/_bmad/cis/workflows/innovation-strategy/README.md +56 -0
- package/tests/sources/_bmad/cis/workflows/innovation-strategy/innovation-frameworks.csv +31 -0
- package/tests/sources/_bmad/cis/workflows/innovation-strategy/instructions.md +276 -0
- package/tests/sources/_bmad/cis/workflows/innovation-strategy/template.md +189 -0
- package/tests/sources/_bmad/cis/workflows/innovation-strategy/workflow.yaml +27 -0
- package/tests/sources/_bmad/cis/workflows/problem-solving/README.md +56 -0
- package/tests/sources/_bmad/cis/workflows/problem-solving/instructions.md +252 -0
- package/tests/sources/_bmad/cis/workflows/problem-solving/solving-methods.csv +31 -0
- package/tests/sources/_bmad/cis/workflows/problem-solving/template.md +165 -0
- package/tests/sources/_bmad/cis/workflows/problem-solving/workflow.yaml +27 -0
- package/tests/sources/_bmad/cis/workflows/storytelling/README.md +58 -0
- package/tests/sources/_bmad/cis/workflows/storytelling/instructions.md +293 -0
- package/tests/sources/_bmad/cis/workflows/storytelling/story-types.csv +26 -0
- package/tests/sources/_bmad/cis/workflows/storytelling/template.md +113 -0
- package/tests/sources/_bmad/cis/workflows/storytelling/workflow.yaml +27 -0
- package/tests/sources/_bmad/core/agents/bmad-master.md +56 -0
- package/tests/sources/_bmad/core/config.yaml +9 -0
- package/tests/sources/_bmad/core/module-help.csv +9 -0
- package/tests/sources/_bmad/core/tasks/editorial-review-prose.xml +102 -0
- package/tests/sources/_bmad/core/tasks/editorial-review-structure.xml +209 -0
- package/tests/sources/_bmad/core/tasks/help.md +82 -0
- package/tests/sources/_bmad/core/tasks/index-docs.xml +65 -0
- package/tests/sources/_bmad/core/tasks/review-adversarial-general.xml +48 -0
- package/tests/sources/_bmad/core/tasks/shard-doc.xml +108 -0
- package/tests/sources/_bmad/core/tasks/workflow.xml +235 -0
- package/tests/sources/_bmad/core/workflows/advanced-elicitation/methods.csv +51 -0
- package/tests/sources/_bmad/core/workflows/advanced-elicitation/workflow.xml +117 -0
- package/tests/sources/_bmad/core/workflows/brainstorming/brain-methods.csv +62 -0
- package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-01-session-setup.md +197 -0
- package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-01b-continue.md +122 -0
- package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-02a-user-selected.md +225 -0
- package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +237 -0
- package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-02c-random-selection.md +209 -0
- package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +264 -0
- package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-03-technique-execution.md +399 -0
- package/tests/sources/_bmad/core/workflows/brainstorming/steps/step-04-idea-organization.md +303 -0
- package/tests/sources/_bmad/core/workflows/brainstorming/template.md +15 -0
- package/tests/sources/_bmad/core/workflows/brainstorming/workflow.md +58 -0
- package/tests/sources/_bmad/core/workflows/party-mode/steps/step-01-agent-loading.md +138 -0
- package/tests/sources/_bmad/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +187 -0
- package/tests/sources/_bmad/core/workflows/party-mode/steps/step-03-graceful-exit.md +157 -0
- package/tests/sources/_bmad/core/workflows/party-mode/workflow.md +194 -0
- package/tests/sources/_bmad/tea/agents/tea.md +71 -0
- package/tests/sources/_bmad/tea/config.yaml +19 -0
- package/tests/sources/_bmad/tea/module-help.csv +10 -0
- package/tests/sources/_bmad/tea/teams/default-party.csv +2 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/adr-quality-readiness-checklist.md +377 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/api-request.md +442 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/api-testing-patterns.md +851 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/auth-session.md +548 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/burn-in.md +273 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/ci-burn-in.md +675 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/component-tdd.md +486 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/contract-testing.md +957 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/data-factories.md +500 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/email-auth.md +721 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/error-handling.md +725 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/feature-flags.md +750 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/file-utils.md +456 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/fixture-architecture.md +401 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/fixtures-composition.md +382 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/intercept-network-call.md +426 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/log.md +426 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/network-error-monitor.md +401 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/network-first.md +486 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/network-recorder.md +527 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/nfr-criteria.md +670 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/overview.md +286 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/playwright-cli.md +165 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/playwright-config.md +730 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/probability-impact.md +601 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/recurse.md +421 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/risk-governance.md +615 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/selective-testing.md +732 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/selector-resilience.md +527 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/test-healing-patterns.md +644 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/test-levels-framework.md +473 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/test-priorities-matrix.md +373 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/test-quality.md +664 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/timing-debugging.md +372 -0
- package/tests/sources/_bmad/tea/testarch/knowledge/visual-debugging.md +524 -0
- package/tests/sources/_bmad/tea/testarch/tea-index.csv +36 -0
- package/tests/sources/_bmad/tea/workflows/testarch/README.md +74 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/atdd-checklist-template.md +363 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/checklist.md +374 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/instructions.md +38 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-01-preflight-and-context.md +118 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-02-generation-mode.md +95 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-03-test-strategy.md +76 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-04-generate-tests.md +229 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-04a-subprocess-api-failing.md +215 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-04b-subprocess-e2e-failing.md +244 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-04c-aggregate.md +329 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-c/step-05-validate-and-complete.md +70 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-e/step-01-assess.md +65 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-e/step-02-apply-edit.md +60 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/steps-v/step-01-validate.md +67 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/validation-report-20260127-095021.md +73 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/validation-report-20260127-102401.md +116 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/workflow-plan.md +21 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/workflow.md +39 -0
- package/tests/sources/_bmad/tea/workflows/testarch/atdd/workflow.yaml +46 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/checklist.md +582 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/instructions.md +43 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-01-preflight-and-context.md +136 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-02-identify-targets.md +108 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-03-generate-tests.md +199 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-03a-subprocess-api.md +183 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-03b-subprocess-e2e.md +213 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-03c-aggregate.md +300 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-c/step-04-validate-and-summarize.md +71 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-e/step-01-assess.md +65 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-e/step-02-apply-edit.md +60 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/steps-v/step-01-validate.md +67 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/validation-report-20260127-095021.md +72 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/validation-report-20260127-102401.md +114 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/workflow-plan.md +20 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/workflow.md +39 -0
- package/tests/sources/_bmad/tea/workflows/testarch/automate/workflow.yaml +53 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/checklist.md +247 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/github-actions-template.yaml +198 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/gitlab-ci-template.yaml +149 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/instructions.md +38 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-c/step-01-preflight.md +92 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-c/step-02-generate-pipeline.md +82 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-c/step-03-configure-quality-gates.md +75 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-c/step-04-validate-and-summary.md +67 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-e/step-01-assess.md +65 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-e/step-02-apply-edit.md +60 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/steps-v/step-01-validate.md +67 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/validation-report-20260127-095021.md +72 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/validation-report-20260127-102401.md +114 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/workflow-plan.md +20 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/workflow.md +39 -0
- package/tests/sources/_bmad/tea/workflows/testarch/ci/workflow.yaml +46 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/checklist.md +320 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/instructions.md +38 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-c/step-01-preflight.md +75 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-c/step-02-select-framework.md +73 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-c/step-03-scaffold-framework.md +120 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-c/step-04-docs-and-scripts.md +70 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-c/step-05-validate-and-summary.md +68 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-e/step-01-assess.md +65 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-e/step-02-apply-edit.md +60 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/steps-v/step-01-validate.md +67 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/validation-report-20260127-095021.md +73 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/validation-report-20260127-102401.md +116 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/workflow-plan.md +22 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/workflow.md +39 -0
- package/tests/sources/_bmad/tea/workflows/testarch/framework/workflow.yaml +48 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/checklist.md +407 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/instructions.md +36 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/nfr-report-template.md +462 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-01-load-context.md +101 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-02-define-thresholds.md +82 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-03-gather-evidence.md +83 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04-evaluate-and-score.md +140 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04a-subprocess-security.md +138 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04b-subprocess-performance.md +84 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04c-subprocess-reliability.md +85 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04d-subprocess-scalability.md +88 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04e-aggregate-nfr.md +219 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-c/step-05-generate-report.md +73 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-e/step-01-assess.md +65 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-e/step-02-apply-edit.md +60 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/steps-v/step-01-validate.md +67 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-095021.md +73 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-102401.md +116 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/workflow-plan.md +19 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/workflow.md +39 -0
- package/tests/sources/_bmad/tea/workflows/testarch/nfr-assess/workflow.yaml +48 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/checklist.md +197 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/data/curriculum.yaml +129 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/data/quiz-questions.yaml +206 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/data/role-paths.yaml +136 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/data/session-content-map.yaml +207 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/data/tea-resources-index.yaml +359 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/instructions.md +130 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-01-init.md +235 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-01b-continue.md +147 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-02-assess.md +258 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-03-session-menu.md +219 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-01.md +460 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-02.md +465 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-03.md +301 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-04.md +234 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-05.md +234 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-06.md +209 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-07.md +212 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-05-completion.md +339 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-e/step-e-01-assess-workflow.md +141 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-e/step-e-02-apply-edits.md +122 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/steps-v/step-v-01-validate.md +263 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/templates/certificate-template.md +86 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/templates/progress-template.yaml +95 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/templates/session-notes-template.md +83 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/workflow-plan-teach-me-testing.md +950 -0
- package/tests/sources/_bmad/tea/workflows/testarch/teach-me-testing/workflow.md +90 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/checklist.md +453 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/instructions.md +98 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-c/step-01-detect-mode.md +109 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-c/step-02-load-context.md +153 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-c/step-03-risk-and-testability.md +85 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-c/step-04-coverage-plan.md +98 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-c/step-05-generate-output.md +99 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-e/step-01-assess.md +65 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-e/step-02-apply-edit.md +60 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/steps-v/step-01-validate.md +67 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/test-design-architecture-template.md +222 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/test-design-qa-template.md +388 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/test-design-template.md +338 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/validation-report-20260127-095021.md +73 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/validation-report-20260127-102401.md +116 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/workflow-plan.md +22 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/workflow.md +39 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-design/workflow.yaml +70 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/checklist.md +472 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/instructions.md +36 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-01-load-context.md +109 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-02-discover-tests.md +88 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03-quality-evaluation.md +184 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03a-subprocess-determinism.md +214 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03b-subprocess-isolation.md +125 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03c-subprocess-maintainability.md +102 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03d-subprocess-coverage.md +111 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03e-subprocess-performance.md +117 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-03f-aggregate-scores.md +246 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-c/step-04-generate-report.md +75 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-e/step-01-assess.md +65 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-e/step-02-apply-edit.md +60 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/steps-v/step-01-validate.md +67 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/test-review-template.md +390 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/validation-report-20260127-095021.md +72 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/validation-report-20260127-102401.md +114 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/workflow-plan.md +18 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/workflow.md +39 -0
- package/tests/sources/_bmad/tea/workflows/testarch/test-review/workflow.yaml +47 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/checklist.md +642 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/instructions.md +36 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-c/step-01-load-context.md +80 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-c/step-02-discover-tests.md +69 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-c/step-03-map-criteria.md +65 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-c/step-04-analyze-gaps.md +244 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-c/step-05-gate-decision.md +232 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-e/step-01-assess.md +65 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-e/step-02-apply-edit.md +60 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/steps-v/step-01-validate.md +67 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/trace-template.md +675 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/validation-report-20260127-095021.md +73 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/validation-report-20260127-102401.md +116 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/workflow-plan.md +21 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/workflow.md +39 -0
- package/tests/sources/_bmad/tea/workflows/testarch/trace/workflow.yaml +56 -0
- package/tsconfig.json +20 -0
- package/dist/parsers/agent-parser.d.ts +0 -3
- package/dist/parsers/agent-parser.d.ts.map +0 -1
- package/dist/parsers/agent-parser.js +0 -143
- package/dist/parsers/agent-parser.js.map +0 -1
- package/dist/parsers/workflow-parser.d.ts +0 -3
- package/dist/parsers/workflow-parser.d.ts.map +0 -1
- package/dist/parsers/workflow-parser.js +0 -88
- package/dist/parsers/workflow-parser.js.map +0 -1
- package/dist/parsers/yaml-parser.d.ts +0 -5
- package/dist/parsers/yaml-parser.d.ts.map +0 -1
- package/dist/parsers/yaml-parser.js +0 -65
- package/dist/parsers/yaml-parser.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,30 +1,40 @@
|
|
|
1
|
-
# BMAD
|
|
1
|
+
# BMAD Multi-Target Converter
|
|
2
2
|
|
|
3
|
-
Convert [BMAD-METHOD](https://github.com/bmad-code-org/BMAD-METHOD) modules to
|
|
3
|
+
Convert [BMAD-METHOD](https://github.com/bmad-code-org/BMAD-METHOD) modules to multiple AI IDE formats:
|
|
4
|
+
|
|
5
|
+
- **OpenCode** (`.opencode/`) — [OpenCode](https://opencode.ai) agents & skills
|
|
6
|
+
- **Claude Code** (`.claude/`) — Claude Code agents & skills
|
|
7
|
+
- **Agents** (`.agents/`) — Cross-IDE compatible format
|
|
4
8
|
|
|
5
9
|
## Installation
|
|
6
10
|
|
|
7
11
|
```bash
|
|
8
|
-
npx bmad-opencode-converter --source <bmad-dir> --output <output-dir>
|
|
12
|
+
npx bmad-opencode-converter --source <bmad-dir> --output <output-dir> --target <format>
|
|
9
13
|
```
|
|
10
14
|
|
|
11
15
|
Or install globally:
|
|
12
16
|
|
|
13
17
|
```bash
|
|
14
18
|
npm install -g bmad-opencode-converter
|
|
15
|
-
bmad-convert --source <bmad-dir> --output <output-dir>
|
|
19
|
+
bmad-convert --source <bmad-dir> --output <output-dir> --target claude
|
|
16
20
|
```
|
|
17
21
|
|
|
18
22
|
## Usage
|
|
19
23
|
|
|
20
|
-
### Convert BMAD to
|
|
24
|
+
### Convert BMAD to Different Formats
|
|
21
25
|
|
|
22
26
|
```bash
|
|
23
|
-
# Convert
|
|
24
|
-
npx bmad-opencode-converter --source ./_bmad --output ./
|
|
27
|
+
# Default: Convert to OpenCode format
|
|
28
|
+
npx bmad-opencode-converter --source ./_bmad --output ./
|
|
29
|
+
|
|
30
|
+
# Convert to Claude Code format
|
|
31
|
+
npx bmad-opencode-converter --source ./_bmad --output ./ --target claude
|
|
25
32
|
|
|
26
|
-
# Convert to
|
|
27
|
-
npx bmad-opencode-converter -s ./_bmad -o ./
|
|
33
|
+
# Convert to cross-IDE Agents format
|
|
34
|
+
npx bmad-opencode-converter -s ./_bmad -o ./ -t agents
|
|
35
|
+
|
|
36
|
+
# With verbose output
|
|
37
|
+
npx bmad-opencode-converter -s ./_bmad -o ./ -t claude -v
|
|
28
38
|
```
|
|
29
39
|
|
|
30
40
|
### Options
|
|
@@ -32,39 +42,40 @@ npx bmad-opencode-converter -s ./_bmad -o ./my-opencode-project -v
|
|
|
32
42
|
| Option | Short | Description |
|
|
33
43
|
|--------|-------|-------------|
|
|
34
44
|
| `--source` | `-s` | Path to BMAD `_bmad` directory |
|
|
35
|
-
| `--output` | `-o` | Output directory for
|
|
45
|
+
| `--output` | `-o` | Output directory for generated files |
|
|
46
|
+
| `--target` | `-t` | Target format: `opencode` (default), `claude`, `agents` |
|
|
36
47
|
| `--verbose` | `-v` | Show detailed conversion progress |
|
|
37
48
|
| `--help` | `-h` | Show help message |
|
|
38
49
|
|
|
39
50
|
## Conversion Mapping
|
|
40
51
|
|
|
41
|
-
| BMAD Component |
|
|
42
|
-
|
|
43
|
-
| Agent
|
|
44
|
-
| Workflow
|
|
45
|
-
| Task
|
|
52
|
+
| BMAD Component | Output Per Target |
|
|
53
|
+
|----------------|-------------------|
|
|
54
|
+
| Agent | Agent definition + agent-derived skill (with owned workflow/task skills in `skills[]`) |
|
|
55
|
+
| Workflow | Skill with step-by-step instructions |
|
|
56
|
+
| Task | Skill with task instructions |
|
|
46
57
|
|
|
47
|
-
|
|
58
|
+
### Output Structure by Target
|
|
48
59
|
|
|
49
|
-
|
|
60
|
+
**OpenCode** (`--target opencode`):
|
|
61
|
+
```
|
|
62
|
+
.opencode/
|
|
63
|
+
├── agents/{module}-{name}.md
|
|
64
|
+
└── skills/{skill-name}/SKILL.md
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Claude Code** (`--target claude`):
|
|
68
|
+
```
|
|
69
|
+
.claude/
|
|
70
|
+
├── agents/{module}-{name}.md
|
|
71
|
+
└── skills/{skill-name}/SKILL.md
|
|
72
|
+
```
|
|
50
73
|
|
|
74
|
+
**Agents** (`--target agents`):
|
|
51
75
|
```
|
|
52
|
-
|
|
53
|
-
├── .
|
|
54
|
-
|
|
55
|
-
│ │ ├── bmm-dev.md
|
|
56
|
-
│ │ ├── bmm-pm.md
|
|
57
|
-
│ │ ├── cis-storyteller.md
|
|
58
|
-
│ │ └── ...
|
|
59
|
-
│ └── skills/ # OpenCode skill definitions
|
|
60
|
-
│ ├── bmad-bmm-dev-story/
|
|
61
|
-
│ │ └── SKILL.md
|
|
62
|
-
│ ├── bmad-bmm-create-prd/
|
|
63
|
-
│ │ └── SKILL.md
|
|
64
|
-
│ ├── bmad-cis-storytelling/
|
|
65
|
-
│ │ └── SKILL.md
|
|
66
|
-
│ └── ...
|
|
67
|
-
└── ...
|
|
76
|
+
.agents/
|
|
77
|
+
├── agents/{module}-{name}.md
|
|
78
|
+
└── skills/{skill-name}/SKILL.md
|
|
68
79
|
```
|
|
69
80
|
|
|
70
81
|
---
|
|
@@ -180,11 +191,13 @@ To distribute as an npm package, add to your `opencode.json`:
|
|
|
180
191
|
# 1. Install BMAD to your project
|
|
181
192
|
npx bmad-method install
|
|
182
193
|
|
|
183
|
-
# 2. Convert to
|
|
184
|
-
npx bmad-opencode-converter --source ./_bmad --output ./ --verbose
|
|
194
|
+
# 2. Convert to your preferred format
|
|
195
|
+
npx bmad-opencode-converter --source ./_bmad --output ./ --target opencode --verbose
|
|
196
|
+
npx bmad-opencode-converter --source ./_bmad --output ./ --target claude --verbose
|
|
185
197
|
|
|
186
|
-
# 3. Start
|
|
187
|
-
opencode
|
|
198
|
+
# 3. Start your IDE
|
|
199
|
+
opencode # for OpenCode target
|
|
200
|
+
claude # for Claude Code target
|
|
188
201
|
|
|
189
202
|
# 4. Use converted agents
|
|
190
203
|
# Type: @bmm-pm help me define the product requirements
|
|
@@ -257,7 +270,7 @@ git clone <repo-url>
|
|
|
257
270
|
cd bmad-opencode-converter
|
|
258
271
|
npm install
|
|
259
272
|
|
|
260
|
-
# Run tests
|
|
273
|
+
# Run tests (all three targets)
|
|
261
274
|
npm test
|
|
262
275
|
|
|
263
276
|
# Build for distribution
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { convert } from './converter.js';
|
|
3
|
+
const VALID_TARGETS = ['opencode', 'claude', 'agents'];
|
|
3
4
|
function parseArgs(args) {
|
|
4
5
|
let source = '';
|
|
5
6
|
let output = '';
|
|
7
|
+
let target = 'opencode';
|
|
6
8
|
let verbose = false;
|
|
7
9
|
for (let i = 0; i < args.length; i++) {
|
|
8
10
|
const arg = args[i];
|
|
@@ -12,6 +14,14 @@ function parseArgs(args) {
|
|
|
12
14
|
else if (arg === '--output' || arg === '-o') {
|
|
13
15
|
output = args[++i] || '';
|
|
14
16
|
}
|
|
17
|
+
else if (arg === '--target' || arg === '-t') {
|
|
18
|
+
const val = args[++i] || '';
|
|
19
|
+
if (!VALID_TARGETS.includes(val)) {
|
|
20
|
+
console.error(`Error: Invalid target '${val}'. Must be one of: ${VALID_TARGETS.join(', ')}`);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
|
23
|
+
target = val;
|
|
24
|
+
}
|
|
15
25
|
else if (arg === '--verbose' || arg === '-v') {
|
|
16
26
|
verbose = true;
|
|
17
27
|
}
|
|
@@ -20,28 +30,35 @@ function parseArgs(args) {
|
|
|
20
30
|
process.exit(0);
|
|
21
31
|
}
|
|
22
32
|
}
|
|
23
|
-
return { source, output, verbose };
|
|
33
|
+
return { source, output, target, verbose };
|
|
24
34
|
}
|
|
25
35
|
function printHelp() {
|
|
26
36
|
console.log(`
|
|
27
|
-
BMAD
|
|
37
|
+
BMAD Module Converter
|
|
28
38
|
|
|
29
39
|
Usage: bmad-convert --source <dir> --output <dir> [options]
|
|
30
40
|
|
|
31
41
|
Options:
|
|
32
|
-
-s, --source <dir>
|
|
33
|
-
-o, --output <dir>
|
|
34
|
-
-
|
|
35
|
-
-
|
|
42
|
+
-s, --source <dir> Path to BMAD _bmad directory
|
|
43
|
+
-o, --output <dir> Output directory
|
|
44
|
+
-t, --target <format> Target format: opencode (default), claude, agents
|
|
45
|
+
-v, --verbose Enable verbose output
|
|
46
|
+
-h, --help Show this help message
|
|
47
|
+
|
|
48
|
+
Targets:
|
|
49
|
+
opencode Output to .opencode/ (OpenCode agents + skills)
|
|
50
|
+
claude Output to .claude/ (Claude Code agents + skills)
|
|
51
|
+
agents Output to .agents/ (Cross-IDE agents + skills)
|
|
36
52
|
|
|
37
53
|
Examples:
|
|
38
54
|
bmad-convert --source ./_bmad --output ./
|
|
39
|
-
bmad-convert -s
|
|
55
|
+
bmad-convert -s ./_bmad -o ./ -t claude
|
|
56
|
+
bmad-convert -s tests/sources/_bmad -o tests/output -t agents -v
|
|
40
57
|
`);
|
|
41
58
|
}
|
|
42
59
|
async function main() {
|
|
43
60
|
const args = process.argv.slice(2);
|
|
44
|
-
const { source, output, verbose } = parseArgs(args);
|
|
61
|
+
const { source, output, target, verbose } = parseArgs(args);
|
|
45
62
|
if (!source || !output) {
|
|
46
63
|
console.error('Error: Both --source and --output are required');
|
|
47
64
|
printHelp();
|
|
@@ -51,6 +68,7 @@ async function main() {
|
|
|
51
68
|
const result = await convert({
|
|
52
69
|
sourceDir: source,
|
|
53
70
|
outputDir: output,
|
|
71
|
+
target,
|
|
54
72
|
verbose,
|
|
55
73
|
});
|
|
56
74
|
if (result.errors.length > 0) {
|
|
@@ -61,7 +79,8 @@ async function main() {
|
|
|
61
79
|
process.exit(1);
|
|
62
80
|
}
|
|
63
81
|
if (!verbose) {
|
|
64
|
-
|
|
82
|
+
const formatLabel = target === 'opencode' ? '.opencode/' : target === 'claude' ? '.claude/' : '.agents/';
|
|
83
|
+
console.log(`Converted ${result.agentCount} agents and ${result.skillCount} skills to ${formatLabel} in ${output}`);
|
|
65
84
|
}
|
|
66
85
|
}
|
|
67
86
|
catch (err) {
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"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"}
|
package/dist/converter.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export
|
|
1
|
+
import type { ConversionTarget, ConversionResult } from './types/opencode.js';
|
|
2
|
+
export type { ConversionTarget };
|
|
3
|
+
export interface ConvertOptions {
|
|
3
4
|
sourceDir: string;
|
|
4
5
|
outputDir: string;
|
|
6
|
+
target: ConversionTarget;
|
|
5
7
|
verbose?: boolean;
|
|
6
8
|
}
|
|
7
|
-
export declare function convert(options:
|
|
9
|
+
export declare function convert(options: ConvertOptions): Promise<ConversionResult>;
|
|
8
10
|
//# sourceMappingURL=converter.d.ts.map
|
package/dist/converter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAgC,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5G,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,gBAAgB,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAuFhF"}
|
package/dist/converter.js
CHANGED
|
@@ -1,211 +1,81 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return fs.readFileSync(filePath, 'utf-8');
|
|
12
|
-
}
|
|
13
|
-
catch {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
function normalizeManifestPath(manifestPath) {
|
|
18
|
-
return manifestPath.replace(/^_bmad\//, '');
|
|
19
|
-
}
|
|
20
|
-
function loadAgents(sourceDir, agentManifest, verbose) {
|
|
21
|
-
const agents = [];
|
|
22
|
-
for (const entry of agentManifest) {
|
|
23
|
-
const normalizedPath = normalizeManifestPath(entry.path);
|
|
24
|
-
const agentPath = path.join(sourceDir, normalizedPath);
|
|
25
|
-
const content = readFileIfExists(agentPath);
|
|
26
|
-
if (!content) {
|
|
27
|
-
if (verbose)
|
|
28
|
-
console.log(` Skipping agent ${entry.name}: file not found at ${agentPath}`);
|
|
29
|
-
continue;
|
|
30
|
-
}
|
|
31
|
-
try {
|
|
32
|
-
const agent = parseAgent(content, entry.module, entry.path);
|
|
33
|
-
agents.push(agent);
|
|
34
|
-
if (verbose)
|
|
35
|
-
console.log(` Loaded agent: ${entry.name} (${entry.module})`);
|
|
36
|
-
}
|
|
37
|
-
catch (err) {
|
|
38
|
-
if (verbose)
|
|
39
|
-
console.log(` Error parsing agent ${entry.name}: ${err}`);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return agents;
|
|
43
|
-
}
|
|
44
|
-
function loadWorkflows(sourceDir, workflowManifest, verbose) {
|
|
45
|
-
const workflows = [];
|
|
46
|
-
for (const entry of workflowManifest) {
|
|
47
|
-
const normalizedPath = normalizeManifestPath(entry.path);
|
|
48
|
-
const workflowPath = path.join(sourceDir, normalizedPath);
|
|
49
|
-
const isYaml = workflowPath.endsWith('.yaml') || workflowPath.endsWith('.yml');
|
|
50
|
-
const configContent = readFileIfExists(workflowPath);
|
|
51
|
-
if (!configContent) {
|
|
52
|
-
if (verbose)
|
|
53
|
-
console.log(` Skipping workflow ${entry.name}: file not found at ${workflowPath}`);
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
let instructionsContent = null;
|
|
57
|
-
let templateContent = null;
|
|
58
|
-
if (isYaml) {
|
|
59
|
-
const workflowDir = path.dirname(workflowPath);
|
|
60
|
-
instructionsContent = readFileIfExists(path.join(workflowDir, 'instructions.md'));
|
|
61
|
-
templateContent = readFileIfExists(path.join(workflowDir, 'template.md'));
|
|
62
|
-
}
|
|
63
|
-
try {
|
|
64
|
-
const workflow = parseWorkflow(configContent, instructionsContent, templateContent, entry.module, entry.path, isYaml);
|
|
65
|
-
workflows.push(workflow);
|
|
66
|
-
if (verbose)
|
|
67
|
-
console.log(` Loaded workflow: ${entry.name} (${entry.module})`);
|
|
68
|
-
}
|
|
69
|
-
catch (err) {
|
|
70
|
-
if (verbose)
|
|
71
|
-
console.log(` Error parsing workflow ${entry.name}: ${err}`);
|
|
1
|
+
import { parseManifests } from './parsers/manifest-parser.js';
|
|
2
|
+
import { convertAgent } from './converters/agent-converter.js';
|
|
3
|
+
import { convertWorkflow } from './converters/workflow-converter.js';
|
|
4
|
+
import { convertTask } from './converters/task-converter.js';
|
|
5
|
+
import { writeAgents, writeSkills } from './writers/handlebars-writer.js';
|
|
6
|
+
export async function convert(options) {
|
|
7
|
+
const { sourceDir, outputDir, target, verbose = false } = options;
|
|
8
|
+
const log = (msg) => {
|
|
9
|
+
if (verbose) {
|
|
10
|
+
console.log(msg);
|
|
72
11
|
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
12
|
+
};
|
|
13
|
+
const errors = [];
|
|
14
|
+
const agents = [];
|
|
15
|
+
const skills = [];
|
|
16
|
+
try {
|
|
17
|
+
log('Parsing manifests...');
|
|
18
|
+
const manifests = await parseManifests(sourceDir);
|
|
19
|
+
log(`Found ${manifests.agents.length} agents, ${manifests.workflows.length} workflows, ${manifests.tasks.length} tasks`);
|
|
20
|
+
log('\nConverting agents...');
|
|
21
|
+
for (const agentRow of manifests.agents) {
|
|
22
|
+
try {
|
|
23
|
+
const result = await convertAgent(agentRow, sourceDir);
|
|
24
|
+
agents.push(result.agent);
|
|
25
|
+
skills.push(result.skill);
|
|
26
|
+
log(` ✓ ${agentRow.module}/${agentRow.name} → ${result.agent.name} + skill:${result.skill.name}`);
|
|
27
|
+
}
|
|
28
|
+
catch (err) {
|
|
29
|
+
const msg = `Failed to convert agent ${agentRow.name}: ${err}`;
|
|
30
|
+
errors.push(msg);
|
|
31
|
+
log(` ✗ ${msg}`);
|
|
32
|
+
}
|
|
86
33
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
console.log(` Loaded task: ${entry.name} (${entry.module})`);
|
|
100
|
-
}
|
|
101
|
-
return tasks;
|
|
102
|
-
}
|
|
103
|
-
function writeAgent(outputDir, agent) {
|
|
104
|
-
const agentDir = path.join(outputDir, '.opencode', 'agents');
|
|
105
|
-
fs.mkdirSync(agentDir, { recursive: true });
|
|
106
|
-
const frontmatterLines = ['---'];
|
|
107
|
-
frontmatterLines.push(`description: ${JSON.stringify(agent.frontmatter.description)}`);
|
|
108
|
-
if (agent.frontmatter.mode)
|
|
109
|
-
frontmatterLines.push(`mode: ${agent.frontmatter.mode}`);
|
|
110
|
-
if (agent.frontmatter.tools) {
|
|
111
|
-
frontmatterLines.push('tools:');
|
|
112
|
-
for (const [tool, enabled] of Object.entries(agent.frontmatter.tools)) {
|
|
113
|
-
if (enabled !== undefined)
|
|
114
|
-
frontmatterLines.push(` ${tool}: ${enabled}`);
|
|
34
|
+
log('\nConverting workflows...');
|
|
35
|
+
for (const workflowRow of manifests.workflows) {
|
|
36
|
+
try {
|
|
37
|
+
const skill = await convertWorkflow(workflowRow, sourceDir);
|
|
38
|
+
skills.push(skill);
|
|
39
|
+
log(` ✓ ${workflowRow.module}/${workflowRow.name} → skill:${skill.name}`);
|
|
40
|
+
}
|
|
41
|
+
catch (err) {
|
|
42
|
+
const msg = `Failed to convert workflow ${workflowRow.name}: ${err}`;
|
|
43
|
+
errors.push(msg);
|
|
44
|
+
log(` ✗ ${msg}`);
|
|
45
|
+
}
|
|
115
46
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
frontmatterLines.push(`license: ${skill.frontmatter.license}`);
|
|
129
|
-
if (skill.frontmatter.compatibility)
|
|
130
|
-
frontmatterLines.push(`compatibility: ${skill.frontmatter.compatibility}`);
|
|
131
|
-
if (skill.frontmatter.metadata) {
|
|
132
|
-
frontmatterLines.push('metadata:');
|
|
133
|
-
for (const [key, value] of Object.entries(skill.frontmatter.metadata)) {
|
|
134
|
-
frontmatterLines.push(` ${key}: ${JSON.stringify(value)}`);
|
|
47
|
+
log('\nConverting tasks...');
|
|
48
|
+
for (const taskRow of manifests.tasks) {
|
|
49
|
+
try {
|
|
50
|
+
const skill = await convertTask(taskRow, sourceDir);
|
|
51
|
+
skills.push(skill);
|
|
52
|
+
log(` ✓ ${taskRow.module}/${taskRow.name} → skill:${skill.name}`);
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
const msg = `Failed to convert task ${taskRow.name}: ${err}`;
|
|
56
|
+
errors.push(msg);
|
|
57
|
+
log(` ✗ ${msg}`);
|
|
58
|
+
}
|
|
135
59
|
}
|
|
60
|
+
log('\nWriting output files...');
|
|
61
|
+
await writeAgents(agents, outputDir, target);
|
|
62
|
+
await writeSkills(skills, outputDir, target);
|
|
63
|
+
log(`\nConversion complete!`);
|
|
64
|
+
log(` Agents: ${agents.length}`);
|
|
65
|
+
log(` Skills: ${skills.length}`);
|
|
66
|
+
log(` Errors: ${errors.length}`);
|
|
67
|
+
return {
|
|
68
|
+
agents,
|
|
69
|
+
skills,
|
|
70
|
+
agentCount: agents.length,
|
|
71
|
+
skillCount: skills.length,
|
|
72
|
+
errors
|
|
73
|
+
};
|
|
136
74
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
export async function convert(options) {
|
|
142
|
-
const { sourceDir, outputDir, verbose = false } = options;
|
|
143
|
-
const result = {
|
|
144
|
-
agents: [],
|
|
145
|
-
skills: [],
|
|
146
|
-
tools: [],
|
|
147
|
-
plugins: [],
|
|
148
|
-
warnings: [],
|
|
149
|
-
errors: [],
|
|
150
|
-
};
|
|
151
|
-
if (verbose)
|
|
152
|
-
console.log('BMAD to OpenCode Converter');
|
|
153
|
-
if (verbose)
|
|
154
|
-
console.log('========================\n');
|
|
155
|
-
const configDir = path.join(sourceDir, '_config');
|
|
156
|
-
const agentManifestContent = readFileIfExists(path.join(configDir, 'agent-manifest.csv'));
|
|
157
|
-
const workflowManifestContent = readFileIfExists(path.join(configDir, 'workflow-manifest.csv'));
|
|
158
|
-
const taskManifestContent = readFileIfExists(path.join(configDir, 'task-manifest.csv'));
|
|
159
|
-
if (!agentManifestContent && !workflowManifestContent && !taskManifestContent) {
|
|
160
|
-
result.errors.push(`No manifest files found in ${configDir}`);
|
|
161
|
-
return result;
|
|
162
|
-
}
|
|
163
|
-
if (verbose)
|
|
164
|
-
console.log('Loading BMAD assets...\n');
|
|
165
|
-
const agentManifest = agentManifestContent ? parseAgentManifest(agentManifestContent) : [];
|
|
166
|
-
const workflowManifest = workflowManifestContent ? parseWorkflowManifest(workflowManifestContent) : [];
|
|
167
|
-
const taskManifest = taskManifestContent ? parseTaskManifest(taskManifestContent) : [];
|
|
168
|
-
if (verbose)
|
|
169
|
-
console.log(`Found ${agentManifest.length} agents, ${workflowManifest.length} workflows, ${taskManifest.length} tasks\n`);
|
|
170
|
-
if (verbose)
|
|
171
|
-
console.log('Loading agents...');
|
|
172
|
-
const bmadAgents = loadAgents(sourceDir, agentManifest, verbose);
|
|
173
|
-
if (verbose)
|
|
174
|
-
console.log('\nLoading workflows...');
|
|
175
|
-
const bmadWorkflows = loadWorkflows(sourceDir, workflowManifest, verbose);
|
|
176
|
-
if (verbose)
|
|
177
|
-
console.log('\nLoading tasks...');
|
|
178
|
-
const bmadTasks = loadTasks(sourceDir, taskManifest, verbose);
|
|
179
|
-
if (verbose)
|
|
180
|
-
console.log('\nConverting to OpenCode format...\n');
|
|
181
|
-
const convertedAgents = convertAgents(bmadAgents);
|
|
182
|
-
result.agents = convertedAgents.agents;
|
|
183
|
-
result.skills.push(...convertedAgents.skills);
|
|
184
|
-
const convertedWorkflows = convertWorkflows(bmadWorkflows);
|
|
185
|
-
result.skills.push(...convertedWorkflows);
|
|
186
|
-
const convertedTasks = convertTasks(bmadTasks);
|
|
187
|
-
result.skills.push(...convertedTasks);
|
|
188
|
-
if (verbose)
|
|
189
|
-
console.log('Writing output files...\n');
|
|
190
|
-
fs.mkdirSync(outputDir, { recursive: true });
|
|
191
|
-
for (const agent of result.agents) {
|
|
192
|
-
writeAgent(outputDir, agent);
|
|
193
|
-
if (verbose)
|
|
194
|
-
console.log(` Created agent: ${agent.filename}`);
|
|
195
|
-
}
|
|
196
|
-
for (const skill of result.skills) {
|
|
197
|
-
writeSkill(outputDir, skill);
|
|
198
|
-
if (verbose)
|
|
199
|
-
console.log(` Created skill: ${skill.folder}/SKILL.md`);
|
|
200
|
-
}
|
|
201
|
-
if (verbose) {
|
|
202
|
-
console.log('\nConversion complete!');
|
|
203
|
-
console.log(` Agents: ${result.agents.length}`);
|
|
204
|
-
console.log(` Skills: ${result.skills.length}`);
|
|
205
|
-
console.log(` Tools: ${result.tools.length}`);
|
|
206
|
-
console.log(` Warnings: ${result.warnings.length}`);
|
|
207
|
-
console.log(` Errors: ${result.errors.length}`);
|
|
75
|
+
catch (err) {
|
|
76
|
+
const msg = `Conversion failed: ${err}`;
|
|
77
|
+
errors.push(msg);
|
|
78
|
+
throw new Error(msg);
|
|
208
79
|
}
|
|
209
|
-
return result;
|
|
210
80
|
}
|
|
211
81
|
//# sourceMappingURL=converter.js.map
|
package/dist/converter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BMADAgentManifestRow } from '../types/bmad.js';
|
|
2
2
|
import type { OpenCodeAgent, OpenCodeSkill } from '../types/opencode.js';
|
|
3
|
-
export
|
|
3
|
+
export interface AgentConversionResult {
|
|
4
4
|
agent: OpenCodeAgent;
|
|
5
5
|
skill: OpenCodeSkill;
|
|
6
|
-
}
|
|
7
|
-
export declare function
|
|
8
|
-
agents: OpenCodeAgent[];
|
|
9
|
-
skills: OpenCodeSkill[];
|
|
10
|
-
};
|
|
6
|
+
}
|
|
7
|
+
export declare function convertAgent(manifest: BMADAgentManifestRow, bmadDir: string): Promise<AgentConversionResult>;
|
|
11
8
|
//# sourceMappingURL=agent-converter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-converter.d.ts","sourceRoot":"","sources":["../../src/converters/agent-converter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-converter.d.ts","sourceRoot":"","sources":["../../src/converters/agent-converter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAoEzE,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;CACtB;AAED,wBAAsB,YAAY,CAChC,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,qBAAqB,CAAC,CAiChC"}
|