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,526 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: docusaurus
|
|
3
|
+
description: Expert in generating Docusaurus documentation sites from SpecWeave structure. Converts .specweave/docs/public/ into a beautiful, deployable static site with search, versioning, and hosting options. Activates for docusaurus, create docs site, generate documentation, public docs, documentation site, host docs, deploy documentation, static site generator, client documentation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Docusaurus Documentation Generator
|
|
7
|
+
|
|
8
|
+
Expert skill for creating production-ready Docusaurus documentation sites from SpecWeave public documentation.
|
|
9
|
+
|
|
10
|
+
## What This Skill Does
|
|
11
|
+
|
|
12
|
+
Converts your SpecWeave public documentation (`.specweave/docs/public/`) into a beautiful, searchable, deployable documentation website using Docusaurus v3.
|
|
13
|
+
|
|
14
|
+
## Key Capabilities
|
|
15
|
+
|
|
16
|
+
### 1. Site Generation
|
|
17
|
+
- Create Docusaurus configuration from SpecWeave structure
|
|
18
|
+
- Auto-generate navigation from folder structure
|
|
19
|
+
- Convert Mermaid diagrams to Docusaurus format
|
|
20
|
+
- Set up search (Algolia or local)
|
|
21
|
+
- Configure themes and styling
|
|
22
|
+
|
|
23
|
+
### 2. Content Extraction
|
|
24
|
+
- Extract documentation from `.specweave/docs/public/`
|
|
25
|
+
- Preserve folder structure as navigation
|
|
26
|
+
- Handle Markdown frontmatter
|
|
27
|
+
- Convert SpecWeave-specific conventions
|
|
28
|
+
- Support versioning if needed
|
|
29
|
+
|
|
30
|
+
### 3. Deployment Configuration
|
|
31
|
+
- Vercel deployment setup
|
|
32
|
+
- Netlify deployment setup
|
|
33
|
+
- GitHub Pages configuration
|
|
34
|
+
- Custom domain setup
|
|
35
|
+
- CI/CD pipeline integration
|
|
36
|
+
|
|
37
|
+
### 4. Advanced Features
|
|
38
|
+
- Multi-version documentation
|
|
39
|
+
- API documentation integration
|
|
40
|
+
- Blog support (optional)
|
|
41
|
+
- Announcement bar
|
|
42
|
+
- Dark/light theme
|
|
43
|
+
- Mobile-responsive
|
|
44
|
+
- SEO optimization
|
|
45
|
+
|
|
46
|
+
## When to Use This Skill
|
|
47
|
+
|
|
48
|
+
Activate this skill when you need to:
|
|
49
|
+
- Create a public documentation website for a SpecWeave project
|
|
50
|
+
- Deploy client-facing documentation
|
|
51
|
+
- Generate hosted documentation from `.specweave/docs/public/`
|
|
52
|
+
- Set up searchable documentation
|
|
53
|
+
- Create versioned documentation
|
|
54
|
+
|
|
55
|
+
## Activation Keywords
|
|
56
|
+
|
|
57
|
+
- "create docusaurus site"
|
|
58
|
+
- "generate documentation website"
|
|
59
|
+
- "deploy public docs"
|
|
60
|
+
- "create documentation site"
|
|
61
|
+
- "docusaurus from specweave"
|
|
62
|
+
- "host documentation"
|
|
63
|
+
- "static docs site"
|
|
64
|
+
|
|
65
|
+
## Workflow
|
|
66
|
+
|
|
67
|
+
### Step 1: Analysis
|
|
68
|
+
```bash
|
|
69
|
+
# Analyze existing documentation structure
|
|
70
|
+
.specweave/docs/
|
|
71
|
+
└── public/
|
|
72
|
+
├── overview/
|
|
73
|
+
│ ├── introduction.md
|
|
74
|
+
│ ├── features.md
|
|
75
|
+
│ └── philosophy.md
|
|
76
|
+
├── guides/
|
|
77
|
+
│ └── getting-started/
|
|
78
|
+
│ ├── installation.md
|
|
79
|
+
│ └── quickstart.md
|
|
80
|
+
└── api/
|
|
81
|
+
└── README.md
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Step 2: Docusaurus Setup
|
|
85
|
+
```bash
|
|
86
|
+
# Create docusaurus site in ./docs-site/
|
|
87
|
+
npx create-docusaurus@latest docs-site classic --typescript
|
|
88
|
+
|
|
89
|
+
# Or use existing structure if present
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Step 3: Configuration
|
|
93
|
+
|
|
94
|
+
Generate `docusaurus.config.ts`:
|
|
95
|
+
```typescript
|
|
96
|
+
import {themes as prismThemes} from 'prism-react-renderer';
|
|
97
|
+
import type {Config} from '@docusaurus/types';
|
|
98
|
+
import type * as Preset from '@docusaurus/preset-classic';
|
|
99
|
+
|
|
100
|
+
const config: Config = {
|
|
101
|
+
title: 'Project Name Documentation',
|
|
102
|
+
tagline: 'Spec-Driven Development with SpecWeave',
|
|
103
|
+
favicon: 'img/favicon.ico',
|
|
104
|
+
|
|
105
|
+
url: 'https://your-domain.com',
|
|
106
|
+
baseUrl: '/',
|
|
107
|
+
|
|
108
|
+
organizationName: 'your-org',
|
|
109
|
+
projectName: 'your-project',
|
|
110
|
+
|
|
111
|
+
onBrokenLinks: 'throw',
|
|
112
|
+
onBrokenMarkdownLinks: 'warn',
|
|
113
|
+
|
|
114
|
+
i18n: {
|
|
115
|
+
defaultLocale: 'en',
|
|
116
|
+
locales: ['en'],
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
presets: [
|
|
120
|
+
[
|
|
121
|
+
'classic',
|
|
122
|
+
{
|
|
123
|
+
docs: {
|
|
124
|
+
sidebarPath: './sidebars.ts',
|
|
125
|
+
editUrl: 'https://github.com/your-org/your-project/tree/main/',
|
|
126
|
+
},
|
|
127
|
+
blog: false, // Optional
|
|
128
|
+
theme: {
|
|
129
|
+
customCss: './src/css/custom.css',
|
|
130
|
+
},
|
|
131
|
+
} satisfies Preset.Options,
|
|
132
|
+
],
|
|
133
|
+
],
|
|
134
|
+
|
|
135
|
+
themeConfig: {
|
|
136
|
+
navbar: {
|
|
137
|
+
title: 'Project Name',
|
|
138
|
+
logo: {
|
|
139
|
+
alt: 'Logo',
|
|
140
|
+
src: 'img/logo.svg',
|
|
141
|
+
},
|
|
142
|
+
items: [
|
|
143
|
+
{
|
|
144
|
+
type: 'docSidebar',
|
|
145
|
+
sidebarId: 'docs',
|
|
146
|
+
position: 'left',
|
|
147
|
+
label: 'Documentation',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
href: 'https://github.com/your-org/your-project',
|
|
151
|
+
label: 'GitHub',
|
|
152
|
+
position: 'right',
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
footer: {
|
|
157
|
+
style: 'dark',
|
|
158
|
+
links: [
|
|
159
|
+
{
|
|
160
|
+
title: 'Docs',
|
|
161
|
+
items: [
|
|
162
|
+
{
|
|
163
|
+
label: 'Getting Started',
|
|
164
|
+
to: '/docs/guides/getting-started/installation',
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
copyright: `Copyright © ${new Date().getFullYear()} Your Company`,
|
|
170
|
+
},
|
|
171
|
+
prism: {
|
|
172
|
+
theme: prismThemes.github,
|
|
173
|
+
darkTheme: prismThemes.dracula,
|
|
174
|
+
},
|
|
175
|
+
} satisfies Preset.ThemeConfig,
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export default config;
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Step 4: Sidebar Generation
|
|
182
|
+
|
|
183
|
+
Auto-generate `sidebars.ts` from `.specweave/docs/public/`:
|
|
184
|
+
```typescript
|
|
185
|
+
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
|
|
186
|
+
|
|
187
|
+
const sidebars: SidebarsConfig = {
|
|
188
|
+
docs: [
|
|
189
|
+
{
|
|
190
|
+
type: 'category',
|
|
191
|
+
label: 'Overview',
|
|
192
|
+
items: [
|
|
193
|
+
'overview/introduction',
|
|
194
|
+
'overview/features',
|
|
195
|
+
'overview/philosophy',
|
|
196
|
+
],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
type: 'category',
|
|
200
|
+
label: 'Getting Started',
|
|
201
|
+
items: [
|
|
202
|
+
'guides/getting-started/installation',
|
|
203
|
+
'guides/getting-started/quickstart',
|
|
204
|
+
],
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
type: 'category',
|
|
208
|
+
label: 'API Reference',
|
|
209
|
+
items: [
|
|
210
|
+
'api/overview',
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export default sidebars;
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Step 5: Content Copying
|
|
220
|
+
|
|
221
|
+
Copy and adapt documentation:
|
|
222
|
+
```bash
|
|
223
|
+
# Copy public docs to Docusaurus
|
|
224
|
+
cp -r .specweave/docs/public/* docs-site/docs/
|
|
225
|
+
|
|
226
|
+
# Update internal links
|
|
227
|
+
# SpecWeave: /docs/overview/introduction
|
|
228
|
+
# Docusaurus: /docs/overview/introduction (works!)
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Step 6: Mermaid Support
|
|
232
|
+
|
|
233
|
+
Add Mermaid diagram support:
|
|
234
|
+
```bash
|
|
235
|
+
npm install @docusaurus/theme-mermaid
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
Update config:
|
|
239
|
+
```typescript
|
|
240
|
+
markdown: {
|
|
241
|
+
mermaid: true,
|
|
242
|
+
},
|
|
243
|
+
themes: ['@docusaurus/theme-mermaid'],
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Step 7: Search Setup
|
|
247
|
+
|
|
248
|
+
**Option A: Local Search (Free)**
|
|
249
|
+
```bash
|
|
250
|
+
npm install @easyops-cn/docusaurus-search-local
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**Option B: Algolia (Recommended for public docs)**
|
|
254
|
+
```typescript
|
|
255
|
+
algolia: {
|
|
256
|
+
appId: 'YOUR_APP_ID',
|
|
257
|
+
apiKey: 'YOUR_SEARCH_API_KEY',
|
|
258
|
+
indexName: 'YOUR_INDEX_NAME',
|
|
259
|
+
contextualSearch: true,
|
|
260
|
+
},
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Step 8: Deployment
|
|
264
|
+
|
|
265
|
+
**Vercel:**
|
|
266
|
+
```json
|
|
267
|
+
{
|
|
268
|
+
"buildCommand": "npm run build",
|
|
269
|
+
"outputDirectory": "build",
|
|
270
|
+
"installCommand": "npm install"
|
|
271
|
+
}
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
**Netlify:**
|
|
275
|
+
```toml
|
|
276
|
+
[build]
|
|
277
|
+
command = "npm run build"
|
|
278
|
+
publish = "build"
|
|
279
|
+
|
|
280
|
+
[[redirects]]
|
|
281
|
+
from = "/*"
|
|
282
|
+
to = "/index.html"
|
|
283
|
+
status = 200
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
**GitHub Pages:**
|
|
287
|
+
```yaml
|
|
288
|
+
# .github/workflows/deploy.yml
|
|
289
|
+
name: Deploy to GitHub Pages
|
|
290
|
+
|
|
291
|
+
on:
|
|
292
|
+
push:
|
|
293
|
+
branches: [main]
|
|
294
|
+
|
|
295
|
+
jobs:
|
|
296
|
+
deploy:
|
|
297
|
+
runs-on: ubuntu-latest
|
|
298
|
+
steps:
|
|
299
|
+
- uses: actions/checkout@v3
|
|
300
|
+
- uses: actions/setup-node@v3
|
|
301
|
+
with:
|
|
302
|
+
node-version: 18
|
|
303
|
+
- run: npm ci
|
|
304
|
+
- run: npm run build
|
|
305
|
+
- uses: peaceiris/actions-gh-pages@v3
|
|
306
|
+
with:
|
|
307
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
308
|
+
publish_dir: ./do
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
## Best Practices
|
|
312
|
+
|
|
313
|
+
### 1. Frontmatter Convention
|
|
314
|
+
|
|
315
|
+
Add frontmatter to each doc:
|
|
316
|
+
```yaml
|
|
317
|
+
---
|
|
318
|
+
sidebar_position: 1
|
|
319
|
+
title: Introduction
|
|
320
|
+
description: Get started with SpecWeave
|
|
321
|
+
---
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### 2. Navigation Structure
|
|
325
|
+
|
|
326
|
+
```
|
|
327
|
+
docs/
|
|
328
|
+
├── overview/ # High-level concepts
|
|
329
|
+
├── guides/ # How-to guides
|
|
330
|
+
│ ├── getting-started/
|
|
331
|
+
│ ├── features/
|
|
332
|
+
│ └── advanced/
|
|
333
|
+
├── api/ # API reference
|
|
334
|
+
└── resources/ # Additional resources
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### 3. Versioning (Optional)
|
|
338
|
+
|
|
339
|
+
For mature projects:
|
|
340
|
+
```bash
|
|
341
|
+
npm run docusaurus docs:version 1.0.0
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
Creates:
|
|
345
|
+
```
|
|
346
|
+
versions.json
|
|
347
|
+
versioned_docs/
|
|
348
|
+
└── version-1.0.0/
|
|
349
|
+
versioned_sidebars/
|
|
350
|
+
└── version-1.0.0-sidebars.json
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### 4. Custom CSS
|
|
354
|
+
|
|
355
|
+
Customize theme in `src/css/custom.css`:
|
|
356
|
+
```css
|
|
357
|
+
:root {
|
|
358
|
+
--ifm-color-primary: #2e8555;
|
|
359
|
+
--ifm-code-font-size: 95%;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
[data-theme='dark'] {
|
|
363
|
+
--ifm-color-primary: #25c2a0;
|
|
364
|
+
}
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
### 5. SEO Optimization
|
|
368
|
+
|
|
369
|
+
```typescript
|
|
370
|
+
themeConfig: {
|
|
371
|
+
metadata: [
|
|
372
|
+
{name: 'keywords', content: 'specweave, documentation, ai, development'},
|
|
373
|
+
{name: 'twitter:card', content: 'summary_large_image'},
|
|
374
|
+
],
|
|
375
|
+
image: 'img/social-card.png',
|
|
376
|
+
}
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
## SpecWeave-Specific Handling
|
|
380
|
+
|
|
381
|
+
### 1. Increment References
|
|
382
|
+
|
|
383
|
+
Convert increment references:
|
|
384
|
+
```markdown
|
|
385
|
+
<!-- SpecWeave -->
|
|
386
|
+
See increment 0001-feature for details
|
|
387
|
+
|
|
388
|
+
<!-- Docusaurus -->
|
|
389
|
+
See [Increment 0001](https://github.com/org/repo/tree/main/.specweave/increments/0001-feature)
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
### 2. Internal Documentation Links
|
|
393
|
+
|
|
394
|
+
Hide internal docs references:
|
|
395
|
+
```markdown
|
|
396
|
+
<!-- Remove or convert these -->
|
|
397
|
+
See [Internal Architecture](../../internal/architecture/system-design.md)
|
|
398
|
+
|
|
399
|
+
<!-- To -->
|
|
400
|
+
<!-- Internal reference removed for public docs -->
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
### 3. Test Cases
|
|
404
|
+
|
|
405
|
+
Convert test case references to plain text:
|
|
406
|
+
```markdown
|
|
407
|
+
<!-- SpecWeave -->
|
|
408
|
+
Test Case: TC-0001
|
|
409
|
+
|
|
410
|
+
<!-- Docusaurus -->
|
|
411
|
+
**Test Coverage**: See GitHub test suite
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
## Example: Full Setup Script
|
|
415
|
+
|
|
416
|
+
```bash
|
|
417
|
+
#!/bin/bash
|
|
418
|
+
# setup-docusaurus.sh
|
|
419
|
+
|
|
420
|
+
echo "Setting up Docusaurus for SpecWeave documentation..."
|
|
421
|
+
|
|
422
|
+
# Create Docusaurus site
|
|
423
|
+
npx create-docusaurus@latest docs-site classic --typescript
|
|
424
|
+
cd docs-site
|
|
425
|
+
|
|
426
|
+
# Install dependencies
|
|
427
|
+
npm install @docusaurus/theme-mermaid
|
|
428
|
+
npm install @easyops-cn/docusaurus-search-local
|
|
429
|
+
|
|
430
|
+
# Copy public docs
|
|
431
|
+
cp -r ../.specweave/docs/public/* docs/
|
|
432
|
+
|
|
433
|
+
# Generate configuration
|
|
434
|
+
# (Use the skill to generate config files)
|
|
435
|
+
|
|
436
|
+
echo "Docusaurus setup complete!"
|
|
437
|
+
echo "Run 'npm start' in docs-site/ to preview"
|
|
438
|
+
echo "Run 'npm run build' to build for production"
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
## Validation Checklist
|
|
442
|
+
|
|
443
|
+
Before deployment, verify:
|
|
444
|
+
|
|
445
|
+
- [ ] All pages render correctly
|
|
446
|
+
- [ ] Navigation works (sidebar, breadcrumbs)
|
|
447
|
+
- [ ] Search functionality works
|
|
448
|
+
- [ ] Mermaid diagrams render
|
|
449
|
+
- [ ] Links are valid (no 404s)
|
|
450
|
+
- [ ] Mobile responsive
|
|
451
|
+
- [ ] Dark mode works
|
|
452
|
+
- [ ] SEO metadata present
|
|
453
|
+
- [ ] Custom domain configured (if applicable)
|
|
454
|
+
- [ ] CI/CD pipeline set up
|
|
455
|
+
- [ ] Analytics integrated (optional)
|
|
456
|
+
|
|
457
|
+
## Common Issues & Solutions
|
|
458
|
+
|
|
459
|
+
### Issue: Mermaid diagrams not rendering
|
|
460
|
+
**Solution**: Ensure `@docusaurus/theme-mermaid` installed and configured
|
|
461
|
+
|
|
462
|
+
### Issue: Search not working
|
|
463
|
+
**Solution**: Rebuild search index or check Algolia config
|
|
464
|
+
|
|
465
|
+
### Issue: Links broken after deployment
|
|
466
|
+
**Solution**: Check `baseUrl` in config matches deployment path
|
|
467
|
+
|
|
468
|
+
### Issue: Images not loading
|
|
469
|
+
**Solution**: Place images in `static/img/` and reference as `/img/name.png`
|
|
470
|
+
|
|
471
|
+
## Advanced: Multi-Project Documentation
|
|
472
|
+
|
|
473
|
+
For agencies managing multiple client projects:
|
|
474
|
+
|
|
475
|
+
```typescript
|
|
476
|
+
// Multi-repo support
|
|
477
|
+
const config: Config = {
|
|
478
|
+
plugins: [
|
|
479
|
+
[
|
|
480
|
+
'@docusaurus/plugin-content-docs',
|
|
481
|
+
{
|
|
482
|
+
id: 'client-a',
|
|
483
|
+
path: 'client-a-docs',
|
|
484
|
+
routeBasePath: 'client-a',
|
|
485
|
+
},
|
|
486
|
+
],
|
|
487
|
+
[
|
|
488
|
+
'@docusaurus/plugin-content-docs',
|
|
489
|
+
{
|
|
490
|
+
id: 'client-b',
|
|
491
|
+
path: 'client-b-docs',
|
|
492
|
+
routeBasePath: 'client-b',
|
|
493
|
+
},
|
|
494
|
+
],
|
|
495
|
+
],
|
|
496
|
+
};
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
## Output
|
|
500
|
+
|
|
501
|
+
After running this skill, you'll have:
|
|
502
|
+
|
|
503
|
+
1. ✅ `docs-site/` directory with Docusaurus
|
|
504
|
+
2. ✅ Configuration files (`docusaurus.config.ts`, `sidebars.ts`)
|
|
505
|
+
3. ✅ Converted documentation from `.specweave/docs/public/`
|
|
506
|
+
4. ✅ Deployment configuration (Vercel/Netlify/GitHub Pages)
|
|
507
|
+
5. ✅ Search functionality (local or Algolia)
|
|
508
|
+
6. ✅ Mermaid diagram support
|
|
509
|
+
7. ✅ Ready to deploy with `npm run build`
|
|
510
|
+
|
|
511
|
+
## Related Skills
|
|
512
|
+
|
|
513
|
+
- **docs-writer**: For creating documentation content
|
|
514
|
+
- **diagrams-architect**: For creating Mermaid diagrams
|
|
515
|
+
- **design-system-architect**: For custom theming
|
|
516
|
+
|
|
517
|
+
## References
|
|
518
|
+
|
|
519
|
+
- [Docusaurus Documentation](https://docusaurus.io/)
|
|
520
|
+
- [Docusaurus Deployment](https://docusaurus.io/docs/deployment)
|
|
521
|
+
- [Mermaid Plugin](https://docusaurus.io/docs/markdown-features/diagrams)
|
|
522
|
+
- [Algolia DocSearch](https://docsearch.algolia.com/)
|
|
523
|
+
|
|
524
|
+
---
|
|
525
|
+
|
|
526
|
+
**Pro Tip**: Run `npm start` during development for hot-reload preview. Your docs will be accessible at `http://localhost:3000`.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://spec-weave.com/schemas/mcp-config.json",
|
|
3
|
+
"mcpServers": {
|
|
4
|
+
"figma": {
|
|
5
|
+
"command": "npx",
|
|
6
|
+
"args": ["-y", "@modelcontextprotocol/server-figma"],
|
|
7
|
+
"env": {
|
|
8
|
+
"FIGMA_PERSONAL_ACCESS_TOKEN": "${FIGMA_PERSONAL_ACCESS_TOKEN}"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "specweave-figma",
|
|
3
|
+
"description": "Design-to-code workflow patterns for Figma (MCP-first). Requires Figma MCP server. Extracts design tokens, generates components (React/Angular/Vue/Svelte), scaffolds tests. Uses Atomic Design and TypeScript.",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "SpecWeave Team"
|
|
7
|
+
}
|
|
8
|
+
}
|