@lvlup-sw/exarchos 2.4.3 → 2.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/plugin.json +7 -2
- package/AGENTS.md +2 -2
- package/README.md +91 -57
- package/agents/.gitkeep +0 -0
- package/agents/fixer.md +62 -0
- package/agents/implementer.md +68 -0
- package/agents/reviewer.md +50 -0
- package/commands/dogfood.md +31 -0
- package/commands/ideate.md +1 -1
- package/commands/oneshot.md +178 -0
- package/commands/plan.md +1 -1
- package/commands/prune.md +90 -0
- package/commands/review.md +58 -0
- package/dist/exarchos.js +582 -142
- package/hooks/hooks.json +8 -0
- package/package.json +18 -6
- package/scripts/sync-versions.sh +31 -22
- package/skills/{brainstorming → claude/brainstorming}/SKILL.md +16 -0
- package/skills/{brainstorming → claude/brainstorming}/references/design-template.md +9 -0
- package/skills/{cleanup → claude/cleanup}/SKILL.md +6 -0
- package/skills/{debug → claude/debug}/SKILL.md +41 -0
- package/skills/{debug → claude/debug}/references/hotfix-track.md +12 -49
- package/skills/{debug → claude/debug}/references/investigation-checklist.md +3 -3
- package/skills/{debug → claude/debug}/references/thorough-track.md +12 -42
- package/skills/{delegation → claude/delegation}/SKILL.md +128 -40
- package/skills/{delegation → claude/delegation}/references/agent-teams-saga.md +4 -1
- package/skills/claude/delegation/references/fix-mode.md +118 -0
- package/skills/{delegation → claude/delegation}/references/implementer-prompt.md +29 -1
- package/skills/{delegation → claude/delegation}/references/parallel-strategy.md +1 -1
- package/skills/{delegation → claude/delegation}/references/state-management.md +33 -0
- package/skills/{delegation → claude/delegation}/references/troubleshooting.md +2 -2
- package/skills/{delegation → claude/delegation}/references/workflow-steps.md +6 -10
- package/skills/{delegation → claude/delegation}/references/worktree-enforcement.md +13 -7
- package/skills/claude/dogfood/SKILL.md +235 -0
- package/skills/claude/dogfood/references/report-template.md +109 -0
- package/skills/claude/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/{git-worktrees → claude/git-worktrees}/SKILL.md +6 -9
- package/skills/{implementation-planning → claude/implementation-planning}/SKILL.md +32 -27
- package/skills/claude/implementation-planning/references/task-template.md +63 -0
- package/skills/{implementation-planning → claude/implementation-planning}/references/testing-strategy-guide.md +22 -1
- package/skills/{implementation-planning → claude/implementation-planning}/references/worked-example.md +2 -2
- package/skills/claude/oneshot-workflow/SKILL.md +468 -0
- package/skills/claude/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/claude/prune-workflows/SKILL.md +290 -0
- package/skills/claude/prune-workflows/references/safeguards.md +74 -0
- package/skills/{quality-review → claude/quality-review}/SKILL.md +105 -10
- package/skills/{quality-review → claude/quality-review}/references/auto-transition.md +1 -1
- package/skills/claude/quality-review/references/axiom-integration.md +135 -0
- package/skills/{refactor → claude/refactor}/SKILL.md +32 -39
- package/skills/{refactor → claude/refactor}/references/doc-update-checklist.md +2 -3
- package/skills/{refactor → claude/refactor}/references/explore-checklist.md +4 -6
- package/skills/{refactor → claude/refactor}/references/overhaul-track.md +20 -50
- package/skills/{refactor → claude/refactor/references}/phases/polish-implement.md +2 -2
- package/skills/{refactor → claude/refactor/references}/phases/polish-validate.md +1 -1
- package/skills/{refactor → claude/refactor}/references/polish-track.md +18 -46
- package/skills/{shepherd → claude/shepherd}/SKILL.md +42 -10
- package/skills/{shepherd → claude/shepherd}/references/fix-strategies.md +1 -2
- package/skills/claude/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/{spec-review → claude/spec-review}/SKILL.md +48 -10
- package/skills/{spec-review → claude/spec-review}/references/worked-example.md +1 -1
- package/skills/{synthesis → claude/synthesis}/SKILL.md +72 -10
- package/skills/{synthesis → claude/synthesis}/references/github-native-stacking.md +3 -4
- package/skills/{synthesis → claude/synthesis}/references/synthesis-steps.md +11 -13
- package/skills/{workflow-state → claude/workflow-state}/SKILL.md +50 -6
- package/skills/{workflow-state → claude/workflow-state}/references/mcp-tool-reference.md +5 -5
- package/skills/{workflow-state → claude/workflow-state}/references/phase-transitions.md +28 -3
- package/skills/codex/brainstorming/SKILL.md +182 -0
- package/skills/codex/brainstorming/references/design-template.md +107 -0
- package/skills/codex/brainstorming/references/worked-example.md +58 -0
- package/skills/codex/cleanup/SKILL.md +169 -0
- package/skills/codex/cleanup/references/merge-verification.md +40 -0
- package/skills/codex/debug/SKILL.md +247 -0
- package/skills/codex/debug/references/hotfix-track.md +105 -0
- package/skills/codex/debug/references/investigation-checklist.md +217 -0
- package/skills/codex/debug/references/rca-template.md +150 -0
- package/skills/codex/debug/references/state-schema.md +294 -0
- package/skills/codex/debug/references/thorough-track.md +171 -0
- package/skills/codex/debug/references/triage-questions.md +155 -0
- package/skills/codex/debug/references/troubleshooting.md +47 -0
- package/skills/codex/delegation/SKILL.md +353 -0
- package/skills/codex/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/codex/delegation/references/agent-teams-saga.md +254 -0
- package/skills/codex/delegation/references/fix-mode.md +118 -0
- package/skills/codex/delegation/references/fixer-prompt.md +174 -0
- package/skills/codex/delegation/references/implementer-prompt.md +401 -0
- package/skills/codex/delegation/references/parallel-strategy.md +124 -0
- package/skills/codex/delegation/references/pbt-patterns.md +172 -0
- package/skills/codex/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/codex/delegation/references/rationalization-refutation.md +15 -0
- package/skills/codex/delegation/references/state-management.md +84 -0
- package/skills/codex/delegation/references/testing-patterns.md +146 -0
- package/skills/codex/delegation/references/troubleshooting.md +109 -0
- package/skills/codex/delegation/references/worked-example.md +104 -0
- package/skills/codex/delegation/references/workflow-steps.md +131 -0
- package/skills/codex/delegation/references/worktree-enforcement.md +71 -0
- package/skills/codex/dogfood/SKILL.md +235 -0
- package/skills/codex/dogfood/references/report-template.md +109 -0
- package/skills/codex/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/codex/git-worktrees/SKILL.md +193 -0
- package/skills/codex/git-worktrees/references/commands-reference.md +78 -0
- package/skills/codex/implementation-planning/SKILL.md +289 -0
- package/skills/codex/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/codex/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/codex/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/codex/implementation-planning/references/task-template.md +63 -0
- package/skills/codex/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/codex/implementation-planning/references/worked-example.md +76 -0
- package/skills/codex/oneshot-workflow/SKILL.md +468 -0
- package/skills/codex/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/codex/prune-workflows/SKILL.md +290 -0
- package/skills/codex/prune-workflows/references/safeguards.md +74 -0
- package/skills/codex/quality-review/SKILL.md +371 -0
- package/skills/codex/quality-review/references/auto-transition.md +47 -0
- package/skills/codex/quality-review/references/axiom-integration.md +135 -0
- package/skills/codex/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/codex/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/codex/quality-review/references/gate-execution.md +60 -0
- package/skills/codex/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/codex/quality-review/references/review-report-template.md +65 -0
- package/skills/codex/quality-review/references/security-checklist.md +79 -0
- package/skills/codex/quality-review/references/typescript-standards.md +24 -0
- package/skills/codex/refactor/SKILL.md +196 -0
- package/skills/codex/refactor/references/brief-template.md +81 -0
- package/skills/codex/refactor/references/doc-update-checklist.md +113 -0
- package/skills/codex/refactor/references/explore-checklist.md +79 -0
- package/skills/codex/refactor/references/overhaul-track.md +194 -0
- package/skills/codex/refactor/references/phases/auto-chain.md +267 -0
- package/skills/codex/refactor/references/phases/brief.md +176 -0
- package/skills/codex/refactor/references/phases/explore.md +132 -0
- package/skills/codex/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/codex/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/codex/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/codex/refactor/references/phases/polish-implement.md +347 -0
- package/skills/codex/refactor/references/phases/polish-validate.md +218 -0
- package/skills/codex/refactor/references/phases/update-docs.md +234 -0
- package/skills/codex/refactor/references/polish-track.md +152 -0
- package/skills/codex/shepherd/SKILL.md +251 -0
- package/skills/codex/shepherd/references/assess-checklist.md +170 -0
- package/skills/codex/shepherd/references/escalation-criteria.md +53 -0
- package/skills/codex/shepherd/references/fix-strategies.md +289 -0
- package/skills/codex/shepherd/references/gate-event-emission.md +47 -0
- package/skills/codex/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/codex/spec-review/SKILL.md +294 -0
- package/skills/codex/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/codex/spec-review/references/review-checklist.md +79 -0
- package/skills/codex/spec-review/references/worked-example.md +72 -0
- package/skills/codex/synthesis/SKILL.md +217 -0
- package/skills/codex/synthesis/references/github-native-stacking.md +135 -0
- package/skills/codex/synthesis/references/merge-ordering.md +50 -0
- package/skills/codex/synthesis/references/pr-descriptions.md +87 -0
- package/skills/codex/synthesis/references/synthesis-steps.md +145 -0
- package/skills/codex/synthesis/references/troubleshooting.md +115 -0
- package/skills/codex/workflow-state/SKILL.md +254 -0
- package/skills/codex/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/codex/workflow-state/references/phase-transitions.md +206 -0
- package/skills/copilot/brainstorming/SKILL.md +182 -0
- package/skills/copilot/brainstorming/references/design-template.md +107 -0
- package/skills/copilot/brainstorming/references/worked-example.md +58 -0
- package/skills/copilot/cleanup/SKILL.md +169 -0
- package/skills/copilot/cleanup/references/merge-verification.md +40 -0
- package/skills/copilot/debug/SKILL.md +247 -0
- package/skills/copilot/debug/references/hotfix-track.md +105 -0
- package/skills/copilot/debug/references/investigation-checklist.md +217 -0
- package/skills/copilot/debug/references/rca-template.md +150 -0
- package/skills/copilot/debug/references/state-schema.md +294 -0
- package/skills/copilot/debug/references/thorough-track.md +171 -0
- package/skills/copilot/debug/references/triage-questions.md +155 -0
- package/skills/copilot/debug/references/troubleshooting.md +47 -0
- package/skills/copilot/delegation/SKILL.md +345 -0
- package/skills/copilot/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/copilot/delegation/references/agent-teams-saga.md +254 -0
- package/skills/copilot/delegation/references/fix-mode.md +118 -0
- package/skills/copilot/delegation/references/fixer-prompt.md +174 -0
- package/skills/copilot/delegation/references/implementer-prompt.md +401 -0
- package/skills/copilot/delegation/references/parallel-strategy.md +124 -0
- package/skills/copilot/delegation/references/pbt-patterns.md +172 -0
- package/skills/copilot/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/copilot/delegation/references/rationalization-refutation.md +15 -0
- package/skills/copilot/delegation/references/state-management.md +84 -0
- package/skills/copilot/delegation/references/testing-patterns.md +146 -0
- package/skills/copilot/delegation/references/troubleshooting.md +109 -0
- package/skills/copilot/delegation/references/worked-example.md +104 -0
- package/skills/copilot/delegation/references/workflow-steps.md +131 -0
- package/skills/copilot/delegation/references/worktree-enforcement.md +71 -0
- package/skills/copilot/dogfood/SKILL.md +235 -0
- package/skills/copilot/dogfood/references/report-template.md +109 -0
- package/skills/copilot/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/copilot/git-worktrees/SKILL.md +193 -0
- package/skills/copilot/git-worktrees/references/commands-reference.md +78 -0
- package/skills/copilot/implementation-planning/SKILL.md +289 -0
- package/skills/copilot/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/copilot/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/copilot/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/copilot/implementation-planning/references/task-template.md +63 -0
- package/skills/copilot/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/copilot/implementation-planning/references/worked-example.md +76 -0
- package/skills/copilot/oneshot-workflow/SKILL.md +468 -0
- package/skills/copilot/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/copilot/prune-workflows/SKILL.md +290 -0
- package/skills/copilot/prune-workflows/references/safeguards.md +74 -0
- package/skills/copilot/quality-review/SKILL.md +371 -0
- package/skills/copilot/quality-review/references/auto-transition.md +47 -0
- package/skills/copilot/quality-review/references/axiom-integration.md +135 -0
- package/skills/copilot/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/copilot/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/copilot/quality-review/references/gate-execution.md +60 -0
- package/skills/copilot/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/copilot/quality-review/references/review-report-template.md +65 -0
- package/skills/copilot/quality-review/references/security-checklist.md +79 -0
- package/skills/copilot/quality-review/references/typescript-standards.md +24 -0
- package/skills/copilot/refactor/SKILL.md +196 -0
- package/skills/copilot/refactor/references/brief-template.md +81 -0
- package/skills/copilot/refactor/references/doc-update-checklist.md +113 -0
- package/skills/copilot/refactor/references/explore-checklist.md +79 -0
- package/skills/copilot/refactor/references/overhaul-track.md +194 -0
- package/skills/copilot/refactor/references/phases/auto-chain.md +267 -0
- package/skills/copilot/refactor/references/phases/brief.md +176 -0
- package/skills/copilot/refactor/references/phases/explore.md +132 -0
- package/skills/copilot/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/copilot/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/copilot/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/copilot/refactor/references/phases/polish-implement.md +347 -0
- package/skills/copilot/refactor/references/phases/polish-validate.md +218 -0
- package/skills/copilot/refactor/references/phases/update-docs.md +234 -0
- package/skills/copilot/refactor/references/polish-track.md +152 -0
- package/skills/copilot/shepherd/SKILL.md +251 -0
- package/skills/copilot/shepherd/references/assess-checklist.md +170 -0
- package/skills/copilot/shepherd/references/escalation-criteria.md +53 -0
- package/skills/copilot/shepherd/references/fix-strategies.md +289 -0
- package/skills/copilot/shepherd/references/gate-event-emission.md +47 -0
- package/skills/copilot/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/copilot/spec-review/SKILL.md +294 -0
- package/skills/copilot/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/copilot/spec-review/references/review-checklist.md +79 -0
- package/skills/copilot/spec-review/references/worked-example.md +72 -0
- package/skills/copilot/synthesis/SKILL.md +217 -0
- package/skills/copilot/synthesis/references/github-native-stacking.md +135 -0
- package/skills/copilot/synthesis/references/merge-ordering.md +50 -0
- package/skills/copilot/synthesis/references/pr-descriptions.md +87 -0
- package/skills/copilot/synthesis/references/synthesis-steps.md +145 -0
- package/skills/copilot/synthesis/references/troubleshooting.md +115 -0
- package/skills/copilot/workflow-state/SKILL.md +254 -0
- package/skills/copilot/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/copilot/workflow-state/references/phase-transitions.md +206 -0
- package/skills/cursor/brainstorming/SKILL.md +182 -0
- package/skills/cursor/brainstorming/references/design-template.md +107 -0
- package/skills/cursor/brainstorming/references/worked-example.md +58 -0
- package/skills/cursor/cleanup/SKILL.md +169 -0
- package/skills/cursor/cleanup/references/merge-verification.md +40 -0
- package/skills/cursor/debug/SKILL.md +247 -0
- package/skills/cursor/debug/references/hotfix-track.md +105 -0
- package/skills/cursor/debug/references/investigation-checklist.md +217 -0
- package/skills/cursor/debug/references/rca-template.md +150 -0
- package/skills/cursor/debug/references/state-schema.md +294 -0
- package/skills/cursor/debug/references/thorough-track.md +171 -0
- package/skills/cursor/debug/references/triage-questions.md +155 -0
- package/skills/cursor/debug/references/troubleshooting.md +47 -0
- package/skills/cursor/delegation/SKILL.md +351 -0
- package/skills/cursor/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/cursor/delegation/references/agent-teams-saga.md +254 -0
- package/skills/cursor/delegation/references/fix-mode.md +118 -0
- package/skills/cursor/delegation/references/fixer-prompt.md +174 -0
- package/skills/cursor/delegation/references/implementer-prompt.md +401 -0
- package/skills/cursor/delegation/references/parallel-strategy.md +124 -0
- package/skills/cursor/delegation/references/pbt-patterns.md +172 -0
- package/skills/cursor/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/cursor/delegation/references/rationalization-refutation.md +15 -0
- package/skills/cursor/delegation/references/state-management.md +84 -0
- package/skills/cursor/delegation/references/testing-patterns.md +146 -0
- package/skills/cursor/delegation/references/troubleshooting.md +109 -0
- package/skills/cursor/delegation/references/worked-example.md +104 -0
- package/skills/cursor/delegation/references/workflow-steps.md +131 -0
- package/skills/cursor/delegation/references/worktree-enforcement.md +71 -0
- package/skills/cursor/dogfood/SKILL.md +235 -0
- package/skills/cursor/dogfood/references/report-template.md +109 -0
- package/skills/cursor/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/cursor/git-worktrees/SKILL.md +193 -0
- package/skills/cursor/git-worktrees/references/commands-reference.md +78 -0
- package/skills/cursor/implementation-planning/SKILL.md +289 -0
- package/skills/cursor/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/cursor/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/cursor/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/cursor/implementation-planning/references/task-template.md +63 -0
- package/skills/cursor/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/cursor/implementation-planning/references/worked-example.md +76 -0
- package/skills/cursor/oneshot-workflow/SKILL.md +468 -0
- package/skills/cursor/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/cursor/prune-workflows/SKILL.md +290 -0
- package/skills/cursor/prune-workflows/references/safeguards.md +74 -0
- package/skills/cursor/quality-review/SKILL.md +371 -0
- package/skills/cursor/quality-review/references/auto-transition.md +47 -0
- package/skills/cursor/quality-review/references/axiom-integration.md +135 -0
- package/skills/cursor/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/cursor/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/cursor/quality-review/references/gate-execution.md +60 -0
- package/skills/cursor/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/cursor/quality-review/references/review-report-template.md +65 -0
- package/skills/cursor/quality-review/references/security-checklist.md +79 -0
- package/skills/cursor/quality-review/references/typescript-standards.md +24 -0
- package/skills/cursor/refactor/SKILL.md +196 -0
- package/skills/cursor/refactor/references/brief-template.md +81 -0
- package/skills/cursor/refactor/references/doc-update-checklist.md +113 -0
- package/skills/cursor/refactor/references/explore-checklist.md +79 -0
- package/skills/cursor/refactor/references/overhaul-track.md +194 -0
- package/skills/cursor/refactor/references/phases/auto-chain.md +267 -0
- package/skills/cursor/refactor/references/phases/brief.md +176 -0
- package/skills/cursor/refactor/references/phases/explore.md +132 -0
- package/skills/cursor/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/cursor/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/cursor/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/cursor/refactor/references/phases/polish-implement.md +347 -0
- package/skills/cursor/refactor/references/phases/polish-validate.md +218 -0
- package/skills/cursor/refactor/references/phases/update-docs.md +234 -0
- package/skills/cursor/refactor/references/polish-track.md +152 -0
- package/skills/cursor/shepherd/SKILL.md +251 -0
- package/skills/cursor/shepherd/references/assess-checklist.md +170 -0
- package/skills/cursor/shepherd/references/escalation-criteria.md +53 -0
- package/skills/cursor/shepherd/references/fix-strategies.md +289 -0
- package/skills/cursor/shepherd/references/gate-event-emission.md +47 -0
- package/skills/cursor/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/cursor/spec-review/SKILL.md +294 -0
- package/skills/cursor/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/cursor/spec-review/references/review-checklist.md +79 -0
- package/skills/cursor/spec-review/references/worked-example.md +72 -0
- package/skills/cursor/synthesis/SKILL.md +217 -0
- package/skills/cursor/synthesis/references/github-native-stacking.md +135 -0
- package/skills/cursor/synthesis/references/merge-ordering.md +50 -0
- package/skills/cursor/synthesis/references/pr-descriptions.md +87 -0
- package/skills/cursor/synthesis/references/synthesis-steps.md +145 -0
- package/skills/cursor/synthesis/references/troubleshooting.md +115 -0
- package/skills/cursor/workflow-state/SKILL.md +254 -0
- package/skills/cursor/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/cursor/workflow-state/references/phase-transitions.md +206 -0
- package/skills/generic/brainstorming/SKILL.md +182 -0
- package/skills/generic/brainstorming/references/design-template.md +107 -0
- package/skills/generic/brainstorming/references/worked-example.md +58 -0
- package/skills/generic/cleanup/SKILL.md +169 -0
- package/skills/generic/cleanup/references/merge-verification.md +40 -0
- package/skills/generic/debug/SKILL.md +247 -0
- package/skills/generic/debug/references/hotfix-track.md +105 -0
- package/skills/generic/debug/references/investigation-checklist.md +217 -0
- package/skills/generic/debug/references/rca-template.md +150 -0
- package/skills/generic/debug/references/state-schema.md +294 -0
- package/skills/generic/debug/references/thorough-track.md +171 -0
- package/skills/generic/debug/references/triage-questions.md +155 -0
- package/skills/generic/debug/references/troubleshooting.md +47 -0
- package/skills/generic/delegation/SKILL.md +345 -0
- package/skills/generic/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/generic/delegation/references/agent-teams-saga.md +254 -0
- package/skills/generic/delegation/references/fix-mode.md +118 -0
- package/skills/generic/delegation/references/fixer-prompt.md +174 -0
- package/skills/generic/delegation/references/implementer-prompt.md +401 -0
- package/skills/generic/delegation/references/parallel-strategy.md +124 -0
- package/skills/generic/delegation/references/pbt-patterns.md +172 -0
- package/skills/generic/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/generic/delegation/references/rationalization-refutation.md +15 -0
- package/skills/generic/delegation/references/state-management.md +84 -0
- package/skills/generic/delegation/references/testing-patterns.md +146 -0
- package/skills/generic/delegation/references/troubleshooting.md +109 -0
- package/skills/generic/delegation/references/worked-example.md +104 -0
- package/skills/generic/delegation/references/workflow-steps.md +131 -0
- package/skills/generic/delegation/references/worktree-enforcement.md +71 -0
- package/skills/generic/dogfood/SKILL.md +235 -0
- package/skills/generic/dogfood/references/report-template.md +109 -0
- package/skills/generic/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/generic/git-worktrees/SKILL.md +193 -0
- package/skills/generic/git-worktrees/references/commands-reference.md +78 -0
- package/skills/generic/implementation-planning/SKILL.md +289 -0
- package/skills/generic/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/generic/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/generic/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/generic/implementation-planning/references/task-template.md +63 -0
- package/skills/generic/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/generic/implementation-planning/references/worked-example.md +76 -0
- package/skills/generic/oneshot-workflow/SKILL.md +468 -0
- package/skills/generic/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/generic/prune-workflows/SKILL.md +290 -0
- package/skills/generic/prune-workflows/references/safeguards.md +74 -0
- package/skills/generic/quality-review/SKILL.md +371 -0
- package/skills/generic/quality-review/references/auto-transition.md +47 -0
- package/skills/generic/quality-review/references/axiom-integration.md +135 -0
- package/skills/generic/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/generic/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/generic/quality-review/references/gate-execution.md +60 -0
- package/skills/generic/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/generic/quality-review/references/review-report-template.md +65 -0
- package/skills/generic/quality-review/references/security-checklist.md +79 -0
- package/skills/generic/quality-review/references/typescript-standards.md +24 -0
- package/skills/generic/refactor/SKILL.md +196 -0
- package/skills/generic/refactor/references/brief-template.md +81 -0
- package/skills/generic/refactor/references/doc-update-checklist.md +113 -0
- package/skills/generic/refactor/references/explore-checklist.md +79 -0
- package/skills/generic/refactor/references/overhaul-track.md +194 -0
- package/skills/generic/refactor/references/phases/auto-chain.md +267 -0
- package/skills/generic/refactor/references/phases/brief.md +176 -0
- package/skills/generic/refactor/references/phases/explore.md +132 -0
- package/skills/generic/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/generic/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/generic/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/generic/refactor/references/phases/polish-implement.md +347 -0
- package/skills/generic/refactor/references/phases/polish-validate.md +218 -0
- package/skills/generic/refactor/references/phases/update-docs.md +234 -0
- package/skills/generic/refactor/references/polish-track.md +152 -0
- package/skills/generic/shepherd/SKILL.md +251 -0
- package/skills/generic/shepherd/references/assess-checklist.md +170 -0
- package/skills/generic/shepherd/references/escalation-criteria.md +53 -0
- package/skills/generic/shepherd/references/fix-strategies.md +289 -0
- package/skills/generic/shepherd/references/gate-event-emission.md +47 -0
- package/skills/generic/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/generic/spec-review/SKILL.md +294 -0
- package/skills/generic/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/generic/spec-review/references/review-checklist.md +79 -0
- package/skills/generic/spec-review/references/worked-example.md +72 -0
- package/skills/generic/synthesis/SKILL.md +217 -0
- package/skills/generic/synthesis/references/github-native-stacking.md +135 -0
- package/skills/generic/synthesis/references/merge-ordering.md +50 -0
- package/skills/generic/synthesis/references/pr-descriptions.md +87 -0
- package/skills/generic/synthesis/references/synthesis-steps.md +145 -0
- package/skills/generic/synthesis/references/troubleshooting.md +115 -0
- package/skills/generic/workflow-state/SKILL.md +254 -0
- package/skills/generic/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/generic/workflow-state/references/phase-transitions.md +206 -0
- package/skills/opencode/brainstorming/SKILL.md +182 -0
- package/skills/opencode/brainstorming/references/design-template.md +107 -0
- package/skills/opencode/brainstorming/references/worked-example.md +58 -0
- package/skills/opencode/cleanup/SKILL.md +169 -0
- package/skills/opencode/cleanup/references/merge-verification.md +40 -0
- package/skills/opencode/debug/SKILL.md +247 -0
- package/skills/opencode/debug/references/hotfix-track.md +105 -0
- package/skills/opencode/debug/references/investigation-checklist.md +217 -0
- package/skills/opencode/debug/references/rca-template.md +150 -0
- package/skills/opencode/debug/references/state-schema.md +294 -0
- package/skills/opencode/debug/references/thorough-track.md +171 -0
- package/skills/opencode/debug/references/triage-questions.md +155 -0
- package/skills/opencode/debug/references/troubleshooting.md +47 -0
- package/skills/opencode/delegation/SKILL.md +353 -0
- package/skills/opencode/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/opencode/delegation/references/agent-teams-saga.md +254 -0
- package/skills/opencode/delegation/references/fix-mode.md +118 -0
- package/skills/opencode/delegation/references/fixer-prompt.md +174 -0
- package/skills/opencode/delegation/references/implementer-prompt.md +401 -0
- package/skills/opencode/delegation/references/parallel-strategy.md +124 -0
- package/skills/opencode/delegation/references/pbt-patterns.md +172 -0
- package/skills/opencode/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/opencode/delegation/references/rationalization-refutation.md +15 -0
- package/skills/opencode/delegation/references/state-management.md +84 -0
- package/skills/opencode/delegation/references/testing-patterns.md +146 -0
- package/skills/opencode/delegation/references/troubleshooting.md +109 -0
- package/skills/opencode/delegation/references/worked-example.md +104 -0
- package/skills/opencode/delegation/references/workflow-steps.md +131 -0
- package/skills/opencode/delegation/references/worktree-enforcement.md +71 -0
- package/skills/opencode/dogfood/SKILL.md +235 -0
- package/skills/opencode/dogfood/references/report-template.md +109 -0
- package/skills/opencode/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/opencode/git-worktrees/SKILL.md +193 -0
- package/skills/opencode/git-worktrees/references/commands-reference.md +78 -0
- package/skills/opencode/implementation-planning/SKILL.md +289 -0
- package/skills/opencode/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/opencode/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/opencode/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/opencode/implementation-planning/references/task-template.md +63 -0
- package/skills/opencode/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/opencode/implementation-planning/references/worked-example.md +76 -0
- package/skills/opencode/oneshot-workflow/SKILL.md +468 -0
- package/skills/opencode/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/opencode/prune-workflows/SKILL.md +290 -0
- package/skills/opencode/prune-workflows/references/safeguards.md +74 -0
- package/skills/opencode/quality-review/SKILL.md +371 -0
- package/skills/opencode/quality-review/references/auto-transition.md +47 -0
- package/skills/opencode/quality-review/references/axiom-integration.md +135 -0
- package/skills/opencode/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/opencode/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/opencode/quality-review/references/gate-execution.md +60 -0
- package/skills/opencode/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/opencode/quality-review/references/review-report-template.md +65 -0
- package/skills/opencode/quality-review/references/security-checklist.md +79 -0
- package/skills/opencode/quality-review/references/typescript-standards.md +24 -0
- package/skills/opencode/refactor/SKILL.md +196 -0
- package/skills/opencode/refactor/references/brief-template.md +81 -0
- package/skills/opencode/refactor/references/doc-update-checklist.md +113 -0
- package/skills/opencode/refactor/references/explore-checklist.md +79 -0
- package/skills/opencode/refactor/references/overhaul-track.md +194 -0
- package/skills/opencode/refactor/references/phases/auto-chain.md +267 -0
- package/skills/opencode/refactor/references/phases/brief.md +176 -0
- package/skills/opencode/refactor/references/phases/explore.md +132 -0
- package/skills/opencode/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/opencode/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/opencode/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/opencode/refactor/references/phases/polish-implement.md +347 -0
- package/skills/opencode/refactor/references/phases/polish-validate.md +218 -0
- package/skills/opencode/refactor/references/phases/update-docs.md +234 -0
- package/skills/opencode/refactor/references/polish-track.md +152 -0
- package/skills/opencode/shepherd/SKILL.md +251 -0
- package/skills/opencode/shepherd/references/assess-checklist.md +170 -0
- package/skills/opencode/shepherd/references/escalation-criteria.md +53 -0
- package/skills/opencode/shepherd/references/fix-strategies.md +289 -0
- package/skills/opencode/shepherd/references/gate-event-emission.md +47 -0
- package/skills/opencode/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/opencode/spec-review/SKILL.md +294 -0
- package/skills/opencode/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/opencode/spec-review/references/review-checklist.md +79 -0
- package/skills/opencode/spec-review/references/worked-example.md +72 -0
- package/skills/opencode/synthesis/SKILL.md +217 -0
- package/skills/opencode/synthesis/references/github-native-stacking.md +135 -0
- package/skills/opencode/synthesis/references/merge-ordering.md +50 -0
- package/skills/opencode/synthesis/references/pr-descriptions.md +87 -0
- package/skills/opencode/synthesis/references/synthesis-steps.md +145 -0
- package/skills/opencode/synthesis/references/troubleshooting.md +115 -0
- package/skills/opencode/workflow-state/SKILL.md +254 -0
- package/skills/opencode/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/opencode/workflow-state/references/phase-transitions.md +206 -0
- package/.claude-plugin/marketplace.json +0 -34
- package/dist/node_modules/electron/index.js +0 -1
- package/dist/node_modules/electron/package.json +0 -1
- package/dist/node_modules/playwright-core/index.js +0 -1
- package/dist/node_modules/playwright-core/package.json +0 -1
- package/scripts/assess-refactor-scope.sh +0 -239
- package/scripts/check-coderabbit.sh +0 -288
- package/scripts/check-context-economy.sh +0 -405
- package/scripts/check-coverage-thresholds.sh +0 -194
- package/scripts/check-operational-resilience.sh +0 -306
- package/scripts/check-polish-scope.sh +0 -245
- package/scripts/check-post-merge.sh +0 -185
- package/scripts/check-pr-comments.sh +0 -127
- package/scripts/check-task-decomposition.sh +0 -451
- package/scripts/check-tdd-compliance.sh +0 -265
- package/scripts/check-workflow-determinism.sh +0 -312
- package/scripts/debug-review-gate.sh +0 -201
- package/scripts/extract-fix-tasks.sh +0 -179
- package/scripts/extract-task.sh +0 -67
- package/scripts/generate-traceability.sh +0 -209
- package/scripts/investigation-timer.sh +0 -171
- package/scripts/needs-schema-sync.sh +0 -174
- package/scripts/new-project.sh +0 -103
- package/scripts/post-delegation-check.sh +0 -317
- package/scripts/pre-synthesis-check.sh +0 -475
- package/scripts/reconcile-state.sh +0 -346
- package/scripts/review-diff.sh +0 -63
- package/scripts/review-verdict.sh +0 -169
- package/scripts/security-scan.sh +0 -248
- package/scripts/select-debug-track.sh +0 -186
- package/scripts/setup-worktree.sh +0 -323
- package/scripts/spec-coverage-check.sh +0 -230
- package/scripts/static-analysis-gate.sh +0 -261
- package/scripts/validate-companion.sh +0 -161
- package/scripts/validate-pr-body.sh +0 -158
- package/scripts/validate-pr-stack.sh +0 -146
- package/scripts/verify-delegation-saga.sh +0 -240
- package/scripts/verify-doc-links.sh +0 -211
- package/scripts/verify-ideate-artifacts.sh +0 -296
- package/scripts/verify-plan-coverage.sh +0 -408
- package/scripts/verify-provenance-chain.sh +0 -310
- package/scripts/verify-review-triage.sh +0 -219
- package/scripts/verify-worktree-baseline.sh +0 -159
- package/scripts/verify-worktree.sh +0 -84
- package/skills/delegation/references/fix-mode.md +0 -78
- package/skills/implementation-planning/references/task-template.md +0 -43
- package/skills/shared/prompts/context-reading.md +0 -66
- package/skills/shared/prompts/report-format.md +0 -54
- package/skills/shared/prompts/tdd-requirements.md +0 -39
- package/skills/shared/references/coding-standards.md +0 -46
- package/skills/shared/references/mcp-tool-guidance.md +0 -26
- package/skills/shared/references/skill-path-resolution.md +0 -10
- package/skills/shared/references/tdd.md +0 -41
- package/skills/shared/references/telemetry-awareness.md +0 -9
- /package/skills/{brainstorming → claude/brainstorming}/references/worked-example.md +0 -0
- /package/skills/{cleanup → claude/cleanup}/references/merge-verification.md +0 -0
- /package/skills/{debug → claude/debug}/references/rca-template.md +0 -0
- /package/skills/{debug → claude/debug}/references/state-schema.md +0 -0
- /package/skills/{debug → claude/debug}/references/triage-questions.md +0 -0
- /package/skills/{debug → claude/debug}/references/troubleshooting.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/adaptive-orchestration.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/fixer-prompt.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/pbt-patterns.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/pr-fixes-mode.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/rationalization-refutation.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/testing-patterns.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/worked-example.md +0 -0
- /package/skills/{git-worktrees → claude/git-worktrees}/references/commands-reference.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/references/plan-document-template.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/references/rationalization-refutation.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/references/spec-tracing-guide.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/code-quality-checklist.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/convergence-and-verdict.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/gate-execution.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/rationalization-refutation.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/review-report-template.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/security-checklist.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/typescript-standards.md +0 -0
- /package/skills/{refactor → claude/refactor}/references/brief-template.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/auto-chain.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/brief.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/explore.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/overhaul-delegate.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/overhaul-plan.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/overhaul-review.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/update-docs.md +0 -0
- /package/skills/{shepherd → claude/shepherd}/references/assess-checklist.md +0 -0
- /package/skills/{shepherd → claude/shepherd}/references/escalation-criteria.md +0 -0
- /package/skills/{shepherd → claude/shepherd}/references/gate-event-emission.md +0 -0
- /package/skills/{spec-review → claude/spec-review}/references/rationalization-refutation.md +0 -0
- /package/skills/{spec-review → claude/spec-review}/references/review-checklist.md +0 -0
- /package/skills/{synthesis → claude/synthesis}/references/merge-ordering.md +0 -0
- /package/skills/{synthesis → claude/synthesis}/references/pr-descriptions.md +0 -0
- /package/skills/{synthesis → claude/synthesis}/references/troubleshooting.md +0 -0
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# setup-worktree.sh — Atomic worktree creation with validation
|
|
3
|
-
# Replaces the "Pre-Dispatch Checklist" prose in delegation SKILL.md.
|
|
4
|
-
#
|
|
5
|
-
# Usage: setup-worktree.sh --repo-root <path> --task-id <id> --task-name <name> [--base-branch main] [--skip-tests]
|
|
6
|
-
#
|
|
7
|
-
# Exit codes:
|
|
8
|
-
# 0 = worktree ready
|
|
9
|
-
# 1 = setup failed
|
|
10
|
-
# 2 = usage error (missing required args)
|
|
11
|
-
|
|
12
|
-
set -euo pipefail
|
|
13
|
-
|
|
14
|
-
# ============================================================
|
|
15
|
-
# ARGUMENT PARSING
|
|
16
|
-
# ============================================================
|
|
17
|
-
|
|
18
|
-
REPO_ROOT=""
|
|
19
|
-
TASK_ID=""
|
|
20
|
-
TASK_NAME=""
|
|
21
|
-
BASE_BRANCH="main"
|
|
22
|
-
SKIP_TESTS=false
|
|
23
|
-
|
|
24
|
-
usage() {
|
|
25
|
-
cat << 'USAGE'
|
|
26
|
-
Usage: setup-worktree.sh --repo-root <path> --task-id <id> --task-name <name> [--base-branch main] [--skip-tests]
|
|
27
|
-
|
|
28
|
-
Required:
|
|
29
|
-
--repo-root <path> Repository root directory
|
|
30
|
-
--task-id <id> Task identifier (e.g., task-001)
|
|
31
|
-
--task-name <name> Task name slug (e.g., user-model)
|
|
32
|
-
|
|
33
|
-
Optional:
|
|
34
|
-
--base-branch <name> Base branch to create from (default: main)
|
|
35
|
-
--skip-tests Skip baseline test verification
|
|
36
|
-
--help Show this help message
|
|
37
|
-
|
|
38
|
-
Exit codes:
|
|
39
|
-
0 Worktree ready
|
|
40
|
-
1 Setup failed
|
|
41
|
-
2 Usage error (missing required args)
|
|
42
|
-
USAGE
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
while [[ $# -gt 0 ]]; do
|
|
46
|
-
case "$1" in
|
|
47
|
-
--repo-root)
|
|
48
|
-
if [[ -z "${2:-}" ]]; then
|
|
49
|
-
echo "Error: --repo-root requires a path argument" >&2
|
|
50
|
-
exit 2
|
|
51
|
-
fi
|
|
52
|
-
REPO_ROOT="$2"
|
|
53
|
-
shift 2
|
|
54
|
-
;;
|
|
55
|
-
--task-id)
|
|
56
|
-
if [[ -z "${2:-}" ]]; then
|
|
57
|
-
echo "Error: --task-id requires an argument" >&2
|
|
58
|
-
exit 2
|
|
59
|
-
fi
|
|
60
|
-
TASK_ID="$2"
|
|
61
|
-
shift 2
|
|
62
|
-
;;
|
|
63
|
-
--task-name)
|
|
64
|
-
if [[ -z "${2:-}" ]]; then
|
|
65
|
-
echo "Error: --task-name requires an argument" >&2
|
|
66
|
-
exit 2
|
|
67
|
-
fi
|
|
68
|
-
TASK_NAME="$2"
|
|
69
|
-
shift 2
|
|
70
|
-
;;
|
|
71
|
-
--base-branch)
|
|
72
|
-
if [[ -z "${2:-}" ]]; then
|
|
73
|
-
echo "Error: --base-branch requires an argument" >&2
|
|
74
|
-
exit 2
|
|
75
|
-
fi
|
|
76
|
-
BASE_BRANCH="$2"
|
|
77
|
-
shift 2
|
|
78
|
-
;;
|
|
79
|
-
--skip-tests)
|
|
80
|
-
SKIP_TESTS=true
|
|
81
|
-
shift
|
|
82
|
-
;;
|
|
83
|
-
--help)
|
|
84
|
-
usage
|
|
85
|
-
exit 0
|
|
86
|
-
;;
|
|
87
|
-
*)
|
|
88
|
-
echo "Error: Unknown argument '$1'" >&2
|
|
89
|
-
usage >&2
|
|
90
|
-
exit 2
|
|
91
|
-
;;
|
|
92
|
-
esac
|
|
93
|
-
done
|
|
94
|
-
|
|
95
|
-
if [[ -z "$REPO_ROOT" ]]; then
|
|
96
|
-
echo "Error: --repo-root is required" >&2
|
|
97
|
-
usage >&2
|
|
98
|
-
exit 2
|
|
99
|
-
fi
|
|
100
|
-
|
|
101
|
-
if [[ -z "$TASK_ID" ]]; then
|
|
102
|
-
echo "Error: --task-id is required" >&2
|
|
103
|
-
usage >&2
|
|
104
|
-
exit 2
|
|
105
|
-
fi
|
|
106
|
-
|
|
107
|
-
if [[ -z "$TASK_NAME" ]]; then
|
|
108
|
-
echo "Error: --task-name is required" >&2
|
|
109
|
-
usage >&2
|
|
110
|
-
exit 2
|
|
111
|
-
fi
|
|
112
|
-
|
|
113
|
-
# ============================================================
|
|
114
|
-
# DERIVED VALUES
|
|
115
|
-
# ============================================================
|
|
116
|
-
|
|
117
|
-
WORKTREE_NAME="${TASK_ID}-${TASK_NAME}"
|
|
118
|
-
BRANCH_NAME="feature/${WORKTREE_NAME}"
|
|
119
|
-
WORKTREE_PATH="$REPO_ROOT/.worktrees/$WORKTREE_NAME"
|
|
120
|
-
|
|
121
|
-
# ============================================================
|
|
122
|
-
# CHECK FUNCTIONS
|
|
123
|
-
# ============================================================
|
|
124
|
-
|
|
125
|
-
CHECK_PASS=0
|
|
126
|
-
CHECK_FAIL=0
|
|
127
|
-
RESULTS=()
|
|
128
|
-
|
|
129
|
-
check_pass() {
|
|
130
|
-
local name="$1"
|
|
131
|
-
RESULTS+=("- **PASS**: $name")
|
|
132
|
-
CHECK_PASS=$((CHECK_PASS + 1))
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
check_fail() {
|
|
136
|
-
local name="$1"
|
|
137
|
-
local detail="${2:-}"
|
|
138
|
-
if [[ -n "$detail" ]]; then
|
|
139
|
-
RESULTS+=("- **FAIL**: $name — $detail")
|
|
140
|
-
else
|
|
141
|
-
RESULTS+=("- **FAIL**: $name")
|
|
142
|
-
fi
|
|
143
|
-
CHECK_FAIL=$((CHECK_FAIL + 1))
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
check_skip() {
|
|
147
|
-
local name="$1"
|
|
148
|
-
RESULTS+=("- **SKIP**: $name")
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
# ============================================================
|
|
152
|
-
# STEP 1: Ensure .worktrees is gitignored
|
|
153
|
-
# ============================================================
|
|
154
|
-
|
|
155
|
-
ensure_gitignored() {
|
|
156
|
-
# git check-ignore requires trailing slash for directory patterns
|
|
157
|
-
if (cd "$REPO_ROOT" && git check-ignore -q .worktrees/) 2>/dev/null; then
|
|
158
|
-
check_pass ".worktrees is gitignored"
|
|
159
|
-
return 0
|
|
160
|
-
fi
|
|
161
|
-
|
|
162
|
-
# Add to .gitignore
|
|
163
|
-
local gitignore="$REPO_ROOT/.gitignore"
|
|
164
|
-
if [[ -f "$gitignore" ]]; then
|
|
165
|
-
echo ".worktrees/" >> "$gitignore"
|
|
166
|
-
else
|
|
167
|
-
echo ".worktrees/" > "$gitignore"
|
|
168
|
-
fi
|
|
169
|
-
|
|
170
|
-
# Verify it worked
|
|
171
|
-
if (cd "$REPO_ROOT" && git check-ignore -q .worktrees/) 2>/dev/null; then
|
|
172
|
-
check_pass ".worktrees is gitignored (added to .gitignore)"
|
|
173
|
-
return 0
|
|
174
|
-
else
|
|
175
|
-
check_fail ".worktrees is gitignored" "Failed to add to .gitignore"
|
|
176
|
-
return 1
|
|
177
|
-
fi
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
# ============================================================
|
|
181
|
-
# STEP 2: Create feature branch
|
|
182
|
-
# ============================================================
|
|
183
|
-
|
|
184
|
-
create_branch() {
|
|
185
|
-
# Check if branch already exists
|
|
186
|
-
if git -C "$REPO_ROOT" show-ref --verify --quiet "refs/heads/$BRANCH_NAME" 2>/dev/null; then
|
|
187
|
-
check_pass "Branch created ($BRANCH_NAME already exists)"
|
|
188
|
-
return 0
|
|
189
|
-
fi
|
|
190
|
-
|
|
191
|
-
if git -C "$REPO_ROOT" branch "$BRANCH_NAME" "$BASE_BRANCH" 2>/dev/null; then
|
|
192
|
-
check_pass "Branch created ($BRANCH_NAME from $BASE_BRANCH)"
|
|
193
|
-
return 0
|
|
194
|
-
else
|
|
195
|
-
check_fail "Branch created" "Failed to create $BRANCH_NAME from $BASE_BRANCH"
|
|
196
|
-
return 1
|
|
197
|
-
fi
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
# ============================================================
|
|
201
|
-
# STEP 3: Create worktree
|
|
202
|
-
# ============================================================
|
|
203
|
-
|
|
204
|
-
create_worktree() {
|
|
205
|
-
# Check if worktree already exists
|
|
206
|
-
if [[ -d "$WORKTREE_PATH" ]]; then
|
|
207
|
-
# Verify it's a valid worktree
|
|
208
|
-
if git -C "$WORKTREE_PATH" rev-parse --git-dir &>/dev/null; then
|
|
209
|
-
check_pass "Worktree created ($WORKTREE_PATH already exists)"
|
|
210
|
-
return 0
|
|
211
|
-
else
|
|
212
|
-
check_fail "Worktree created" "$WORKTREE_PATH exists but is not a valid worktree"
|
|
213
|
-
return 1
|
|
214
|
-
fi
|
|
215
|
-
fi
|
|
216
|
-
|
|
217
|
-
if git -C "$REPO_ROOT" worktree add "$WORKTREE_PATH" "$BRANCH_NAME" 2>/dev/null; then
|
|
218
|
-
check_pass "Worktree created ($WORKTREE_PATH)"
|
|
219
|
-
return 0
|
|
220
|
-
else
|
|
221
|
-
check_fail "Worktree created" "git worktree add failed for $WORKTREE_PATH"
|
|
222
|
-
return 1
|
|
223
|
-
fi
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
# ============================================================
|
|
227
|
-
# STEP 4: Run npm install
|
|
228
|
-
# ============================================================
|
|
229
|
-
|
|
230
|
-
run_npm_install() {
|
|
231
|
-
# Only run if package.json exists in worktree
|
|
232
|
-
if [[ ! -f "$WORKTREE_PATH/package.json" ]]; then
|
|
233
|
-
check_skip "npm install (no package.json in worktree)"
|
|
234
|
-
return 0
|
|
235
|
-
fi
|
|
236
|
-
|
|
237
|
-
if (cd "$WORKTREE_PATH" && npm install --silent 2>/dev/null); then
|
|
238
|
-
check_pass "npm install completed"
|
|
239
|
-
return 0
|
|
240
|
-
else
|
|
241
|
-
check_fail "npm install completed" "npm install failed in $WORKTREE_PATH"
|
|
242
|
-
return 1
|
|
243
|
-
fi
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
# ============================================================
|
|
247
|
-
# STEP 5: Baseline tests
|
|
248
|
-
# ============================================================
|
|
249
|
-
|
|
250
|
-
run_baseline_tests() {
|
|
251
|
-
if [[ "$SKIP_TESTS" == true ]]; then
|
|
252
|
-
check_skip "Baseline tests pass (--skip-tests)"
|
|
253
|
-
return 0
|
|
254
|
-
fi
|
|
255
|
-
|
|
256
|
-
if [[ ! -f "$WORKTREE_PATH/package.json" ]]; then
|
|
257
|
-
check_skip "Baseline tests pass (no package.json in worktree)"
|
|
258
|
-
return 0
|
|
259
|
-
fi
|
|
260
|
-
|
|
261
|
-
if (cd "$WORKTREE_PATH" && npm run test:run 2>/dev/null); then
|
|
262
|
-
check_pass "Baseline tests pass"
|
|
263
|
-
return 0
|
|
264
|
-
else
|
|
265
|
-
check_fail "Baseline tests pass" "npm run test:run failed in $WORKTREE_PATH"
|
|
266
|
-
return 1
|
|
267
|
-
fi
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
# ============================================================
|
|
271
|
-
# EXECUTE STEPS
|
|
272
|
-
# ============================================================
|
|
273
|
-
|
|
274
|
-
# Step 1: Gitignore
|
|
275
|
-
ensure_gitignored || true
|
|
276
|
-
|
|
277
|
-
# Step 2: Branch (depends on step 1 not fatally failing)
|
|
278
|
-
create_branch || true
|
|
279
|
-
|
|
280
|
-
# Step 3: Worktree (depends on branch existing)
|
|
281
|
-
create_worktree || true
|
|
282
|
-
|
|
283
|
-
# Step 4: npm install (depends on worktree existing)
|
|
284
|
-
if [[ -d "$WORKTREE_PATH" ]]; then
|
|
285
|
-
run_npm_install || true
|
|
286
|
-
else
|
|
287
|
-
check_skip "npm install (worktree not available)"
|
|
288
|
-
fi
|
|
289
|
-
|
|
290
|
-
# Step 5: Baseline tests (depends on npm install)
|
|
291
|
-
if [[ -d "$WORKTREE_PATH" ]]; then
|
|
292
|
-
run_baseline_tests || true
|
|
293
|
-
else
|
|
294
|
-
check_skip "Baseline tests pass (worktree not available)"
|
|
295
|
-
fi
|
|
296
|
-
|
|
297
|
-
# ============================================================
|
|
298
|
-
# STRUCTURED OUTPUT
|
|
299
|
-
# ============================================================
|
|
300
|
-
|
|
301
|
-
echo "## Worktree Setup Report"
|
|
302
|
-
echo ""
|
|
303
|
-
echo "**Task:** \`$TASK_ID\` — $TASK_NAME"
|
|
304
|
-
echo "**Branch:** \`$BRANCH_NAME\`"
|
|
305
|
-
echo "**Worktree:** \`$WORKTREE_PATH\`"
|
|
306
|
-
echo ""
|
|
307
|
-
|
|
308
|
-
for result in "${RESULTS[@]}"; do
|
|
309
|
-
echo "$result"
|
|
310
|
-
done
|
|
311
|
-
|
|
312
|
-
echo ""
|
|
313
|
-
TOTAL=$((CHECK_PASS + CHECK_FAIL))
|
|
314
|
-
echo "---"
|
|
315
|
-
echo ""
|
|
316
|
-
|
|
317
|
-
if [[ $CHECK_FAIL -eq 0 ]]; then
|
|
318
|
-
echo "**Result: PASS** ($CHECK_PASS/$TOTAL checks passed)"
|
|
319
|
-
exit 0
|
|
320
|
-
else
|
|
321
|
-
echo "**Result: FAIL** ($CHECK_FAIL/$TOTAL checks failed)"
|
|
322
|
-
exit 1
|
|
323
|
-
fi
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Spec Coverage Check
|
|
3
|
-
# Verify test coverage for spec compliance. Replaces spec-review "Compare to Spec" prose.
|
|
4
|
-
#
|
|
5
|
-
# Usage: spec-coverage-check.sh --plan-file <path> --repo-root <path> [--skip-run]
|
|
6
|
-
#
|
|
7
|
-
# Exit codes:
|
|
8
|
-
# 0 = coverage met (all planned tests exist and pass)
|
|
9
|
-
# 1 = gaps found (missing test files or test failures)
|
|
10
|
-
# 2 = usage error (missing required args)
|
|
11
|
-
|
|
12
|
-
set -euo pipefail
|
|
13
|
-
|
|
14
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
15
|
-
|
|
16
|
-
# Colors
|
|
17
|
-
RED='\033[0;31m'
|
|
18
|
-
GREEN='\033[0;32m'
|
|
19
|
-
YELLOW='\033[1;33m'
|
|
20
|
-
NC='\033[0m'
|
|
21
|
-
|
|
22
|
-
# ============================================================
|
|
23
|
-
# ARGUMENT PARSING
|
|
24
|
-
# ============================================================
|
|
25
|
-
|
|
26
|
-
PLAN_FILE=""
|
|
27
|
-
REPO_ROOT=""
|
|
28
|
-
SKIP_RUN=false
|
|
29
|
-
|
|
30
|
-
usage() {
|
|
31
|
-
cat << 'USAGE'
|
|
32
|
-
Usage: spec-coverage-check.sh --plan-file <path> --repo-root <path> [--skip-run]
|
|
33
|
-
|
|
34
|
-
Required:
|
|
35
|
-
--plan-file <path> Path to the implementation plan markdown file
|
|
36
|
-
--repo-root <path> Repository root directory
|
|
37
|
-
|
|
38
|
-
Optional:
|
|
39
|
-
--skip-run Skip running tests (only check file existence)
|
|
40
|
-
--help Show this help message
|
|
41
|
-
|
|
42
|
-
Exit codes:
|
|
43
|
-
0 Coverage met (all planned tests exist and pass)
|
|
44
|
-
1 Gaps found (missing test files or test failures)
|
|
45
|
-
2 Usage error (missing required args)
|
|
46
|
-
USAGE
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
while [[ $# -gt 0 ]]; do
|
|
50
|
-
case "$1" in
|
|
51
|
-
--plan-file)
|
|
52
|
-
if [[ -z "${2:-}" ]]; then
|
|
53
|
-
echo "Error: --plan-file requires a path argument" >&2
|
|
54
|
-
exit 2
|
|
55
|
-
fi
|
|
56
|
-
PLAN_FILE="$2"
|
|
57
|
-
shift 2
|
|
58
|
-
;;
|
|
59
|
-
--repo-root)
|
|
60
|
-
if [[ -z "${2:-}" ]]; then
|
|
61
|
-
echo "Error: --repo-root requires a path argument" >&2
|
|
62
|
-
exit 2
|
|
63
|
-
fi
|
|
64
|
-
REPO_ROOT="$2"
|
|
65
|
-
shift 2
|
|
66
|
-
;;
|
|
67
|
-
--skip-run)
|
|
68
|
-
SKIP_RUN=true
|
|
69
|
-
shift
|
|
70
|
-
;;
|
|
71
|
-
--help)
|
|
72
|
-
usage
|
|
73
|
-
exit 0
|
|
74
|
-
;;
|
|
75
|
-
*)
|
|
76
|
-
echo "Error: Unknown argument '$1'" >&2
|
|
77
|
-
usage >&2
|
|
78
|
-
exit 2
|
|
79
|
-
;;
|
|
80
|
-
esac
|
|
81
|
-
done
|
|
82
|
-
|
|
83
|
-
if [[ -z "$PLAN_FILE" || -z "$REPO_ROOT" ]]; then
|
|
84
|
-
echo "Error: --plan-file and --repo-root are required" >&2
|
|
85
|
-
usage >&2
|
|
86
|
-
exit 2
|
|
87
|
-
fi
|
|
88
|
-
|
|
89
|
-
if [[ ! -f "$PLAN_FILE" ]]; then
|
|
90
|
-
echo "Error: Plan file not found: $PLAN_FILE" >&2
|
|
91
|
-
exit 2
|
|
92
|
-
fi
|
|
93
|
-
|
|
94
|
-
if [[ ! -d "$REPO_ROOT" ]]; then
|
|
95
|
-
echo "Error: Repo root directory not found: $REPO_ROOT" >&2
|
|
96
|
-
exit 2
|
|
97
|
-
fi
|
|
98
|
-
|
|
99
|
-
# ============================================================
|
|
100
|
-
# CHECK FUNCTIONS
|
|
101
|
-
# ============================================================
|
|
102
|
-
|
|
103
|
-
CHECK_PASS=0
|
|
104
|
-
CHECK_FAIL=0
|
|
105
|
-
RESULTS=()
|
|
106
|
-
|
|
107
|
-
check_pass() {
|
|
108
|
-
local name="$1"
|
|
109
|
-
RESULTS+=("- **PASS**: $name")
|
|
110
|
-
CHECK_PASS=$((CHECK_PASS + 1))
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
check_fail() {
|
|
114
|
-
local name="$1"
|
|
115
|
-
local detail="${2:-}"
|
|
116
|
-
if [[ -n "$detail" ]]; then
|
|
117
|
-
RESULTS+=("- **FAIL**: $name — $detail")
|
|
118
|
-
else
|
|
119
|
-
RESULTS+=("- **FAIL**: $name")
|
|
120
|
-
fi
|
|
121
|
-
CHECK_FAIL=$((CHECK_FAIL + 1))
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
check_skip() {
|
|
125
|
-
local name="$1"
|
|
126
|
-
RESULTS+=("- **SKIP**: $name")
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
# ============================================================
|
|
130
|
-
# EXTRACT TEST FILES FROM PLAN
|
|
131
|
-
# ============================================================
|
|
132
|
-
|
|
133
|
-
# Extract test file paths from **Test file:** lines in the plan
|
|
134
|
-
TEST_FILES=()
|
|
135
|
-
while IFS= read -r line; do
|
|
136
|
-
# Match lines like: **Test file:** `src/widget.test.ts`
|
|
137
|
-
if [[ "$line" =~ \*\*Test\ file:\*\*[[:space:]]*\`([^\`]+)\` ]]; then
|
|
138
|
-
TEST_FILES+=("${BASH_REMATCH[1]}")
|
|
139
|
-
fi
|
|
140
|
-
done < "$PLAN_FILE"
|
|
141
|
-
|
|
142
|
-
# ============================================================
|
|
143
|
-
# CHECK: Test files referenced in plan
|
|
144
|
-
# ============================================================
|
|
145
|
-
|
|
146
|
-
if [[ -z "${TEST_FILES+x}" ]] || [[ ${#TEST_FILES[@]} -eq 0 ]]; then
|
|
147
|
-
check_fail "Test files in plan" "No test files referenced in plan document"
|
|
148
|
-
fi
|
|
149
|
-
|
|
150
|
-
# ============================================================
|
|
151
|
-
# CHECK: Each test file exists on disk
|
|
152
|
-
# ============================================================
|
|
153
|
-
|
|
154
|
-
FOUND=0
|
|
155
|
-
MISSING=0
|
|
156
|
-
MISSING_LIST=()
|
|
157
|
-
|
|
158
|
-
for test_file in "${TEST_FILES[@]}"; do
|
|
159
|
-
full_path="$REPO_ROOT/$test_file"
|
|
160
|
-
if [[ -f "$full_path" ]]; then
|
|
161
|
-
check_pass "Test file exists: $test_file"
|
|
162
|
-
FOUND=$((FOUND + 1))
|
|
163
|
-
else
|
|
164
|
-
check_fail "Test file exists: $test_file" "Not found at $full_path"
|
|
165
|
-
MISSING=$((MISSING + 1))
|
|
166
|
-
MISSING_LIST+=("$test_file")
|
|
167
|
-
fi
|
|
168
|
-
done
|
|
169
|
-
|
|
170
|
-
# ============================================================
|
|
171
|
-
# CHECK: Tests pass (unless --skip-run)
|
|
172
|
-
# ============================================================
|
|
173
|
-
|
|
174
|
-
if [[ "$SKIP_RUN" == true ]]; then
|
|
175
|
-
check_skip "Test execution (--skip-run)"
|
|
176
|
-
elif [[ ${#TEST_FILES[@]} -gt 0 && $MISSING -eq 0 ]]; then
|
|
177
|
-
for test_file in "${TEST_FILES[@]}"; do
|
|
178
|
-
if ! npx vitest run --root "$REPO_ROOT" "$test_file" >/dev/null 2>&1; then
|
|
179
|
-
check_fail "Test passes: $test_file"
|
|
180
|
-
else
|
|
181
|
-
check_pass "Test passes: $test_file"
|
|
182
|
-
fi
|
|
183
|
-
done
|
|
184
|
-
fi
|
|
185
|
-
|
|
186
|
-
# ============================================================
|
|
187
|
-
# STRUCTURED OUTPUT
|
|
188
|
-
# ============================================================
|
|
189
|
-
|
|
190
|
-
echo "## Spec Coverage Report"
|
|
191
|
-
echo ""
|
|
192
|
-
echo "**Plan file:** \`$PLAN_FILE\`"
|
|
193
|
-
echo "**Repo root:** \`$REPO_ROOT\`"
|
|
194
|
-
echo ""
|
|
195
|
-
|
|
196
|
-
TOTAL_TESTS=${#TEST_FILES[@]}
|
|
197
|
-
echo "### Coverage Summary"
|
|
198
|
-
echo ""
|
|
199
|
-
echo "- Planned test files: $TOTAL_TESTS"
|
|
200
|
-
echo "- Found on disk: $FOUND"
|
|
201
|
-
echo "- Missing: $MISSING"
|
|
202
|
-
echo ""
|
|
203
|
-
|
|
204
|
-
if [[ -n "${MISSING_LIST+x}" ]] && [[ ${#MISSING_LIST[@]} -gt 0 ]]; then
|
|
205
|
-
echo "### Missing Test Files"
|
|
206
|
-
echo ""
|
|
207
|
-
for f in "${MISSING_LIST[@]}"; do
|
|
208
|
-
echo "- \`$f\`"
|
|
209
|
-
done
|
|
210
|
-
echo ""
|
|
211
|
-
fi
|
|
212
|
-
|
|
213
|
-
echo "### Check Results"
|
|
214
|
-
echo ""
|
|
215
|
-
for result in "${RESULTS[@]}"; do
|
|
216
|
-
echo "$result"
|
|
217
|
-
done
|
|
218
|
-
|
|
219
|
-
echo ""
|
|
220
|
-
TOTAL=$((CHECK_PASS + CHECK_FAIL))
|
|
221
|
-
echo "---"
|
|
222
|
-
echo ""
|
|
223
|
-
|
|
224
|
-
if [[ $CHECK_FAIL -eq 0 && $TOTAL_TESTS -gt 0 ]]; then
|
|
225
|
-
echo "**Result: PASS** ($CHECK_PASS/$TOTAL checks passed)"
|
|
226
|
-
exit 0
|
|
227
|
-
else
|
|
228
|
-
echo "**Result: FAIL** ($CHECK_FAIL/$TOTAL checks failed)"
|
|
229
|
-
exit 1
|
|
230
|
-
fi
|