@williambeto/ai-workflow 1.19.1 → 2.1.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/CHANGELOG.md +56 -838
- package/PUBLISH_MANIFEST.json +34 -0
- package/README.md +70 -149
- package/{packages/ai-workflow/bin → bin}/ai-workflow.js +0 -0
- package/dist-assets/AGENTS.md +27 -0
- package/dist-assets/agents/astra.md +63 -0
- package/dist-assets/agents/atlas.md +169 -0
- package/dist-assets/agents/nexus.md +42 -0
- package/dist-assets/agents/orion.md +44 -0
- package/dist-assets/agents/phoenix.md +42 -0
- package/dist-assets/agents/sage.md +54 -0
- package/dist-assets/commands/README.md +14 -0
- package/dist-assets/commands/atlas.md +12 -0
- package/dist-assets/commands/audit.md +10 -0
- package/dist-assets/commands/deploy.md +12 -0
- package/dist-assets/commands/discover.md +10 -0
- package/dist-assets/commands/implement.md +28 -0
- package/dist-assets/commands/optimize-tokens.md +10 -0
- package/dist-assets/commands/plan.md +10 -0
- package/dist-assets/commands/release.md +12 -0
- package/dist-assets/commands/run.md +26 -0
- package/dist-assets/commands/spec-create.md +10 -0
- package/dist-assets/commands/spec-implement.md +10 -0
- package/dist-assets/commands/spec-review.md +10 -0
- package/dist-assets/commands/update-memory.md +10 -0
- package/dist-assets/commands/validate.md +12 -0
- package/dist-assets/docs/INDEX.md +21 -0
- package/dist-assets/docs/QUICKSTART.md +23 -0
- package/dist-assets/docs/adr/ADR-0000.md +19 -0
- package/dist-assets/docs/adr/ADR-0001.md +45 -0
- package/dist-assets/docs/adr/ADR-0002.md +62 -0
- package/dist-assets/docs/adr/ADR-0003.md +60 -0
- package/dist-assets/docs/adr/ADR-0004.md +71 -0
- package/dist-assets/docs/adr/ADR-0005.md +22 -0
- package/dist-assets/docs/adr/ADR-0006.md +82 -0
- package/dist-assets/docs/adr/ADR-0007.md +78 -0
- package/dist-assets/docs/api-engine-reference.md +7 -0
- package/{docs → dist-assets/docs}/architecture-policy.md +1 -1
- package/dist-assets/docs/cli-reference.md +27 -0
- package/dist-assets/docs/compatibility/provider-usage.md +38 -0
- package/dist-assets/docs/compatibility/runtime-matrix.md +30 -0
- package/dist-assets/docs/consumer-onboarding.md +17 -0
- package/dist-assets/docs/contributing-guide.md +11 -0
- package/{docs → dist-assets/docs}/design-patterns-policy.md +2 -2
- package/dist-assets/docs/full-documentation.md +113 -0
- package/{docs → dist-assets/docs}/npm-consumer-quickstart.md +18 -46
- package/dist-assets/docs/opencode-readme.md +8 -0
- package/dist-assets/docs/policies/01-BRANCH_GATE.md +63 -0
- package/dist-assets/docs/policies/02-SDD_METHODOLOGY.md +95 -0
- package/dist-assets/docs/policies/03-QUALITY_GATE.md +22 -0
- package/dist-assets/docs/policies/05-AGENT_CONTRACT.md +7 -0
- package/dist-assets/docs/policies/06-FINAL_EVIDENCE_CONTRACT.md +31 -0
- package/dist-assets/docs/policies/07-RELEASE_GATE.md +47 -0
- package/dist-assets/docs/policies/08-PRODUCT_TRUTHFULNESS_AND_PROJECT_DOCS.md +18 -0
- package/dist-assets/docs/policies/09-SPEC_VISIBILITY_AND_PUBLICATION.md +28 -0
- package/dist-assets/docs/policies/10-BEHAVIORAL_CONTRACT_HARDENING.md +9 -0
- package/dist-assets/docs/policies/11-EXECUTABLE_DELEGATION_AND_TRUTHFULNESS.md +7 -0
- package/dist-assets/docs/policies/ORCHESTRATION_PROTOCOL.md +15 -0
- package/dist-assets/docs/policies/PROCEDURE_DELIVERY_ARTIFACTS.md +21 -0
- package/dist-assets/docs/policies/PROCEDURE_DOCUMENTATION_CHECKLIST.md +24 -0
- package/dist-assets/docs/policies/PROCEDURE_UI_CHECKLIST.md +54 -0
- package/dist-assets/docs/profiles/README.md +19 -0
- package/dist-assets/docs/profiles/backend-api.md +5 -0
- package/dist-assets/docs/profiles/documentation.md +3 -0
- package/dist-assets/docs/profiles/frontend-product.md +19 -0
- package/dist-assets/docs/profiles/frontend-utility.md +19 -0
- package/dist-assets/docs/profiles/refactor.md +3 -0
- package/dist-assets/docs/profiles/security-review.md +3 -0
- package/dist-assets/docs/references/frontend-quality/landing-page-quality-checklist.md +11 -0
- package/dist-assets/docs/references/frontend-quality/product-copy-truthfulness.md +7 -0
- package/dist-assets/docs/references/frontend-quality/quality-failure-examples.md +20 -0
- package/dist-assets/docs/references/frontend-quality/visual-composition-patterns.md +10 -0
- package/dist-assets/docs/specs/runtime-operational-contract.md +39 -0
- package/dist-assets/docs/troubleshooting-guide.md +21 -0
- package/dist-assets/examples/README.md +10 -0
- package/dist-assets/examples/autopilot-cycle/00-CONTEXT.md +3 -0
- package/dist-assets/examples/autopilot-cycle/01-requirement.md +16 -0
- package/dist-assets/examples/autopilot-cycle/02-gate-a-check.md +23 -0
- package/dist-assets/examples/autopilot-cycle/03-orion-planning.md +20 -0
- package/dist-assets/examples/autopilot-cycle/04-astra-implementation.md +17 -0
- package/dist-assets/examples/autopilot-cycle/05-sage-validation.md +15 -0
- package/dist-assets/examples/autopilot-cycle/06-phoenix-healing.md +12 -0
- package/dist-assets/examples/autopilot-cycle/07-orchestration-report.md +18 -0
- package/dist-assets/examples/backend-api/00-CONTEXT.md +12 -0
- package/dist-assets/examples/backend-api/01-requirement.md +19 -0
- package/dist-assets/examples/backend-api/02-functional-spec.md +20 -0
- package/dist-assets/examples/backend-api/03-technical-plan.md +15 -0
- package/dist-assets/examples/backend-api/04-pr-breakdown.md +10 -0
- package/dist-assets/examples/backend-api/05-execution-handoff.md +13 -0
- package/dist-assets/examples/backend-api/06-validation-report.md +11 -0
- package/dist-assets/examples/backend-api/07-orchestration-report.md +7 -0
- package/dist-assets/examples/blocked-scenarios/00-CONTEXT.md +9 -0
- package/dist-assets/examples/blocked-scenarios/01-branch-gate-block.md +12 -0
- package/dist-assets/examples/blocked-scenarios/02-quality-gate-block.md +13 -0
- package/dist-assets/examples/blocked-scenarios/03-scope-creep-block.md +13 -0
- package/dist-assets/examples/blocked-scenarios/04-unblock-resolution.md +9 -0
- package/dist-assets/examples/blocked-scenarios/05-orchestration-decision-log.md +11 -0
- package/dist-assets/examples/bugfix-critical/00-CONTEXT.md +12 -0
- package/dist-assets/examples/bugfix-critical/01-bug-report.md +11 -0
- package/dist-assets/examples/bugfix-critical/02-diagnosis-hypothesis.md +11 -0
- package/dist-assets/examples/bugfix-critical/03-technical-plan.md +12 -0
- package/dist-assets/examples/bugfix-critical/04-implementation-handoff.md +8 -0
- package/dist-assets/examples/bugfix-critical/05-validation-report.md +10 -0
- package/dist-assets/examples/bugfix-critical/06-orchestration-report.md +7 -0
- package/dist-assets/examples/cli-package/00-CONTEXT.md +9 -0
- package/dist-assets/examples/cli-package/01-requirement.md +14 -0
- package/dist-assets/examples/cli-package/02-technical-spec.md +16 -0
- package/dist-assets/examples/cli-package/03-technical-plan.md +12 -0
- package/dist-assets/examples/cli-package/04-pr-breakdown.md +9 -0
- package/dist-assets/examples/cli-package/05-release-report.md +15 -0
- package/dist-assets/examples/docs-only-repo/01-requirement.md +31 -0
- package/dist-assets/examples/docs-only-repo/02-functional-spec.md +25 -0
- package/dist-assets/examples/docs-only-repo/03-technical-plan.md +21 -0
- package/dist-assets/examples/docs-only-repo/04-pr-breakdown.md +13 -0
- package/dist-assets/examples/docs-only-repo/05-execution-handoff.md +17 -0
- package/dist-assets/examples/docs-only-repo/06-validation-report.md +16 -0
- package/dist-assets/examples/docs-only-repo/README.md +26 -0
- package/dist-assets/examples/full-stack-checkout/00-CONTEXT.md +9 -0
- package/dist-assets/examples/full-stack-checkout/01-requirement.md +12 -0
- package/dist-assets/examples/full-stack-checkout/02-functional-spec.md +15 -0
- package/dist-assets/examples/full-stack-checkout/03-technical-plan.md +15 -0
- package/dist-assets/examples/full-stack-checkout/04-pr-breakdown.md +8 -0
- package/dist-assets/examples/full-stack-checkout/05-execution-handoff.md +14 -0
- package/dist-assets/examples/full-stack-checkout/06-validation-report.md +12 -0
- package/dist-assets/examples/healing-cycle/00-CONTEXT.md +15 -0
- package/dist-assets/examples/healing-cycle/01-broken-implementation.md +10 -0
- package/dist-assets/examples/healing-cycle/02-sage-fails.md +14 -0
- package/dist-assets/examples/healing-cycle/03-phoenix-diagnosis.md +17 -0
- package/dist-assets/examples/healing-cycle/04-phoenix-fix.md +18 -0
- package/dist-assets/examples/healing-cycle/05-sage-revalidation.md +12 -0
- package/dist-assets/examples/healing-cycle/06-orchestration-log.md +14 -0
- package/dist-assets/examples/infra-deploy/00-CONTEXT.md +9 -0
- package/dist-assets/examples/infra-deploy/01-operational-goal.md +12 -0
- package/dist-assets/examples/infra-deploy/02-architecture-specs.md +15 -0
- package/dist-assets/examples/infra-deploy/03-implementation-plan.md +14 -0
- package/dist-assets/examples/infra-deploy/04-step-breakdown.md +9 -0
- package/dist-assets/examples/infra-deploy/05-execution-handoff.md +13 -0
- package/dist-assets/examples/infra-deploy/06-operational-report.md +11 -0
- package/dist-assets/examples/multi-pr-release/00-CONTEXT.md +9 -0
- package/dist-assets/examples/multi-pr-release/01-requirement.md +13 -0
- package/dist-assets/examples/multi-pr-release/02-strategic-plan.md +13 -0
- package/dist-assets/examples/multi-pr-release/03-pr-breakdown.md +14 -0
- package/dist-assets/examples/multi-pr-release/04-release-plan.md +12 -0
- package/dist-assets/examples/multi-pr-release/05-orchestration-report.md +7 -0
- package/dist-assets/examples/nuxt-dashboard/01-requirement.md +81 -0
- package/dist-assets/examples/nuxt-dashboard/02-functional-spec.md +88 -0
- package/dist-assets/examples/nuxt-dashboard/03-technical-plan.md +76 -0
- package/dist-assets/examples/nuxt-dashboard/04-pr-breakdown.md +219 -0
- package/dist-assets/examples/nuxt-dashboard/05-execution-handoff.md +88 -0
- package/dist-assets/examples/nuxt-dashboard/06-validation-report.md +56 -0
- package/dist-assets/examples/nuxt-dashboard/07-orchestration-report.md +79 -0
- package/dist-assets/examples/nuxt-dashboard/README.md +52 -0
- package/dist-assets/examples/react-dashboard/01-requirement.md +84 -0
- package/dist-assets/examples/react-dashboard/02-functional-spec.md +88 -0
- package/dist-assets/examples/react-dashboard/03-technical-plan.md +76 -0
- package/dist-assets/examples/react-dashboard/04-pr-breakdown.md +218 -0
- package/dist-assets/examples/react-dashboard/05-execution-handoff.md +13 -0
- package/dist-assets/examples/react-dashboard/06-validation-report.md +12 -0
- package/dist-assets/examples/react-dashboard/07-orchestration-report.md +7 -0
- package/dist-assets/examples/react-dashboard/README.md +70 -0
- package/dist-assets/examples/refactoring-service/00-CONTEXT.md +9 -0
- package/dist-assets/examples/refactoring-service/01-debt-report.md +12 -0
- package/dist-assets/examples/refactoring-service/02-behavior-spec.md +11 -0
- package/dist-assets/examples/refactoring-service/03-technical-plan.md +13 -0
- package/dist-assets/examples/refactoring-service/04-pr-breakdown.md +9 -0
- package/dist-assets/examples/refactoring-service/05-execution-handoff.md +14 -0
- package/dist-assets/examples/refactoring-service/06-stability-report.md +12 -0
- package/dist-assets/examples/sdd-cycle/00-CONTEXT.md +12 -0
- package/dist-assets/examples/sdd-cycle/01-raw-request.md +13 -0
- package/dist-assets/examples/sdd-cycle/02-spec-creation.md +18 -0
- package/dist-assets/examples/sdd-cycle/03-spec-review.md +12 -0
- package/dist-assets/examples/sdd-cycle/04-technical-plan.md +16 -0
- package/dist-assets/examples/sdd-cycle/05-pr-breakdown.md +9 -0
- package/dist-assets/examples/sdd-cycle/06-spec-implement.md +13 -0
- package/dist-assets/examples/sdd-cycle/07-validation-against-spec.md +13 -0
- package/dist-assets/examples/wordpress-theme/01-requirement.md +29 -0
- package/dist-assets/examples/wordpress-theme/02-functional-spec.md +22 -0
- package/dist-assets/examples/wordpress-theme/03-technical-plan.md +22 -0
- package/dist-assets/examples/wordpress-theme/04-pr-breakdown.md +14 -0
- package/dist-assets/examples/wordpress-theme/05-execution-handoff.md +17 -0
- package/dist-assets/examples/wordpress-theme/06-validation-report.md +16 -0
- package/dist-assets/examples/wordpress-theme/README.md +32 -0
- package/{harness → dist-assets/harness}/handoffs/HANDOFF.template.md +2 -2
- package/{harness → dist-assets/harness}/workflows/agent-evaluation-checklist.md +5 -5
- package/{harness → dist-assets/harness}/workflows/implement-review-validate.md +24 -0
- package/{harness → dist-assets/harness}/workflows/multi-agent-handoff.md +4 -4
- package/{harness → dist-assets/harness}/workflows/planner-executor-workflow.md +5 -5
- package/{harness → dist-assets/harness}/workflows/requirement-to-pr.md +1 -1
- package/dist-assets/runbooks/agent-delegation-workflow.md +50 -0
- package/dist-assets/runbooks/apply-starter-to-real-project.md +45 -0
- package/dist-assets/runbooks/commands-cheatsheet.md +44 -0
- package/dist-assets/runbooks/how-to-use-skills.md +44 -0
- package/dist-assets/runbooks/private-spec-publication-safety.md +35 -0
- package/{runbooks → dist-assets/runbooks}/spec-driven-development.md +3 -6
- package/dist-assets/runbooks/tutorial-walkthroughs.md +23 -0
- package/dist-assets/runbooks/use-linear-for-operational-planning.md +45 -0
- package/dist-assets/runbooks/use-napkin-project-memory.md +33 -0
- package/dist-assets/skills/architecture/SKILL.md +166 -0
- package/dist-assets/skills/backend-development/SKILL.md +166 -0
- package/dist-assets/skills/deployment/SKILL.md +166 -0
- package/dist-assets/skills/design-principles/SKILL.md +166 -0
- package/dist-assets/skills/documentation/SKILL.md +171 -0
- package/dist-assets/skills/frontend-development/SKILL.md +225 -0
- package/dist-assets/skills/full-stack-development/SKILL.md +166 -0
- package/dist-assets/skills/optimize-tokens/SKILL.md +166 -0
- package/dist-assets/skills/pr-workflow/SKILL.md +166 -0
- package/dist-assets/skills/product-discovery/SKILL.md +166 -0
- package/dist-assets/skills/product-planning/SKILL.md +166 -0
- package/dist-assets/skills/project-memory/SKILL.md +166 -0
- package/dist-assets/skills/prompt-engineer/SKILL.md +166 -0
- package/dist-assets/skills/qa-workflow/SKILL.md +186 -0
- package/dist-assets/skills/refactoring/SKILL.md +166 -0
- package/dist-assets/skills/release-workflow/SKILL.md +166 -0
- package/dist-assets/skills/spec-driven-development/SKILL.md +166 -0
- package/dist-assets/skills/technical-leadership/SKILL.md +166 -0
- package/dist-assets/skills/ui-ux-design/SKILL.md +202 -0
- package/dist-assets/templates/.geminiignore.template +8 -0
- package/dist-assets/templates/CLAUDE.md.template +20 -0
- package/dist-assets/templates/CODEX.md.template +20 -0
- package/dist-assets/templates/GEMINI.md.template +20 -0
- package/dist-assets/templates/HANDOFF.template.md +45 -0
- package/dist-assets/templates/SPEC.template.md +38 -0
- package/dist-assets/templates/change-proposal.template.md +14 -0
- package/dist-assets/templates/owner-evidence/astra-implementation.json +10 -0
- package/dist-assets/templates/owner-evidence/phoenix-remediation.json +8 -0
- package/dist-assets/templates/owner-evidence/sage-revalidation.json +8 -0
- package/dist-assets/templates/owner-evidence/sage-validation.json +8 -0
- package/dist-assets/templates/specs/deep.md +48 -0
- package/dist-assets/templates/specs/standard.md +38 -0
- package/dist-assets/templates/specs/tiny.md +19 -0
- package/package.json +42 -47
- package/src/adapters/index.js +3 -0
- package/src/adapters/platforms/claude.js +126 -0
- package/src/adapters/platforms/codex.js +100 -0
- package/src/adapters/platforms/gemini.js +232 -0
- package/src/cli.js +96 -0
- package/src/commands/collect-evidence.js +61 -0
- package/src/commands/doctor.js +186 -0
- package/{packages/ai-workflow/src → src}/commands/init.js +119 -20
- package/src/commands/run.js +111 -0
- package/src/core/completion-contract.js +35 -0
- package/src/core/gates/branch-gate.js +113 -0
- package/src/core/handoff/handoff-engine.js +78 -0
- package/src/core/healing/cli-remediation-executor.js +151 -0
- package/src/core/healing/healer-engine.js +179 -0
- package/src/core/identity.js +43 -0
- package/{packages/ai-workflow/src → src}/core/install-plan.js +3 -3
- package/src/core/opencode-merge.js +149 -0
- package/{packages/ai-workflow/src → src}/core/package-assets.js +29 -10
- package/src/core/sdd/validator.js +67 -0
- package/src/core/statuses.js +29 -0
- package/src/core/symlink-layout.js +93 -0
- package/src/core/templates.js +218 -0
- package/src/core/validation/canonical-finalization.js +43 -0
- package/src/core/validation/evidence-collector.js +109 -0
- package/src/core/validation/quality-guard.js +243 -0
- package/src/core/workflow-profiles.js +107 -0
- package/.agents/napkin.md +0 -89
- package/.agents/skills/backend-implementer/SKILL.md +0 -490
- package/.agents/skills/build-and-validate/SKILL.md +0 -442
- package/.agents/skills/deploy-engineer/SKILL.md +0 -541
- package/.agents/skills/docs-writer/SKILL.md +0 -430
- package/.agents/skills/frontend-implementer/SKILL.md +0 -488
- package/.agents/skills/interface-design/SKILL.md +0 -428
- package/.agents/skills/interface-design/references/critique.md +0 -67
- package/.agents/skills/interface-design/references/example.md +0 -86
- package/.agents/skills/interface-design/references/principles.md +0 -235
- package/.agents/skills/interface-design/references/validation.md +0 -48
- package/.agents/skills/minimal-context/SKILL.md +0 -177
- package/.agents/skills/napkin/SKILL.md +0 -84
- package/.agents/skills/opencode-agent-design/SKILL.md +0 -77
- package/.agents/skills/playwright-cli/SKILL.md +0 -62
- package/.agents/skills/pr-orchestrator/SKILL.md +0 -366
- package/.agents/skills/product-manager/SKILL.md +0 -519
- package/.agents/skills/seo-audit/SKILL.md +0 -176
- package/.agents/skills/stack-variant-creator/SKILL.md +0 -265
- package/.agents/skills/tech-lead/SKILL.md +0 -453
- package/.agents/skills/tester/SKILL.md +0 -399
- package/.agents/skills/token-economy/SKILL.md +0 -137
- package/.agents/skills/vue-nuxt/SKILL.md +0 -102
- package/.agents/skills/wordpress-engineer/SKILL.md +0 -75
- package/.codex/prompts/README.md +0 -44
- package/.codex/prompts/autopilot.md +0 -50
- package/.codex/prompts/deploy.md +0 -33
- package/.codex/prompts/execute-selected-pr.md +0 -35
- package/.codex/prompts/fix-issue.md +0 -34
- package/.codex/prompts/minimal-context-mode.md +0 -55
- package/.codex/prompts/orchestrate-next.md +0 -33
- package/.codex/prompts/plan-from-requirement.md +0 -37
- package/.codex/prompts/review-implementation.md +0 -33
- package/.codex/prompts/roadmap-audit.md +0 -22
- package/.codex/prompts/specs/create-spec-from-requirement.md +0 -26
- package/.codex/prompts/specs/review-spec.md +0 -29
- package/.codex/prompts/specs/spec-to-pr-breakdown.md +0 -23
- package/.codex/prompts/specs/spec-to-technical-plan.md +0 -28
- package/.codex/prompts/start-project.md +0 -29
- package/.codex/prompts/token-economy-mode.md +0 -48
- package/.codex/prompts/validate-work.md +0 -28
- package/checklists/change-spec-readiness-checklist.md +0 -34
- package/docs/full-documentation.md +0 -661
- package/docs/setup-codex-opencode.md +0 -313
- package/harness/README.md +0 -106
- package/opencode/README.md +0 -84
- package/opencode/agents/README.md +0 -113
- package/opencode/agents/atlas.md +0 -127
- package/opencode/agents/discovery.md +0 -61
- package/opencode/agents/fixer.md +0 -51
- package/opencode/agents/implementer.md +0 -61
- package/opencode/agents/orchestrator.md +0 -145
- package/opencode/agents/planner.md +0 -60
- package/opencode/agents/prompt-engineer.md +0 -50
- package/opencode/agents/release-manager.md +0 -50
- package/opencode/agents/reviewer.md +0 -51
- package/opencode/agents/spec-engineer.md +0 -85
- package/opencode/agents/validator.md +0 -50
- package/opencode/agents/wordpress-engineer.md +0 -49
- package/opencode/commands/README.md +0 -48
- package/opencode/commands/autopilot.md +0 -50
- package/opencode/commands/deploy.md +0 -35
- package/opencode/commands/execute.md +0 -47
- package/opencode/commands/orchestrate.md +0 -37
- package/opencode/commands/plan.md +0 -39
- package/opencode/commands/review.md +0 -33
- package/opencode/commands/roadmap-audit.md +0 -30
- package/opencode/commands/ship.md +0 -48
- package/opencode/commands/specs/create-spec-from-request.md +0 -27
- package/opencode/commands/specs/create-spec-from-requirement.md +0 -25
- package/opencode/commands/specs/review-spec.md +0 -26
- package/opencode/commands/specs/spec-to-pr-breakdown.md +0 -19
- package/opencode/commands/specs/spec-to-tasks.md +0 -26
- package/opencode/commands/specs/spec-to-technical-plan.md +0 -27
- package/opencode/commands/start.md +0 -45
- package/opencode/commands/token-economy.md +0 -29
- package/opencode/commands/validate.md +0 -33
- package/opencode.jsonc +0 -235
- package/packages/ai-workflow/README.md +0 -82
- package/packages/ai-workflow/src/cli.js +0 -70
- package/packages/ai-workflow/src/commands/codex.js +0 -37
- package/packages/ai-workflow/src/commands/doctor.js +0 -168
- package/packages/ai-workflow/src/commands/guide.js +0 -194
- package/packages/ai-workflow/src/core/opencode-merge.js +0 -172
- package/packages/ai-workflow/src/core/symlink-layout.js +0 -54
- package/packages/ai-workflow/src/core/templates.js +0 -276
- package/runbooks/agent-delegation-workflow.md +0 -111
- package/runbooks/apply-starter-to-real-project.md +0 -445
- package/runbooks/commands-cheatsheet.md +0 -71
- package/runbooks/how-to-use-skills.md +0 -713
- package/runbooks/quick-start-guide.md +0 -213
- package/runbooks/tutorial-walkthroughs.md +0 -416
- package/runbooks/use-linear-for-operational-planning.md +0 -185
- package/runbooks/use-napkin-project-memory.md +0 -77
- package/templates/AGENTS.template.md +0 -397
- package/templates/DESIGN.template.md +0 -484
- package/templates/PR-PLAN.template.md +0 -172
- package/templates/README.template.md +0 -293
- package/templates/REQUIREMENT.template.md +0 -165
- package/templates/SPEC.template.md +0 -397
- package/templates/TECH-PLAN.template.md +0 -244
- package/templates/change-proposal.template.md +0 -97
- /package/{checklists/spec-readiness-checklist.md → dist-assets/docs/policies/SPEC_READINESS.md} +0 -0
- /package/{prompts → dist-assets/prompts}/00-bootstrap-project.md +0 -0
- /package/{prompts → dist-assets/prompts}/01-create-requirement.md +0 -0
- /package/{prompts → dist-assets/prompts}/02-create-spec.md +0 -0
- /package/{prompts → dist-assets/prompts}/03-create-tech-plan.md +0 -0
- /package/{prompts → dist-assets/prompts}/04-breakdown-prs.md +0 -0
- /package/{prompts → dist-assets/prompts}/05-implement-pr.md +0 -0
- /package/{prompts → dist-assets/prompts}/06-review-and-fix.md +0 -0
- /package/{prompts → dist-assets/prompts}/07-apply-design.md +0 -0
- /package/{prompts → dist-assets/prompts}/08-validate.md +0 -0
- /package/{prompts → dist-assets/prompts}/09-deploy.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/implement.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/requirement.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/spec.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/tech-plan.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/validate.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/branch-cleanup.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/deploy-checklist.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/publication-readiness-checklist.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/publish-package-checklist.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/team-governance-pr-readiness.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/validate-starter-in-real-project.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/validation-checklist.md +0 -0
- /package/{schemas → dist-assets/schemas}/README.md +0 -0
- /package/{schemas → dist-assets/schemas}/functional-spec.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/handoff.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/pr-breakdown.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/requirement.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/technical-plan.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/validation-report.schema.json +0 -0
- /package/{packages/ai-workflow/src → src}/core/backup.js +0 -0
- /package/{packages/ai-workflow/src → src}/core/filesystem.js +0 -0
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# Spec-Engineer Agent
|
|
2
|
-
|
|
3
|
-
## Role
|
|
4
|
-
|
|
5
|
-
Turn vague, risky, or high-impact requests into lightweight change artifacts that are ready for implementation handoff.
|
|
6
|
-
|
|
7
|
-
## Use when
|
|
8
|
-
|
|
9
|
-
- A request is unclear, broad, or ambiguous.
|
|
10
|
-
- The change can affect behavior, architecture, integration, or validation strategy.
|
|
11
|
-
- The team needs explicit agreement on what to build before coding.
|
|
12
|
-
|
|
13
|
-
## Do not use when
|
|
14
|
-
|
|
15
|
-
- The task is a tiny docs-only or wording fix.
|
|
16
|
-
- The scope is already fully specified and reviewed.
|
|
17
|
-
|
|
18
|
-
## Required context
|
|
19
|
-
|
|
20
|
-
- User request or discovery brief.
|
|
21
|
-
- Repository rules from `AGENTS.md`.
|
|
22
|
-
- Existing spec assets in `templates/`, `checklists/`, and `opencode/commands/specs/`.
|
|
23
|
-
|
|
24
|
-
## Input discipline
|
|
25
|
-
|
|
26
|
-
- Use `minimal-context` behavior: read only files needed for the active request.
|
|
27
|
-
- Use `grep`/`glob` before reading large files.
|
|
28
|
-
- Keep outputs compact and implementation-handoff ready.
|
|
29
|
-
|
|
30
|
-
## Responsibilities
|
|
31
|
-
|
|
32
|
-
- Receive vague requests and classify whether a spec is needed.
|
|
33
|
-
- Define spec depth level (`tiny` | `standard` | `deep`) based on risk/impact.
|
|
34
|
-
- Generate specification/change artifact before implementation.
|
|
35
|
-
- Set spec status explicitly.
|
|
36
|
-
- Expose assumptions and blocking questions.
|
|
37
|
-
- Define scope and out-of-scope explicitly.
|
|
38
|
-
- Produce requirements, scenarios, and acceptance criteria.
|
|
39
|
-
- Identify edge cases, constraints, and risks.
|
|
40
|
-
- Propose lightweight technical design.
|
|
41
|
-
- Break work into small implementation tasks.
|
|
42
|
-
- Define validation criteria and expected evidence.
|
|
43
|
-
- Request review when uncertainty or risk is non-trivial.
|
|
44
|
-
- Hand off to `implementer` (or `planner` when PR planning is still needed).
|
|
45
|
-
|
|
46
|
-
## Constraints
|
|
47
|
-
|
|
48
|
-
- Do not implement production code.
|
|
49
|
-
- Do not refactor unrelated files.
|
|
50
|
-
- Do not approve unresolved assumptions as facts.
|
|
51
|
-
- Do not skip validation criteria or expected evidence.
|
|
52
|
-
- Do not create heavyweight process for trivial work.
|
|
53
|
-
|
|
54
|
-
## Required workflow
|
|
55
|
-
|
|
56
|
-
```txt
|
|
57
|
-
1) Receive vague request
|
|
58
|
-
2) Classify if spec is needed
|
|
59
|
-
3) Define spec depth level
|
|
60
|
-
4) Generate specification artifact
|
|
61
|
-
5) Define spec status
|
|
62
|
-
6) Expose assumptions and blocking questions
|
|
63
|
-
7) Define scope and out-of-scope
|
|
64
|
-
8) Define requirements and scenarios
|
|
65
|
-
9) Define acceptance criteria
|
|
66
|
-
10) Define technical constraints and risks
|
|
67
|
-
11) Create small implementation tasks
|
|
68
|
-
12) Define validation and expected evidence
|
|
69
|
-
13) Request review when needed
|
|
70
|
-
14) Generate implementation handoff
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## Expected output
|
|
74
|
-
|
|
75
|
-
- Change artifact using `templates/change-proposal.template.md`
|
|
76
|
-
- Default artifact location in consumer project: `docs/specs/<spec-type>/<yyyy-mm-dd>-<change-slug>/`
|
|
77
|
-
- Spec depth level: `tiny` | `standard` | `deep`
|
|
78
|
-
- Spec status: `Draft` | `In review` | `Ready for implementation handoff` | `Needs clarification` | `Too broad` | `Blocked`
|
|
79
|
-
- Assumptions and blocking questions (if any)
|
|
80
|
-
- Recommended next owner: `implementer` or `planner`
|
|
81
|
-
|
|
82
|
-
## Stop conditions
|
|
83
|
-
|
|
84
|
-
- Stop when the change artifact is explicit, testable, and handoff-ready.
|
|
85
|
-
- Stop and mark `Blocked` if missing decisions make implementation unsafe.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Validator Agent
|
|
2
|
-
|
|
3
|
-
## Role
|
|
4
|
-
|
|
5
|
-
Run objective validation for the current repository or PR.
|
|
6
|
-
|
|
7
|
-
## Use when
|
|
8
|
-
|
|
9
|
-
- Work needs command-based evidence before commit, merge, or handoff.
|
|
10
|
-
- Markdown, JSON, structure, tests, or build checks need to be run.
|
|
11
|
-
- The current diff needs final validation status.
|
|
12
|
-
|
|
13
|
-
## Required context
|
|
14
|
-
|
|
15
|
-
- Current repository state and diff.
|
|
16
|
-
- Available scripts in `package.json`.
|
|
17
|
-
- Validation expectations from `AGENTS.md`.
|
|
18
|
-
- Any PR-specific acceptance criteria.
|
|
19
|
-
- Token economy skills active by default: `.agents/skills/token-economy/SKILL.md` (compact output) and `.agents/skills/minimal-context/SKILL.md` (input discipline).
|
|
20
|
-
|
|
21
|
-
## Responsibilities
|
|
22
|
-
|
|
23
|
-
- Inspect `package.json` scripts.
|
|
24
|
-
- Run `npm run validate` when available.
|
|
25
|
-
- Run Markdown validation when relevant.
|
|
26
|
-
- Run JSON/schema parse validation when relevant.
|
|
27
|
-
- Run repository structure validation when relevant.
|
|
28
|
-
- Inspect `git status` and `git diff` as needed.
|
|
29
|
-
- Report warnings and failures honestly.
|
|
30
|
-
|
|
31
|
-
## Constraints
|
|
32
|
-
|
|
33
|
-
- Do not modify files unless explicitly requested.
|
|
34
|
-
- Do not hide warnings.
|
|
35
|
-
- Do not claim validation passed without command evidence.
|
|
36
|
-
- Do not skip available validation commands without explaining why.
|
|
37
|
-
|
|
38
|
-
## Expected output
|
|
39
|
-
|
|
40
|
-
- Validation status
|
|
41
|
-
- Commands run
|
|
42
|
-
- Results
|
|
43
|
-
- Blocking issues
|
|
44
|
-
- Non-blocking warnings
|
|
45
|
-
- Merge recommendation
|
|
46
|
-
|
|
47
|
-
## Stop conditions
|
|
48
|
-
|
|
49
|
-
- Stop when validation evidence is complete.
|
|
50
|
-
- Stop and report `Blocked` when required commands cannot run.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# WordPress Engineer Agent
|
|
2
|
-
|
|
3
|
-
## Role
|
|
4
|
-
|
|
5
|
-
Work on WordPress, WooCommerce, ACF, PHP 7-compatible themes/plugins, hooks, shortcodes, templates, and security basics.
|
|
6
|
-
|
|
7
|
-
## Use when
|
|
8
|
-
|
|
9
|
-
- WordPress or WooCommerce behavior needs implementation, review, or diagnosis.
|
|
10
|
-
- A theme, plugin, shortcode, hook, template, ACF field, or capability check is involved.
|
|
11
|
-
- PHP 7 compatibility and WordPress API usage matter.
|
|
12
|
-
|
|
13
|
-
## Required context
|
|
14
|
-
|
|
15
|
-
- WordPress version and PHP version expectations, especially PHP 7 constraints.
|
|
16
|
-
- Theme or plugin boundaries.
|
|
17
|
-
- Relevant hooks, templates, shortcodes, fields, or WooCommerce surfaces.
|
|
18
|
-
- Expected behavior and validation method.
|
|
19
|
-
- Token economy skills active by default: `.agents/skills/token-economy/SKILL.md` (compact output) and `.agents/skills/minimal-context/SKILL.md` (input discipline).
|
|
20
|
-
|
|
21
|
-
## Responsibilities
|
|
22
|
-
|
|
23
|
-
- Diagnose WordPress-specific behavior.
|
|
24
|
-
- Use escaping for output and sanitization for input.
|
|
25
|
-
- Use nonces for state-changing actions.
|
|
26
|
-
- Check capabilities for privileged actions.
|
|
27
|
-
- Respect hooks, template hierarchy, and plugin/theme boundaries.
|
|
28
|
-
- Preserve PHP 7 compatibility.
|
|
29
|
-
|
|
30
|
-
## Constraints
|
|
31
|
-
|
|
32
|
-
- Do not use PHP 8-only syntax unless explicitly allowed.
|
|
33
|
-
- Do not bypass WordPress APIs without justification.
|
|
34
|
-
- Do not ignore escaping, sanitization, nonces, or capability checks.
|
|
35
|
-
- Do not make broad theme/plugin rewrites for narrow fixes.
|
|
36
|
-
|
|
37
|
-
## Expected output
|
|
38
|
-
|
|
39
|
-
- Diagnosis
|
|
40
|
-
- Proposed change
|
|
41
|
-
- Files changed or recommended
|
|
42
|
-
- Security notes
|
|
43
|
-
- Validation
|
|
44
|
-
- Suggested commit message
|
|
45
|
-
|
|
46
|
-
## Stop conditions
|
|
47
|
-
|
|
48
|
-
- Stop when the change is scoped and security checks are covered.
|
|
49
|
-
- Stop if platform version or plugin/theme ownership is unclear.
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# OpenCode Command Prompts
|
|
2
|
-
|
|
3
|
-
These files are OpenCode command prompt files.
|
|
4
|
-
|
|
5
|
-
They mirror the Codex prompt entrypoints in `.codex/prompts/` and provide compact workflow commands for planning, execution, review, and validation.
|
|
6
|
-
|
|
7
|
-
Adapt file names, command registration, or invocation style to your OpenCode setup if needed. The files intentionally stay Markdown-only so they can be copied, referenced, or adapted without adding build tooling.
|
|
8
|
-
|
|
9
|
-
## Commands
|
|
10
|
-
|
|
11
|
-
| File | Use when |
|
|
12
|
-
| ---- | -------- |
|
|
13
|
-
| `plan.md` | Turn a user request or rough idea into a requirement, specification, technical plan, PR breakdown, and optional handoff. |
|
|
14
|
-
| `ship.md` | Run low-touch end-to-end delivery with automatic delegation and required confirmations. |
|
|
15
|
-
| `execute.md` | Implement one selected PR from an existing plan or handoff. |
|
|
16
|
-
| `review.md` | Review the current implementation or diff before merge. |
|
|
17
|
-
| `validate.md` | Validate the current repository or PR before commit or merge. |
|
|
18
|
-
| `autopilot.md` | Run local-first task routing through existing agents, skills, and workflow gates. |
|
|
19
|
-
| `roadmap-audit.md` | Run a compact technical roadmap audit with evidence-based findings and next PR recommendation. |
|
|
20
|
-
| `deploy.md` | Prepare or review deployment readiness, rollout steps, and rollback plan. |
|
|
21
|
-
| `orchestrate.md` | Route work across agents with gate-based handoff checks. |
|
|
22
|
-
| `token-economy.md` | Apply compact output mode (`compact`, `terse`, `audit`, `handoff`) for current task. |
|
|
23
|
-
|
|
24
|
-
### Spec-Driven commands (`opencode/commands/specs/`)
|
|
25
|
-
|
|
26
|
-
| File | Use when |
|
|
27
|
-
| ---- | -------- |
|
|
28
|
-
| `create-spec-from-request.md` | Turn a vague request into a lightweight change artifact before coding. |
|
|
29
|
-
| `create-spec-from-requirement.md` | Draft a testable spec from an approved requirement. |
|
|
30
|
-
| `review-spec.md` | Review spec readiness before technical planning. |
|
|
31
|
-
| `spec-to-technical-plan.md` | Convert approved spec into technical planning output. |
|
|
32
|
-
| `spec-to-pr-breakdown.md` | Split approved spec into small PRs. |
|
|
33
|
-
| `spec-to-tasks.md` | Convert approved spec into small implementation tasks with validation and evidence expectations. |
|
|
34
|
-
|
|
35
|
-
## Usage Notes
|
|
36
|
-
|
|
37
|
-
- Keep each command run scoped to one workflow step.
|
|
38
|
-
- Use `ship.md` when the goal is minimal user interaction across the full workflow.
|
|
39
|
-
- Use `orchestrate.md` after planning handoff to enable automatic gate-based agent progression.
|
|
40
|
-
- For delegated steps, include a contract packet (task summary, files, constraints, expected output, validation, risk, do-not-change, evidence).
|
|
41
|
-
- Expect delegated agent replies to include summary/findings, files changed or inspected, risks, validation commands, open questions, and recommendation.
|
|
42
|
-
- Prefer existing repository assets over copied instructions.
|
|
43
|
-
- Preserve small PRs, no-regression rules, evidence-based validation, and clear handoffs.
|
|
44
|
-
- At relevant task start, check `.agents/napkin.md` and apply only entries related to the active scope.
|
|
45
|
-
- Use `.agents/skills/napkin/SKILL.md` for Napkin read/update/cleanup behavior.
|
|
46
|
-
- Keep Napkin entries durable and concise; do not use Napkin for temporary task logs.
|
|
47
|
-
- Do not add project-specific assumptions unless the target repository context requires them.
|
|
48
|
-
- Never store secrets in Napkin.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Autopilot
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Run a local-first workflow entrypoint that interprets a user task, routes to existing agents/skills, and enforces safety gates.
|
|
6
|
-
|
|
7
|
-
Do not create new architecture, agents, or skills inside this command.
|
|
8
|
-
|
|
9
|
-
## Context To Read
|
|
10
|
-
|
|
11
|
-
Minimum-first context loading:
|
|
12
|
-
|
|
13
|
-
1. Always read first:
|
|
14
|
-
- `opencode/agents/orchestrator.md`
|
|
15
|
-
2. Read only when route requires it:
|
|
16
|
-
- `harness/workflows/requirement-to-pr.md` (planner route)
|
|
17
|
-
- `harness/workflows/implement-review-validate.md` (implementation route)
|
|
18
|
-
- `harness/workflows/multi-agent-handoff.md` (orchestrated gate progression)
|
|
19
|
-
3. Read only relevant sections of `AGENTS.md` for routing, constraints, and validation.
|
|
20
|
-
|
|
21
|
-
## Instructions
|
|
22
|
-
|
|
23
|
-
1. Parse user objective and define the smallest safe scope (in-scope/out-of-scope).
|
|
24
|
-
2. Choose the lightest valid route:
|
|
25
|
-
- `planner` for requirement/spec/plan output;
|
|
26
|
-
- `orchestrator` for multi-step or cross-functional delivery;
|
|
27
|
-
- specialist owner from AGENTS delegation matrix for focused work.
|
|
28
|
-
3. Reuse existing skills/agents only; do not create new ones during execution.
|
|
29
|
-
4. Enforce local-first git safety before write operations:
|
|
30
|
-
- run `git status -sb`;
|
|
31
|
-
- if on `main`, create/switch to scoped branch `git switch -c <type>/<short-task-slug>`;
|
|
32
|
-
- continue only off `main`.
|
|
33
|
-
5. Keep execution local-first:
|
|
34
|
-
- do not push, publish, create remote repos, merge PRs, release, or deploy unless explicitly approved.
|
|
35
|
-
6. Validate proportionally to risk and provide evidence.
|
|
36
|
-
7. Stop and report `Blocked` when:
|
|
37
|
-
- required context is missing;
|
|
38
|
-
- task scope is too broad;
|
|
39
|
-
- validation fails.
|
|
40
|
-
8. At the end, ask whether user wants push/publish/remote-repo/merge/release/deploy actions.
|
|
41
|
-
|
|
42
|
-
## Expected Output
|
|
43
|
-
|
|
44
|
-
- Selected route and reason
|
|
45
|
-
- Scope (in-scope / out-of-scope)
|
|
46
|
-
- Active step and gate (`Pass`/`Blocked`)
|
|
47
|
-
- Files changed
|
|
48
|
-
- Validation commands and results
|
|
49
|
-
- Risks and open questions
|
|
50
|
-
- Next safe step (including optional push/publish/remote/merge/release/deploy question)
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Deploy
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Prepare, validate, or review deployment readiness after implementation and validation are complete.
|
|
6
|
-
|
|
7
|
-
Do not deploy automatically.
|
|
8
|
-
|
|
9
|
-
## Context To Read
|
|
10
|
-
|
|
11
|
-
- `prompts/09-deploy.md`
|
|
12
|
-
- `runbooks/deploy-checklist.md`
|
|
13
|
-
- `opencode/agents/release-manager.md`
|
|
14
|
-
- `.agents/skills/deploy-engineer/SKILL.md`
|
|
15
|
-
- validation evidence and selected PR summary
|
|
16
|
-
|
|
17
|
-
## Instructions
|
|
18
|
-
|
|
19
|
-
1. Confirm deployment scope, target environment, and release objective.
|
|
20
|
-
2. Confirm required validation evidence exists before any deploy recommendation.
|
|
21
|
-
3. Identify deployment steps, rollback steps, and ownership.
|
|
22
|
-
4. Check environment prerequisites, CI/CD requirements, secrets handling, and smoke-test plan.
|
|
23
|
-
5. Classify risks and blockers using `High`, `Medium`, `Low` severity.
|
|
24
|
-
6. Recommend `Proceed`, `Proceed with notes`, or `Blocked` with explicit evidence.
|
|
25
|
-
7. Avoid modifying files unless explicitly asked.
|
|
26
|
-
8. Do not claim deploy success without execution evidence.
|
|
27
|
-
|
|
28
|
-
## Expected Output
|
|
29
|
-
|
|
30
|
-
- Deployment scope
|
|
31
|
-
- Preconditions and evidence
|
|
32
|
-
- Deployment steps
|
|
33
|
-
- Rollback/recovery plan
|
|
34
|
-
- Risks and blockers
|
|
35
|
-
- Final recommendation
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Execute
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Implement one selected PR only.
|
|
6
|
-
|
|
7
|
-
## Context To Read
|
|
8
|
-
|
|
9
|
-
- `AGENTS.md`
|
|
10
|
-
- `harness/workflows/implement-review-validate.md`
|
|
11
|
-
|
|
12
|
-
- `harness/handoffs/HANDOFF.template.md`
|
|
13
|
-
- the selected PR prompt, plan, issue, or handoff provided by the user
|
|
14
|
-
- `.agents/skills/minimal-context/SKILL.md`
|
|
15
|
-
|
|
16
|
-
## Input discipline
|
|
17
|
-
|
|
18
|
-
Before reading files:
|
|
19
|
-
|
|
20
|
-
- Use `minimal-context` skill (read only task-relevant files, 3–7 max, grep before read).
|
|
21
|
-
- Do not glob/read entire directories unless task is an audit.
|
|
22
|
-
- Send compact summaries to subagents, not full contents.
|
|
23
|
-
|
|
24
|
-
## Instructions
|
|
25
|
-
|
|
26
|
-
1. Treat the selected PR or handoff as the scope contract.
|
|
27
|
-
2. Confirm objective, files in scope, files out of scope, constraints, and validation expectations before editing.
|
|
28
|
-
3. Enforce branch gate before any edit:
|
|
29
|
-
- run `git status -sb`;
|
|
30
|
-
- if current branch is `main`, stop and create a scoped branch with `git switch -c <type>/<short-pr-slug>`;
|
|
31
|
-
- continue only when current branch is not `main`.
|
|
32
|
-
4. Preserve existing behavior unless the selected PR explicitly changes it.
|
|
33
|
-
5. Keep changes minimal and reviewable.
|
|
34
|
-
6. Avoid unrelated refactors, dependency changes, formatting churn, and future PR work.
|
|
35
|
-
7. Follow existing project patterns.
|
|
36
|
-
8. Run available validation commands that are proportional to the change.
|
|
37
|
-
9. Report files changed, validation evidence, skipped checks, and remaining risks.
|
|
38
|
-
|
|
39
|
-
## Expected Output
|
|
40
|
-
|
|
41
|
-
- Summary
|
|
42
|
-
- Files changed
|
|
43
|
-
- Implementation notes
|
|
44
|
-
- Validation performed
|
|
45
|
-
- Remaining risks
|
|
46
|
-
- Suggested commit message
|
|
47
|
-
- Effort: AI elapsed ~Xm | Senior dev estimate ~Ym
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Orchestrate
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Run automatic agent handoff gating for one delivery cycle.
|
|
6
|
-
|
|
7
|
-
This command does not implement code by itself; it routes work to the correct next agent using gate checks.
|
|
8
|
-
|
|
9
|
-
## Context To Read
|
|
10
|
-
|
|
11
|
-
- `AGENTS.md`
|
|
12
|
-
- `harness/workflows/multi-agent-handoff.md`
|
|
13
|
-
- `harness/handoffs/HANDOFF.template.md`
|
|
14
|
-
|
|
15
|
-
## Instructions
|
|
16
|
-
|
|
17
|
-
1. Identify current step in chain: `planner -> implementer -> reviewer -> validator -> release-manager`.
|
|
18
|
-
2. Check gate criteria for current transition.
|
|
19
|
-
3. If gate is `Pass`, route to next agent and provide required input packet.
|
|
20
|
-
4. If gate is `Blocked`, stop escalation and return smallest safe fix request to previous owner.
|
|
21
|
-
5. Enforce branch gate for any execution step (no implementation on `main`).
|
|
22
|
-
6. Preserve one primary agent per step.
|
|
23
|
-
7. Enforce delegation-by-step: do not execute planner/implementer/reviewer/validator/release-manager specialist work inline; route to the step owner.
|
|
24
|
-
8. If required owner delegation cannot be performed (missing packet/context/gate input), return `Blocked` with the smallest safe missing-input request.
|
|
25
|
-
9. Do not skip validation gate before release recommendations.
|
|
26
|
-
10. Apply anti-overdelegation: do not delegate trivial one-file doc edits; do not route to more than 2 agents unless cross-functional.
|
|
27
|
-
11. Use delegation contract fields in every handoff: task summary, relevant files, constraints, expected output, validation required, risk level, do-not-change list, evidence required.
|
|
28
|
-
12. Require specialist responses to include summary/findings, files changed or inspected, risks, validation commands, open questions, and recommendation.
|
|
29
|
-
|
|
30
|
-
## Expected Output
|
|
31
|
-
|
|
32
|
-
- Current workflow step
|
|
33
|
-
- Gate result (`Pass` or `Blocked`)
|
|
34
|
-
- Blocking reason (when blocked)
|
|
35
|
-
- Next agent to run
|
|
36
|
-
- Required handoff packet for next agent
|
|
37
|
-
- Expected specialist output contract for the next step
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Plan
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Convert a user request or rough idea into a requirement, functional specification, technical plan, PR breakdown, and optional execution handoff.
|
|
6
|
-
|
|
7
|
-
Stop before implementation.
|
|
8
|
-
|
|
9
|
-
## Context To Read
|
|
10
|
-
|
|
11
|
-
- `AGENTS.md`
|
|
12
|
-
- `harness/workflows/requirement-to-pr.md`
|
|
13
|
-
|
|
14
|
-
- `schemas/`
|
|
15
|
-
- `templates/`
|
|
16
|
-
|
|
17
|
-
## Instructions
|
|
18
|
-
|
|
19
|
-
1. Ask at most 2 blocking questions when planning cannot proceed safely.
|
|
20
|
-
2. Otherwise state assumptions and continue.
|
|
21
|
-
3. Define the requirement, functional specification, technical plan, and PR breakdown.
|
|
22
|
-
4. Keep PRs small, reviewable, and independently useful.
|
|
23
|
-
5. Identify risks, scope boundaries, no-regression expectations, and validation needs.
|
|
24
|
-
6. Recommend the next PR.
|
|
25
|
-
7. Add a handoff only when implementation context is sufficient.
|
|
26
|
-
8. For multi-step or cross-functional work, include delegation owner recommendations using the matrix in `AGENTS.md`.
|
|
27
|
-
9. When providing a handoff, include contract fields (task summary, files, constraints, expected output, validation, risk, do-not-change list, evidence).
|
|
28
|
-
|
|
29
|
-
## Expected Output
|
|
30
|
-
|
|
31
|
-
- Summary
|
|
32
|
-
- Assumptions
|
|
33
|
-
- Requirement
|
|
34
|
-
- Functional specification
|
|
35
|
-
- Technical plan
|
|
36
|
-
- PR breakdown
|
|
37
|
-
- Recommended next PR
|
|
38
|
-
- Validation plan
|
|
39
|
-
- Open questions
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Review
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Review the current implementation or diff before merge.
|
|
6
|
-
|
|
7
|
-
## Context To Read
|
|
8
|
-
|
|
9
|
-
- `harness/workflows/implement-review-validate.md`
|
|
10
|
-
- `schemas/validation-report.schema.json`
|
|
11
|
-
- the requirement, specification, technical plan, PR breakdown, or handoff when present
|
|
12
|
-
|
|
13
|
-
## Instructions
|
|
14
|
-
|
|
15
|
-
1. Act as a critical reviewer.
|
|
16
|
-
2. Inspect the current diff and relevant surrounding files.
|
|
17
|
-
3. Compare the changes against the approved scope.
|
|
18
|
-
4. Classify findings as `High`, `Medium`, or `Low`.
|
|
19
|
-
5. Require evidence for every finding.
|
|
20
|
-
6. Check no-regression risk, scope creep, validation gaps, documentation drift, test gaps, and Markdown safety.
|
|
21
|
-
7. Avoid nitpicks unless they affect correctness, maintainability, workflow safety, or future validation.
|
|
22
|
-
8. Do not modify files unless explicitly asked.
|
|
23
|
-
|
|
24
|
-
## Expected Output
|
|
25
|
-
|
|
26
|
-
- Verdict
|
|
27
|
-
- Findings by severity
|
|
28
|
-
- Scope check
|
|
29
|
-
- Regression risk
|
|
30
|
-
- Validation gaps
|
|
31
|
-
- Required fixes before merge
|
|
32
|
-
- Optional improvements
|
|
33
|
-
- Effort: AI elapsed ~Xm | Senior dev estimate ~Ym
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Roadmap Audit
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Run a compact technical roadmap audit and return evidence-based findings.
|
|
6
|
-
|
|
7
|
-
## Context To Read
|
|
8
|
-
|
|
9
|
-
- `ROADMAP.md`
|
|
10
|
-
- `AGENTS.md`
|
|
11
|
-
- `README.md`
|
|
12
|
-
- `runbooks/commands-cheatsheet.md`
|
|
13
|
-
|
|
14
|
-
## Instructions
|
|
15
|
-
|
|
16
|
-
1. Confirm audit scope and read only the required files.
|
|
17
|
-
2. Summarize current roadmap status and active next step.
|
|
18
|
-
3. Report findings using severity (`High`/`Medium`/`Low`) and type (`Confirmed issue`/`Hypothesis`/`Observation`).
|
|
19
|
-
4. Require evidence for each finding (file path + section/line when available).
|
|
20
|
-
5. Recommend the smallest safe next PR.
|
|
21
|
-
6. Avoid edits unless explicitly requested.
|
|
22
|
-
7. Do not commit unless explicitly asked.
|
|
23
|
-
|
|
24
|
-
## Expected Output
|
|
25
|
-
|
|
26
|
-
- Current state summary
|
|
27
|
-
- Findings table (severity, type, evidence, problem, risk, action)
|
|
28
|
-
- Recommended next PR (scope + files)
|
|
29
|
-
- Validation commands
|
|
30
|
-
- Open questions (only if blocking)
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Ship
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Execute a low-touch end-to-end workflow with automatic delegation and minimal user interactions.
|
|
6
|
-
|
|
7
|
-
## Context To Read
|
|
8
|
-
|
|
9
|
-
Minimum-first context loading:
|
|
10
|
-
|
|
11
|
-
1. Always read first:
|
|
12
|
-
- `opencode/agents/orchestrator.md`
|
|
13
|
-
2. Read only when needed by current gate:
|
|
14
|
-
- `harness/workflows/requirement-to-pr.md` (planning and Gate A)
|
|
15
|
-
- `harness/workflows/multi-agent-handoff.md` (gate transitions)
|
|
16
|
-
- `harness/workflows/implement-review-validate.md` (implementation/review/validation gates)
|
|
17
|
-
3. Read only relevant sections of `AGENTS.md` for active task type, constraints, and validation.
|
|
18
|
-
|
|
19
|
-
## Execution mode
|
|
20
|
-
|
|
21
|
-
- Default mode: `safe-orchestrator`
|
|
22
|
-
- In this mode, ask confirmation only when required by checkpoints.
|
|
23
|
-
|
|
24
|
-
## Instructions
|
|
25
|
-
|
|
26
|
-
1. Start with `planner` unless fallback conditions require `discovery` or `prompt-engineer`.
|
|
27
|
-
2. Enforce branch gate before any write operation:
|
|
28
|
-
- run `git status -sb`;
|
|
29
|
-
- if branch is `main`, create/switch to scoped branch with `git switch -c <type>/<short-task-slug>`;
|
|
30
|
-
- continue write operations only off `main`.
|
|
31
|
-
3. When planning yields selected PR + handoff, route to `orchestrator`.
|
|
32
|
-
4. Delegate automatically by gate status across `implementer -> reviewer -> validator -> release-manager`.
|
|
33
|
-
5. Preserve branch gate, no-regression, and one-PR scope rules.
|
|
34
|
-
6. Ask confirmation only at these checkpoints:
|
|
35
|
-
- before commit;
|
|
36
|
-
- before PR create/push when not already explicitly requested;
|
|
37
|
-
- before merge;
|
|
38
|
-
- before release/deploy.
|
|
39
|
-
7. If any gate is blocked, stop and return smallest safe fix request.
|
|
40
|
-
8. Finish with execution summary and links/evidence.
|
|
41
|
-
|
|
42
|
-
## Expected Output
|
|
43
|
-
|
|
44
|
-
- Active step and delegated agent
|
|
45
|
-
- Gate result (`Pass`/`Blocked`)
|
|
46
|
-
- Required confirmation checkpoint (when applicable)
|
|
47
|
-
- Next action
|
|
48
|
-
- Final summary with validation evidence
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Create Spec From Request
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Turn a vague request into a lightweight, implementation-ready change artifact.
|
|
6
|
-
|
|
7
|
-
## Constraints
|
|
8
|
-
|
|
9
|
-
1. Do not implement.
|
|
10
|
-
2. Ask only necessary blocking questions (max 2 by default).
|
|
11
|
-
3. Keep scope and out-of-scope explicit.
|
|
12
|
-
4. Preserve existing behavior unless change is explicitly requested.
|
|
13
|
-
|
|
14
|
-
## Context To Read
|
|
15
|
-
|
|
16
|
-
- `templates/change-proposal.template.md`
|
|
17
|
-
- `checklists/change-spec-readiness-checklist.md`
|
|
18
|
-
- `AGENTS.md`
|
|
19
|
-
|
|
20
|
-
## Expected Output
|
|
21
|
-
|
|
22
|
-
- Draft change artifact using `templates/change-proposal.template.md`
|
|
23
|
-
- Suggested output path in consumer project: `docs/specs/<spec-type>/<yyyy-mm-dd>-<change-slug>/00-proposal.md`
|
|
24
|
-
- Assumptions
|
|
25
|
-
- Open questions
|
|
26
|
-
- Readiness: `Ready for implementation handoff` | `Needs clarification` | `Too broad` | `Blocked`
|
|
27
|
-
- Recommended next owner: `implementer` | `planner`
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Create Spec From Requirement
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Draft a clear, testable functional specification from an approved requirement.
|
|
6
|
-
|
|
7
|
-
## Constraints
|
|
8
|
-
|
|
9
|
-
1. Do not implement.
|
|
10
|
-
2. Preserve existing behavior unless the requirement explicitly changes it.
|
|
11
|
-
3. Ask at most 2 blocking questions.
|
|
12
|
-
4. Keep scope and out-of-scope explicit.
|
|
13
|
-
|
|
14
|
-
## Context To Read
|
|
15
|
-
|
|
16
|
-
- `templates/SPEC.template.md`
|
|
17
|
-
- `checklists/spec-readiness-checklist.md`
|
|
18
|
-
- `AGENTS.md`
|
|
19
|
-
|
|
20
|
-
## Expected Output
|
|
21
|
-
|
|
22
|
-
- Functional specification draft
|
|
23
|
-
- Assumptions
|
|
24
|
-
- Open questions
|
|
25
|
-
- Readiness: `Ready for technical plan` | `Needs clarification` | `Too broad` | `Blocked`
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Review Spec
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Assess and improve whether a spec/change artifact is ready for implementation handoff.
|
|
6
|
-
|
|
7
|
-
## Context To Read
|
|
8
|
-
|
|
9
|
-
- `templates/SPEC.template.md`
|
|
10
|
-
- `templates/change-proposal.template.md`
|
|
11
|
-
- `checklists/spec-readiness-checklist.md`
|
|
12
|
-
- `checklists/change-spec-readiness-checklist.md`
|
|
13
|
-
- `AGENTS.md`
|
|
14
|
-
|
|
15
|
-
## Constraints
|
|
16
|
-
|
|
17
|
-
1. Do not implement.
|
|
18
|
-
2. Do not silently expand scope.
|
|
19
|
-
3. Keep findings evidence-based.
|
|
20
|
-
|
|
21
|
-
## Expected Output
|
|
22
|
-
|
|
23
|
-
- Decision: `Ready for implementation handoff` | `Needs clarification` | `Too broad` | `Blocked`
|
|
24
|
-
- Findings by severity (`High`/`Medium`/`Low`)
|
|
25
|
-
- Smallest safe fixes
|
|
26
|
-
- Evidence references
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Spec To PR Breakdown
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Split an approved specification into small, reviewable PRs.
|
|
6
|
-
|
|
7
|
-
## Constraints
|
|
8
|
-
|
|
9
|
-
1. Do not implement.
|
|
10
|
-
2. Keep one objective per PR.
|
|
11
|
-
3. Avoid unrelated refactors.
|
|
12
|
-
4. Keep validation/evidence explicit per PR.
|
|
13
|
-
|
|
14
|
-
## Expected Output
|
|
15
|
-
|
|
16
|
-
- Ordered PR list
|
|
17
|
-
- Per PR: objective, scope, out-of-scope, risks, validation
|
|
18
|
-
- Recommended first PR
|
|
19
|
-
- Handoff-ready notes
|