@harness-engineering/cli 1.14.0 → 1.16.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/dist/agents/commands/codex/AGENTS.md +39 -0
- package/dist/agents/commands/codex/harness/add-harness-component/SKILL.md +195 -0
- package/dist/agents/commands/codex/harness/add-harness-component/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/cleanup-dead-code/SKILL.md +248 -0
- package/dist/agents/commands/codex/harness/cleanup-dead-code/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/detect-doc-drift/SKILL.md +182 -0
- package/dist/agents/commands/codex/harness/detect-doc-drift/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/enforce-architecture/SKILL.md +299 -0
- package/dist/agents/commands/codex/harness/enforce-architecture/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-architecture-advisor/SKILL.md +452 -0
- package/dist/agents/commands/codex/harness/harness-architecture-advisor/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-autopilot/SKILL.md +919 -0
- package/dist/agents/commands/codex/harness/harness-autopilot/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-brainstorming/SKILL.md +409 -0
- package/dist/agents/commands/codex/harness/harness-brainstorming/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-code-review/SKILL.md +860 -0
- package/dist/agents/commands/codex/harness/harness-code-review/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-codebase-cleanup/SKILL.md +227 -0
- package/dist/agents/commands/codex/harness/harness-codebase-cleanup/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-debugging/SKILL.md +369 -0
- package/dist/agents/commands/codex/harness/harness-debugging/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-dependency-health/SKILL.md +182 -0
- package/dist/agents/commands/codex/harness/harness-dependency-health/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-docs-pipeline/SKILL.md +463 -0
- package/dist/agents/commands/codex/harness/harness-docs-pipeline/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-execution/SKILL.md +513 -0
- package/dist/agents/commands/codex/harness/harness-execution/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-hotspot-detector/SKILL.md +164 -0
- package/dist/agents/commands/codex/harness/harness-hotspot-detector/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-impact-analysis/SKILL.md +187 -0
- package/dist/agents/commands/codex/harness/harness-impact-analysis/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-integrity/SKILL.md +170 -0
- package/dist/agents/commands/codex/harness/harness-integrity/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-onboarding/SKILL.md +291 -0
- package/dist/agents/commands/codex/harness/harness-onboarding/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-perf/SKILL.md +263 -0
- package/dist/agents/commands/codex/harness/harness-perf/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-planning/SKILL.md +582 -0
- package/dist/agents/commands/codex/harness/harness-planning/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-refactoring/SKILL.md +172 -0
- package/dist/agents/commands/codex/harness/harness-refactoring/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-release-readiness/SKILL.md +692 -0
- package/dist/agents/commands/codex/harness/harness-release-readiness/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-roadmap/SKILL.md +598 -0
- package/dist/agents/commands/codex/harness/harness-roadmap/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-security-scan/SKILL.md +157 -0
- package/dist/agents/commands/codex/harness/harness-security-scan/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-skill-authoring/SKILL.md +295 -0
- package/dist/agents/commands/codex/harness/harness-skill-authoring/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-soundness-review/SKILL.md +1270 -0
- package/dist/agents/commands/codex/harness/harness-soundness-review/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-supply-chain-audit/SKILL.md +247 -0
- package/dist/agents/commands/codex/harness/harness-supply-chain-audit/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-tdd/SKILL.md +180 -0
- package/dist/agents/commands/codex/harness/harness-tdd/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-test-advisor/SKILL.md +163 -0
- package/dist/agents/commands/codex/harness/harness-test-advisor/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-verification/SKILL.md +424 -0
- package/dist/agents/commands/codex/harness/harness-verification/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/harness-verify/SKILL.md +162 -0
- package/dist/agents/commands/codex/harness/harness-verify/agents/openai.yaml +3 -0
- package/dist/agents/commands/codex/harness/initialize-harness-project/SKILL.md +235 -0
- package/dist/agents/commands/codex/harness/initialize-harness-project/agents/openai.yaml +3 -0
- package/dist/agents/commands/cursor/harness/add-harness-component.mdc +200 -0
- package/dist/agents/commands/cursor/harness/cleanup-dead-code.mdc +253 -0
- package/dist/agents/commands/cursor/harness/detect-doc-drift.mdc +187 -0
- package/dist/agents/commands/cursor/harness/enforce-architecture.mdc +304 -0
- package/dist/agents/commands/cursor/harness/harness-architecture-advisor.mdc +457 -0
- package/dist/agents/commands/cursor/harness/harness-autopilot.mdc +924 -0
- package/dist/agents/commands/cursor/harness/harness-brainstorming.mdc +414 -0
- package/dist/agents/commands/cursor/harness/harness-code-review.mdc +865 -0
- package/dist/agents/commands/cursor/harness/harness-codebase-cleanup.mdc +232 -0
- package/dist/agents/commands/cursor/harness/harness-debugging.mdc +374 -0
- package/dist/agents/commands/cursor/harness/harness-dependency-health.mdc +187 -0
- package/dist/agents/commands/cursor/harness/harness-docs-pipeline.mdc +468 -0
- package/dist/agents/commands/cursor/harness/harness-execution.mdc +518 -0
- package/dist/agents/commands/cursor/harness/harness-hotspot-detector.mdc +169 -0
- package/dist/agents/commands/cursor/harness/harness-impact-analysis.mdc +192 -0
- package/dist/agents/commands/cursor/harness/harness-integrity.mdc +175 -0
- package/dist/agents/commands/cursor/harness/harness-onboarding.mdc +296 -0
- package/dist/agents/commands/cursor/harness/harness-perf.mdc +268 -0
- package/dist/agents/commands/cursor/harness/harness-planning.mdc +587 -0
- package/dist/agents/commands/cursor/harness/harness-refactoring.mdc +177 -0
- package/dist/agents/commands/cursor/harness/harness-release-readiness.mdc +697 -0
- package/dist/agents/commands/cursor/harness/harness-roadmap.mdc +603 -0
- package/dist/agents/commands/cursor/harness/harness-security-scan.mdc +162 -0
- package/dist/agents/commands/cursor/harness/harness-skill-authoring.mdc +300 -0
- package/dist/agents/commands/cursor/harness/harness-soundness-review.mdc +1275 -0
- package/dist/agents/commands/cursor/harness/harness-supply-chain-audit.mdc +252 -0
- package/dist/agents/commands/cursor/harness/harness-tdd.mdc +185 -0
- package/dist/agents/commands/cursor/harness/harness-test-advisor.mdc +168 -0
- package/dist/agents/commands/cursor/harness/harness-verification.mdc +429 -0
- package/dist/agents/commands/cursor/harness/harness-verify.mdc +167 -0
- package/dist/agents/commands/cursor/harness/initialize-harness-project.mdc +240 -0
- package/dist/agents/skills/claude-code/enforce-architecture/SKILL.md +52 -0
- package/dist/agents/skills/claude-code/harness-api-design/SKILL.md +52 -0
- package/dist/agents/skills/claude-code/harness-architecture-advisor/SKILL.md +52 -0
- package/dist/agents/skills/claude-code/harness-auth/SKILL.md +52 -0
- package/dist/agents/skills/claude-code/harness-autopilot/SKILL.md +355 -45
- package/dist/agents/skills/claude-code/harness-autopilot/skill.yaml +12 -0
- package/dist/agents/skills/claude-code/harness-code-review/SKILL.md +97 -3
- package/dist/agents/skills/claude-code/harness-code-review/skill.yaml +6 -0
- package/dist/agents/skills/claude-code/harness-codebase-cleanup/SKILL.md +2 -4
- package/dist/agents/skills/claude-code/harness-database/SKILL.md +52 -0
- package/dist/agents/skills/claude-code/harness-deployment/SKILL.md +52 -0
- package/dist/agents/skills/claude-code/harness-planning/SKILL.md +99 -3
- package/dist/agents/skills/claude-code/harness-planning/skill.yaml +6 -0
- package/dist/agents/skills/claude-code/harness-pre-commit-review/SKILL.md +1 -1
- package/dist/agents/skills/claude-code/harness-product-spec/SKILL.md +5 -5
- package/dist/agents/skills/claude-code/harness-security-review/SKILL.md +27 -7
- package/dist/agents/skills/claude-code/harness-security-scan/SKILL.md +52 -0
- package/dist/agents/skills/claude-code/harness-supply-chain-audit/SKILL.md +281 -0
- package/dist/agents/skills/claude-code/harness-supply-chain-audit/skill.yaml +51 -0
- package/dist/agents/skills/codex/add-harness-component/SKILL.md +192 -0
- package/dist/agents/skills/codex/add-harness-component/skill.yaml +33 -0
- package/dist/agents/skills/codex/align-documentation/SKILL.md +213 -0
- package/dist/agents/skills/codex/align-documentation/skill.yaml +32 -0
- package/dist/agents/skills/codex/check-mechanical-constraints/SKILL.md +191 -0
- package/dist/agents/skills/codex/check-mechanical-constraints/skill.yaml +33 -0
- package/dist/agents/skills/codex/cleanup-dead-code/SKILL.md +245 -0
- package/dist/agents/skills/codex/cleanup-dead-code/skill.yaml +34 -0
- package/dist/agents/skills/codex/detect-doc-drift/SKILL.md +179 -0
- package/dist/agents/skills/codex/detect-doc-drift/skill.yaml +31 -0
- package/dist/agents/skills/codex/enforce-architecture/SKILL.md +296 -0
- package/dist/agents/skills/codex/enforce-architecture/skill.yaml +35 -0
- package/dist/agents/skills/codex/harness-accessibility/SKILL.md +281 -0
- package/dist/agents/skills/codex/harness-accessibility/skill.yaml +52 -0
- package/dist/agents/skills/codex/harness-api-design/SKILL.md +356 -0
- package/dist/agents/skills/codex/harness-api-design/skill.yaml +74 -0
- package/dist/agents/skills/codex/harness-architecture-advisor/SKILL.md +449 -0
- package/dist/agents/skills/codex/harness-architecture-advisor/skill.yaml +49 -0
- package/dist/agents/skills/codex/harness-auth/SKILL.md +331 -0
- package/dist/agents/skills/codex/harness-auth/skill.yaml +81 -0
- package/dist/agents/skills/codex/harness-autopilot/SKILL.md +916 -0
- package/dist/agents/skills/codex/harness-autopilot/skill.yaml +67 -0
- package/dist/agents/skills/codex/harness-brainstorming/SKILL.md +406 -0
- package/dist/agents/skills/codex/harness-brainstorming/skill.yaml +50 -0
- package/dist/agents/skills/codex/harness-caching/SKILL.md +309 -0
- package/dist/agents/skills/codex/harness-caching/skill.yaml +73 -0
- package/dist/agents/skills/codex/harness-chaos/SKILL.md +295 -0
- package/dist/agents/skills/codex/harness-chaos/skill.yaml +72 -0
- package/dist/agents/skills/codex/harness-code-review/SKILL.md +857 -0
- package/dist/agents/skills/codex/harness-code-review/skill.yaml +52 -0
- package/dist/agents/skills/codex/harness-codebase-cleanup/SKILL.md +224 -0
- package/dist/agents/skills/codex/harness-codebase-cleanup/skill.yaml +65 -0
- package/dist/agents/skills/codex/harness-compliance/SKILL.md +303 -0
- package/dist/agents/skills/codex/harness-compliance/skill.yaml +78 -0
- package/dist/agents/skills/codex/harness-containerization/SKILL.md +284 -0
- package/dist/agents/skills/codex/harness-containerization/skill.yaml +80 -0
- package/dist/agents/skills/codex/harness-data-pipeline/SKILL.md +274 -0
- package/dist/agents/skills/codex/harness-data-pipeline/skill.yaml +81 -0
- package/dist/agents/skills/codex/harness-data-validation/SKILL.md +343 -0
- package/dist/agents/skills/codex/harness-data-validation/skill.yaml +75 -0
- package/dist/agents/skills/codex/harness-database/SKILL.md +310 -0
- package/dist/agents/skills/codex/harness-database/skill.yaml +80 -0
- package/dist/agents/skills/codex/harness-debugging/SKILL.md +366 -0
- package/dist/agents/skills/codex/harness-debugging/skill.yaml +48 -0
- package/dist/agents/skills/codex/harness-dependency-health/SKILL.md +179 -0
- package/dist/agents/skills/codex/harness-dependency-health/skill.yaml +42 -0
- package/dist/agents/skills/codex/harness-deployment/SKILL.md +307 -0
- package/dist/agents/skills/codex/harness-deployment/skill.yaml +77 -0
- package/dist/agents/skills/codex/harness-design/SKILL.md +265 -0
- package/dist/agents/skills/codex/harness-design/skill.yaml +54 -0
- package/dist/agents/skills/codex/harness-design-mobile/SKILL.md +336 -0
- package/dist/agents/skills/codex/harness-design-mobile/skill.yaml +50 -0
- package/dist/agents/skills/codex/harness-design-system/SKILL.md +282 -0
- package/dist/agents/skills/codex/harness-design-system/skill.yaml +51 -0
- package/dist/agents/skills/codex/harness-design-web/SKILL.md +360 -0
- package/dist/agents/skills/codex/harness-design-web/skill.yaml +53 -0
- package/dist/agents/skills/codex/harness-diagnostics/SKILL.md +318 -0
- package/dist/agents/skills/codex/harness-diagnostics/skill.yaml +51 -0
- package/dist/agents/skills/codex/harness-docs-pipeline/SKILL.md +460 -0
- package/dist/agents/skills/codex/harness-docs-pipeline/skill.yaml +70 -0
- package/dist/agents/skills/codex/harness-dx/SKILL.md +276 -0
- package/dist/agents/skills/codex/harness-dx/skill.yaml +76 -0
- package/dist/agents/skills/codex/harness-e2e/SKILL.md +245 -0
- package/dist/agents/skills/codex/harness-e2e/skill.yaml +78 -0
- package/dist/agents/skills/codex/harness-event-driven/SKILL.md +280 -0
- package/dist/agents/skills/codex/harness-event-driven/skill.yaml +77 -0
- package/dist/agents/skills/codex/harness-execution/SKILL.md +510 -0
- package/dist/agents/skills/codex/harness-execution/skill.yaml +52 -0
- package/dist/agents/skills/codex/harness-feature-flags/SKILL.md +287 -0
- package/dist/agents/skills/codex/harness-feature-flags/skill.yaml +74 -0
- package/dist/agents/skills/codex/harness-git-workflow/SKILL.md +268 -0
- package/dist/agents/skills/codex/harness-git-workflow/skill.yaml +32 -0
- package/dist/agents/skills/codex/harness-hotspot-detector/SKILL.md +161 -0
- package/dist/agents/skills/codex/harness-hotspot-detector/skill.yaml +45 -0
- package/dist/agents/skills/codex/harness-i18n/SKILL.md +484 -0
- package/dist/agents/skills/codex/harness-i18n/skill.yaml +55 -0
- package/dist/agents/skills/codex/harness-i18n-process/SKILL.md +388 -0
- package/dist/agents/skills/codex/harness-i18n-process/skill.yaml +44 -0
- package/dist/agents/skills/codex/harness-i18n-workflow/SKILL.md +512 -0
- package/dist/agents/skills/codex/harness-i18n-workflow/skill.yaml +54 -0
- package/dist/agents/skills/codex/harness-impact-analysis/SKILL.md +184 -0
- package/dist/agents/skills/codex/harness-impact-analysis/skill.yaml +45 -0
- package/dist/agents/skills/codex/harness-incident-response/SKILL.md +223 -0
- package/dist/agents/skills/codex/harness-incident-response/skill.yaml +78 -0
- package/dist/agents/skills/codex/harness-infrastructure-as-code/SKILL.md +279 -0
- package/dist/agents/skills/codex/harness-infrastructure-as-code/skill.yaml +80 -0
- package/dist/agents/skills/codex/harness-integration-test/SKILL.md +271 -0
- package/dist/agents/skills/codex/harness-integration-test/skill.yaml +73 -0
- package/dist/agents/skills/codex/harness-integrity/SKILL.md +167 -0
- package/dist/agents/skills/codex/harness-integrity/skill.yaml +48 -0
- package/dist/agents/skills/codex/harness-knowledge-mapper/SKILL.md +195 -0
- package/dist/agents/skills/codex/harness-knowledge-mapper/skill.yaml +50 -0
- package/dist/agents/skills/codex/harness-load-testing/SKILL.md +274 -0
- package/dist/agents/skills/codex/harness-load-testing/skill.yaml +79 -0
- package/dist/agents/skills/codex/harness-ml-ops/SKILL.md +341 -0
- package/dist/agents/skills/codex/harness-ml-ops/skill.yaml +79 -0
- package/dist/agents/skills/codex/harness-mobile-patterns/SKILL.md +326 -0
- package/dist/agents/skills/codex/harness-mobile-patterns/skill.yaml +82 -0
- package/dist/agents/skills/codex/harness-mutation-test/SKILL.md +251 -0
- package/dist/agents/skills/codex/harness-mutation-test/skill.yaml +70 -0
- package/dist/agents/skills/codex/harness-observability/SKILL.md +283 -0
- package/dist/agents/skills/codex/harness-observability/skill.yaml +78 -0
- package/dist/agents/skills/codex/harness-onboarding/SKILL.md +288 -0
- package/dist/agents/skills/codex/harness-onboarding/skill.yaml +31 -0
- package/dist/agents/skills/codex/harness-parallel-agents/SKILL.md +256 -0
- package/dist/agents/skills/codex/harness-parallel-agents/skill.yaml +34 -0
- package/dist/agents/skills/codex/harness-perf/SKILL.md +260 -0
- package/dist/agents/skills/codex/harness-perf/skill.yaml +51 -0
- package/dist/agents/skills/codex/harness-perf-tdd/SKILL.md +249 -0
- package/dist/agents/skills/codex/harness-perf-tdd/skill.yaml +48 -0
- package/dist/agents/skills/codex/harness-planning/SKILL.md +579 -0
- package/dist/agents/skills/codex/harness-planning/skill.yaml +56 -0
- package/dist/agents/skills/codex/harness-pre-commit-review/SKILL.md +324 -0
- package/dist/agents/skills/codex/harness-pre-commit-review/skill.yaml +34 -0
- package/dist/agents/skills/codex/harness-product-spec/SKILL.md +285 -0
- package/dist/agents/skills/codex/harness-product-spec/skill.yaml +72 -0
- package/dist/agents/skills/codex/harness-property-test/SKILL.md +281 -0
- package/dist/agents/skills/codex/harness-property-test/skill.yaml +71 -0
- package/dist/agents/skills/codex/harness-refactoring/SKILL.md +169 -0
- package/dist/agents/skills/codex/harness-refactoring/skill.yaml +34 -0
- package/dist/agents/skills/codex/harness-release-readiness/SKILL.md +689 -0
- package/dist/agents/skills/codex/harness-release-readiness/skill.yaml +58 -0
- package/dist/agents/skills/codex/harness-resilience/SKILL.md +255 -0
- package/dist/agents/skills/codex/harness-resilience/skill.yaml +76 -0
- package/dist/agents/skills/codex/harness-roadmap/SKILL.md +595 -0
- package/dist/agents/skills/codex/harness-roadmap/skill.yaml +44 -0
- package/dist/agents/skills/codex/harness-secrets/SKILL.md +293 -0
- package/dist/agents/skills/codex/harness-secrets/skill.yaml +76 -0
- package/dist/agents/skills/codex/harness-security-review/SKILL.md +260 -0
- package/dist/agents/skills/codex/harness-security-review/skill.yaml +53 -0
- package/dist/agents/skills/codex/harness-security-scan/SKILL.md +154 -0
- package/dist/agents/skills/codex/harness-security-scan/skill.yaml +42 -0
- package/dist/agents/skills/codex/harness-skill-authoring/SKILL.md +292 -0
- package/dist/agents/skills/codex/harness-skill-authoring/skill.yaml +33 -0
- package/dist/agents/skills/codex/harness-soundness-review/SKILL.md +1267 -0
- package/dist/agents/skills/codex/harness-soundness-review/skill.yaml +49 -0
- package/dist/agents/skills/codex/harness-sql-review/SKILL.md +315 -0
- package/dist/agents/skills/codex/harness-sql-review/skill.yaml +74 -0
- package/dist/agents/skills/codex/harness-state-management/SKILL.md +309 -0
- package/dist/agents/skills/codex/harness-state-management/skill.yaml +33 -0
- package/dist/agents/skills/codex/harness-supply-chain-audit/SKILL.md +281 -0
- package/dist/agents/skills/codex/harness-supply-chain-audit/skill.yaml +51 -0
- package/dist/agents/skills/codex/harness-tdd/SKILL.md +177 -0
- package/dist/agents/skills/codex/harness-tdd/skill.yaml +49 -0
- package/dist/agents/skills/codex/harness-test-advisor/SKILL.md +160 -0
- package/dist/agents/skills/codex/harness-test-advisor/skill.yaml +45 -0
- package/dist/agents/skills/codex/harness-test-data/SKILL.md +268 -0
- package/dist/agents/skills/codex/harness-test-data/skill.yaml +74 -0
- package/dist/agents/skills/codex/harness-ux-copy/SKILL.md +271 -0
- package/dist/agents/skills/codex/harness-ux-copy/skill.yaml +77 -0
- package/dist/agents/skills/codex/harness-verification/SKILL.md +421 -0
- package/dist/agents/skills/codex/harness-verification/skill.yaml +43 -0
- package/dist/agents/skills/codex/harness-verify/SKILL.md +159 -0
- package/dist/agents/skills/codex/harness-verify/skill.yaml +41 -0
- package/dist/agents/skills/codex/harness-visual-regression/SKILL.md +257 -0
- package/dist/agents/skills/codex/harness-visual-regression/skill.yaml +74 -0
- package/dist/agents/skills/codex/initialize-harness-project/SKILL.md +232 -0
- package/dist/agents/skills/codex/initialize-harness-project/skill.yaml +32 -0
- package/dist/agents/skills/codex/validate-context-engineering/SKILL.md +150 -0
- package/dist/agents/skills/codex/validate-context-engineering/skill.yaml +32 -0
- package/dist/agents/skills/cursor/add-harness-component/SKILL.md +192 -0
- package/dist/agents/skills/cursor/add-harness-component/skill.yaml +33 -0
- package/dist/agents/skills/cursor/align-documentation/SKILL.md +213 -0
- package/dist/agents/skills/cursor/align-documentation/skill.yaml +32 -0
- package/dist/agents/skills/cursor/check-mechanical-constraints/SKILL.md +191 -0
- package/dist/agents/skills/cursor/check-mechanical-constraints/skill.yaml +33 -0
- package/dist/agents/skills/cursor/cleanup-dead-code/SKILL.md +245 -0
- package/dist/agents/skills/cursor/cleanup-dead-code/skill.yaml +34 -0
- package/dist/agents/skills/cursor/detect-doc-drift/SKILL.md +179 -0
- package/dist/agents/skills/cursor/detect-doc-drift/skill.yaml +31 -0
- package/dist/agents/skills/cursor/enforce-architecture/SKILL.md +296 -0
- package/dist/agents/skills/cursor/enforce-architecture/skill.yaml +35 -0
- package/dist/agents/skills/cursor/harness-accessibility/SKILL.md +281 -0
- package/dist/agents/skills/cursor/harness-accessibility/skill.yaml +52 -0
- package/dist/agents/skills/cursor/harness-api-design/SKILL.md +356 -0
- package/dist/agents/skills/cursor/harness-api-design/skill.yaml +74 -0
- package/dist/agents/skills/cursor/harness-architecture-advisor/SKILL.md +449 -0
- package/dist/agents/skills/cursor/harness-architecture-advisor/skill.yaml +49 -0
- package/dist/agents/skills/cursor/harness-auth/SKILL.md +331 -0
- package/dist/agents/skills/cursor/harness-auth/skill.yaml +81 -0
- package/dist/agents/skills/cursor/harness-autopilot/SKILL.md +916 -0
- package/dist/agents/skills/cursor/harness-autopilot/skill.yaml +67 -0
- package/dist/agents/skills/cursor/harness-brainstorming/SKILL.md +406 -0
- package/dist/agents/skills/cursor/harness-brainstorming/skill.yaml +50 -0
- package/dist/agents/skills/cursor/harness-caching/SKILL.md +309 -0
- package/dist/agents/skills/cursor/harness-caching/skill.yaml +73 -0
- package/dist/agents/skills/cursor/harness-chaos/SKILL.md +295 -0
- package/dist/agents/skills/cursor/harness-chaos/skill.yaml +72 -0
- package/dist/agents/skills/cursor/harness-code-review/SKILL.md +857 -0
- package/dist/agents/skills/cursor/harness-code-review/skill.yaml +52 -0
- package/dist/agents/skills/cursor/harness-codebase-cleanup/SKILL.md +224 -0
- package/dist/agents/skills/cursor/harness-codebase-cleanup/skill.yaml +65 -0
- package/dist/agents/skills/cursor/harness-compliance/SKILL.md +303 -0
- package/dist/agents/skills/cursor/harness-compliance/skill.yaml +78 -0
- package/dist/agents/skills/cursor/harness-containerization/SKILL.md +284 -0
- package/dist/agents/skills/cursor/harness-containerization/skill.yaml +80 -0
- package/dist/agents/skills/cursor/harness-data-pipeline/SKILL.md +274 -0
- package/dist/agents/skills/cursor/harness-data-pipeline/skill.yaml +81 -0
- package/dist/agents/skills/cursor/harness-data-validation/SKILL.md +343 -0
- package/dist/agents/skills/cursor/harness-data-validation/skill.yaml +75 -0
- package/dist/agents/skills/cursor/harness-database/SKILL.md +310 -0
- package/dist/agents/skills/cursor/harness-database/skill.yaml +80 -0
- package/dist/agents/skills/cursor/harness-debugging/SKILL.md +366 -0
- package/dist/agents/skills/cursor/harness-debugging/skill.yaml +48 -0
- package/dist/agents/skills/cursor/harness-dependency-health/SKILL.md +179 -0
- package/dist/agents/skills/cursor/harness-dependency-health/skill.yaml +42 -0
- package/dist/agents/skills/cursor/harness-deployment/SKILL.md +307 -0
- package/dist/agents/skills/cursor/harness-deployment/skill.yaml +77 -0
- package/dist/agents/skills/cursor/harness-design/SKILL.md +265 -0
- package/dist/agents/skills/cursor/harness-design/skill.yaml +54 -0
- package/dist/agents/skills/cursor/harness-design-mobile/SKILL.md +336 -0
- package/dist/agents/skills/cursor/harness-design-mobile/skill.yaml +50 -0
- package/dist/agents/skills/cursor/harness-design-system/SKILL.md +282 -0
- package/dist/agents/skills/cursor/harness-design-system/skill.yaml +51 -0
- package/dist/agents/skills/cursor/harness-design-web/SKILL.md +360 -0
- package/dist/agents/skills/cursor/harness-design-web/skill.yaml +53 -0
- package/dist/agents/skills/cursor/harness-diagnostics/SKILL.md +318 -0
- package/dist/agents/skills/cursor/harness-diagnostics/skill.yaml +51 -0
- package/dist/agents/skills/cursor/harness-docs-pipeline/SKILL.md +460 -0
- package/dist/agents/skills/cursor/harness-docs-pipeline/skill.yaml +70 -0
- package/dist/agents/skills/cursor/harness-dx/SKILL.md +276 -0
- package/dist/agents/skills/cursor/harness-dx/skill.yaml +76 -0
- package/dist/agents/skills/cursor/harness-e2e/SKILL.md +245 -0
- package/dist/agents/skills/cursor/harness-e2e/skill.yaml +78 -0
- package/dist/agents/skills/cursor/harness-event-driven/SKILL.md +280 -0
- package/dist/agents/skills/cursor/harness-event-driven/skill.yaml +77 -0
- package/dist/agents/skills/cursor/harness-execution/SKILL.md +510 -0
- package/dist/agents/skills/cursor/harness-execution/skill.yaml +52 -0
- package/dist/agents/skills/cursor/harness-feature-flags/SKILL.md +287 -0
- package/dist/agents/skills/cursor/harness-feature-flags/skill.yaml +74 -0
- package/dist/agents/skills/cursor/harness-git-workflow/SKILL.md +268 -0
- package/dist/agents/skills/cursor/harness-git-workflow/skill.yaml +32 -0
- package/dist/agents/skills/cursor/harness-hotspot-detector/SKILL.md +161 -0
- package/dist/agents/skills/cursor/harness-hotspot-detector/skill.yaml +45 -0
- package/dist/agents/skills/cursor/harness-i18n/SKILL.md +484 -0
- package/dist/agents/skills/cursor/harness-i18n/skill.yaml +55 -0
- package/dist/agents/skills/cursor/harness-i18n-process/SKILL.md +388 -0
- package/dist/agents/skills/cursor/harness-i18n-process/skill.yaml +44 -0
- package/dist/agents/skills/cursor/harness-i18n-workflow/SKILL.md +512 -0
- package/dist/agents/skills/cursor/harness-i18n-workflow/skill.yaml +54 -0
- package/dist/agents/skills/cursor/harness-impact-analysis/SKILL.md +184 -0
- package/dist/agents/skills/cursor/harness-impact-analysis/skill.yaml +45 -0
- package/dist/agents/skills/cursor/harness-incident-response/SKILL.md +223 -0
- package/dist/agents/skills/cursor/harness-incident-response/skill.yaml +78 -0
- package/dist/agents/skills/cursor/harness-infrastructure-as-code/SKILL.md +279 -0
- package/dist/agents/skills/cursor/harness-infrastructure-as-code/skill.yaml +80 -0
- package/dist/agents/skills/cursor/harness-integration-test/SKILL.md +271 -0
- package/dist/agents/skills/cursor/harness-integration-test/skill.yaml +73 -0
- package/dist/agents/skills/cursor/harness-integrity/SKILL.md +167 -0
- package/dist/agents/skills/cursor/harness-integrity/skill.yaml +48 -0
- package/dist/agents/skills/cursor/harness-knowledge-mapper/SKILL.md +195 -0
- package/dist/agents/skills/cursor/harness-knowledge-mapper/skill.yaml +50 -0
- package/dist/agents/skills/cursor/harness-load-testing/SKILL.md +274 -0
- package/dist/agents/skills/cursor/harness-load-testing/skill.yaml +79 -0
- package/dist/agents/skills/cursor/harness-ml-ops/SKILL.md +341 -0
- package/dist/agents/skills/cursor/harness-ml-ops/skill.yaml +79 -0
- package/dist/agents/skills/cursor/harness-mobile-patterns/SKILL.md +326 -0
- package/dist/agents/skills/cursor/harness-mobile-patterns/skill.yaml +82 -0
- package/dist/agents/skills/cursor/harness-mutation-test/SKILL.md +251 -0
- package/dist/agents/skills/cursor/harness-mutation-test/skill.yaml +70 -0
- package/dist/agents/skills/cursor/harness-observability/SKILL.md +283 -0
- package/dist/agents/skills/cursor/harness-observability/skill.yaml +78 -0
- package/dist/agents/skills/cursor/harness-onboarding/SKILL.md +288 -0
- package/dist/agents/skills/cursor/harness-onboarding/skill.yaml +31 -0
- package/dist/agents/skills/cursor/harness-parallel-agents/SKILL.md +256 -0
- package/dist/agents/skills/cursor/harness-parallel-agents/skill.yaml +34 -0
- package/dist/agents/skills/cursor/harness-perf/SKILL.md +260 -0
- package/dist/agents/skills/cursor/harness-perf/skill.yaml +51 -0
- package/dist/agents/skills/cursor/harness-perf-tdd/SKILL.md +249 -0
- package/dist/agents/skills/cursor/harness-perf-tdd/skill.yaml +48 -0
- package/dist/agents/skills/cursor/harness-planning/SKILL.md +579 -0
- package/dist/agents/skills/cursor/harness-planning/skill.yaml +56 -0
- package/dist/agents/skills/cursor/harness-pre-commit-review/SKILL.md +324 -0
- package/dist/agents/skills/cursor/harness-pre-commit-review/skill.yaml +34 -0
- package/dist/agents/skills/cursor/harness-product-spec/SKILL.md +285 -0
- package/dist/agents/skills/cursor/harness-product-spec/skill.yaml +72 -0
- package/dist/agents/skills/cursor/harness-property-test/SKILL.md +281 -0
- package/dist/agents/skills/cursor/harness-property-test/skill.yaml +71 -0
- package/dist/agents/skills/cursor/harness-refactoring/SKILL.md +169 -0
- package/dist/agents/skills/cursor/harness-refactoring/skill.yaml +34 -0
- package/dist/agents/skills/cursor/harness-release-readiness/SKILL.md +689 -0
- package/dist/agents/skills/cursor/harness-release-readiness/skill.yaml +58 -0
- package/dist/agents/skills/cursor/harness-resilience/SKILL.md +255 -0
- package/dist/agents/skills/cursor/harness-resilience/skill.yaml +76 -0
- package/dist/agents/skills/cursor/harness-roadmap/SKILL.md +595 -0
- package/dist/agents/skills/cursor/harness-roadmap/skill.yaml +44 -0
- package/dist/agents/skills/cursor/harness-secrets/SKILL.md +293 -0
- package/dist/agents/skills/cursor/harness-secrets/skill.yaml +76 -0
- package/dist/agents/skills/cursor/harness-security-review/SKILL.md +260 -0
- package/dist/agents/skills/cursor/harness-security-review/skill.yaml +53 -0
- package/dist/agents/skills/cursor/harness-security-scan/SKILL.md +154 -0
- package/dist/agents/skills/cursor/harness-security-scan/skill.yaml +42 -0
- package/dist/agents/skills/cursor/harness-skill-authoring/SKILL.md +292 -0
- package/dist/agents/skills/cursor/harness-skill-authoring/skill.yaml +33 -0
- package/dist/agents/skills/cursor/harness-soundness-review/SKILL.md +1267 -0
- package/dist/agents/skills/cursor/harness-soundness-review/skill.yaml +49 -0
- package/dist/agents/skills/cursor/harness-sql-review/SKILL.md +315 -0
- package/dist/agents/skills/cursor/harness-sql-review/skill.yaml +74 -0
- package/dist/agents/skills/cursor/harness-state-management/SKILL.md +309 -0
- package/dist/agents/skills/cursor/harness-state-management/skill.yaml +33 -0
- package/dist/agents/skills/cursor/harness-supply-chain-audit/SKILL.md +281 -0
- package/dist/agents/skills/cursor/harness-supply-chain-audit/skill.yaml +51 -0
- package/dist/agents/skills/cursor/harness-tdd/SKILL.md +177 -0
- package/dist/agents/skills/cursor/harness-tdd/skill.yaml +49 -0
- package/dist/agents/skills/cursor/harness-test-advisor/SKILL.md +160 -0
- package/dist/agents/skills/cursor/harness-test-advisor/skill.yaml +45 -0
- package/dist/agents/skills/cursor/harness-test-data/SKILL.md +268 -0
- package/dist/agents/skills/cursor/harness-test-data/skill.yaml +74 -0
- package/dist/agents/skills/cursor/harness-ux-copy/SKILL.md +271 -0
- package/dist/agents/skills/cursor/harness-ux-copy/skill.yaml +77 -0
- package/dist/agents/skills/cursor/harness-verification/SKILL.md +421 -0
- package/dist/agents/skills/cursor/harness-verification/skill.yaml +43 -0
- package/dist/agents/skills/cursor/harness-verify/SKILL.md +159 -0
- package/dist/agents/skills/cursor/harness-verify/skill.yaml +41 -0
- package/dist/agents/skills/cursor/harness-visual-regression/SKILL.md +257 -0
- package/dist/agents/skills/cursor/harness-visual-regression/skill.yaml +74 -0
- package/dist/agents/skills/cursor/initialize-harness-project/SKILL.md +232 -0
- package/dist/agents/skills/cursor/initialize-harness-project/skill.yaml +32 -0
- package/dist/agents/skills/cursor/validate-context-engineering/SKILL.md +150 -0
- package/dist/agents/skills/cursor/validate-context-engineering/skill.yaml +32 -0
- package/dist/agents/skills/gemini-cli/enforce-architecture/SKILL.md +52 -0
- package/dist/agents/skills/gemini-cli/harness-api-design/SKILL.md +52 -0
- package/dist/agents/skills/gemini-cli/harness-architecture-advisor/SKILL.md +52 -0
- package/dist/agents/skills/gemini-cli/harness-auth/SKILL.md +52 -0
- package/dist/agents/skills/gemini-cli/harness-autopilot/SKILL.md +355 -45
- package/dist/agents/skills/gemini-cli/harness-autopilot/skill.yaml +12 -0
- package/dist/agents/skills/gemini-cli/harness-code-review/SKILL.md +97 -3
- package/dist/agents/skills/gemini-cli/harness-code-review/skill.yaml +6 -0
- package/dist/agents/skills/gemini-cli/harness-codebase-cleanup/SKILL.md +2 -4
- package/dist/agents/skills/gemini-cli/harness-database/SKILL.md +52 -0
- package/dist/agents/skills/gemini-cli/harness-deployment/SKILL.md +52 -0
- package/dist/agents/skills/gemini-cli/harness-planning/SKILL.md +99 -3
- package/dist/agents/skills/gemini-cli/harness-planning/skill.yaml +6 -0
- package/dist/agents/skills/gemini-cli/harness-pre-commit-review/SKILL.md +1 -1
- package/dist/agents/skills/gemini-cli/harness-product-spec/SKILL.md +5 -5
- package/dist/agents/skills/gemini-cli/harness-security-review/SKILL.md +27 -7
- package/dist/agents/skills/gemini-cli/harness-security-scan/SKILL.md +52 -0
- package/dist/agents/skills/gemini-cli/harness-supply-chain-audit/SKILL.md +281 -0
- package/dist/agents/skills/gemini-cli/harness-supply-chain-audit/skill.yaml +51 -0
- package/dist/agents/skills/package.json +1 -0
- package/dist/agents/skills/templates/discipline-template.md +49 -0
- package/dist/agents/skills/tests/schema.ts +1 -1
- package/dist/agents/skills/vitest.config.mts +5 -0
- package/dist/{agents-md-YTYQDA3P.js → agents-md-VYDFPIRW.js} +1 -1
- package/dist/{architecture-JQZYM4US.js → architecture-K5HSRBGB.js} +2 -2
- package/dist/bin/harness-mcp.js +13 -13
- package/dist/bin/harness.js +21 -19
- package/dist/{check-phase-gate-L3RADYWO.js → check-phase-gate-5AS6SXL6.js} +3 -3
- package/dist/{chunk-6KTUUFRN.js → chunk-5ZXHMCPL.js} +1 -1
- package/dist/{chunk-RCWZBSK5.js → chunk-6KWBH4EO.js} +1 -1
- package/dist/{chunk-ABQHQ6I5.js → chunk-ALFKNAZW.js} +2436 -233
- package/dist/{chunk-OXLLOSSR.js → chunk-AV6KMDO5.js} +2 -2
- package/dist/{chunk-7IP4JIFL.js → chunk-C7DTKLPW.js} +4 -4
- package/dist/{chunk-ZOAWBDWU.js → chunk-CJDVBBPB.js} +5 -1
- package/dist/{chunk-YPYGXRDR.js → chunk-DNDBFIZN.js} +18 -4
- package/dist/{chunk-XYLGHKG6.js → chunk-HKUX2X7O.js} +11 -2
- package/dist/{chunk-YZD2MRNQ.js → chunk-JOP2NDNB.js} +684 -142
- package/dist/{chunk-YBJ262QL.js → chunk-LRG3B43J.js} +1 -1
- package/dist/{chunk-AOZRDOIP.js → chunk-M6TIO6NF.js} +1 -1
- package/dist/{chunk-O5OJVPL6.js → chunk-OCDDCGDE.js} +9 -1
- package/dist/{chunk-OSXBPAMK.js → chunk-QDF7COPQ.js} +1 -1
- package/dist/{chunk-TPOTOBR7.js → chunk-RWZPHW4H.js} +3 -3
- package/dist/{chunk-3C2MLBPJ.js → chunk-SFRGPAK6.js} +1 -1
- package/dist/{chunk-XKECDXJS.js → chunk-SHYWICGA.js} +2184 -456
- package/dist/{chunk-S2FXOWOR.js → chunk-TF6ZLHJV.js} +2 -2
- package/dist/{chunk-NLVUVUGD.js → chunk-ZJMU7MEV.js} +1 -1
- package/dist/{ci-workflow-EQZFVX3P.js → ci-workflow-CRWU723U.js} +1 -1
- package/dist/{create-skill-XSWHMSM5.js → create-skill-NDXQSTIK.js} +2 -2
- package/dist/{dist-HWXF2C3R.js → dist-4LPXJYVZ.js} +105 -1
- package/dist/{docs-7ECGYMAV.js → docs-4JRHTLUZ.js} +3 -3
- package/dist/{engine-EG4EH4IX.js → engine-3G3VIM6L.js} +1 -1
- package/dist/{entropy-5USWKLVS.js → entropy-G6CZ2A6P.js} +2 -2
- package/dist/{feedback-UTBXZZHF.js → feedback-QYKQ65HB.js} +1 -1
- package/dist/{generate-agent-definitions-3PM5EU7V.js → generate-agent-definitions-SAAOAPT4.js} +3 -3
- package/dist/index.d.ts +25 -4
- package/dist/index.js +18 -18
- package/dist/{loader-ZPALXIVR.js → loader-VCOK3PF7.js} +1 -1
- package/dist/{mcp-362EZHF4.js → mcp-YENEPHBW.js} +13 -13
- package/dist/{performance-OQAFMJUD.js → performance-UBCFI2UP.js} +4 -2
- package/dist/{review-pipeline-C4GCFVGP.js → review-pipeline-IQAVCWAX.js} +1 -1
- package/dist/{runtime-7YLVK453.js → runtime-PYFFIESU.js} +1 -1
- package/dist/{security-PZOX7AQS.js → security-ZDADTPYW.js} +1 -1
- package/dist/{skill-executor-XZLYZYAK.js → skill-executor-XEVDGXUM.js} +2 -2
- package/dist/{validate-FD3Z6VJD.js → validate-VRTUHALQ.js} +2 -2
- package/dist/{validate-cross-check-WNJM6H2D.js → validate-cross-check-4Y6NHNK3.js} +1 -1
- package/package.json +8 -5
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
<!-- Generated by harness generate-slash-commands. Do not edit. -->
|
|
2
|
+
|
|
3
|
+
# Harness Planning
|
|
4
|
+
|
|
5
|
+
> Implementation planning with atomic tasks, goal-backward must-haves, and complete executable instructions. Every task fits in one context window.
|
|
6
|
+
|
|
7
|
+
## When to Use
|
|
8
|
+
|
|
9
|
+
- After a design spec is approved (output of harness-brainstorming) and implementation needs to be planned
|
|
10
|
+
- When starting a new feature or project that needs structured task decomposition
|
|
11
|
+
- When `on_new_feature` or `on_project_init` triggers fire and the work is non-trivial
|
|
12
|
+
- When resuming a stalled project that needs a fresh plan
|
|
13
|
+
- NOT when the task is small enough to implement directly (under 15 minutes, single file — just do it)
|
|
14
|
+
- NOT when you need to explore the problem space first (use harness-brainstorming)
|
|
15
|
+
- NOT when a plan already exists and needs execution (use harness-execution)
|
|
16
|
+
|
|
17
|
+
## Process
|
|
18
|
+
|
|
19
|
+
### Iron Law
|
|
20
|
+
|
|
21
|
+
**Every task in the plan must be completable in one context window (2-5 minutes). If a task is larger, split it.**
|
|
22
|
+
|
|
23
|
+
A plan with vague tasks like "add validation" or "implement the service" is not a plan — it is a wish list. Every task must contain exact file paths, exact commands, and complete code snippets.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### Rigor Levels
|
|
28
|
+
|
|
29
|
+
The `rigorLevel` is passed to the planner by autopilot (or set via `--fast`/`--thorough` flags in standalone invocation). Default is `standard`.
|
|
30
|
+
|
|
31
|
+
| Phase | `fast` | `standard` (default) | `thorough` |
|
|
32
|
+
| --------- | ---------------------------------------------------------------- | --------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
|
33
|
+
| SCOPE | No change — always derive observable truths. | No change. | No change. |
|
|
34
|
+
| DECOMPOSE | Skip skeleton pass. Produce full tasks directly after file map. | Skeleton if estimated task count >= 8. Full tasks if < 8. | Always produce skeleton. Require human approval before expanding to full tasks. |
|
|
35
|
+
| SEQUENCE | No change — always order by dependency. | No change. | No change. |
|
|
36
|
+
| VALIDATE | No change — always run harness validate and verify completeness. | No change. | No change. |
|
|
37
|
+
|
|
38
|
+
The skeleton pass is the primary rigor lever for planning. Fast mode trusts the direction and goes straight to full detail. Thorough mode always validates direction before investing tokens in full task expansion.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
### Phase 1: SCOPE — Derive Must-Haves from Goals
|
|
43
|
+
|
|
44
|
+
Work backward from the goal. Do not start with "what should we build?" Start with "what must be true when we are done?"
|
|
45
|
+
|
|
46
|
+
1. **State the goal.** One sentence. What does the system do when this plan is complete?
|
|
47
|
+
|
|
48
|
+
2. **Derive observable truths.** What can be observed (by running a command, opening a browser, reading a file) that proves the goal is met? These are your acceptance criteria. Be specific:
|
|
49
|
+
- BAD: "The API handles errors"
|
|
50
|
+
- GOOD: "GET /api/users/nonexistent returns 404 with `{ error: 'User not found' }` body"
|
|
51
|
+
|
|
52
|
+
3. **Derive required artifacts.** For each observable truth, what files must exist? What functions must be implemented? What tests must pass? List exact file paths.
|
|
53
|
+
|
|
54
|
+
4. **Identify key links.** How do the artifacts connect? What imports what? What calls what? What data flows where? Draw the dependency graph mentally.
|
|
55
|
+
|
|
56
|
+
5. **Apply YAGNI.** For every artifact, ask: "Is this required for an observable truth?" If not, cut it.
|
|
57
|
+
|
|
58
|
+
When scope is ambiguous and requires clarification, use `emit_interaction`:
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
emit_interaction({
|
|
62
|
+
path: "<project-root>",
|
|
63
|
+
type: "question",
|
|
64
|
+
question: {
|
|
65
|
+
text: "The spec mentions X but does not define behavior for Y. Should we:",
|
|
66
|
+
options: [
|
|
67
|
+
{
|
|
68
|
+
label: "A) Include Y in this plan",
|
|
69
|
+
pros: ["Complete feature in one pass", "No follow-up coordination needed"],
|
|
70
|
+
cons: ["Increases plan scope and time", "May delay delivery"],
|
|
71
|
+
risk: "medium",
|
|
72
|
+
effort: "high"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: "B) Defer Y to a follow-up plan",
|
|
76
|
+
pros: ["Keeps current plan focused", "Ship sooner"],
|
|
77
|
+
cons: ["Y remains unhandled", "May need rework when Y is added"],
|
|
78
|
+
risk: "low",
|
|
79
|
+
effort: "low"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: "C) Update the spec first",
|
|
83
|
+
pros: ["Design is complete before planning", "No surprises during execution"],
|
|
84
|
+
cons: ["Blocks planning until spec is updated", "Extra round-trip"],
|
|
85
|
+
risk: "low",
|
|
86
|
+
effort: "medium"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
recommendation: {
|
|
90
|
+
optionIndex: 1,
|
|
91
|
+
reason: "Keeping the current plan focused reduces risk. Y can be addressed in a dedicated follow-up.",
|
|
92
|
+
confidence: "medium"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
#### EARS Requirement Patterns
|
|
99
|
+
|
|
100
|
+
When writing observable truths and acceptance criteria, use EARS (Easy Approach to Requirements Syntax) sentence patterns. These patterns eliminate ambiguity by forcing a consistent grammatical structure.
|
|
101
|
+
|
|
102
|
+
| Pattern | Template | Use When |
|
|
103
|
+
| ---------------- | -------------------------------------------------------- | ------------------------------------------------- |
|
|
104
|
+
| **Ubiquitous** | The system shall [behavior]. | Behavior that always applies, unconditionally |
|
|
105
|
+
| **Event-driven** | When [trigger], the system shall [response]. | Behavior triggered by a specific event |
|
|
106
|
+
| **State-driven** | While [state], the system shall [behavior]. | Behavior that applies only during a certain state |
|
|
107
|
+
| **Optional** | Where [feature is enabled], the system shall [behavior]. | Behavior gated by a configuration or feature flag |
|
|
108
|
+
| **Unwanted** | If [condition], then the system shall not [behavior]. | Explicitly preventing undesirable behavior |
|
|
109
|
+
|
|
110
|
+
**Worked Examples:**
|
|
111
|
+
|
|
112
|
+
1. **Ubiquitous:** "The system shall return JSON responses with `Content-Type: application/json` header."
|
|
113
|
+
2. **Event-driven:** "When a user submits an invalid form, the system shall display field-level error messages within 200ms."
|
|
114
|
+
3. **State-driven:** "While the database connection is unavailable, the system shall serve cached responses and log reconnection attempts."
|
|
115
|
+
4. **Optional:** "Where rate limiting is enabled, the system shall reject requests exceeding 100/minute per API key with HTTP 429."
|
|
116
|
+
5. **Unwanted:** "If the request body exceeds 10MB, then the system shall not attempt to parse it — return HTTP 413 immediately."
|
|
117
|
+
|
|
118
|
+
**When to use EARS:** Apply these patterns when writing observable truths in Phase 1. Not every criterion needs an EARS pattern — use them when the requirement is behavioral (not structural). File existence checks ("src/types/user.ts exists with User interface") do not need EARS framing.
|
|
119
|
+
|
|
120
|
+
### Graph-Enhanced Context (when available)
|
|
121
|
+
|
|
122
|
+
When a knowledge graph exists at `.harness/graph/`, use graph queries for faster, more accurate context:
|
|
123
|
+
|
|
124
|
+
- `query_graph` — discover module dependencies for realistic task decomposition
|
|
125
|
+
- `get_impact` — estimate which modules a feature touches and their dependencies
|
|
126
|
+
|
|
127
|
+
Enables accurate effort estimation and task sequencing. Fall back to file-based commands if no graph is available.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
### Phase 2: DECOMPOSE — Map File Structure and Create Tasks
|
|
132
|
+
|
|
133
|
+
When presenting the task breakdown, use progress markers:
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
**[Phase 2/4]** DECOMPOSE — mapping file structure and creating tasks
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
1. **Map the file structure first.** Before writing any tasks, list every file that will be created or modified. This is where decomposition decisions are locked. Example:
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
CREATE src/services/notification-service.ts
|
|
143
|
+
CREATE src/services/notification-service.test.ts
|
|
144
|
+
MODIFY src/services/index.ts (add export)
|
|
145
|
+
CREATE src/types/notification.ts
|
|
146
|
+
MODIFY src/api/routes/users.ts (add notification trigger)
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
2. **Skeleton pass (rigor-gated).** Before writing full task details, produce a lightweight skeleton that validates direction. The skeleton is ~200 tokens and catches structural errors before investing in full expansion.
|
|
150
|
+
|
|
151
|
+
**Gating logic:**
|
|
152
|
+
- `rigorLevel == "fast"`: Skip this step entirely. Proceed directly to full task decomposition.
|
|
153
|
+
- `rigorLevel == "standard"`: Estimate the task count from the file map. If >= 8 tasks, produce the skeleton and present for approval. If < 8 tasks, skip the skeleton and proceed to full decomposition.
|
|
154
|
+
- `rigorLevel == "thorough"`: Always produce the skeleton and require human approval before expanding.
|
|
155
|
+
|
|
156
|
+
**Skeleton format:**
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
## Skeleton
|
|
160
|
+
|
|
161
|
+
1. Foundation types and interfaces (~3 tasks, ~10 min)
|
|
162
|
+
2. Core scoring module with TDD (~2 tasks, ~8 min)
|
|
163
|
+
3. CLI integration and flag parsing (~4 tasks, ~15 min)
|
|
164
|
+
4. Integration tests and validation (~3 tasks, ~10 min)
|
|
165
|
+
|
|
166
|
+
**Estimated total:** 12 tasks, ~43 minutes
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Each line is a logical group of tasks with an estimated count and time. The skeleton does NOT contain file paths, code, or detailed instructions — those come in the expansion step.
|
|
170
|
+
|
|
171
|
+
**Approval gate:**
|
|
172
|
+
|
|
173
|
+
When the skeleton is produced, present it to the human:
|
|
174
|
+
|
|
175
|
+
```json
|
|
176
|
+
emit_interaction({
|
|
177
|
+
path: "<project-root>",
|
|
178
|
+
type: "confirmation",
|
|
179
|
+
confirmation: {
|
|
180
|
+
text: "Approve skeleton direction?",
|
|
181
|
+
context: "<estimated task count> tasks across <group count> groups. <one-sentence summary of approach>",
|
|
182
|
+
impact: "Approving proceeds to full task expansion. Rejecting allows direction change before detail investment.",
|
|
183
|
+
risk: "low"
|
|
184
|
+
}
|
|
185
|
+
})
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
- **If approved:** Proceed to full task decomposition (step 3).
|
|
189
|
+
- **If rejected:** Ask what should change. Revise the skeleton. Re-present for approval. Do not expand until approved.
|
|
190
|
+
|
|
191
|
+
3. **Decompose into atomic tasks.** Each task must:
|
|
192
|
+
- Be completable in 2-5 minutes
|
|
193
|
+
- Fit in a single context window
|
|
194
|
+
- Have a clear, testable outcome
|
|
195
|
+
- Follow TDD: write test, fail, implement, pass, commit
|
|
196
|
+
- Produce one atomic commit
|
|
197
|
+
|
|
198
|
+
4. **Write complete instructions for each task.** Not summaries — complete executable instructions:
|
|
199
|
+
- **Exact file paths** to create or modify
|
|
200
|
+
- **Exact code** to write (not "add validation logic" — write the actual validation code)
|
|
201
|
+
- **Exact test commands** to run (e.g., `npx vitest run src/services/notification-service.test.ts`)
|
|
202
|
+
- **Exact commit message** to use
|
|
203
|
+
- **`harness validate`** as the final step
|
|
204
|
+
|
|
205
|
+
5. **Include checkpoints.** Mark tasks that require human verification, decisions, or actions:
|
|
206
|
+
- `[checkpoint:human-verify]` — Pause, show result, wait for confirmation
|
|
207
|
+
- `[checkpoint:decision]` — Pause, present options, wait for choice
|
|
208
|
+
- `[checkpoint:human-action]` — Pause, instruct human on what they need to do
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
### Phase 3: SEQUENCE — Order Tasks and Identify Dependencies
|
|
213
|
+
|
|
214
|
+
1. **Order by dependency.** Types before implementations. Implementations before integrations. Tests alongside their implementations (same task, TDD style).
|
|
215
|
+
|
|
216
|
+
2. **Identify parallel opportunities.** Tasks that touch different subsystems with no shared state can be marked as parallelizable (for harness-parallel-agents).
|
|
217
|
+
|
|
218
|
+
3. **Number tasks sequentially.** Use `Task 1`, `Task 2`, etc. Dependencies reference task numbers: "Depends on: Task 3."
|
|
219
|
+
|
|
220
|
+
4. **Estimate total time.** Each task is 2-5 minutes. Sum them. If the total exceeds the available time, identify a milestone boundary where the plan can be paused with a working system.
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
### Phase 4: VALIDATE — Review and Finalize the Plan
|
|
225
|
+
|
|
226
|
+
1. **Verify completeness.** Every observable truth from Phase 1 must be achievable by completing the tasks. Trace each truth to the specific task(s) that deliver it.
|
|
227
|
+
|
|
228
|
+
2. **Verify task sizing.** Read each task. Could an agent complete it in one context window without needing to explore or make decisions? If not, split it.
|
|
229
|
+
|
|
230
|
+
3. **Verify TDD compliance.** Every task that produces code must include a test step. No task should say "write tests later."
|
|
231
|
+
|
|
232
|
+
4. **Run `harness validate`** to verify project health before writing the plan.
|
|
233
|
+
|
|
234
|
+
5. **Check failures log.** Read `.harness/failures.md` before finalizing. If planned approaches match known failures, flag them with warnings.
|
|
235
|
+
|
|
236
|
+
6. **Run soundness review.** After the plan passes completeness verification, invoke `harness-soundness-review --mode plan` against the draft. Do not proceed to write the plan until the soundness review converges with no remaining issues.
|
|
237
|
+
|
|
238
|
+
7. **Write the plan to `docs/plans/`.** Use naming convention: `YYYY-MM-DD-<feature-name>-plan.md`. If the directory does not exist, create it.
|
|
239
|
+
|
|
240
|
+
8. **Write handoff.** Save `.harness/handoff.json` with the following structure:
|
|
241
|
+
|
|
242
|
+
```json
|
|
243
|
+
{
|
|
244
|
+
"fromSkill": "harness-planning",
|
|
245
|
+
"phase": "VALIDATE",
|
|
246
|
+
"summary": "<one-sentence description of what was planned>",
|
|
247
|
+
"completed": [],
|
|
248
|
+
"pending": ["<task 1>", "<task 2>", "..."],
|
|
249
|
+
"concerns": ["<any concerns or risks identified>"],
|
|
250
|
+
"decisions": ["<key decisions made during planning>"],
|
|
251
|
+
"contextKeywords": ["<domain-relevant keywords>"]
|
|
252
|
+
}
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
9. **Write session summary (if session is known).** If running within a session (autopilot dispatch or standalone with session context), write the session summary:
|
|
256
|
+
|
|
257
|
+
```json
|
|
258
|
+
writeSessionSummary(projectPath, sessionSlug, {
|
|
259
|
+
session: "<session-slug>",
|
|
260
|
+
lastActive: "<ISO timestamp>",
|
|
261
|
+
skill: "harness-planning",
|
|
262
|
+
status: "Plan complete. <N> tasks defined.",
|
|
263
|
+
spec: "<spec path if known>",
|
|
264
|
+
plan: "<plan file path>",
|
|
265
|
+
keyContext: "<1-2 sentences: what was planned, key decisions>",
|
|
266
|
+
nextStep: "Approve plan and begin execution."
|
|
267
|
+
})
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
If no session slug is known (standalone invocation without session context), skip this step.
|
|
271
|
+
|
|
272
|
+
10. **Request plan sign-off:**
|
|
273
|
+
|
|
274
|
+
```json
|
|
275
|
+
emit_interaction({
|
|
276
|
+
path: "<project-root>",
|
|
277
|
+
type: "confirmation",
|
|
278
|
+
confirmation: {
|
|
279
|
+
text: "Approve plan at <plan-file-path>?",
|
|
280
|
+
context: "<task count> tasks, <estimated time> minutes. <one-sentence summary>",
|
|
281
|
+
impact: "Approving unlocks task-by-task execution. Plan defines exact file paths, code, and commands.",
|
|
282
|
+
risk: "low"
|
|
283
|
+
}
|
|
284
|
+
})
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
11. **Suggest transition to execution.** After the human approves the plan:
|
|
288
|
+
|
|
289
|
+
Call `emit_interaction`:
|
|
290
|
+
|
|
291
|
+
```json
|
|
292
|
+
{
|
|
293
|
+
"type": "transition",
|
|
294
|
+
"transition": {
|
|
295
|
+
"completedPhase": "planning",
|
|
296
|
+
"suggestedNext": "execution",
|
|
297
|
+
"reason": "Plan approved with all tasks defined",
|
|
298
|
+
"artifacts": ["<plan file path>"],
|
|
299
|
+
"requiresConfirmation": true,
|
|
300
|
+
"summary": "<Plan title> -- <N> tasks, <N> checkpoints. Estimated <time>.",
|
|
301
|
+
"qualityGate": {
|
|
302
|
+
"checks": [
|
|
303
|
+
{ "name": "plan-written", "passed": true, "detail": "Written to docs/plans/" },
|
|
304
|
+
{ "name": "harness-validate", "passed": true },
|
|
305
|
+
{ "name": "observable-truths-traced", "passed": true },
|
|
306
|
+
{ "name": "human-approved", "passed": true }
|
|
307
|
+
],
|
|
308
|
+
"allPassed": true
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
If the user confirms: invoke harness-execution with the plan path.
|
|
315
|
+
If the user declines: stop. The handoff is already written for future invocation.
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
### Plan Document Structure
|
|
320
|
+
|
|
321
|
+
````markdown
|
|
322
|
+
# Plan: <Feature Name>
|
|
323
|
+
|
|
324
|
+
**Date:** YYYY-MM-DD
|
|
325
|
+
**Spec:** docs/changes/<feature>/proposal.md (if applicable)
|
|
326
|
+
**Estimated tasks:** N
|
|
327
|
+
**Estimated time:** N minutes
|
|
328
|
+
|
|
329
|
+
## Goal
|
|
330
|
+
|
|
331
|
+
One sentence.
|
|
332
|
+
|
|
333
|
+
## Observable Truths (Acceptance Criteria)
|
|
334
|
+
|
|
335
|
+
1. [observable truth]
|
|
336
|
+
2. [observable truth]
|
|
337
|
+
|
|
338
|
+
## File Map
|
|
339
|
+
|
|
340
|
+
- CREATE path/to/file.ts
|
|
341
|
+
- MODIFY path/to/other-file.ts
|
|
342
|
+
|
|
343
|
+
## Skeleton (if produced)
|
|
344
|
+
|
|
345
|
+
1. <group name> (~N tasks, ~N min)
|
|
346
|
+
2. <group name> (~N tasks, ~N min)
|
|
347
|
+
|
|
348
|
+
**Estimated total:** N tasks, ~N minutes
|
|
349
|
+
|
|
350
|
+
_Skeleton approved: yes/no. If no, note the revision._
|
|
351
|
+
|
|
352
|
+
## Tasks
|
|
353
|
+
|
|
354
|
+
### Task 1: <descriptive name>
|
|
355
|
+
|
|
356
|
+
**Depends on:** none
|
|
357
|
+
**Files:** path/to/file.ts, path/to/file.test.ts
|
|
358
|
+
|
|
359
|
+
1. Create test file `path/to/file.test.ts`:
|
|
360
|
+
```typescript
|
|
361
|
+
// exact test code
|
|
362
|
+
```
|
|
363
|
+
````
|
|
364
|
+
|
|
365
|
+
2. Run test: `npx vitest run path/to/file.test.ts`
|
|
366
|
+
3. Observe failure: [expected failure message]
|
|
367
|
+
4. Create implementation `path/to/file.ts`:
|
|
368
|
+
```typescript
|
|
369
|
+
// exact implementation code
|
|
370
|
+
```
|
|
371
|
+
5. Run test: `npx vitest run path/to/file.test.ts`
|
|
372
|
+
6. Observe: all tests pass
|
|
373
|
+
7. Run: `harness validate`
|
|
374
|
+
8. Commit: `feat(scope): descriptive message`
|
|
375
|
+
|
|
376
|
+
### Task 2: <descriptive name>
|
|
377
|
+
|
|
378
|
+
[checkpoint:human-verify]
|
|
379
|
+
...
|
|
380
|
+
|
|
381
|
+
````
|
|
382
|
+
|
|
383
|
+
## Session State
|
|
384
|
+
|
|
385
|
+
This skill reads and writes to the following session sections via `manage_state`:
|
|
386
|
+
|
|
387
|
+
| Section | Read | Write | Purpose |
|
|
388
|
+
|---------|------|-------|---------|
|
|
389
|
+
| terminology | yes | no | Reads domain terms to use consistent language in plan |
|
|
390
|
+
| decisions | yes | yes | Reads brainstorming decisions; records planning-phase decisions |
|
|
391
|
+
| constraints | yes | yes | Reads existing constraints; adds constraints discovered during decomposition |
|
|
392
|
+
| risks | yes | yes | Reads existing risks; adds implementation risks identified during task design |
|
|
393
|
+
| openQuestions | yes | yes | Reads unresolved questions; adds new questions, resolves answered ones |
|
|
394
|
+
| evidence | yes | yes | Reads prior evidence from brainstorming; writes file:line citations for task specifications |
|
|
395
|
+
|
|
396
|
+
**When to write:** During Phase 1 (SCOPE) write newly discovered constraints and risks. During Phase 2 (DECOMPOSE) write decisions about task structure and sequencing. Mark resolved questions during Phase 4 (VALIDATE).
|
|
397
|
+
|
|
398
|
+
**When to read:** At the start of Phase 1 (SCOPE), read all sections via `gather_context` with `include: ["sessions"]` to inherit context from brainstorming. Use terminology for consistent naming in task descriptions.
|
|
399
|
+
|
|
400
|
+
## Evidence Requirements
|
|
401
|
+
|
|
402
|
+
When this skill makes claims about existing code structure, file locations, or implementation patterns in task specifications, it MUST cite evidence using one of:
|
|
403
|
+
|
|
404
|
+
1. **File reference:** `file:line` format (e.g., `src/services/index.ts:15` -- "barrel export exists, will add new export here")
|
|
405
|
+
2. **Code pattern reference:** `file:line` format with pattern description (e.g., `src/services/user-service.ts:1-30` -- "existing service follows constructor injection pattern, new service will match")
|
|
406
|
+
3. **Test output:** Include the command and its observed output when referencing current test state
|
|
407
|
+
4. **Session evidence:** Write to the `evidence` session section:
|
|
408
|
+
```json
|
|
409
|
+
manage_state({
|
|
410
|
+
action: "append_entry",
|
|
411
|
+
session: "<current-session>",
|
|
412
|
+
section: "evidence",
|
|
413
|
+
authorSkill: "harness-planning",
|
|
414
|
+
content: "src/services/index.ts:15 -- barrel export pattern confirmed for new service integration"
|
|
415
|
+
})
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
**When to cite:** During Phase 1 (SCOPE) when referencing existing files for observable truths. During Phase 2 (DECOMPOSE) when specifying exact file paths and code patterns in task instructions. When the file map references existing files for modification.
|
|
419
|
+
|
|
420
|
+
**Uncited claims:** Technical assertions about existing code without citations MUST be prefixed with `[UNVERIFIED]`. Example: `[UNVERIFIED] The service barrel exports all services`. Uncited claims are flagged during review (Wave 2.2).
|
|
421
|
+
|
|
422
|
+
## Harness Integration
|
|
423
|
+
|
|
424
|
+
- **`harness validate`** — Run during Phase 4 (before writing the plan) and included as a step in every task.
|
|
425
|
+
- **`harness check-deps`** — Referenced in tasks that add imports or create new modules. Ensures dependency boundaries are respected.
|
|
426
|
+
- **Plan location** — Plans go to `docs/plans/`. Follow the naming convention: `YYYY-MM-DD-<feature-name>-plan.md`.
|
|
427
|
+
- **Handoff to harness-execution** — Once the plan is approved, invoke harness-execution to begin task-by-task implementation.
|
|
428
|
+
- **Task commands** — Every task includes exact harness CLI commands to run (e.g., `harness validate`, `harness check-deps`).
|
|
429
|
+
- **`emit_interaction`** -- Call at the end of Phase 4 to suggest transitioning to harness-execution. Uses confirmed transition (waits for user approval).
|
|
430
|
+
- **Rigor levels** — `--fast` / `--thorough` flags control the skeleton pass in DECOMPOSE. Fast skips skeleton entirely. Standard produces skeleton for plans with >= 8 tasks. Thorough always produces skeleton and requires approval. See the Rigor Levels table for details.
|
|
431
|
+
- **Two-pass planning** — Skeleton pass produces a ~200-token outline before full task expansion. Catches directional errors early. Gated by rigor level and estimated task count.
|
|
432
|
+
|
|
433
|
+
## Change Specifications
|
|
434
|
+
|
|
435
|
+
When planning changes to existing functionality (not greenfield), express requirements as deltas from the current documented behavior. Use these markers:
|
|
436
|
+
|
|
437
|
+
- **[ADDED]** — New behavior that does not exist today
|
|
438
|
+
- **[MODIFIED]** — Existing behavior that changes
|
|
439
|
+
- **[REMOVED]** — Existing behavior that goes away
|
|
440
|
+
|
|
441
|
+
**Example:**
|
|
442
|
+
```markdown
|
|
443
|
+
## Changes to User Authentication
|
|
444
|
+
|
|
445
|
+
- [ADDED] Support OAuth2 refresh tokens with 7-day expiry
|
|
446
|
+
- [MODIFIED] Login endpoint returns `refreshToken` field alongside existing `accessToken`
|
|
447
|
+
- [MODIFIED] Token validation middleware accepts both JWT and OAuth2 tokens
|
|
448
|
+
- [REMOVED] Legacy API key authentication (deprecated in v2.1)
|
|
449
|
+
````
|
|
450
|
+
|
|
451
|
+
This is not mandatory for greenfield features. Only apply when modifying existing documented behavior.
|
|
452
|
+
|
|
453
|
+
When `docs/changes/` exists in the project, produce `docs/changes/<feature>/delta.md` alongside the task plan. This keeps the change intent separate from the full spec and makes review easier.
|
|
454
|
+
|
|
455
|
+
## Success Criteria
|
|
456
|
+
|
|
457
|
+
- A plan document exists in `docs/plans/` with all required sections
|
|
458
|
+
- Every task is completable in 2-5 minutes (one context window)
|
|
459
|
+
- Every task includes exact file paths, exact code, and exact commands
|
|
460
|
+
- Every code-producing task follows TDD: test first, fail, implement, pass
|
|
461
|
+
- Observable truths trace to specific tasks that deliver them
|
|
462
|
+
- File map lists every file to be created or modified
|
|
463
|
+
- Checkpoints are marked where human input is required
|
|
464
|
+
- `harness validate` passes before the plan is written
|
|
465
|
+
- `harness validate` is included as a step in every task
|
|
466
|
+
- The human has reviewed and approved the plan
|
|
467
|
+
- When `rigorLevel` is `fast`, the skeleton pass is skipped and full tasks are produced directly
|
|
468
|
+
- When `rigorLevel` is `thorough`, a skeleton is always produced and requires human approval before expansion
|
|
469
|
+
- When `rigorLevel` is `standard` and task count >= 8, a skeleton is produced for approval
|
|
470
|
+
- When `rigorLevel` is `standard` and task count < 8, the skeleton is skipped
|
|
471
|
+
- The skeleton format is lightweight (~200 tokens): numbered groups with task count and time estimates
|
|
472
|
+
|
|
473
|
+
## Examples
|
|
474
|
+
|
|
475
|
+
### Example: Planning a User Notification Feature
|
|
476
|
+
|
|
477
|
+
**Goal:** Users receive email and in-app notifications when their account is modified.
|
|
478
|
+
|
|
479
|
+
**Observable Truths:**
|
|
480
|
+
|
|
481
|
+
1. `POST /api/users/:id` with changed fields triggers a notification record in the database
|
|
482
|
+
2. `GET /api/notifications?userId=:id` returns the notification with type, message, and timestamp
|
|
483
|
+
3. Notification email is sent via the existing email utility (verified by mock in test)
|
|
484
|
+
4. `npx vitest run src/services/notification-service.test.ts` passes with 8+ tests
|
|
485
|
+
5. `harness validate` passes
|
|
486
|
+
|
|
487
|
+
**File Map:**
|
|
488
|
+
|
|
489
|
+
```
|
|
490
|
+
CREATE src/types/notification.ts
|
|
491
|
+
CREATE src/services/notification-service.ts
|
|
492
|
+
CREATE src/services/notification-service.test.ts
|
|
493
|
+
MODIFY src/services/index.ts
|
|
494
|
+
MODIFY src/api/routes/users.ts
|
|
495
|
+
MODIFY src/api/routes/users.test.ts
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
**Skeleton (standard mode, 6 tasks — skeleton skipped because < 8 tasks)**
|
|
499
|
+
|
|
500
|
+
_Skeleton not produced — task count (6) below threshold (8)._
|
|
501
|
+
|
|
502
|
+
**Task 1: Define notification types**
|
|
503
|
+
|
|
504
|
+
```
|
|
505
|
+
Files: src/types/notification.ts
|
|
506
|
+
1. Create src/types/notification.ts:
|
|
507
|
+
export interface Notification {
|
|
508
|
+
id: string;
|
|
509
|
+
userId: string;
|
|
510
|
+
type: 'account_modified';
|
|
511
|
+
message: string;
|
|
512
|
+
read: boolean;
|
|
513
|
+
createdAt: Date;
|
|
514
|
+
expiresAt: Date;
|
|
515
|
+
}
|
|
516
|
+
2. Run: harness validate
|
|
517
|
+
3. Commit: "feat(notifications): define Notification type"
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
**Task 2: Create notification service with create method (TDD)**
|
|
521
|
+
|
|
522
|
+
```
|
|
523
|
+
Files: src/services/notification-service.ts, src/services/notification-service.test.ts
|
|
524
|
+
1. Write test: create notification returns Notification object with correct fields
|
|
525
|
+
2. Run test — observe: NotificationService is not defined
|
|
526
|
+
3. Implement: NotificationService.create() stores and returns notification
|
|
527
|
+
4. Run test — observe: pass
|
|
528
|
+
5. Run: harness validate
|
|
529
|
+
6. Commit: "feat(notifications): add NotificationService.create"
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
**Task 3: Add list and expiry methods (TDD)**
|
|
533
|
+
|
|
534
|
+
```
|
|
535
|
+
[checkpoint:human-verify] — verify Task 2 output before continuing
|
|
536
|
+
Files: src/services/notification-service.ts, src/services/notification-service.test.ts
|
|
537
|
+
1. Write tests: list by userId, filter expired
|
|
538
|
+
2. Run tests — observe failures
|
|
539
|
+
3. Implement: list() and isExpired() methods
|
|
540
|
+
4. Run tests — observe: pass
|
|
541
|
+
5. Run: harness validate, harness check-deps
|
|
542
|
+
6. Commit: "feat(notifications): add list and expiry to NotificationService"
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
### Example: Planning with Skeleton (thorough mode)
|
|
546
|
+
|
|
547
|
+
**Goal:** Add rate limiting to all API endpoints.
|
|
548
|
+
|
|
549
|
+
**Skeleton (thorough mode — always produced):**
|
|
550
|
+
|
|
551
|
+
```
|
|
552
|
+
## Skeleton
|
|
553
|
+
|
|
554
|
+
1. Rate limit types and configuration (~2 tasks, ~7 min)
|
|
555
|
+
2. Rate limit middleware with Redis backend (~3 tasks, ~12 min)
|
|
556
|
+
3. Route integration and per-endpoint config (~4 tasks, ~15 min)
|
|
557
|
+
4. Integration tests and load verification (~3 tasks, ~10 min)
|
|
558
|
+
|
|
559
|
+
**Estimated total:** 12 tasks, ~44 minutes
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
_Presented for approval. User approved. Expanded to full tasks._
|
|
563
|
+
|
|
564
|
+
## Gates
|
|
565
|
+
|
|
566
|
+
These are hard stops. Violating any gate means the process has broken down.
|
|
567
|
+
|
|
568
|
+
- **No vague tasks.** "Implement the service" is not a task. Every task must have exact file paths, exact code, and exact commands. If you cannot write the code in the plan, you do not understand the task well enough to plan it.
|
|
569
|
+
- **No tasks larger than one context window.** If a task requires exploring the codebase, making design decisions, or touching more than 3 files, it is too large. Split it.
|
|
570
|
+
- **No skipping TDD in tasks.** Every task that produces code must start with writing a test. "Add tests later" is not allowed in a plan. If tests cannot be written first, the design is unclear — go back to brainstorming.
|
|
571
|
+
- **No plan without observable truths.** The plan must start with goal-backward acceptance criteria. If you cannot state what is observable when the plan is complete, you do not understand the goal.
|
|
572
|
+
- **No implementation during planning.** The plan is a document, not code. Do not "just start Task 1 while we are here." Write the plan, get approval, then use harness-execution.
|
|
573
|
+
- **File map must be complete.** Every file that will be created or modified must appear in the file map. Discovering new files during execution means the plan was incomplete.
|
|
574
|
+
|
|
575
|
+
## Escalation
|
|
576
|
+
|
|
577
|
+
- **When you cannot write exact code for a task:** The design is underspecified. Go back to the spec (or brainstorm if no spec exists). Do not write a vague task as a placeholder.
|
|
578
|
+
- **When task count exceeds 20:** The project may be too large for a single plan. Consider splitting into multiple plans with clear milestone boundaries.
|
|
579
|
+
- **When dependencies form a cycle:** The decomposition is wrong. Re-examine the file map and find a way to break the cycle (usually by extracting a shared type or interface).
|
|
580
|
+
- **When you discover the spec is missing information during planning:** Do not fill in the gaps yourself. Escalate: "The spec does not define behavior for [scenario]. This blocks Task N. We need to update the spec before continuing the plan."
|
|
581
|
+
- **When estimated time exceeds available time:** Identify a milestone boundary where the plan can be paused with a working system. Propose delivering the plan in phases, each phase producing a usable increment.
|
|
582
|
+
|