specweave 0.4.1 → 0.6.3
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 +312 -0
- package/.claude-plugin/marketplace.json +210 -0
- package/CLAUDE.md +952 -609
- package/README.md +179 -761
- 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 +521 -185
- 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 +23 -6
- package/dist/cli/commands/plugin.d.ts.map +1 -1
- package/dist/cli/commands/plugin.js +92 -66
- 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 +285 -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/execFileNoThrow.d.ts +97 -0
- package/dist/utils/execFileNoThrow.d.ts.map +1 -0
- package/dist/utils/execFileNoThrow.js +130 -0
- package/dist/utils/execFileNoThrow.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 +13 -14
- package/plugins/.specweave/logs/hooks-debug.log +24 -0
- package/plugins/.specweave/logs/last-hook-fire +1 -0
- package/plugins/.specweave/logs/last-todowrite-time +1 -0
- package/plugins/.specweave/logs/tasks.log +6 -0
- package/plugins/specweave/.claude-plugin/plugin.json +22 -0
- package/{src → plugins/specweave}/agents/pm/AGENT.md +80 -0
- package/plugins/specweave/agents/translator/AGENT.md +282 -0
- package/{src → plugins/specweave}/commands/README.md +11 -11
- package/{src/commands/specweave.costs.md → plugins/specweave/commands/costs.md} +8 -8
- package/{src/commands/specweave.do.md → plugins/specweave/commands/do.md} +35 -8
- package/{src/commands/specweave.done.md → plugins/specweave/commands/done.md} +1 -1
- package/{src/commands/specweave.inc.md → plugins/specweave/commands/inc.md} +1 -1
- package/{src/commands/specweave.increment.md → plugins/specweave/commands/increment.md} +84 -19
- package/{src/commands/specweave.next.md → plugins/specweave/commands/next.md} +1 -1
- package/{src/commands/specweave.progress.md → plugins/specweave/commands/progress.md} +1 -1
- package/{src → plugins/specweave}/commands/specweave.md +57 -25
- package/{src/commands/specweave.sync-docs.md → plugins/specweave/commands/sync-docs.md} +6 -6
- package/plugins/specweave/commands/translate.md +425 -0
- package/{src/commands/specweave.validate.md → plugins/specweave/commands/validate.md} +2 -2
- package/plugins/specweave/hooks/hooks.json +15 -0
- package/plugins/specweave/hooks/post-task-completion.sh +265 -0
- package/plugins/specweave/skills/SKILLS-INDEX.md +229 -0
- package/{src → plugins/specweave}/skills/brownfield-analyzer/SKILL.md +66 -24
- package/{src → plugins/specweave}/skills/context-loader/SKILL.md +1 -1
- package/plugins/specweave/skills/context-optimizer/SKILL.md +588 -0
- package/plugins/specweave/skills/docs-updater/SKILL.md +0 -0
- package/{src → plugins/specweave}/skills/increment-planner/SKILL.md +81 -4
- package/plugins/specweave/skills/plugin-detector/SKILL.md +211 -0
- package/{src → plugins/specweave}/skills/project-kickstarter/SKILL.md +7 -7
- package/plugins/specweave/skills/rfc-generator/SKILL.md +369 -0
- package/{src → plugins/specweave}/skills/specweave-detector/SKILL.md +2 -2
- package/plugins/specweave/skills/specweave-framework/SKILL.md +498 -0
- package/plugins/specweave/skills/specweave-framework/test-cases/test-1-increment-naming.yaml +11 -0
- package/plugins/specweave/skills/specweave-framework/test-cases/test-2-source-of-truth.yaml +11 -0
- package/plugins/specweave/skills/specweave-framework/test-cases/test-3-increment-discipline.yaml +12 -0
- package/plugins/specweave/skills/specweave-framework/test-cases/test-4-file-placement.yaml +11 -0
- package/{src → plugins/specweave}/skills/tdd-workflow/SKILL.md +21 -21
- package/plugins/specweave/skills/translator/SKILL.md +172 -0
- 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-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 +19 -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 +38 -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 +26 -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}/agents/architect/AGENT.md +0 -0
- /package/{src → plugins/specweave}/agents/code-reviewer.md +0 -0
- /package/{src → plugins/specweave}/agents/docs-writer/AGENT.md +0 -0
- /package/{src → plugins/specweave}/agents/performance/AGENT.md +0 -0
- /package/{src → plugins/specweave}/agents/qa-lead/AGENT.md +0 -0
- /package/{src → plugins/specweave}/agents/security/AGENT.md +0 -0
- /package/{src → plugins/specweave}/agents/tdd-orchestrator/AGENT.md +0 -0
- /package/{src → plugins/specweave}/agents/tech-lead/AGENT.md +0 -0
- /package/{src/commands/specweave.list-increments.md → plugins/specweave/commands/list-increments.md} +0 -0
- /package/{src/commands/specweave.tdd-cycle.md → plugins/specweave/commands/tdd-cycle.md} +0 -0
- /package/{src/commands/specweave.tdd-green.md → plugins/specweave/commands/tdd-green.md} +0 -0
- /package/{src/commands/specweave.tdd-red.md → plugins/specweave/commands/tdd-red.md} +0 -0
- /package/{src/commands/specweave.tdd-refactor.md → plugins/specweave/commands/tdd-refactor.md} +0 -0
- /package/{src → plugins/specweave}/hooks/README.md +0 -0
- /package/{src → plugins/specweave}/hooks/docs-changed.sh +0 -0
- /package/{src → plugins/specweave}/hooks/human-input-required.sh +0 -0
- /package/{src → plugins/specweave}/hooks/post-increment-plugin-detect.sh +0 -0
- /package/{src → plugins/specweave}/hooks/pre-implementation.sh +0 -0
- /package/{src → plugins/specweave}/hooks/pre-task-plugin-detect.sh +0 -0
- /package/{src → plugins/specweave}/skills/brownfield-onboarder/SKILL.md +0 -0
- /package/{src → plugins/specweave}/skills/docs-updater/README.md +0 -0
- /package/{src → plugins/specweave}/skills/increment-planner/scripts/feature-utils.js +0 -0
- /package/{src → plugins/specweave}/skills/increment-quality-judge/SKILL.md +0 -0
- /package/{src → plugins/specweave}/skills/project-kickstarter/test-cases/test-1-high-confidence-full-product.yaml +0 -0
- /package/{src → plugins/specweave}/skills/project-kickstarter/test-cases/test-2-medium-confidence-partial.yaml +0 -0
- /package/{src → plugins/specweave}/skills/project-kickstarter/test-cases/test-3-low-confidence-technical-question.yaml +0 -0
- /package/{src → plugins/specweave}/skills/project-kickstarter/test-cases/test-4-opt-out-explicit.yaml +0 -0
- /package/{src → plugins/specweave}/skills/role-orchestrator/README.md +0 -0
- /package/{src → plugins/specweave}/skills/role-orchestrator/SKILL.md +0 -0
- /package/{src → plugins/specweave}/skills/task-builder/README.md +0 -0
- /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-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,211 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plugin-detector
|
|
3
|
+
description: Detects when SpecWeave plugins are needed and guides installation. Activates for GitHub sync, Kubernetes deployment, Figma integration, ML pipelines, payment processing, React/frontend development, backend APIs, and other domain-specific features requiring plugins.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecWeave Plugin Detector
|
|
7
|
+
|
|
8
|
+
## What I Do
|
|
9
|
+
|
|
10
|
+
I detect when you need a SpecWeave plugin that isn't installed yet, and guide you through enabling it with clear, copy-pasteable commands.
|
|
11
|
+
|
|
12
|
+
## When I Activate
|
|
13
|
+
|
|
14
|
+
When you mention capabilities that require specific SpecWeave plugins:
|
|
15
|
+
|
|
16
|
+
### External Integrations
|
|
17
|
+
- **GitHub**: "sync to GitHub", "create issue", "GitHub integration", "export to GitHub" → needs `specweave-github`
|
|
18
|
+
- **Jira**: "sync to Jira", "create Jira ticket", "Jira integration" → needs `specweave-jira`
|
|
19
|
+
- **Azure DevOps**: "sync to ADO", "Azure DevOps", "work items" → needs `specweave-ado`
|
|
20
|
+
|
|
21
|
+
### Tech Stacks
|
|
22
|
+
- **Kubernetes**: "deploy to K8s", "Helm chart", "kubectl", "K8s manifests" → needs `specweave-kubernetes`
|
|
23
|
+
- **Frontend**: "React component", "Next.js", "Vue", "design system" → needs `specweave-frontend`
|
|
24
|
+
- **Backend**: "Express API", "FastAPI", "NestJS", ".NET backend" → needs `specweave-backend`
|
|
25
|
+
|
|
26
|
+
### Domain Expertise
|
|
27
|
+
- **ML/AI**: "train model", "MLflow", "TensorFlow", "PyTorch", "ML pipeline" → needs `specweave-ml`
|
|
28
|
+
- **Payments**: "Stripe", "PayPal", "subscription billing", "PCI compliance" → needs `specweave-payments`
|
|
29
|
+
- **Testing**: "Playwright tests", "E2E testing", "visual regression" → needs `specweave-testing`
|
|
30
|
+
- **Figma**: "Figma design", "design tokens", "import from Figma" → needs `specweave-figma`
|
|
31
|
+
- **Infrastructure**: "Hetzner", "Prometheus", "Grafana", "monitoring" → needs `specweave-infrastructure`
|
|
32
|
+
- **Diagrams**: "C4 diagram", "architecture diagram", "Mermaid", "sequence diagram" → needs `specweave-diagrams`
|
|
33
|
+
|
|
34
|
+
## How I Help
|
|
35
|
+
|
|
36
|
+
1. **Detect missing plugin**: Check if the required plugin is installed
|
|
37
|
+
2. **Provide installation command**: Give exact `/plugin install` command
|
|
38
|
+
3. **Explain benefits**: List what the plugin provides (skills, agents, commands)
|
|
39
|
+
4. **Continue once enabled**: Resume your task with plugin features available
|
|
40
|
+
|
|
41
|
+
## Plugin Detection Logic
|
|
42
|
+
|
|
43
|
+
I check for plugin installation by:
|
|
44
|
+
- Looking for plugin-specific commands (e.g., `/specweave-github:sync`)
|
|
45
|
+
- Checking if plugin files exist in `.claude/` directory
|
|
46
|
+
- Detecting absence of expected skills/agents
|
|
47
|
+
|
|
48
|
+
**If a plugin is missing**, I provide:
|
|
49
|
+
```
|
|
50
|
+
📦 Plugin Required: specweave-{name}
|
|
51
|
+
|
|
52
|
+
To enable this plugin:
|
|
53
|
+
1. Run: /plugin install specweave-{name}@specweave
|
|
54
|
+
2. Restart this conversation (or continue - plugin will load)
|
|
55
|
+
|
|
56
|
+
This plugin provides:
|
|
57
|
+
✅ {List of key features}
|
|
58
|
+
✅ {Specialized agents}
|
|
59
|
+
✅ {Slash commands}
|
|
60
|
+
|
|
61
|
+
Would you like me to guide you through the installation?
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Example Flows
|
|
65
|
+
|
|
66
|
+
### Example 1: GitHub Integration
|
|
67
|
+
|
|
68
|
+
**User**: "Let's sync this increment to GitHub Issues"
|
|
69
|
+
|
|
70
|
+
**Me**:
|
|
71
|
+
```
|
|
72
|
+
📦 Plugin Required: specweave-github
|
|
73
|
+
|
|
74
|
+
I notice you want GitHub integration, but the `specweave-github` plugin isn't installed yet.
|
|
75
|
+
|
|
76
|
+
To enable GitHub sync features:
|
|
77
|
+
|
|
78
|
+
1. Run this command:
|
|
79
|
+
/plugin install specweave-github@specweave
|
|
80
|
+
|
|
81
|
+
2. Once installed, you'll have access to:
|
|
82
|
+
✅ Bidirectional increment ↔ GitHub Issue sync
|
|
83
|
+
✅ Task-level progress tracking via issue comments
|
|
84
|
+
✅ Automatic issue creation from specs
|
|
85
|
+
✅ GitHub CLI integration (via `gh` command)
|
|
86
|
+
✅ Commands: /specweave:github:sync, /specweave:github:create-issue, /specweave:github:status
|
|
87
|
+
|
|
88
|
+
Would you like me to guide you through the installation, or would you prefer to continue without GitHub sync?
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Example 2: Kubernetes Deployment
|
|
92
|
+
|
|
93
|
+
**User**: "Deploy this to Kubernetes with Helm"
|
|
94
|
+
|
|
95
|
+
**Me**:
|
|
96
|
+
```
|
|
97
|
+
📦 Plugin Required: specweave-kubernetes
|
|
98
|
+
|
|
99
|
+
For Kubernetes deployment features, you'll need the `specweave-kubernetes` plugin.
|
|
100
|
+
|
|
101
|
+
To enable:
|
|
102
|
+
|
|
103
|
+
1. Run: /plugin install specweave-kubernetes@specweave
|
|
104
|
+
|
|
105
|
+
2. This plugin provides:
|
|
106
|
+
✅ K8s manifest generation (deployments, services, configmaps)
|
|
107
|
+
✅ Helm chart scaffolding and templates
|
|
108
|
+
✅ GitOps workflow with ArgoCD/Flux
|
|
109
|
+
✅ Security policies and RBAC patterns
|
|
110
|
+
✅ Skills: k8s-manifest-generator, helm-chart-scaffolding, gitops-workflow
|
|
111
|
+
|
|
112
|
+
Alternatively, I can help you create basic K8s manifests manually without the plugin. Which would you prefer?
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Example 3: Already Installed
|
|
116
|
+
|
|
117
|
+
**User**: "Create a C4 diagram for this architecture"
|
|
118
|
+
|
|
119
|
+
**Me**:
|
|
120
|
+
```
|
|
121
|
+
✅ Plugin Available: specweave-diagrams
|
|
122
|
+
|
|
123
|
+
Great! The diagrams plugin is installed. I can create C4 diagrams for you.
|
|
124
|
+
|
|
125
|
+
I'll use the diagrams-architect agent to:
|
|
126
|
+
1. Analyze your architecture from specs
|
|
127
|
+
2. Generate Mermaid C4 diagram code
|
|
128
|
+
3. Export to both .mmd and .svg formats
|
|
129
|
+
4. Place in .specweave/docs/internal/architecture/diagrams/
|
|
130
|
+
|
|
131
|
+
Let me start by examining your architecture specifications...
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Available SpecWeave Plugins
|
|
135
|
+
|
|
136
|
+
### Core (Always Available)
|
|
137
|
+
- `specweave` - Framework essentials (increment lifecycle, PM/Architect/Tech Lead agents)
|
|
138
|
+
|
|
139
|
+
### Integrations
|
|
140
|
+
- `specweave-github` - GitHub Issues sync
|
|
141
|
+
- `specweave-jira` - Jira integration
|
|
142
|
+
- `specweave-ado` - Azure DevOps integration
|
|
143
|
+
|
|
144
|
+
### Tech Stacks
|
|
145
|
+
- `specweave-frontend` - React, Next.js, Vue, design systems
|
|
146
|
+
- `specweave-backend` - Node.js, Python, .NET APIs
|
|
147
|
+
- `specweave-kubernetes` - K8s deployment, Helm, GitOps
|
|
148
|
+
- `specweave-infrastructure` - Cloud infra, monitoring, Hetzner
|
|
149
|
+
|
|
150
|
+
### Domain Expertise
|
|
151
|
+
- `specweave-ml` - ML pipelines, training, deployment
|
|
152
|
+
- `specweave-payments` - Stripe, PayPal, PCI compliance
|
|
153
|
+
- `specweave-testing` - Playwright E2E, visual regression
|
|
154
|
+
- `specweave-figma` - Design system integration
|
|
155
|
+
- `specweave-diagrams` - C4, Mermaid, architecture diagrams
|
|
156
|
+
- `specweave-docs` - Docusaurus generation
|
|
157
|
+
|
|
158
|
+
### Utilities
|
|
159
|
+
- `specweave-tooling` - Skill creation, routing
|
|
160
|
+
- `specweave-cost-optimizer` - Cloud cost comparison
|
|
161
|
+
- `specweave-alternatives` - Framework comparison
|
|
162
|
+
|
|
163
|
+
## Installation Commands Reference
|
|
164
|
+
|
|
165
|
+
**Quick Install (Most Common)**:
|
|
166
|
+
```bash
|
|
167
|
+
# GitHub integration
|
|
168
|
+
/plugin install specweave-github@specweave
|
|
169
|
+
|
|
170
|
+
# Frontend development
|
|
171
|
+
/plugin install specweave-frontend@specweave
|
|
172
|
+
|
|
173
|
+
# Backend APIs
|
|
174
|
+
/plugin install specweave-backend@specweave
|
|
175
|
+
|
|
176
|
+
# Kubernetes deployment
|
|
177
|
+
/plugin install specweave-kubernetes@specweave
|
|
178
|
+
|
|
179
|
+
# ML/AI workflows
|
|
180
|
+
/plugin install specweave-ml@specweave
|
|
181
|
+
|
|
182
|
+
# Architecture diagrams
|
|
183
|
+
/plugin install specweave-diagrams@specweave
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**View All Available**:
|
|
187
|
+
```bash
|
|
188
|
+
/plugin marketplace list specweave
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Best Practices
|
|
192
|
+
|
|
193
|
+
1. **Be Proactive**: Detect missing plugins early in the conversation
|
|
194
|
+
2. **Offer Alternatives**: If a plugin isn't installed, suggest manual approaches
|
|
195
|
+
3. **Don't Block**: Never refuse to help—offer to continue without the plugin
|
|
196
|
+
4. **Clear Instructions**: Always provide exact copy-pasteable commands
|
|
197
|
+
5. **Explain Benefits**: Help users understand why the plugin is valuable
|
|
198
|
+
|
|
199
|
+
## Integration with Other Skills
|
|
200
|
+
|
|
201
|
+
This skill works alongside:
|
|
202
|
+
- **project-kickstarter**: Suggests plugins during new project setup
|
|
203
|
+
- **increment-planner**: Recommends plugins based on increment requirements
|
|
204
|
+
- **specweave-detector**: Coordinates with workflow detection
|
|
205
|
+
|
|
206
|
+
## Notes
|
|
207
|
+
|
|
208
|
+
- This skill is **non-blocking** - I always offer to continue without plugins
|
|
209
|
+
- Plugins are **opt-in** - users choose what to install
|
|
210
|
+
- Installation is **instant** - plugins activate immediately
|
|
211
|
+
- All plugins follow **Claude Code's native plugin architecture**
|
|
@@ -105,7 +105,7 @@ SpecWeave works best when we start with a proper increment plan. I'm going to:
|
|
|
105
105
|
|
|
106
106
|
Let's start: [Ask 1 clarifying question if needed, otherwise proceed]"
|
|
107
107
|
|
|
108
|
-
[Automatically invoke /specweave
|
|
108
|
+
[Automatically invoke /specweave:inc or spec-driven-brainstorming]
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
**Medium Confidence:**
|
|
@@ -125,7 +125,7 @@ Don't activate. Let other skills handle it.
|
|
|
125
125
|
|
|
126
126
|
Based on clarity of requirements:
|
|
127
127
|
|
|
128
|
-
- **Clear requirements** (detailed features, tech stack known) → `/specweave
|
|
128
|
+
- **Clear requirements** (detailed features, tech stack known) → `/specweave:inc` directly
|
|
129
129
|
- **Unclear requirements** (vague features, tech stack uncertain) → `spec-driven-brainstorming` first
|
|
130
130
|
|
|
131
131
|
## Examples
|
|
@@ -177,9 +177,9 @@ I'm going to use SpecWeave's increment planning process to:
|
|
|
177
177
|
|
|
178
178
|
Since you've provided the tech stack (.NET 8 + Next.js 14+), I'll structure this as a full-stack increment.
|
|
179
179
|
|
|
180
|
-
Creating increment now with /specweave
|
|
180
|
+
Creating increment now with /specweave:inc...
|
|
181
181
|
|
|
182
|
-
[Invokes /specweave
|
|
182
|
+
[Invokes /specweave:inc "RosterSync team scheduling SaaS"]
|
|
183
183
|
```
|
|
184
184
|
|
|
185
185
|
### Example 2: Clarify Then Route (Medium Confidence)
|
|
@@ -252,12 +252,12 @@ User message → specweave-detector (checks .specweave/ exists)
|
|
|
252
252
|
↓ YES
|
|
253
253
|
[Calculate confidence with SpecWeave context bonus]
|
|
254
254
|
↓
|
|
255
|
-
[Route to /specweave
|
|
255
|
+
[Route to /specweave:inc or spec-driven-brainstorming]
|
|
256
256
|
```
|
|
257
257
|
|
|
258
258
|
**Calls:**
|
|
259
259
|
- `specweave-detector` - Checks if .specweave/ directory exists (SpecWeave context)
|
|
260
|
-
- `/specweave
|
|
260
|
+
- `/specweave:inc` - For clear requirements (high confidence)
|
|
261
261
|
- `spec-driven-brainstorming` - For unclear requirements (medium confidence)
|
|
262
262
|
- `increment-planner` - Directly if enough detail provided
|
|
263
263
|
|
|
@@ -282,7 +282,7 @@ Users can override auto-routing with explicit instructions:
|
|
|
282
282
|
## Success Criteria
|
|
283
283
|
|
|
284
284
|
- ✅ Users with product descriptions are automatically guided to increment planning
|
|
285
|
-
- ✅ No "I forgot to use /specweave
|
|
285
|
+
- ✅ No "I forgot to use /specweave:inc" scenarios
|
|
286
286
|
- ✅ Confidence >80% routes immediately (no friction)
|
|
287
287
|
- ✅ Confidence 50-80% clarifies then routes (1-2 questions max)
|
|
288
288
|
- ✅ Confidence <50% doesn't activate (avoids false positives)
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rfc-generator
|
|
3
|
+
description: Generates comprehensive RFCs (spec.md, plan.md, tasks.md, tests.md) for SpecWeave increments using proven templates and flexible structure. Activates when users create new increments, plan features, or need structured documentation. Keywords: RFC, specification, plan, tasks, tests, increment planning, feature planning, requirements.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# RFC Generator - Flexible Increment Documentation
|
|
7
|
+
|
|
8
|
+
**Purpose**: Automatically generate comprehensive RFC documentation (spec.md, plan.md, tasks.md, tests.md) for SpecWeave increments using proven templates and flexible, context-aware structure.
|
|
9
|
+
|
|
10
|
+
**When to Use**:
|
|
11
|
+
- Creating new increments (`/specweave:inc`)
|
|
12
|
+
- Planning features or products
|
|
13
|
+
- Generating structured documentation
|
|
14
|
+
- Converting ideas into actionable specs
|
|
15
|
+
|
|
16
|
+
**Based On**: FlexibleRFCGenerator (V2) - context-aware, non-rigid templates
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## How RFC Generator Works
|
|
21
|
+
|
|
22
|
+
### 1. Flexible Spec Generation (spec.md)
|
|
23
|
+
|
|
24
|
+
**Adapts to Context**:
|
|
25
|
+
- **New Product**: Full PRD with market analysis, user personas, competitive landscape
|
|
26
|
+
- **Feature Addition**: Focused user stories, acceptance criteria, integration points
|
|
27
|
+
- **Bug Fix**: Problem statement, root cause, solution, impact analysis
|
|
28
|
+
- **Refactoring**: Current state, proposed changes, benefits, migration plan
|
|
29
|
+
|
|
30
|
+
**Core Sections** (Always Present):
|
|
31
|
+
```markdown
|
|
32
|
+
# Product Specification: [Increment Name]
|
|
33
|
+
|
|
34
|
+
**Increment**: [ID]
|
|
35
|
+
**Title**: [Title]
|
|
36
|
+
**Status**: Planning
|
|
37
|
+
**Priority**: [P0-P3]
|
|
38
|
+
**Created**: [Date]
|
|
39
|
+
|
|
40
|
+
## Executive Summary
|
|
41
|
+
[1-2 paragraph overview]
|
|
42
|
+
|
|
43
|
+
## Problem Statement
|
|
44
|
+
### Current State
|
|
45
|
+
### User Pain Points
|
|
46
|
+
### Target Audience
|
|
47
|
+
|
|
48
|
+
## User Stories & Acceptance Criteria
|
|
49
|
+
### US-001: [Title]
|
|
50
|
+
**As a** [user type]
|
|
51
|
+
**I want** [goal]
|
|
52
|
+
**So that** [benefit]
|
|
53
|
+
|
|
54
|
+
**Acceptance Criteria**:
|
|
55
|
+
- ✅ [Criterion 1]
|
|
56
|
+
- ✅ [Criterion 2]
|
|
57
|
+
|
|
58
|
+
## Success Metrics
|
|
59
|
+
[How we'll measure success]
|
|
60
|
+
|
|
61
|
+
## Non-Goals (Out of Scope)
|
|
62
|
+
[What we're NOT doing in this increment]
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Flexible Sections** (Context-Dependent):
|
|
66
|
+
- **Competitive Analysis** (if new product)
|
|
67
|
+
- **Technical Requirements** (if complex feature)
|
|
68
|
+
- **API Design** (if backend API)
|
|
69
|
+
- **UI/UX Requirements** (if frontend)
|
|
70
|
+
- **Security Considerations** (if auth/data)
|
|
71
|
+
- **Migration Plan** (if breaking change)
|
|
72
|
+
|
|
73
|
+
### 2. Technical Plan Generation (plan.md)
|
|
74
|
+
|
|
75
|
+
**Adapts to Complexity**:
|
|
76
|
+
- **Simple Feature**: Component list, data flow, implementation steps
|
|
77
|
+
- **Complex System**: Full architecture, C4 diagrams, sequence diagrams, ER diagrams
|
|
78
|
+
- **Infrastructure**: Deployment architecture, scaling strategy, monitoring
|
|
79
|
+
|
|
80
|
+
**Core Sections**:
|
|
81
|
+
```markdown
|
|
82
|
+
# Technical Plan: [Increment Name]
|
|
83
|
+
|
|
84
|
+
## Architecture Overview
|
|
85
|
+
[System design, components, interactions]
|
|
86
|
+
|
|
87
|
+
## Component Architecture
|
|
88
|
+
### Component 1
|
|
89
|
+
[Purpose, responsibilities, interfaces]
|
|
90
|
+
|
|
91
|
+
## Data Models
|
|
92
|
+
[Entities, relationships, schemas]
|
|
93
|
+
|
|
94
|
+
## Implementation Strategy
|
|
95
|
+
### Phase 1: [Name]
|
|
96
|
+
### Phase 2: [Name]
|
|
97
|
+
|
|
98
|
+
## Testing Strategy
|
|
99
|
+
[Unit, integration, E2E approach]
|
|
100
|
+
|
|
101
|
+
## Deployment Plan
|
|
102
|
+
[How we'll roll this out]
|
|
103
|
+
|
|
104
|
+
## Risks & Mitigations
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### 3. Task Breakdown Generation (tasks.md)
|
|
108
|
+
|
|
109
|
+
**Smart Task Creation**:
|
|
110
|
+
```markdown
|
|
111
|
+
# Implementation Tasks: [Increment Name]
|
|
112
|
+
|
|
113
|
+
## Task Overview
|
|
114
|
+
**Total Tasks**: [N]
|
|
115
|
+
**Estimated Duration**: [X weeks]
|
|
116
|
+
**Priority**: [P0]
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Phase 1: Foundation (Week 1) - X tasks
|
|
121
|
+
|
|
122
|
+
### T-001: [Task Title]
|
|
123
|
+
**Priority**: P0
|
|
124
|
+
**Estimate**: [X hours]
|
|
125
|
+
**Status**: pending
|
|
126
|
+
|
|
127
|
+
**Description**:
|
|
128
|
+
[What needs to be done]
|
|
129
|
+
|
|
130
|
+
**Files to Create/Modify**:
|
|
131
|
+
- `path/to/file.ts`
|
|
132
|
+
|
|
133
|
+
**Implementation**:
|
|
134
|
+
```[language]
|
|
135
|
+
[Code example or approach]
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**Acceptance Criteria**:
|
|
139
|
+
- ✅ [Criterion 1]
|
|
140
|
+
- ✅ [Criterion 2]
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
[Repeat for all tasks]
|
|
145
|
+
|
|
146
|
+
## Task Dependencies
|
|
147
|
+
[Dependency graph if complex]
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### 4. Test Strategy Generation (tests.md)
|
|
151
|
+
|
|
152
|
+
**Comprehensive Test Coverage**:
|
|
153
|
+
```markdown
|
|
154
|
+
# Test Strategy: [Increment Name]
|
|
155
|
+
|
|
156
|
+
## Test Overview
|
|
157
|
+
**Total Test Cases**: [N]
|
|
158
|
+
**Test Levels**: [Unit, Integration, E2E, Performance]
|
|
159
|
+
**Coverage Target**: 80%+ overall, 90%+ critical
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## Unit Tests (X test cases)
|
|
164
|
+
|
|
165
|
+
### TC-001: [Test Name]
|
|
166
|
+
```[language]
|
|
167
|
+
describe('[Component]', () => {
|
|
168
|
+
it('[should do something]', async () => {
|
|
169
|
+
// Arrange
|
|
170
|
+
// Act
|
|
171
|
+
// Assert
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Integration Tests (X test cases)
|
|
177
|
+
## E2E Tests (X test cases)
|
|
178
|
+
## Performance Tests (X test cases)
|
|
179
|
+
|
|
180
|
+
## Coverage Requirements
|
|
181
|
+
- Critical paths: 90%+
|
|
182
|
+
- Overall: 80%+
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## RFC Generator Templates
|
|
188
|
+
|
|
189
|
+
### Template Selection Logic
|
|
190
|
+
|
|
191
|
+
**Input Analysis**:
|
|
192
|
+
1. Analyze increment description (keywords, complexity)
|
|
193
|
+
2. Detect domain (frontend, backend, infra, ML, etc.)
|
|
194
|
+
3. Determine scope (feature, product, bug fix, refactor)
|
|
195
|
+
4. Assess technical complexity (simple, moderate, complex)
|
|
196
|
+
|
|
197
|
+
**Template Selection**:
|
|
198
|
+
```
|
|
199
|
+
IF new_product THEN
|
|
200
|
+
spec_template = "Full PRD"
|
|
201
|
+
plan_template = "System Architecture"
|
|
202
|
+
ELSE IF feature_addition THEN
|
|
203
|
+
spec_template = "User Stories Focused"
|
|
204
|
+
plan_template = "Component Design"
|
|
205
|
+
ELSE IF bug_fix THEN
|
|
206
|
+
spec_template = "Problem-Solution"
|
|
207
|
+
plan_template = "Implementation Steps"
|
|
208
|
+
ELSE IF refactoring THEN
|
|
209
|
+
spec_template = "Current-Proposed"
|
|
210
|
+
plan_template = "Migration Strategy"
|
|
211
|
+
END IF
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Context-Aware Sections
|
|
215
|
+
|
|
216
|
+
**Auto-Include Based On**:
|
|
217
|
+
- **"authentication"** → Security Considerations, JWT/OAuth design
|
|
218
|
+
- **"API"** → API Design, OpenAPI spec, rate limiting
|
|
219
|
+
- **"database"** → ER diagrams, migration scripts, indexes
|
|
220
|
+
- **"frontend"** → Component hierarchy, state management, UI/UX
|
|
221
|
+
- **"deployment"** → CI/CD, infrastructure, monitoring
|
|
222
|
+
- **"ML"** → Model architecture, training pipeline, evaluation metrics
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Usage Examples
|
|
227
|
+
|
|
228
|
+
### Example 1: Simple Feature
|
|
229
|
+
```
|
|
230
|
+
User: /specweave:inc "Add dark mode toggle to settings"
|
|
231
|
+
|
|
232
|
+
RFC Generator:
|
|
233
|
+
✓ Detected: Frontend feature (UI component)
|
|
234
|
+
✓ Complexity: Simple
|
|
235
|
+
✓ Template: User Stories + Component Design
|
|
236
|
+
|
|
237
|
+
Generating RFC...
|
|
238
|
+
✓ spec.md: 3 user stories, UI mockups section
|
|
239
|
+
✓ plan.md: Component design, state management, CSS-in-JS
|
|
240
|
+
✓ tasks.md: 8 tasks (component, styles, state, tests)
|
|
241
|
+
✓ tests.md: Unit tests for component, E2E for toggle
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Example 2: Complex System
|
|
245
|
+
```
|
|
246
|
+
User: /specweave:inc "Multi-tenant SaaS platform with billing"
|
|
247
|
+
|
|
248
|
+
RFC Generator:
|
|
249
|
+
✓ Detected: New product (SaaS, multi-tenant, payments)
|
|
250
|
+
✓ Complexity: High
|
|
251
|
+
✓ Template: Full PRD + System Architecture
|
|
252
|
+
|
|
253
|
+
Generating RFC...
|
|
254
|
+
✓ spec.md: Market analysis, personas, competitive landscape, 15 user stories
|
|
255
|
+
✓ plan.md: Multi-tenant architecture, database per tenant, Stripe integration, C4 diagrams
|
|
256
|
+
✓ tasks.md: 40 tasks across 4 weeks (auth, tenancy, billing, UI)
|
|
257
|
+
✓ tests.md: 100+ test cases (unit, integration, E2E, load testing)
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### Example 3: Bug Fix
|
|
261
|
+
```
|
|
262
|
+
User: /specweave:inc "Fix race condition in user session handling"
|
|
263
|
+
|
|
264
|
+
RFC Generator:
|
|
265
|
+
✓ Detected: Bug fix (concurrency issue)
|
|
266
|
+
✓ Complexity: Moderate
|
|
267
|
+
✓ Template: Problem-Solution
|
|
268
|
+
|
|
269
|
+
Generating RFC...
|
|
270
|
+
✓ spec.md: Problem statement, root cause analysis, impact, solution
|
|
271
|
+
✓ plan.md: Current implementation, proposed fix, Redis locking
|
|
272
|
+
✓ tasks.md: 5 tasks (analysis, fix, tests, rollout, monitoring)
|
|
273
|
+
✓ tests.md: Concurrency tests, stress tests
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Integration with /specweave:inc
|
|
279
|
+
|
|
280
|
+
The RFC generator is automatically invoked by `/specweave:inc`:
|
|
281
|
+
|
|
282
|
+
1. **User Intent Analysis**:
|
|
283
|
+
- Analyze increment description
|
|
284
|
+
- Detect keywords, domain, complexity
|
|
285
|
+
|
|
286
|
+
2. **Template Selection**:
|
|
287
|
+
- Choose appropriate templates
|
|
288
|
+
- Auto-include relevant sections
|
|
289
|
+
|
|
290
|
+
3. **RFC Generation**:
|
|
291
|
+
- Generate spec.md with PM context
|
|
292
|
+
- Generate plan.md with Architect context
|
|
293
|
+
- Generate tasks.md with breakdown
|
|
294
|
+
- Generate tests.md with coverage strategy
|
|
295
|
+
|
|
296
|
+
4. **User Review**:
|
|
297
|
+
- Show generated structure
|
|
298
|
+
- Allow refinement
|
|
299
|
+
- Confirm before creating files
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
## Advantages Over Rigid Templates
|
|
304
|
+
|
|
305
|
+
**Flexible (V2) Approach**:
|
|
306
|
+
- ✅ Adapts to increment type (product, feature, bug fix, refactor)
|
|
307
|
+
- ✅ Includes only relevant sections
|
|
308
|
+
- ✅ Scales complexity up/down
|
|
309
|
+
- ✅ Domain-aware (frontend, backend, ML, infra)
|
|
310
|
+
- ✅ Faster for simple increments
|
|
311
|
+
- ✅ Comprehensive for complex products
|
|
312
|
+
|
|
313
|
+
**Rigid (V1) Approach**:
|
|
314
|
+
- ❌ Same template for everything
|
|
315
|
+
- ❌ Many irrelevant sections
|
|
316
|
+
- ❌ Wastes time on simple features
|
|
317
|
+
- ❌ Insufficient for complex products
|
|
318
|
+
- ❌ One-size-fits-none
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## Configuration
|
|
323
|
+
|
|
324
|
+
Users can customize RFC generation in `.specweave/config.yaml`:
|
|
325
|
+
|
|
326
|
+
```yaml
|
|
327
|
+
rfc_generator:
|
|
328
|
+
# Default complexity level
|
|
329
|
+
default_complexity: moderate # simple | moderate | complex
|
|
330
|
+
|
|
331
|
+
# Always include sections
|
|
332
|
+
always_include:
|
|
333
|
+
- executive_summary
|
|
334
|
+
- user_stories
|
|
335
|
+
- success_metrics
|
|
336
|
+
|
|
337
|
+
# Never include sections
|
|
338
|
+
never_include:
|
|
339
|
+
- competitive_analysis # We're not doing market research
|
|
340
|
+
|
|
341
|
+
# Domain defaults
|
|
342
|
+
domain_defaults:
|
|
343
|
+
frontend:
|
|
344
|
+
include: [ui_mockups, component_hierarchy, state_management]
|
|
345
|
+
backend:
|
|
346
|
+
include: [api_design, database_schema, authentication]
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
---
|
|
350
|
+
|
|
351
|
+
## Related Skills
|
|
352
|
+
|
|
353
|
+
- **increment-planner**: Guides increment planning (uses RFC generator internally)
|
|
354
|
+
- **context-loader**: Loads relevant context for RFC generation
|
|
355
|
+
- **increment-quality-judge**: Validates generated RFCs for completeness
|
|
356
|
+
|
|
357
|
+
---
|
|
358
|
+
|
|
359
|
+
## Version History
|
|
360
|
+
|
|
361
|
+
- **v1.0.0** (0.4.0): Initial release with flexible template system
|
|
362
|
+
- Based on: FlexibleRFCGenerator (V2) analysis from increment 0001
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
## References
|
|
367
|
+
|
|
368
|
+
- Flexible RFC Generator Design: `.specweave/increments/0001-core-framework/reports/rfc-generator-v2.md`
|
|
369
|
+
- Generator Comparison: `.specweave/increments/0001-core-framework/reports/rfc-generator-comparison.md`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: specweave-detector
|
|
3
|
-
description: Detects SpecWeave context (.specweave/ directory exists) and provides workflow documentation. v0.3.8+ features PROACTIVE auto-detection - when in SpecWeave folder, product descriptions automatically trigger increment planning. Explicit slash commands still work (/inc, /do, /progress, /validate, /done, /sync-docs, /sync-github). Keywords slash commands, /inc, /increment, /do, /progress, /validate, /done, specweave commands, smart workflow, auto-detection, specweave folder.
|
|
3
|
+
description: Detects SpecWeave context (.specweave/ directory exists) and provides workflow documentation. v0.3.8+ features PROACTIVE auto-detection - when in SpecWeave folder, product descriptions automatically trigger increment planning. Explicit slash commands still work (/inc, /do, /progress, /validate, /done, /specweave:sync-docs, /sync-github). Keywords slash commands, /inc, /increment, /do, /progress, /validate, /done, specweave commands, smart workflow, auto-detection, specweave folder.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# SpecWeave v0.3.8+ - Smart Workflow with Auto-Detection
|
|
@@ -40,7 +40,7 @@ When working in a SpecWeave-initialized project (.specweave/ directory exists),
|
|
|
40
40
|
| Command | Description | Example |
|
|
41
41
|
|---------|-------------|---------|
|
|
42
42
|
| `/list-increments` | List all increments with status | `/list-increments` |
|
|
43
|
-
| `/sync-docs` | Review strategic docs vs code | `/sync-docs --increment=003` |
|
|
43
|
+
| `/specweave:sync-docs` | Review strategic docs vs code | `/specweave:sync-docs --increment=003` |
|
|
44
44
|
| `/sync-github` | Sync increment to GitHub issues | `/sync-github` |
|
|
45
45
|
|
|
46
46
|
## Why Only ONE Alias?
|