specweave 0.4.1 → 0.6.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/.claude-plugin/README.md +325 -0
- package/.claude-plugin/marketplace.json +210 -0
- package/CLAUDE.md +871 -596
- package/README.md +188 -137
- package/bin/install-agents.sh +1 -1
- package/bin/install-commands.sh +66 -14
- package/bin/install-hooks.sh +1 -1
- package/bin/install-skills.sh +1 -1
- package/bin/specweave.js +2 -0
- package/dist/adapters/claude/adapter.d.ts +49 -11
- package/dist/adapters/claude/adapter.d.ts.map +1 -1
- package/dist/adapters/claude/adapter.js +175 -42
- package/dist/adapters/claude/adapter.js.map +1 -1
- package/dist/adapters/copilot/adapter.d.ts +20 -2
- package/dist/adapters/copilot/adapter.d.ts.map +1 -1
- package/dist/adapters/copilot/adapter.js +117 -7
- package/dist/adapters/copilot/adapter.js.map +1 -1
- package/dist/adapters/cursor/adapter.d.ts +18 -0
- package/dist/adapters/cursor/adapter.d.ts.map +1 -1
- package/dist/adapters/cursor/adapter.js +55 -3
- package/dist/adapters/cursor/adapter.js.map +1 -1
- package/dist/adapters/generic/adapter.d.ts +18 -0
- package/dist/adapters/generic/adapter.d.ts.map +1 -1
- package/dist/adapters/generic/adapter.js +55 -3
- package/dist/adapters/generic/adapter.js.map +1 -1
- package/dist/cli/commands/init.d.ts +1 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +346 -124
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/install.d.ts +2 -0
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/install.js +28 -25
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/list.d.ts +2 -0
- package/dist/cli/commands/list.d.ts.map +1 -1
- package/dist/cli/commands/list.js +26 -24
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/plugin.d.ts +7 -1
- package/dist/cli/commands/plugin.d.ts.map +1 -1
- package/dist/cli/commands/plugin.js +72 -61
- package/dist/cli/commands/plugin.js.map +1 -1
- package/dist/core/i18n/language-detector.d.ts +29 -0
- package/dist/core/i18n/language-detector.d.ts.map +1 -0
- package/dist/core/i18n/language-detector.js +143 -0
- package/dist/core/i18n/language-detector.js.map +1 -0
- package/dist/core/i18n/language-manager.d.ts +101 -0
- package/dist/core/i18n/language-manager.d.ts.map +1 -0
- package/dist/core/i18n/language-manager.js +232 -0
- package/dist/core/i18n/language-manager.js.map +1 -0
- package/dist/core/i18n/language-registry.d.ts +44 -0
- package/dist/core/i18n/language-registry.d.ts.map +1 -0
- package/dist/core/i18n/language-registry.js +234 -0
- package/dist/core/i18n/language-registry.js.map +1 -0
- package/dist/core/i18n/locale-manager.d.ts +62 -0
- package/dist/core/i18n/locale-manager.d.ts.map +1 -0
- package/dist/core/i18n/locale-manager.js +137 -0
- package/dist/core/i18n/locale-manager.js.map +1 -0
- package/dist/core/i18n/system-prompt-injector.d.ts +33 -0
- package/dist/core/i18n/system-prompt-injector.d.ts.map +1 -0
- package/dist/core/i18n/system-prompt-injector.js +131 -0
- package/dist/core/i18n/system-prompt-injector.js.map +1 -0
- package/dist/core/i18n/types.d.ts +151 -0
- package/dist/core/i18n/types.d.ts.map +1 -0
- package/dist/core/i18n/types.js +11 -0
- package/dist/core/i18n/types.js.map +1 -0
- package/dist/core/increment-status.d.ts +72 -0
- package/dist/core/increment-status.d.ts.map +1 -0
- package/dist/core/increment-status.js +227 -0
- package/dist/core/increment-status.js.map +1 -0
- package/dist/core/plugin-loader.d.ts +33 -13
- package/dist/core/plugin-loader.d.ts.map +1 -1
- package/dist/core/plugin-loader.js +145 -43
- package/dist/core/plugin-loader.js.map +1 -1
- package/dist/core/types/config.d.ts +51 -0
- package/dist/core/types/config.d.ts.map +1 -0
- package/dist/core/types/config.js +21 -0
- package/dist/core/types/config.js.map +1 -0
- package/dist/core/types/plugin.d.ts +73 -42
- package/dist/core/types/plugin.d.ts.map +1 -1
- package/dist/core/types/plugin.js +4 -3
- package/dist/core/types/plugin.js.map +1 -1
- package/dist/hooks/lib/sync-living-docs.d.ts +27 -0
- package/dist/hooks/lib/sync-living-docs.d.ts.map +1 -0
- package/dist/hooks/lib/sync-living-docs.js +116 -0
- package/dist/hooks/lib/sync-living-docs.js.map +1 -0
- package/dist/hooks/lib/translate-living-docs.d.ts +13 -0
- package/dist/hooks/lib/translate-living-docs.d.ts.map +1 -0
- package/dist/hooks/lib/translate-living-docs.js +166 -0
- package/dist/hooks/lib/translate-living-docs.js.map +1 -0
- package/dist/hooks/lib/update-tasks-md.d.ts +29 -0
- package/dist/hooks/lib/update-tasks-md.d.ts.map +1 -0
- package/dist/hooks/lib/update-tasks-md.js +203 -0
- package/dist/hooks/lib/update-tasks-md.js.map +1 -0
- package/dist/integrations/jira/jira-incremental-mapper.js.map +1 -1
- package/dist/integrations/jira/jira-mapper.js.map +1 -1
- package/dist/locales/de/.gitkeep +0 -0
- package/dist/locales/de/cli.json +108 -0
- package/dist/locales/en/cli.json +269 -0
- package/dist/locales/en/errors.json +7 -0
- package/dist/locales/en/templates.json +6 -0
- package/dist/locales/es/.gitkeep +0 -0
- package/dist/locales/es/cli.json +41 -0
- package/dist/locales/fr/.gitkeep +0 -0
- package/dist/locales/fr/cli.json +108 -0
- package/dist/locales/ja/.gitkeep +0 -0
- package/dist/locales/ja/cli.json +108 -0
- package/dist/locales/ko/.gitkeep +0 -0
- package/dist/locales/ko/cli.json +108 -0
- package/dist/locales/pt/.gitkeep +0 -0
- package/dist/locales/pt/cli.json +108 -0
- package/dist/locales/ru/.gitkeep +0 -0
- package/dist/locales/ru/cli.json +269 -0
- package/dist/locales/zh/.gitkeep +0 -0
- package/dist/locales/zh/cli.json +108 -0
- package/dist/plugins/specweave-github/lib/github-client.d.ts +86 -0
- package/dist/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-client.js +275 -0
- package/dist/plugins/specweave-github/lib/github-client.js.map +1 -0
- package/dist/plugins/specweave-github/lib/index.d.ts +10 -0
- package/dist/plugins/specweave-github/lib/index.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/index.js +10 -0
- package/dist/plugins/specweave-github/lib/index.js.map +1 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.d.ts +51 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.js +147 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/task-parser.d.ts +37 -0
- package/dist/plugins/specweave-github/lib/task-parser.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/task-parser.js +211 -0
- package/dist/plugins/specweave-github/lib/task-parser.js.map +1 -0
- package/dist/plugins/specweave-github/lib/task-sync.d.ts +51 -0
- package/dist/plugins/specweave-github/lib/task-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/task-sync.js +332 -0
- package/dist/plugins/specweave-github/lib/task-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/types.d.ts +80 -0
- package/dist/plugins/specweave-github/lib/types.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/types.js +5 -0
- package/dist/plugins/specweave-github/lib/types.js.map +1 -0
- package/dist/utils/agents-md-compiler.d.ts +68 -0
- package/dist/utils/agents-md-compiler.d.ts.map +1 -0
- package/dist/utils/agents-md-compiler.js +420 -0
- package/dist/utils/agents-md-compiler.js.map +1 -0
- package/dist/utils/generate-skills-index.js +4 -4
- package/dist/utils/generate-skills-index.js.map +1 -1
- package/package.json +12 -13
- package/plugins/specweave-ado/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-alternatives/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/SKILL.md +626 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/analyze-project.js +318 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/check-setup.js +208 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/generate-template.js +1149 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/validate-documents.js +340 -0
- package/plugins/specweave-alternatives/skills/spec-kit-expert/SKILL.md +1010 -0
- package/plugins/specweave-backend/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-core/.claude-plugin/plugin.json +25 -0
- package/{src → plugins/specweave-core}/agents/pm/AGENT.md +80 -0
- package/plugins/specweave-core/agents/translator/AGENT.md +282 -0
- package/{src → plugins/specweave-core}/commands/README.md +11 -11
- package/{src → plugins/specweave-core}/commands/specweave.costs.md +7 -7
- package/{src → plugins/specweave-core}/commands/specweave.do.md +34 -7
- package/{src → plugins/specweave-core}/commands/specweave.increment.md +83 -18
- package/{src → plugins/specweave-core}/commands/specweave.md +49 -17
- package/{src → plugins/specweave-core}/commands/specweave.sync-docs.md +5 -5
- package/plugins/specweave-core/commands/specweave.translate.md +425 -0
- package/{src → plugins/specweave-core}/commands/specweave.validate.md +1 -1
- package/plugins/specweave-core/hooks/hooks.json +13 -0
- package/plugins/specweave-core/hooks/post-task-completion.sh +265 -0
- package/plugins/specweave-core/skills/SKILLS-INDEX.md +229 -0
- package/{src → plugins/specweave-core}/skills/brownfield-analyzer/SKILL.md +66 -24
- package/{src → plugins/specweave-core}/skills/context-loader/SKILL.md +1 -1
- package/plugins/specweave-core/skills/context-optimizer/SKILL.md +588 -0
- package/plugins/specweave-core/skills/docs-updater/SKILL.md +0 -0
- package/{src → plugins/specweave-core}/skills/increment-planner/SKILL.md +81 -4
- package/plugins/specweave-core/skills/plugin-detector/SKILL.md +211 -0
- package/{src → plugins/specweave-core}/skills/project-kickstarter/SKILL.md +7 -7
- package/plugins/specweave-core/skills/rfc-generator/SKILL.md +369 -0
- package/{src → plugins/specweave-core}/skills/specweave-detector/SKILL.md +2 -2
- package/plugins/specweave-core/skills/specweave-framework/SKILL.md +498 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-1-increment-naming.yaml +11 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-2-source-of-truth.yaml +11 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-3-increment-discipline.yaml +12 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-4-file-placement.yaml +11 -0
- package/{src → plugins/specweave-core}/skills/tdd-workflow/SKILL.md +20 -20
- package/plugins/specweave-core/skills/translator/SKILL.md +172 -0
- package/plugins/specweave-cost-optimizer/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-diagrams/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-docs/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-docs/skills/docusaurus/SKILL.md +526 -0
- package/plugins/specweave-figma/.claude-plugin/.mcp.json +12 -0
- package/plugins/specweave-figma/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-figma/ARCHITECTURE.md +453 -0
- package/plugins/specweave-figma/README.md +728 -0
- package/plugins/specweave-figma/skills/figma-to-code/SKILL.md +632 -0
- package/plugins/specweave-figma/skills/figma-to-code/test-1-token-generation.yaml +29 -0
- package/plugins/specweave-figma/skills/figma-to-code/test-2-component-generation.yaml +27 -0
- package/plugins/specweave-figma/skills/figma-to-code/test-3-typescript-generation.yaml +28 -0
- package/plugins/specweave-frontend/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-github/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-github/agents/github-manager/AGENT.md +651 -0
- package/plugins/specweave-github/commands/github-close-issue.md +418 -0
- package/plugins/specweave-github/commands/github-create-issue.md +307 -0
- package/plugins/specweave-github/commands/github-status.md +533 -0
- package/plugins/specweave-github/commands/github-sync-tasks.md +530 -0
- package/plugins/specweave-github/commands/github-sync.md +443 -0
- package/plugins/specweave-github/lib/github-client.ts +330 -0
- package/plugins/specweave-github/lib/index.ts +10 -0
- package/plugins/specweave-github/lib/subtask-sync.ts +225 -0
- package/plugins/specweave-github/lib/task-parser.ts +246 -0
- package/plugins/specweave-github/lib/task-sync.ts +402 -0
- package/plugins/specweave-github/lib/types.ts +86 -0
- package/plugins/specweave-github/skills/github-issue-tracker/SKILL.md +497 -0
- package/plugins/specweave-github/skills/github-sync/SKILL.md +461 -0
- package/plugins/specweave-infrastructure/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-jira/.claude-plugin/plugin.json +8 -0
- package/{src → plugins/specweave-jira}/commands/specweave.sync-jira.md +18 -18
- package/plugins/specweave-kubernetes/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-ml/.claude-plugin/plugin.json +39 -0
- package/plugins/specweave-ml/README.md +885 -0
- package/plugins/specweave-ml/agents/ml-engineer/AGENT.md +402 -0
- package/plugins/specweave-ml/commands/ml-deploy.md +116 -0
- package/plugins/specweave-ml/commands/ml-evaluate.md +87 -0
- package/plugins/specweave-ml/commands/ml-explain.md +83 -0
- package/plugins/specweave-ml/skills/anomaly-detector/SKILL.md +559 -0
- package/plugins/specweave-ml/skills/automl-optimizer/SKILL.md +485 -0
- package/plugins/specweave-ml/skills/cv-pipeline-builder/SKILL.md +157 -0
- package/plugins/specweave-ml/skills/data-visualizer/SKILL.md +521 -0
- package/plugins/specweave-ml/skills/experiment-tracker/SKILL.md +535 -0
- package/plugins/specweave-ml/skills/feature-engineer/SKILL.md +566 -0
- package/plugins/specweave-ml/skills/ml-deployment-helper/SKILL.md +345 -0
- package/plugins/specweave-ml/skills/ml-pipeline-orchestrator/SKILL.md +518 -0
- package/plugins/specweave-ml/skills/model-evaluator/SKILL.md +155 -0
- package/plugins/specweave-ml/skills/model-explainer/SKILL.md +227 -0
- package/plugins/specweave-ml/skills/model-registry/SKILL.md +541 -0
- package/plugins/specweave-ml/skills/nlp-pipeline-builder/SKILL.md +180 -0
- package/plugins/specweave-ml/skills/time-series-forecaster/SKILL.md +569 -0
- package/plugins/specweave-payments/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-testing/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-tooling/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-ui/.claude-plugin/plugin.json +106 -0
- package/plugins/specweave-ui/.mcp.json +14 -0
- package/plugins/specweave-ui/README.md +386 -0
- package/src/adapters/claude/adapter.ts +193 -46
- package/src/adapters/copilot/adapter.ts +132 -7
- package/src/adapters/cursor/adapter.ts +62 -3
- package/src/adapters/generic/adapter.ts +62 -3
- package/src/templates/AGENTS.md.template +170 -1
- package/src/templates/CLAUDE.md.template +122 -24
- package/src/templates/tasks.md.template +261 -0
- package/src/agents/ml-engineer/AGENT.md +0 -150
- package/src/commands/specweave.sync-github.md +0 -269
- package/src/hooks/post-task-completion.sh +0 -121
- package/src/skills/SKILLS-INDEX.md +0 -444
- package/src/skills/github-sync/SKILL.md +0 -234
- /package/{src → plugins/specweave-ado}/skills/ado-sync/README.md +0 -0
- /package/{src → plugins/specweave-ado}/skills/ado-sync/SKILL.md +0 -0
- /package/{src → plugins/specweave-ado}/skills/specweave-ado-mapper/SKILL.md +0 -0
- /package/{src → plugins/specweave-backend}/agents/database-optimizer/AGENT.md +0 -0
- /package/{src → plugins/specweave-backend}/skills/dotnet-backend/SKILL.md +0 -0
- /package/{src → plugins/specweave-backend}/skills/nodejs-backend/SKILL.md +0 -0
- /package/{src → plugins/specweave-backend}/skills/python-backend/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/agents/architect/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/code-reviewer.md +0 -0
- /package/{src → plugins/specweave-core}/agents/docs-writer/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/performance/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/qa-lead/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/security/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/tdd-orchestrator/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/tech-lead/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.done.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.inc.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.list-increments.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.next.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.progress.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-cycle.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-green.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-red.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-refactor.md +0 -0
- /package/{src → plugins/specweave-core}/hooks/README.md +0 -0
- /package/{src → plugins/specweave-core}/hooks/docs-changed.sh +0 -0
- /package/{src → plugins/specweave-core}/hooks/human-input-required.sh +0 -0
- /package/{src → plugins/specweave-core}/hooks/post-increment-plugin-detect.sh +0 -0
- /package/{src → plugins/specweave-core}/hooks/pre-implementation.sh +0 -0
- /package/{src → plugins/specweave-core}/hooks/pre-task-plugin-detect.sh +0 -0
- /package/{src → plugins/specweave-core}/skills/brownfield-onboarder/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/skills/docs-updater/README.md +0 -0
- /package/{src → plugins/specweave-core}/skills/increment-planner/scripts/feature-utils.js +0 -0
- /package/{src → plugins/specweave-core}/skills/increment-quality-judge/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-1-high-confidence-full-product.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-2-medium-confidence-partial.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-3-low-confidence-technical-question.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-4-opt-out-explicit.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/role-orchestrator/README.md +0 -0
- /package/{src → plugins/specweave-core}/skills/role-orchestrator/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/skills/task-builder/README.md +0 -0
- /package/{src → plugins/specweave-cost-optimizer}/skills/cost-optimizer/SKILL.md +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/AGENT.md +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-component-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-container-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-context-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/deployment-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/er-diagram-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/sequence-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-1-c4-context.yaml +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-2-sequence.yaml +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-3-er-diagram.yaml +0 -0
- /package/{src → plugins/specweave-diagrams}/skills/diagrams-architect/SKILL.md +0 -0
- /package/{src → plugins/specweave-diagrams}/skills/diagrams-generator/SKILL.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-brainstorming/README.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-brainstorming/SKILL.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-debugging/README.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-debugging/SKILL.md +0 -0
- /package/{src → plugins/specweave-frontend}/skills/design-system-architect/SKILL.md +0 -0
- /package/{src → plugins/specweave-frontend}/skills/frontend/SKILL.md +0 -0
- /package/{src → plugins/specweave-frontend}/skills/nextjs/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/devops/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/network-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/observability-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/performance-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/backend-diagnostics.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/database-diagnostics.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/infrastructure.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/monitoring.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/security-incidents.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/ui-diagnostics.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/01-high-cpu-usage.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/02-database-deadlock.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/03-memory-leak.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/04-slow-api-response.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/05-ddos-attack.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/06-disk-full.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/07-service-down.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/08-data-corruption.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/09-cascade-failure.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/10-rate-limit-exceeded.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/health-check.sh +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/log-analyzer.py +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/metrics-collector.sh +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/trace-analyzer.js +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/incident-report.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/mitigation-plan.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/post-mortem.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/runbook-template.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/commands/specweave.monitor-setup.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/commands/specweave.slo-implement.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/distributed-tracing/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/grafana-dashboards/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/hetzner-provisioner/README.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/hetzner-provisioner/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/prometheus-configuration/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/slo-implementation/SKILL.md +0 -0
- /package/{src → plugins/specweave-jira}/skills/jira-sync/README.md +0 -0
- /package/{src → plugins/specweave-jira}/skills/jira-sync/SKILL.md +0 -0
- /package/{src → plugins/specweave-jira}/skills/specweave-jira-mapper/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/agents/kubernetes-architect/AGENT.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/references/argocd-setup.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/references/sync-policies.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/assets/Chart.yaml.template +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/assets/values.yaml.template +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/references/chart-structure.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/scripts/validate-chart.sh +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/configmap-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/deployment-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/service-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/references/deployment-spec.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/references/service-spec.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/assets/network-policy-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/references/rbac-patterns.md +0 -0
- /package/{src → plugins/specweave-ml}/agents/data-scientist/AGENT.md +0 -0
- /package/{src → plugins/specweave-ml}/agents/mlops-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-ml}/commands/specweave.ml-pipeline.md +0 -0
- /package/{src → plugins/specweave-ml}/skills/ml-pipeline-workflow/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/agents/payment-integration/AGENT.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/billing-automation/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/paypal-integration/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/pci-compliance/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/stripe-integration/SKILL.md +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/README.md +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/SKILL.md +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/execute.js +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/lib/utils.js +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/package.json +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/LICENSE.txt +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/SKILL.md +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/init_skill.py +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/package_skill.py +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/quick_validate.py +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-router/SKILL.md +0 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* BMAD Project Analyzer
|
|
5
|
+
*
|
|
6
|
+
* Analyzes a BMAD-METHOD project structure and provides health assessment
|
|
7
|
+
* and recommendations.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
const fs = require('fs');
|
|
11
|
+
const path = require('path');
|
|
12
|
+
|
|
13
|
+
class BMADProjectAnalyzer {
|
|
14
|
+
constructor(projectPath = process.cwd()) {
|
|
15
|
+
this.projectPath = projectPath;
|
|
16
|
+
this.issues = [];
|
|
17
|
+
this.warnings = [];
|
|
18
|
+
this.info = [];
|
|
19
|
+
this.structure = {
|
|
20
|
+
hasBmadCore: false,
|
|
21
|
+
hasDocs: false,
|
|
22
|
+
hasPRD: false,
|
|
23
|
+
hasArchitecture: false,
|
|
24
|
+
hasEpics: false,
|
|
25
|
+
hasStories: false,
|
|
26
|
+
hasQA: false,
|
|
27
|
+
hasTechnicalPreferences: false,
|
|
28
|
+
hasCoreConfig: false,
|
|
29
|
+
nodeModules: false,
|
|
30
|
+
packageJson: false
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
checkPath(relativePath) {
|
|
35
|
+
const fullPath = path.join(this.projectPath, relativePath);
|
|
36
|
+
return fs.existsSync(fullPath);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
readFile(relativePath) {
|
|
40
|
+
try {
|
|
41
|
+
const fullPath = path.join(this.projectPath, relativePath);
|
|
42
|
+
return fs.readFileSync(fullPath, 'utf-8');
|
|
43
|
+
} catch (error) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
countFiles(dirPath) {
|
|
49
|
+
try {
|
|
50
|
+
const fullPath = path.join(this.projectPath, dirPath);
|
|
51
|
+
if (!fs.existsSync(fullPath)) return 0;
|
|
52
|
+
const files = fs.readdirSync(fullPath);
|
|
53
|
+
return files.filter(f => !f.startsWith('.')).length;
|
|
54
|
+
} catch (error) {
|
|
55
|
+
return 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
analyzeStructure() {
|
|
60
|
+
console.log('\n🔍 Analyzing BMAD Project Structure...\n');
|
|
61
|
+
|
|
62
|
+
// Check core BMAD structure
|
|
63
|
+
this.structure.hasBmadCore = this.checkPath('bmad-core');
|
|
64
|
+
this.structure.hasDocs = this.checkPath('docs');
|
|
65
|
+
this.structure.hasPRD = this.checkPath('docs/prd.md');
|
|
66
|
+
this.structure.hasArchitecture = this.checkPath('docs/architecture.md');
|
|
67
|
+
this.structure.hasEpics = this.checkPath('docs/epics');
|
|
68
|
+
this.structure.hasStories = this.checkPath('docs/stories');
|
|
69
|
+
this.structure.hasQA = this.checkPath('docs/qa');
|
|
70
|
+
this.structure.hasTechnicalPreferences = this.checkPath('.bmad-core/data/technical-preferences.md');
|
|
71
|
+
this.structure.hasCoreConfig = this.checkPath('.bmad-core/core-config.yaml');
|
|
72
|
+
this.structure.packageJson = this.checkPath('package.json');
|
|
73
|
+
this.structure.nodeModules = this.checkPath('node_modules');
|
|
74
|
+
|
|
75
|
+
// Core structure checks
|
|
76
|
+
if (!this.structure.hasBmadCore && !this.structure.hasDocs) {
|
|
77
|
+
this.issues.push('No BMAD structure detected. Run: npx bmad-method install');
|
|
78
|
+
return; // Early return if not a BMAD project
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (this.structure.hasBmadCore) {
|
|
82
|
+
this.info.push('✓ bmad-core/ directory found');
|
|
83
|
+
} else {
|
|
84
|
+
this.warnings.push('⚠ bmad-core/ directory not found - custom setup?');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (this.structure.hasDocs) {
|
|
88
|
+
this.info.push('✓ docs/ directory found');
|
|
89
|
+
} else {
|
|
90
|
+
this.warnings.push('⚠ docs/ directory not found - create with: mkdir docs');
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Planning artifacts
|
|
94
|
+
if (this.structure.hasPRD) {
|
|
95
|
+
const prdContent = this.readFile('docs/prd.md');
|
|
96
|
+
const prdSize = prdContent ? prdContent.length : 0;
|
|
97
|
+
this.info.push(`✓ PRD found (${(prdSize / 1024).toFixed(1)}KB)`);
|
|
98
|
+
} else {
|
|
99
|
+
this.info.push('ℹ No PRD yet - use @pm to create one');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (this.structure.hasArchitecture) {
|
|
103
|
+
const archContent = this.readFile('docs/architecture.md');
|
|
104
|
+
const archSize = archContent ? archContent.length : 0;
|
|
105
|
+
this.info.push(`✓ Architecture document found (${(archSize / 1024).toFixed(1)}KB)`);
|
|
106
|
+
} else {
|
|
107
|
+
this.info.push('ℹ No architecture document - use @architect to create one');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Development artifacts
|
|
111
|
+
const epicCount = this.countFiles('docs/epics');
|
|
112
|
+
const storyCount = this.countFiles('docs/stories');
|
|
113
|
+
const qaCount = this.countFiles('docs/qa/assessments');
|
|
114
|
+
|
|
115
|
+
if (epicCount > 0) {
|
|
116
|
+
this.info.push(`✓ ${epicCount} epic(s) found`);
|
|
117
|
+
} else {
|
|
118
|
+
this.info.push('ℹ No epics yet - use @po to shard PRD into epics');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (storyCount > 0) {
|
|
122
|
+
this.info.push(`✓ ${storyCount} user story(ies) found`);
|
|
123
|
+
} else {
|
|
124
|
+
this.info.push('ℹ No user stories yet - use @pm or @scrum to create stories');
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (qaCount > 0) {
|
|
128
|
+
this.info.push(`✓ ${qaCount} QA assessment(s) found`);
|
|
129
|
+
} else if (storyCount > 0) {
|
|
130
|
+
this.warnings.push('⚠ Stories exist but no QA assessments - consider using @qa *risk and @qa *design');
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Configuration
|
|
134
|
+
if (this.structure.hasTechnicalPreferences) {
|
|
135
|
+
this.info.push('✓ Technical preferences configured');
|
|
136
|
+
} else {
|
|
137
|
+
this.warnings.push('⚠ No technical-preferences.md - consider creating one for consistent tech stack decisions');
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (this.structure.hasCoreConfig) {
|
|
141
|
+
this.info.push('✓ Core configuration found');
|
|
142
|
+
} else {
|
|
143
|
+
this.warnings.push('⚠ No core-config.yaml found');
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Node.js setup
|
|
147
|
+
if (this.structure.packageJson) {
|
|
148
|
+
this.info.push('✓ package.json found');
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (this.structure.nodeModules) {
|
|
152
|
+
this.info.push('✓ Dependencies installed');
|
|
153
|
+
} else if (this.structure.packageJson) {
|
|
154
|
+
this.warnings.push('⚠ package.json exists but node_modules missing - run: npm install');
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
analyzeDocumentAlignment() {
|
|
159
|
+
if (!this.structure.hasPRD || !this.structure.hasArchitecture) {
|
|
160
|
+
return; // Can't check alignment without both documents
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
console.log('\n📋 Analyzing Document Alignment...\n');
|
|
164
|
+
|
|
165
|
+
const prd = this.readFile('docs/prd.md');
|
|
166
|
+
const arch = this.readFile('docs/architecture.md');
|
|
167
|
+
|
|
168
|
+
// Basic checks for alignment
|
|
169
|
+
const prdSections = this.extractSections(prd);
|
|
170
|
+
const archSections = this.extractSections(arch);
|
|
171
|
+
|
|
172
|
+
// Check if architecture references key PRD elements
|
|
173
|
+
const prdHasEpics = /##\s*Epics/i.test(prd);
|
|
174
|
+
const prdHasUserStories = /##\s*User Stories/i.test(prd);
|
|
175
|
+
const archHasSystemDesign = /##\s*(System Design|Architecture Overview)/i.test(arch);
|
|
176
|
+
const archHasTechStack = /##\s*(Tech(nology)? Stack|Technical Stack)/i.test(arch);
|
|
177
|
+
|
|
178
|
+
if (prdHasEpics) {
|
|
179
|
+
this.info.push('✓ PRD contains Epics section');
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (prdHasUserStories) {
|
|
183
|
+
this.info.push('✓ PRD contains User Stories section');
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (archHasSystemDesign) {
|
|
187
|
+
this.info.push('✓ Architecture has System Design section');
|
|
188
|
+
} else {
|
|
189
|
+
this.warnings.push('⚠ Architecture should include System Design section');
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if (archHasTechStack) {
|
|
193
|
+
this.info.push('✓ Architecture specifies Tech Stack');
|
|
194
|
+
} else {
|
|
195
|
+
this.warnings.push('⚠ Architecture should specify Technology Stack');
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// Check document sizes - PRD and Architecture should be substantial
|
|
199
|
+
if (prd.length < 2000) {
|
|
200
|
+
this.warnings.push('⚠ PRD seems short (<2KB) - ensure it\'s comprehensive');
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (arch.length < 1500) {
|
|
204
|
+
this.warnings.push('⚠ Architecture document seems short (<1.5KB) - ensure it\'s detailed');
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
extractSections(markdown) {
|
|
209
|
+
const sections = [];
|
|
210
|
+
const lines = markdown.split('\n');
|
|
211
|
+
for (const line of lines) {
|
|
212
|
+
const match = line.match(/^#+\s+(.+)$/);
|
|
213
|
+
if (match) {
|
|
214
|
+
sections.push(match[1].trim());
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return sections;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
analyzeWorkflowProgress() {
|
|
221
|
+
console.log('\n📊 Workflow Progress Assessment...\n');
|
|
222
|
+
|
|
223
|
+
const hasPRD = this.structure.hasPRD;
|
|
224
|
+
const hasArch = this.structure.hasArchitecture;
|
|
225
|
+
const hasEpics = this.structure.hasEpics && this.countFiles('docs/epics') > 0;
|
|
226
|
+
const hasStories = this.structure.hasStories && this.countFiles('docs/stories') > 0;
|
|
227
|
+
const hasQA = this.structure.hasQA && this.countFiles('docs/qa/assessments') > 0;
|
|
228
|
+
|
|
229
|
+
let phase = 'Not Started';
|
|
230
|
+
let nextSteps = [];
|
|
231
|
+
|
|
232
|
+
if (!hasPRD && !hasArch) {
|
|
233
|
+
phase = 'Planning Phase - Not Started';
|
|
234
|
+
nextSteps = [
|
|
235
|
+
'1. Create project brief',
|
|
236
|
+
'2. Use @pm to create PRD',
|
|
237
|
+
'3. Use @architect to design architecture',
|
|
238
|
+
'4. Use @po to validate alignment'
|
|
239
|
+
];
|
|
240
|
+
} else if (hasPRD && !hasArch) {
|
|
241
|
+
phase = 'Planning Phase - PRD Created';
|
|
242
|
+
nextSteps = [
|
|
243
|
+
'1. Use @architect to design system architecture',
|
|
244
|
+
'2. Use @po to validate PRD/Architecture alignment',
|
|
245
|
+
'3. Use @po to shard documents into epics/stories'
|
|
246
|
+
];
|
|
247
|
+
} else if (hasPRD && hasArch && !hasEpics) {
|
|
248
|
+
phase = 'Planning Phase - Documents Complete';
|
|
249
|
+
nextSteps = [
|
|
250
|
+
'1. Use @po to validate document alignment',
|
|
251
|
+
'2. Use @po to shard PRD into epics and stories',
|
|
252
|
+
'3. Transition to IDE for development phase'
|
|
253
|
+
];
|
|
254
|
+
} else if (hasEpics && !hasStories) {
|
|
255
|
+
phase = 'Development Preparation';
|
|
256
|
+
nextSteps = [
|
|
257
|
+
'1. Use @pm or @scrum to create user stories from epics',
|
|
258
|
+
'2. Use @qa *risk to assess story risks',
|
|
259
|
+
'3. Use @qa *design to create test strategies'
|
|
260
|
+
];
|
|
261
|
+
} else if (hasStories && !hasQA) {
|
|
262
|
+
phase = 'Development Phase - Stories Ready';
|
|
263
|
+
nextSteps = [
|
|
264
|
+
'1. Use @qa *risk {story} for risk assessment',
|
|
265
|
+
'2. Use @qa *design {story} for test strategy',
|
|
266
|
+
'3. Use @dev to implement first story',
|
|
267
|
+
'4. Use @qa *review after implementation'
|
|
268
|
+
];
|
|
269
|
+
} else if (hasStories && hasQA) {
|
|
270
|
+
phase = 'Development Phase - Active';
|
|
271
|
+
nextSteps = [
|
|
272
|
+
'1. Continue iterative development cycle',
|
|
273
|
+
'2. Use @dev to implement stories',
|
|
274
|
+
'3. Use @qa *review for quality checks',
|
|
275
|
+
'4. Commit and move to next story'
|
|
276
|
+
];
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
console.log(`Current Phase: ${phase}\n`);
|
|
280
|
+
console.log('Recommended Next Steps:');
|
|
281
|
+
nextSteps.forEach(step => console.log(` ${step}`));
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
generateReport() {
|
|
285
|
+
console.log('\n═══════════════════════════════════════════════════════');
|
|
286
|
+
console.log(' BMAD-METHOD PROJECT ANALYSIS REPORT');
|
|
287
|
+
console.log('═══════════════════════════════════════════════════════');
|
|
288
|
+
console.log(`\nProject Path: ${this.projectPath}\n`);
|
|
289
|
+
|
|
290
|
+
this.analyzeStructure();
|
|
291
|
+
this.analyzeDocumentAlignment();
|
|
292
|
+
this.analyzeWorkflowProgress();
|
|
293
|
+
|
|
294
|
+
if (this.issues.length > 0) {
|
|
295
|
+
console.log('\n🚨 ISSUES:\n');
|
|
296
|
+
this.issues.forEach(issue => console.log(` ${issue}`));
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
if (this.warnings.length > 0) {
|
|
300
|
+
console.log('\n⚠️ WARNINGS:\n');
|
|
301
|
+
this.warnings.forEach(warning => console.log(` ${warning}`));
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
if (this.info.length > 0) {
|
|
305
|
+
console.log('\nℹ️ INFO:\n');
|
|
306
|
+
this.info.forEach(info => console.log(` ${info}`));
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
console.log('\n═══════════════════════════════════════════════════════');
|
|
310
|
+
console.log(' ANALYSIS COMPLETE');
|
|
311
|
+
console.log('═══════════════════════════════════════════════════════\n');
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// Main execution
|
|
316
|
+
const projectPath = process.argv[2] || process.cwd();
|
|
317
|
+
const analyzer = new BMADProjectAnalyzer(projectPath);
|
|
318
|
+
analyzer.generateReport();
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* BMAD Setup Checker
|
|
5
|
+
*
|
|
6
|
+
* Verifies BMAD-METHOD installation and configuration
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const { execSync } = require('child_process');
|
|
10
|
+
const fs = require('fs');
|
|
11
|
+
const path = require('path');
|
|
12
|
+
|
|
13
|
+
class BMADSetupChecker {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.checks = [];
|
|
16
|
+
this.issues = [];
|
|
17
|
+
this.warnings = [];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
checkNodeVersion() {
|
|
21
|
+
try {
|
|
22
|
+
const version = process.version;
|
|
23
|
+
const majorVersion = parseInt(version.slice(1).split('.')[0]);
|
|
24
|
+
|
|
25
|
+
if (majorVersion >= 20) {
|
|
26
|
+
this.checks.push(`✓ Node.js ${version} (required: v20+)`);
|
|
27
|
+
} else {
|
|
28
|
+
this.issues.push(`✗ Node.js ${version} is too old. Required: v20+`);
|
|
29
|
+
}
|
|
30
|
+
} catch (error) {
|
|
31
|
+
this.issues.push('✗ Could not determine Node.js version');
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
checkNpmAvailable() {
|
|
36
|
+
try {
|
|
37
|
+
const version = execSync('npm --version', { encoding: 'utf-8' }).trim();
|
|
38
|
+
this.checks.push(`✓ npm ${version}`);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
this.issues.push('✗ npm not found. Install Node.js from https://nodejs.org/');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
checkBMADInstallation() {
|
|
45
|
+
const homeDir = require('os').homedir();
|
|
46
|
+
const bmadPaths = [
|
|
47
|
+
path.join(process.cwd(), 'bmad-core'),
|
|
48
|
+
path.join(process.cwd(), '.bmad-core'),
|
|
49
|
+
path.join(homeDir, '.bmad'),
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
let found = false;
|
|
53
|
+
for (const bmadPath of bmadPaths) {
|
|
54
|
+
if (fs.existsSync(bmadPath)) {
|
|
55
|
+
this.checks.push(`✓ BMAD installation found at ${bmadPath}`);
|
|
56
|
+
found = true;
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (!found) {
|
|
62
|
+
this.warnings.push('⚠ BMAD installation not found in current directory');
|
|
63
|
+
this.warnings.push(' Run: npx bmad-method install');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
checkGitAvailable() {
|
|
68
|
+
try {
|
|
69
|
+
const version = execSync('git --version', { encoding: 'utf-8' }).trim();
|
|
70
|
+
this.checks.push(`✓ ${version}`);
|
|
71
|
+
} catch (error) {
|
|
72
|
+
this.warnings.push('⚠ git not found - recommended for version control');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
checkIDEIntegration() {
|
|
77
|
+
const ideMarkers = {
|
|
78
|
+
'VS Code': ['.vscode'],
|
|
79
|
+
'Cursor': ['.cursor', '.cursorrules'],
|
|
80
|
+
'WebStorm': ['.idea']
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
let foundIDE = false;
|
|
84
|
+
for (const [ide, markers] of Object.entries(ideMarkers)) {
|
|
85
|
+
for (const marker of markers) {
|
|
86
|
+
if (fs.existsSync(path.join(process.cwd(), marker))) {
|
|
87
|
+
this.checks.push(`✓ ${ide} integration detected`);
|
|
88
|
+
foundIDE = true;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (!foundIDE) {
|
|
95
|
+
this.warnings.push('⚠ No IDE integration detected - BMAD works best with IDE integration');
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
checkProjectStructure() {
|
|
100
|
+
const requiredDirs = ['docs'];
|
|
101
|
+
const optionalDirs = ['bmad-core', 'expansion-packs', 'dist', 'tools'];
|
|
102
|
+
|
|
103
|
+
for (const dir of requiredDirs) {
|
|
104
|
+
if (fs.existsSync(path.join(process.cwd(), dir))) {
|
|
105
|
+
this.checks.push(`✓ ${dir}/ directory exists`);
|
|
106
|
+
} else {
|
|
107
|
+
this.warnings.push(`⚠ ${dir}/ directory not found - create with: mkdir ${dir}`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
for (const dir of optionalDirs) {
|
|
112
|
+
if (fs.existsSync(path.join(process.cwd(), dir))) {
|
|
113
|
+
this.checks.push(`✓ ${dir}/ directory exists`);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
checkConfiguration() {
|
|
119
|
+
const configFiles = [
|
|
120
|
+
'.bmad-core/core-config.yaml',
|
|
121
|
+
'.bmad-core/data/technical-preferences.md',
|
|
122
|
+
'package.json'
|
|
123
|
+
];
|
|
124
|
+
|
|
125
|
+
for (const configFile of configFiles) {
|
|
126
|
+
const fullPath = path.join(process.cwd(), configFile);
|
|
127
|
+
if (fs.existsSync(fullPath)) {
|
|
128
|
+
const stats = fs.statSync(fullPath);
|
|
129
|
+
this.checks.push(`✓ ${configFile} (${(stats.size / 1024).toFixed(1)}KB)`);
|
|
130
|
+
} else {
|
|
131
|
+
if (configFile === 'package.json') {
|
|
132
|
+
this.warnings.push(`⚠ ${configFile} not found - run: npm init`);
|
|
133
|
+
} else {
|
|
134
|
+
this.warnings.push(`⚠ ${configFile} not found`);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
checkBMADCommand() {
|
|
141
|
+
try {
|
|
142
|
+
// Try to check if bmad-method is available
|
|
143
|
+
execSync('npx bmad-method --version', {
|
|
144
|
+
encoding: 'utf-8',
|
|
145
|
+
stdio: 'pipe'
|
|
146
|
+
});
|
|
147
|
+
this.checks.push('✓ bmad-method CLI accessible via npx');
|
|
148
|
+
} catch (error) {
|
|
149
|
+
// This is not necessarily an error, just means it's not cached
|
|
150
|
+
this.warnings.push('⚠ bmad-method not cached - first run will download it');
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
generateReport() {
|
|
155
|
+
console.log('\n═══════════════════════════════════════════════════════');
|
|
156
|
+
console.log(' BMAD-METHOD SETUP VERIFICATION');
|
|
157
|
+
console.log('═══════════════════════════════════════════════════════\n');
|
|
158
|
+
|
|
159
|
+
console.log('Running setup checks...\n');
|
|
160
|
+
|
|
161
|
+
this.checkNodeVersion();
|
|
162
|
+
this.checkNpmAvailable();
|
|
163
|
+
this.checkBMADInstallation();
|
|
164
|
+
this.checkGitAvailable();
|
|
165
|
+
this.checkIDEIntegration();
|
|
166
|
+
this.checkProjectStructure();
|
|
167
|
+
this.checkConfiguration();
|
|
168
|
+
this.checkBMADCommand();
|
|
169
|
+
|
|
170
|
+
if (this.checks.length > 0) {
|
|
171
|
+
console.log('✅ PASSED CHECKS:\n');
|
|
172
|
+
this.checks.forEach(check => console.log(` ${check}`));
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (this.warnings.length > 0) {
|
|
176
|
+
console.log('\n⚠️ WARNINGS:\n');
|
|
177
|
+
this.warnings.forEach(warning => console.log(` ${warning}`));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (this.issues.length > 0) {
|
|
181
|
+
console.log('\n🚨 ISSUES:\n');
|
|
182
|
+
this.issues.forEach(issue => console.log(` ${issue}`));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
console.log('\n═══════════════════════════════════════════════════════');
|
|
186
|
+
|
|
187
|
+
if (this.issues.length === 0) {
|
|
188
|
+
console.log(' ✓ SETUP VERIFICATION PASSED');
|
|
189
|
+
} else {
|
|
190
|
+
console.log(' ⚠ SETUP ISSUES DETECTED - SEE ABOVE');
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
console.log('═══════════════════════════════════════════════════════\n');
|
|
194
|
+
|
|
195
|
+
if (this.issues.length === 0 && this.warnings.length === 0) {
|
|
196
|
+
console.log('🎉 Your BMAD-METHOD setup looks good!\n');
|
|
197
|
+
console.log('Next steps:');
|
|
198
|
+
console.log(' 1. Create a project brief');
|
|
199
|
+
console.log(' 2. Use @pm to create a PRD');
|
|
200
|
+
console.log(' 3. Use @architect to design architecture');
|
|
201
|
+
console.log(' 4. Start developing!\n');
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// Main execution
|
|
207
|
+
const checker = new BMADSetupChecker();
|
|
208
|
+
checker.generateReport();
|