specweave 0.4.0 → 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 +1000 -252
- package/README.md +273 -180
- 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 +18 -0
- package/dist/adapters/adapter-base.d.ts +21 -0
- package/dist/adapters/adapter-base.d.ts.map +1 -1
- package/dist/adapters/adapter-base.js +28 -0
- package/dist/adapters/adapter-base.js.map +1 -1
- package/dist/adapters/adapter-interface.d.ts +41 -0
- package/dist/adapters/adapter-interface.d.ts.map +1 -1
- package/dist/adapters/claude/adapter.d.ts +85 -11
- package/dist/adapters/claude/adapter.d.ts.map +1 -1
- package/dist/adapters/claude/adapter.js +305 -37
- package/dist/adapters/claude/adapter.js.map +1 -1
- package/dist/adapters/copilot/adapter.d.ts +45 -2
- package/dist/adapters/copilot/adapter.d.ts.map +1 -1
- package/dist/adapters/copilot/adapter.js +226 -4
- package/dist/adapters/copilot/adapter.js.map +1 -1
- package/dist/adapters/cursor/adapter.d.ts +54 -0
- package/dist/adapters/cursor/adapter.d.ts.map +1 -1
- package/dist/adapters/cursor/adapter.js +192 -0
- package/dist/adapters/cursor/adapter.js.map +1 -1
- package/dist/adapters/generic/adapter.d.ts +43 -0
- package/dist/adapters/generic/adapter.d.ts.map +1 -1
- package/dist/adapters/generic/adapter.js +163 -0
- 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 +392 -123
- 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 +43 -0
- package/dist/cli/commands/plugin.d.ts.map +1 -0
- package/dist/cli/commands/plugin.js +307 -0
- package/dist/cli/commands/plugin.js.map +1 -0
- 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-detector.d.ts +96 -0
- package/dist/core/plugin-detector.d.ts.map +1 -0
- package/dist/core/plugin-detector.js +349 -0
- package/dist/core/plugin-detector.js.map +1 -0
- package/dist/core/plugin-loader.d.ts +131 -0
- package/dist/core/plugin-loader.d.ts.map +1 -0
- package/dist/core/plugin-loader.js +421 -0
- package/dist/core/plugin-loader.js.map +1 -0
- package/dist/core/plugin-manager.d.ts +144 -0
- package/dist/core/plugin-manager.d.ts.map +1 -0
- package/dist/core/plugin-manager.js +393 -0
- package/dist/core/plugin-manager.js.map +1 -0
- package/dist/core/schemas/plugin-manifest.schema.json +253 -0
- 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 +283 -0
- package/dist/core/types/plugin.d.ts.map +1 -0
- package/dist/core/types/plugin.js +49 -0
- package/dist/core/types/plugin.js.map +1 -0
- 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.d.ts +2 -2
- package/dist/integrations/jira/jira-mapper.js +2 -2
- 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 +24 -21
- 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 +131 -22
- 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-increment-plugin-detect.sh +142 -0
- package/plugins/specweave-core/hooks/post-task-completion.sh +265 -0
- package/plugins/specweave-core/hooks/pre-task-plugin-detect.sh +96 -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/adapter-base.ts +33 -0
- package/src/adapters/adapter-interface.ts +46 -0
- package/src/adapters/claude/adapter.ts +350 -39
- package/src/adapters/copilot/adapter.ts +267 -4
- package/src/adapters/cursor/adapter.ts +229 -0
- package/src/adapters/generic/adapter.ts +196 -0
- 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 -79
- 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/pre-implementation.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,443 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specweave.github.sync
|
|
3
|
+
description: Synchronize SpecWeave increment with GitHub issue. Updates issue with current progress, task checklist, labels, and comments. Bidirectional sync available.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Sync Increment with GitHub Issue
|
|
7
|
+
|
|
8
|
+
Synchronize the current state of a SpecWeave increment with its GitHub issue.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
/specweave:github:sync <increment-id> [options]
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Arguments
|
|
17
|
+
|
|
18
|
+
- `increment-id`: Increment ID (e.g., `0004` or `0004-plugin-architecture`)
|
|
19
|
+
|
|
20
|
+
## Options
|
|
21
|
+
|
|
22
|
+
- `--tasks`: Update task checklist in issue body
|
|
23
|
+
- `--comment`: Post progress comment (default)
|
|
24
|
+
- `--labels`: Update issue labels based on status
|
|
25
|
+
- `--force`: Force sync even if up-to-date
|
|
26
|
+
- `--direction`: Sync direction (`to-github`, `from-github`, `bidirectional`)
|
|
27
|
+
- `--all`: Sync all active increments
|
|
28
|
+
|
|
29
|
+
## Examples
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# Basic sync (post progress comment)
|
|
33
|
+
/specweave:github:sync 0004
|
|
34
|
+
|
|
35
|
+
# Update task checklist
|
|
36
|
+
/specweave:github:sync 0004 --tasks
|
|
37
|
+
|
|
38
|
+
# Full sync (comment + checklist + labels)
|
|
39
|
+
/specweave:github:sync 0004 --tasks --labels
|
|
40
|
+
|
|
41
|
+
# Force sync even if unchanged
|
|
42
|
+
/specweave:github:sync 0004 --force
|
|
43
|
+
|
|
44
|
+
# Sync from GitHub to SpecWeave
|
|
45
|
+
/specweave:github:sync 0004 --direction from-github
|
|
46
|
+
|
|
47
|
+
# Sync all increments
|
|
48
|
+
/specweave:github:sync --all
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## What This Command Does
|
|
52
|
+
|
|
53
|
+
### To GitHub (Default)
|
|
54
|
+
|
|
55
|
+
1. **Reads Increment State**
|
|
56
|
+
- Current task: Which task is in progress
|
|
57
|
+
- Completed tasks: Count and list
|
|
58
|
+
- Progress percentage: X/Y tasks
|
|
59
|
+
- Duration: Time since creation
|
|
60
|
+
|
|
61
|
+
2. **Checks Last Sync**
|
|
62
|
+
- Reads `.metadata.yaml`
|
|
63
|
+
- Compares current state with last sync
|
|
64
|
+
- Skips if no changes (unless `--force`)
|
|
65
|
+
|
|
66
|
+
3. **Generates Progress Comment**
|
|
67
|
+
```markdown
|
|
68
|
+
**Progress Update**
|
|
69
|
+
|
|
70
|
+
Completed: 7/48 tasks (15%)
|
|
71
|
+
Current: T-008 - Implement Cursor plugin compiler
|
|
72
|
+
Status: Week 1 in progress
|
|
73
|
+
|
|
74
|
+
**Recent Completions**:
|
|
75
|
+
- ✅ T-007: Implement Claude plugin installer (8h)
|
|
76
|
+
- ✅ T-006: Update adapter interface (4h)
|
|
77
|
+
- ✅ T-005: Implement PluginDetector (6h)
|
|
78
|
+
|
|
79
|
+
**Next Up**:
|
|
80
|
+
- ⏳ T-008: Implement Cursor compiler (6h)
|
|
81
|
+
- ⏸️ T-009: Implement Copilot compiler (6h)
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
🤖 Auto-synced by SpecWeave at 2025-10-30 14:30:00
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
4. **Posts Comment** (via GitHub CLI)
|
|
88
|
+
```bash
|
|
89
|
+
gh issue comment 130 --body "$(cat progress-comment.md)"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
5. **Updates Task Checklist** (if `--tasks`)
|
|
93
|
+
- Marks completed tasks with `[x]`
|
|
94
|
+
- Updates progress bars
|
|
95
|
+
- Refreshes issue body
|
|
96
|
+
|
|
97
|
+
6. **Updates Labels** (if `--labels`)
|
|
98
|
+
- Add `in-progress` when first task starts
|
|
99
|
+
- Add `testing` when implementation complete
|
|
100
|
+
- Add `blocked` if any tasks blocked
|
|
101
|
+
- Remove `planning` when work begins
|
|
102
|
+
|
|
103
|
+
7. **Updates Metadata**
|
|
104
|
+
- Save last sync timestamp
|
|
105
|
+
- Store comment ID
|
|
106
|
+
- Log sync count
|
|
107
|
+
|
|
108
|
+
### From GitHub
|
|
109
|
+
|
|
110
|
+
When `--direction from-github`:
|
|
111
|
+
|
|
112
|
+
1. **Fetches GitHub Issue**
|
|
113
|
+
```bash
|
|
114
|
+
gh issue view 130 --json state,labels,comments,body
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
2. **Parses Changes**
|
|
118
|
+
- Issue closed → Mark increment completed
|
|
119
|
+
- Labels changed → Update increment status
|
|
120
|
+
- New comments → Log to increment notes
|
|
121
|
+
- Assignees changed → Update metadata
|
|
122
|
+
|
|
123
|
+
3. **Updates Increment**
|
|
124
|
+
- Write to `.metadata.yaml`
|
|
125
|
+
- Update status in `spec.md` frontmatter
|
|
126
|
+
- Log changes to `.specweave/logs/github-sync.log`
|
|
127
|
+
|
|
128
|
+
4. **Reports Changes**
|
|
129
|
+
```
|
|
130
|
+
✅ Synced from GitHub issue #130
|
|
131
|
+
|
|
132
|
+
Changes detected:
|
|
133
|
+
- Issue closed by @developer1
|
|
134
|
+
- Comment added: "All tests passing!"
|
|
135
|
+
- Label added: ready-for-merge
|
|
136
|
+
|
|
137
|
+
Increment 0004 updated:
|
|
138
|
+
- Status: completed
|
|
139
|
+
- Completion note logged
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Bidirectional
|
|
143
|
+
|
|
144
|
+
When `--direction bidirectional`:
|
|
145
|
+
|
|
146
|
+
1. Detect conflicts (both sides changed)
|
|
147
|
+
2. Show diff of changes
|
|
148
|
+
3. Ask user which to keep (increment or issue)
|
|
149
|
+
4. Apply chosen changes
|
|
150
|
+
5. Update both sides for consistency
|
|
151
|
+
|
|
152
|
+
## Configuration
|
|
153
|
+
|
|
154
|
+
Settings from `.specweave/config.yaml`:
|
|
155
|
+
|
|
156
|
+
```yaml
|
|
157
|
+
plugins:
|
|
158
|
+
settings:
|
|
159
|
+
specweave-github:
|
|
160
|
+
# Auto-sync after tasks
|
|
161
|
+
auto_update_progress: true
|
|
162
|
+
|
|
163
|
+
# Sync frequency
|
|
164
|
+
sync_frequency: "every-task" # or "daily", "manual"
|
|
165
|
+
|
|
166
|
+
# What to sync
|
|
167
|
+
sync_settings:
|
|
168
|
+
post_comments: true
|
|
169
|
+
update_checklist: true
|
|
170
|
+
update_labels: true
|
|
171
|
+
include_file_changes: true
|
|
172
|
+
include_time_tracking: true
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## Output Format
|
|
176
|
+
|
|
177
|
+
### Success (To GitHub)
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
🔄 Syncing increment 0004 to GitHub...
|
|
181
|
+
|
|
182
|
+
✓ Increment loaded: 0004-plugin-architecture
|
|
183
|
+
✓ GitHub issue: #130
|
|
184
|
+
✓ Last synced: 30 minutes ago
|
|
185
|
+
|
|
186
|
+
Changes detected:
|
|
187
|
+
- 3 new tasks completed (T-005, T-006, T-007)
|
|
188
|
+
- Progress: 4/48 → 7/48 (15%)
|
|
189
|
+
- Current task: T-008
|
|
190
|
+
|
|
191
|
+
Syncing...
|
|
192
|
+
✓ Posted progress comment (ID: 1234567)
|
|
193
|
+
✓ Updated task checklist (7 tasks marked complete)
|
|
194
|
+
✓ Updated labels: +in-progress
|
|
195
|
+
✓ Metadata updated
|
|
196
|
+
|
|
197
|
+
✅ Sync Complete!
|
|
198
|
+
|
|
199
|
+
GitHub Issue: https://github.com/owner/repo/issues/130
|
|
200
|
+
Last synced: just now
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Success (From GitHub)
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
🔄 Syncing from GitHub issue #130...
|
|
207
|
+
|
|
208
|
+
✓ Fetched issue state
|
|
209
|
+
✓ Detected 2 changes
|
|
210
|
+
|
|
211
|
+
Changes from GitHub:
|
|
212
|
+
1. Issue closed by @developer1 (2 hours ago)
|
|
213
|
+
Comment: "Increment completed! All deliverables met."
|
|
214
|
+
|
|
215
|
+
2. Label added: "ready-for-release"
|
|
216
|
+
|
|
217
|
+
Applying changes...
|
|
218
|
+
✓ Marked increment as completed
|
|
219
|
+
✓ Logged closure note to .metadata.yaml
|
|
220
|
+
✓ Updated status in spec.md
|
|
221
|
+
|
|
222
|
+
✅ Sync Complete!
|
|
223
|
+
|
|
224
|
+
Increment 0004 is now marked as completed.
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### No Changes
|
|
228
|
+
|
|
229
|
+
```
|
|
230
|
+
ℹ️ Increment 0004 is up-to-date with GitHub issue #130
|
|
231
|
+
|
|
232
|
+
No changes since last sync (30 minutes ago).
|
|
233
|
+
|
|
234
|
+
Use --force to sync anyway.
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
### Conflicts (Bidirectional)
|
|
238
|
+
|
|
239
|
+
```
|
|
240
|
+
⚠️ Conflict detected!
|
|
241
|
+
|
|
242
|
+
Both increment and issue have changed since last sync.
|
|
243
|
+
|
|
244
|
+
Increment changes:
|
|
245
|
+
- 3 tasks completed locally
|
|
246
|
+
- Status: in_progress → testing
|
|
247
|
+
|
|
248
|
+
GitHub changes:
|
|
249
|
+
- Issue closed by @pm
|
|
250
|
+
- Status: open → closed
|
|
251
|
+
|
|
252
|
+
Choose resolution:
|
|
253
|
+
1. Keep increment state (reopen issue)
|
|
254
|
+
2. Keep GitHub state (close increment)
|
|
255
|
+
3. Manual resolution (abort sync)
|
|
256
|
+
|
|
257
|
+
Enter choice (1-3):
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
## Requirements
|
|
261
|
+
|
|
262
|
+
- GitHub CLI (`gh`) installed and authenticated
|
|
263
|
+
- Valid increment with GitHub issue
|
|
264
|
+
- Network connectivity
|
|
265
|
+
|
|
266
|
+
## Error Handling
|
|
267
|
+
|
|
268
|
+
**Increment not synced to GitHub**:
|
|
269
|
+
```
|
|
270
|
+
❌ Error: Increment '0004' is not synced to GitHub
|
|
271
|
+
|
|
272
|
+
No issue found in .metadata.yaml
|
|
273
|
+
|
|
274
|
+
Run /specweave:github:create-issue 0004 first.
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
**Issue not found**:
|
|
278
|
+
```
|
|
279
|
+
❌ Error: GitHub issue #130 not found
|
|
280
|
+
|
|
281
|
+
Possible causes:
|
|
282
|
+
- Issue was deleted
|
|
283
|
+
- Wrong repository
|
|
284
|
+
- Access revoked
|
|
285
|
+
|
|
286
|
+
Run /specweave:github:status 0004 to check state.
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
**Rate limit exceeded**:
|
|
290
|
+
```
|
|
291
|
+
⚠️ GitHub API rate limit exceeded
|
|
292
|
+
|
|
293
|
+
Rate limit resets at: 2025-10-30 15:30:00
|
|
294
|
+
|
|
295
|
+
Sync will retry automatically when limit resets.
|
|
296
|
+
Alternatively, run with --manual for manual retry.
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
**Network error**:
|
|
300
|
+
```
|
|
301
|
+
❌ Error: Network error while syncing
|
|
302
|
+
|
|
303
|
+
Failed to connect to GitHub API.
|
|
304
|
+
|
|
305
|
+
Check:
|
|
306
|
+
1. Internet connection
|
|
307
|
+
2. GitHub status: https://githubstatus.com
|
|
308
|
+
3. Firewall settings
|
|
309
|
+
|
|
310
|
+
Retry: /specweave:github:sync 0004
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
## Related Commands
|
|
314
|
+
|
|
315
|
+
- `/specweave:github:create-issue <increment-id>`: Create issue first
|
|
316
|
+
- `/specweave:github:close-issue <increment-id>`: Close on completion
|
|
317
|
+
- `/specweave:github:status <increment-id>`: Check sync status
|
|
318
|
+
|
|
319
|
+
## Tips
|
|
320
|
+
|
|
321
|
+
1. **Auto-Sync**: Enable `auto_update_progress: true` for automatic sync after each task
|
|
322
|
+
|
|
323
|
+
2. **Manual Sync**: Disable auto-sync and run `/specweave:github:sync` manually when needed
|
|
324
|
+
|
|
325
|
+
3. **Sync All**: Use `--all` to sync all increments at once (useful for daily standup)
|
|
326
|
+
|
|
327
|
+
4. **Bidirectional**: Use `--direction bidirectional` to detect and resolve conflicts
|
|
328
|
+
|
|
329
|
+
5. **Dry Run**: Add `--dry-run` to preview changes without applying them
|
|
330
|
+
|
|
331
|
+
## Advanced
|
|
332
|
+
|
|
333
|
+
### Scheduled Sync
|
|
334
|
+
|
|
335
|
+
Run sync on a schedule (via cron or GitHub Actions):
|
|
336
|
+
|
|
337
|
+
```bash
|
|
338
|
+
# Daily sync at 9 AM
|
|
339
|
+
0 9 * * * cd /path/to/project && /specweave:github:sync --all
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### Webhook Integration
|
|
343
|
+
|
|
344
|
+
Configure webhook for instant sync from GitHub:
|
|
345
|
+
|
|
346
|
+
```yaml
|
|
347
|
+
# .specweave/config.yaml
|
|
348
|
+
plugins:
|
|
349
|
+
settings:
|
|
350
|
+
specweave-github:
|
|
351
|
+
webhook:
|
|
352
|
+
enabled: true
|
|
353
|
+
port: 3000
|
|
354
|
+
secret: "your-webhook-secret"
|
|
355
|
+
events:
|
|
356
|
+
- issues
|
|
357
|
+
- issue_comment
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
Then:
|
|
361
|
+
```bash
|
|
362
|
+
# Start webhook server
|
|
363
|
+
specweave github webhook-server
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Custom Sync Rules
|
|
367
|
+
|
|
368
|
+
Define custom sync rules:
|
|
369
|
+
|
|
370
|
+
```yaml
|
|
371
|
+
plugins:
|
|
372
|
+
settings:
|
|
373
|
+
specweave-github:
|
|
374
|
+
sync_rules:
|
|
375
|
+
# Sync only high-priority increments daily
|
|
376
|
+
- match: "priority == 'P0' OR priority == 'P1'"
|
|
377
|
+
frequency: "daily"
|
|
378
|
+
|
|
379
|
+
# Sync low-priority manually
|
|
380
|
+
- match: "priority == 'P2' OR priority == 'P3'"
|
|
381
|
+
frequency: "manual"
|
|
382
|
+
|
|
383
|
+
# Sync completed increments once (no updates)
|
|
384
|
+
- match: "status == 'completed'"
|
|
385
|
+
frequency: "once"
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
### Conflict Resolution Strategy
|
|
389
|
+
|
|
390
|
+
Configure automatic conflict resolution:
|
|
391
|
+
|
|
392
|
+
```yaml
|
|
393
|
+
plugins:
|
|
394
|
+
settings:
|
|
395
|
+
specweave-github:
|
|
396
|
+
conflict_resolution:
|
|
397
|
+
# Always prefer increment state
|
|
398
|
+
strategy: "increment-wins"
|
|
399
|
+
|
|
400
|
+
# Or always prefer GitHub state
|
|
401
|
+
# strategy: "github-wins"
|
|
402
|
+
|
|
403
|
+
# Or always prompt user
|
|
404
|
+
# strategy: "manual"
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
### Sync Filters
|
|
408
|
+
|
|
409
|
+
Sync only specific data:
|
|
410
|
+
|
|
411
|
+
```bash
|
|
412
|
+
# Sync only comments (no checklist/labels)
|
|
413
|
+
/specweave:github:sync 0004 --filter comments
|
|
414
|
+
|
|
415
|
+
# Sync only labels
|
|
416
|
+
/specweave:github:sync 0004 --filter labels
|
|
417
|
+
|
|
418
|
+
# Sync everything except comments
|
|
419
|
+
/specweave:github:sync 0004 --exclude comments
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
### Batch Sync
|
|
423
|
+
|
|
424
|
+
Sync multiple increments efficiently:
|
|
425
|
+
|
|
426
|
+
```bash
|
|
427
|
+
# Sync all in-progress increments
|
|
428
|
+
/specweave:github:sync --status in_progress
|
|
429
|
+
|
|
430
|
+
# Sync all priority P0/P1
|
|
431
|
+
/specweave:github:sync --priority P0,P1
|
|
432
|
+
|
|
433
|
+
# Sync increments modified today
|
|
434
|
+
/specweave:github:sync --modified-since today
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
**Command**: `/specweave:github:sync`
|
|
440
|
+
**Plugin**: specweave-github
|
|
441
|
+
**Agent**: github-manager
|
|
442
|
+
**Version**: 1.0.0
|
|
443
|
+
**Last Updated**: 2025-10-30
|