@williambeto/ai-workflow 1.19.0 → 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 -837
- 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 -275
- 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,445 +0,0 @@
|
|
|
1
|
-
# Apply Starter to a Real Project
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Use this runbook to apply `ai-workflow` to a real software project without copying everything blindly.
|
|
6
|
-
|
|
7
|
-
The goal is to choose the smallest useful workflow, adapt it to the target repository, and use the starter as an operating model for discovery, planning, implementation, review, validation, release, and handoff.
|
|
8
|
-
|
|
9
|
-
This starter is not application code. Do not copy it into a project as if it were a framework boilerplate.
|
|
10
|
-
|
|
11
|
-
## Quick Start (5-minute onboarding)
|
|
12
|
-
|
|
13
|
-
1. **Pick a real project** — identify project name, type, stack, and main goal (Step 1).
|
|
14
|
-
2. **Choose adoption level** — start with Level 1 (minimal) or Level 2 (operational) from Step 3.
|
|
15
|
-
3. **Select agents and skills** — use Step 4 and Step 5 tables to pick the smallest set that covers your work.
|
|
16
|
-
4. **Run OpenCode smoke test** — verify `opencode.jsonc` loads correctly (Step 4 → OpenCode first-run smoke test).
|
|
17
|
-
5. **Create first PR plan** — follow Step 7 to break work into small, reviewable PRs.
|
|
18
|
-
|
|
19
|
-
> **Rule of thumb**: Start with Level 2 (Operational) for serious projects. Use Level 1 for bug fixes. Add skills only when the task needs them.
|
|
20
|
-
|
|
21
|
-
## When to use this runbook
|
|
22
|
-
|
|
23
|
-
Use this runbook when:
|
|
24
|
-
|
|
25
|
-
- starting a new project;
|
|
26
|
-
- auditing an existing project;
|
|
27
|
-
- setting up Codex/OpenCode workflows;
|
|
28
|
-
- preparing a target project;
|
|
29
|
-
- creating a PR-driven implementation plan;
|
|
30
|
-
- reducing repeated prompt/context setup.
|
|
31
|
-
|
|
32
|
-
## Adoption principles
|
|
33
|
-
|
|
34
|
-
- Do not copy everything blindly.
|
|
35
|
-
- Start with the smallest useful workflow.
|
|
36
|
-
- Keep project-specific rules close to the target project.
|
|
37
|
-
- Use this starter as an operating model, not as application code.
|
|
38
|
-
- Validate before every commit and merge.
|
|
39
|
-
- Prefer small PRs.
|
|
40
|
-
|
|
41
|
-
## Step 1 — Choose the target project
|
|
42
|
-
|
|
43
|
-
Pick one real target project before selecting agents, skills, prompts, or runbooks.
|
|
44
|
-
|
|
45
|
-
Example project types:
|
|
46
|
-
|
|
47
|
-
- Nuxt dashboard;
|
|
48
|
-
- WordPress site/theme/plugin;
|
|
49
|
-
- frontend refactor;
|
|
50
|
-
- testing automation project;
|
|
51
|
-
- documentation/prompt repository.
|
|
52
|
-
|
|
53
|
-
Expected output:
|
|
54
|
-
|
|
55
|
-
- project name;
|
|
56
|
-
- project type;
|
|
57
|
-
- stack;
|
|
58
|
-
- main goal;
|
|
59
|
-
- current pain points;
|
|
60
|
-
- constraints.
|
|
61
|
-
|
|
62
|
-
Do not continue if the project goal is still broad enough to become multiple unrelated workstreams.
|
|
63
|
-
|
|
64
|
-
### Fast bootstrap command
|
|
65
|
-
|
|
66
|
-
Run the standalone installer in the target repository:
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
npx @williambeto/ai-workflow init --yes
|
|
70
|
-
npx @williambeto/ai-workflow doctor
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
This installs workflow assets under `.ai-workflow/` and links expected project paths for tool compatibility.
|
|
74
|
-
|
|
75
|
-
## Step 2 — Run initial discovery
|
|
76
|
-
|
|
77
|
-
Use discovery to understand the project before estimating or planning implementation.
|
|
78
|
-
|
|
79
|
-
Reference:
|
|
80
|
-
|
|
81
|
-
```txt
|
|
82
|
-
opencode/agents/discovery.md
|
|
83
|
-
.codex/prompts/plan-from-requirement.md
|
|
84
|
-
schemas/requirement.schema.json
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
Expected output:
|
|
88
|
-
|
|
89
|
-
- discovery brief;
|
|
90
|
-
- assumptions;
|
|
91
|
-
- risks;
|
|
92
|
-
- open questions;
|
|
93
|
-
- decision whether to estimate or plan.
|
|
94
|
-
|
|
95
|
-
If discovery finds missing business context, unclear ownership, unknown validation commands, or risky production constraints, record those as open questions before creating a PR plan.
|
|
96
|
-
|
|
97
|
-
## Step 3 — Decide adoption depth
|
|
98
|
-
|
|
99
|
-
Choose one adoption level for the project. Start lower, then expand only when the workflow proves useful.
|
|
100
|
-
|
|
101
|
-
| Level | When to use | What to copy/adapt | Risk |
|
|
102
|
-
| ----- | ----------- | ------------------ | ---- |
|
|
103
|
-
| Level 1 — Minimal | Small bug fixes, short documentation updates, or early trials in an existing project. | `AGENTS.md`, `README.md`, `.codex/prompts/`, and `npm run validate` only if the validation scripts are copied. | May not provide enough structure for multi-PR work, team handoff, or repeatable review. |
|
|
104
|
-
| Level 2 — Operational | Serious feature work, production projects, repo audits, or teams that need recurring Codex/OpenCode workflows. | `AGENTS.md`, `harness/`, `opencode/commands/`, `opencode/agents/`, selected skills, and validation scripts. | Requires project-specific adaptation; copied rules can drift if nobody owns them. |
|
|
105
|
-
| Level 3 — Full workflow | Long-lived products, team workflow design, training repositories, or projects that need examples and structured contracts. | `prompts/`, `templates/`, `harness/`, `schemas/`, `examples/`, agents, skills, runbooks, and validation scripts. | Highest setup cost; can become process-heavy if copied without pruning. |
|
|
106
|
-
|
|
107
|
-
Do not use Level 3 just because the starter contains more files. Use it when the target project needs a durable workflow system.
|
|
108
|
-
|
|
109
|
-
## Step 4 — Select agents
|
|
110
|
-
|
|
111
|
-
Agents own workflow roles and handoffs. Choose agents based on the work type, not based on how many files exist in this starter.
|
|
112
|
-
|
|
113
|
-
Client/project discovery:
|
|
114
|
-
|
|
115
|
-
- discovery;
|
|
116
|
-
- planner.
|
|
117
|
-
|
|
118
|
-
Feature delivery:
|
|
119
|
-
|
|
120
|
-
- planner;
|
|
121
|
-
- implementer;
|
|
122
|
-
- reviewer;
|
|
123
|
-
- validator;
|
|
124
|
-
- release-manager.
|
|
125
|
-
|
|
126
|
-
Bug fix:
|
|
127
|
-
|
|
128
|
-
- fixer;
|
|
129
|
-
- reviewer;
|
|
130
|
-
- validator;
|
|
131
|
-
- release-manager.
|
|
132
|
-
|
|
133
|
-
Frontend architecture:
|
|
134
|
-
|
|
135
|
-
- planner;
|
|
136
|
-
- implementer;
|
|
137
|
-
- reviewer;
|
|
138
|
-
- validator.
|
|
139
|
-
|
|
140
|
-
WordPress project:
|
|
141
|
-
|
|
142
|
-
- discovery;
|
|
143
|
-
- wordpress-engineer;
|
|
144
|
-
- reviewer;
|
|
145
|
-
- validator;
|
|
146
|
-
- release-manager.
|
|
147
|
-
|
|
148
|
-
Prompt/system improvement:
|
|
149
|
-
|
|
150
|
-
- prompt-engineer;
|
|
151
|
-
- reviewer;
|
|
152
|
-
- validator;
|
|
153
|
-
- release-manager.
|
|
154
|
-
|
|
155
|
-
Use the fewest agents that cover the handoff. Too many agents can create duplicated analysis and unclear ownership.
|
|
156
|
-
|
|
157
|
-
### OpenCode first-run smoke test
|
|
158
|
-
|
|
159
|
-
If the target team will use OpenCode commands, run a one-time smoke test before execution:
|
|
160
|
-
|
|
161
|
-
- verify `opencode.jsonc` is recognized by the local OpenCode setup;
|
|
162
|
-
- verify configured agents load from `opencode/agents/`;
|
|
163
|
-
- verify commands load from `opencode/commands/` (`start`, `plan`, `execute`, `review`, `validate`);
|
|
164
|
-
- run one small cycle and capture validation evidence.
|
|
165
|
-
|
|
166
|
-
Reference:
|
|
167
|
-
|
|
168
|
-
```txt
|
|
169
|
-
opencode/README.md
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
Do not proceed with production work until routing and prompt resolution work without manual path fixes.
|
|
173
|
-
|
|
174
|
-
## Step 5 — Select skills
|
|
175
|
-
|
|
176
|
-
Skills are reusable capabilities, not agents.
|
|
177
|
-
|
|
178
|
-
Use skills to give Codex stronger technical behavior inside a selected task. Do not treat a skill as an owner of the whole workflow.
|
|
179
|
-
|
|
180
|
-
Examples:
|
|
181
|
-
|
|
182
|
-
| Project/work type | Useful skills |
|
|
183
|
-
| ----------------- | ------------- |
|
|
184
|
-
| Nuxt Dashboard | `vue-nuxt`, `vue-nuxt`, `frontend-implementer`, `build-and-validate` |
|
|
185
|
-
| WordPress | `wordpress-engineer`, `docs-writer`, `build-and-validate`, `tester` |
|
|
186
|
-
| Testing automation | `tester`, `build-and-validate` |
|
|
187
|
-
| Prompt/system work | `token-economy`, `opencode-agent-design`, `pr-orchestrator`, `docs-writer` |
|
|
188
|
-
| Release flow | `deploy-engineer`, `build-and-validate` |
|
|
189
|
-
|
|
190
|
-
Select one primary skill for the current task. Add supporting skills only when they improve the result.
|
|
191
|
-
|
|
192
|
-
## Step 6 — Create project-local rules
|
|
193
|
-
|
|
194
|
-
The target project should have its own local rules.
|
|
195
|
-
|
|
196
|
-
Create or adapt:
|
|
197
|
-
|
|
198
|
-
- `AGENTS.md`;
|
|
199
|
-
- `DESIGN.md` if UI/design rules matter;
|
|
200
|
-
- `README.md`;
|
|
201
|
-
- project-specific validation commands;
|
|
202
|
-
- project-specific examples.
|
|
203
|
-
|
|
204
|
-
Keep project-specific rules inside the target project. For example, WordPress PHP compatibility, Nuxt routing conventions, client deployment steps, and test commands should live with the project that uses them.
|
|
205
|
-
|
|
206
|
-
Do not blindly copy the entire starter into every project.
|
|
207
|
-
|
|
208
|
-
## Step 7 — Create a first PR plan
|
|
209
|
-
|
|
210
|
-
Turn discovery into a small, reviewable implementation sequence.
|
|
211
|
-
|
|
212
|
-
Reference:
|
|
213
|
-
|
|
214
|
-
```txt
|
|
215
|
-
harness/workflows/requirement-to-pr.md
|
|
216
|
-
schemas/pr-breakdown.schema.json
|
|
217
|
-
templates/PR-PLAN.template.md
|
|
218
|
-
examples/nuxt-dashboard/
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
Expected output:
|
|
222
|
-
|
|
223
|
-
- PR list;
|
|
224
|
-
- dependencies;
|
|
225
|
-
- validation per PR;
|
|
226
|
-
- risks;
|
|
227
|
-
- recommended first PR.
|
|
228
|
-
|
|
229
|
-
The first PR should create enough value to validate the workflow without locking the project into a large refactor.
|
|
230
|
-
|
|
231
|
-
## Step 8 — Execute one PR
|
|
232
|
-
|
|
233
|
-
Implement only the selected PR.
|
|
234
|
-
|
|
235
|
-
Reference:
|
|
236
|
-
|
|
237
|
-
```txt
|
|
238
|
-
opencode/agents/implementer.md
|
|
239
|
-
.codex/prompts/execute-selected-pr.md
|
|
240
|
-
harness/workflows/implement-review-validate.md
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
Rules:
|
|
244
|
-
|
|
245
|
-
- one PR only;
|
|
246
|
-
- no opportunistic refactors;
|
|
247
|
-
- no regression;
|
|
248
|
-
- validate before commit.
|
|
249
|
-
|
|
250
|
-
If implementation reveals unrelated work, document it as a follow-up instead of adding it to the current PR.
|
|
251
|
-
|
|
252
|
-
## Step 9 — Review and validate
|
|
253
|
-
|
|
254
|
-
Review the implemented PR before release or merge.
|
|
255
|
-
|
|
256
|
-
Reference:
|
|
257
|
-
|
|
258
|
-
```txt
|
|
259
|
-
opencode/agents/reviewer.md
|
|
260
|
-
opencode/agents/validator.md
|
|
261
|
-
.codex/prompts/review-implementation.md
|
|
262
|
-
.codex/prompts/validate-work.md
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
Expected output:
|
|
266
|
-
|
|
267
|
-
- verdict;
|
|
268
|
-
- findings by severity;
|
|
269
|
-
- commands run;
|
|
270
|
-
- merge recommendation.
|
|
271
|
-
|
|
272
|
-
The reviewer should identify defects and risks. The validator should confirm commands, acceptance criteria, and evidence. Do not use the reviewer as a substitute for validation.
|
|
273
|
-
|
|
274
|
-
## Step 10 — Release and handoff
|
|
275
|
-
|
|
276
|
-
Prepare the selected PR for merge only after review and validation are complete.
|
|
277
|
-
|
|
278
|
-
Reference:
|
|
279
|
-
|
|
280
|
-
```txt
|
|
281
|
-
opencode/agents/release-manager.md
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
Include:
|
|
285
|
-
|
|
286
|
-
- commit message;
|
|
287
|
-
- PR summary;
|
|
288
|
-
- merge plan;
|
|
289
|
-
- post-merge validation;
|
|
290
|
-
- branch cleanup;
|
|
291
|
-
- documentation update.
|
|
292
|
-
|
|
293
|
-
The handoff should state what changed, what was validated, what was not validated, and what follow-up work remains out of scope.
|
|
294
|
-
|
|
295
|
-
### Two-account PR approval flow (private repositories)
|
|
296
|
-
|
|
297
|
-
Use this flow when branch protection capabilities are limited by the repository plan.
|
|
298
|
-
|
|
299
|
-
Core rules:
|
|
300
|
-
|
|
301
|
-
- PR authors must not approve their own PRs.
|
|
302
|
-
- Do not merge directly into `main`.
|
|
303
|
-
- Require validation evidence before approval.
|
|
304
|
-
- Use squash merge as the default strategy.
|
|
305
|
-
|
|
306
|
-
#### Author checklist
|
|
307
|
-
|
|
308
|
-
1. Create a scoped branch and implement only the selected PR.
|
|
309
|
-
2. Run validation and prepare evidence.
|
|
310
|
-
3. Push branch and open PR.
|
|
311
|
-
4. Request review from a second account.
|
|
312
|
-
|
|
313
|
-
```bash
|
|
314
|
-
git switch -c <type>/<short-pr-slug>
|
|
315
|
-
npm run validate
|
|
316
|
-
git push -u origin <type>/<short-pr-slug>
|
|
317
|
-
gh pr create --base main --title "<title>" --body "<summary-and-evidence>"
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
#### Reviewer checklist (second account)
|
|
321
|
-
|
|
322
|
-
1. Review scope, risk, and evidence.
|
|
323
|
-
2. Request changes for unresolved medium/high issues.
|
|
324
|
-
3. Approve only when validation evidence is explicit.
|
|
325
|
-
|
|
326
|
-
```bash
|
|
327
|
-
gh pr checkout <pr-number>
|
|
328
|
-
gh pr diff <pr-number>
|
|
329
|
-
gh pr review <pr-number> --approve
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
#### Merge and cleanup checklist
|
|
333
|
-
|
|
334
|
-
Use squash merge by default. Only use merge/rebase with explicit PR justification.
|
|
335
|
-
|
|
336
|
-
```bash
|
|
337
|
-
gh pr merge <pr-number> --squash --delete-branch
|
|
338
|
-
git switch main
|
|
339
|
-
git pull
|
|
340
|
-
git fetch --prune
|
|
341
|
-
```
|
|
342
|
-
|
|
343
|
-
#### Fallback policy when formal branch protection is unavailable
|
|
344
|
-
|
|
345
|
-
- Treat this workflow as mandatory team policy.
|
|
346
|
-
- Block merge when reviewer approval is missing.
|
|
347
|
-
- Block merge when validation evidence is missing.
|
|
348
|
-
- Record exceptions in the PR description with reason and risk.
|
|
349
|
-
|
|
350
|
-
## Practical adoption examples
|
|
351
|
-
|
|
352
|
-
### A. Nuxt Dashboard
|
|
353
|
-
|
|
354
|
-
Recommended adoption:
|
|
355
|
-
|
|
356
|
-
- Level 2 or 3.
|
|
357
|
-
|
|
358
|
-
Agents:
|
|
359
|
-
|
|
360
|
-
- planner;
|
|
361
|
-
- implementer;
|
|
362
|
-
- reviewer;
|
|
363
|
-
- validator;
|
|
364
|
-
- release-manager.
|
|
365
|
-
|
|
366
|
-
Skills:
|
|
367
|
-
|
|
368
|
-
- `vue-nuxt`;
|
|
369
|
-
- `vue-nuxt`;
|
|
370
|
-
- `frontend-implementer`;
|
|
371
|
-
- `build-and-validate`.
|
|
372
|
-
|
|
373
|
-
Use Level 2 when the project already has its own examples, conventions, and validation commands. Use Level 3 when the team needs repeatable planning documents, schemas, and long-lived workflow examples.
|
|
374
|
-
|
|
375
|
-
### B. WordPress project
|
|
376
|
-
|
|
377
|
-
Recommended adoption:
|
|
378
|
-
|
|
379
|
-
- Level 2.
|
|
380
|
-
|
|
381
|
-
Agents:
|
|
382
|
-
|
|
383
|
-
- discovery;
|
|
384
|
-
- wordpress-engineer;
|
|
385
|
-
- reviewer;
|
|
386
|
-
- validator;
|
|
387
|
-
- release-manager.
|
|
388
|
-
|
|
389
|
-
Skills:
|
|
390
|
-
|
|
391
|
-
- `wordpress-engineer`;
|
|
392
|
-
- `docs-writer`;
|
|
393
|
-
- `tester`;
|
|
394
|
-
- `release-manager`.
|
|
395
|
-
|
|
396
|
-
Keep WordPress version constraints, hosting limits, plugin rules, ACF/WooCommerce assumptions, and deployment steps in the project-local `AGENTS.md` or runbook.
|
|
397
|
-
|
|
398
|
-
### C. Bug fix in existing project
|
|
399
|
-
|
|
400
|
-
Recommended adoption:
|
|
401
|
-
|
|
402
|
-
- Level 1 or 2.
|
|
403
|
-
|
|
404
|
-
Agents:
|
|
405
|
-
|
|
406
|
-
- fixer;
|
|
407
|
-
- reviewer;
|
|
408
|
-
- validator;
|
|
409
|
-
- release-manager.
|
|
410
|
-
|
|
411
|
-
Skills:
|
|
412
|
-
|
|
413
|
-
- `tester`;
|
|
414
|
-
- `build-and-validate`;
|
|
415
|
-
- `release-manager`.
|
|
416
|
-
|
|
417
|
-
Use Level 1 when the bug is isolated and validation commands are already known. Use Level 2 when the bug touches shared behavior, unclear ownership, or risky release paths.
|
|
418
|
-
|
|
419
|
-
## Checklist
|
|
420
|
-
|
|
421
|
-
- [ ] Target project selected.
|
|
422
|
-
- [ ] Adoption level chosen.
|
|
423
|
-
- [ ] Agents selected.
|
|
424
|
-
- [ ] Skills selected.
|
|
425
|
-
- [ ] Project-local `AGENTS.md` created/adapted.
|
|
426
|
-
- [ ] Validation commands identified.
|
|
427
|
-
- [ ] First PR planned.
|
|
428
|
-
- [ ] First PR executed.
|
|
429
|
-
- [ ] Review completed.
|
|
430
|
-
- [ ] Validation passed.
|
|
431
|
-
- [ ] Release/handoff completed.
|
|
432
|
-
|
|
433
|
-
## Common mistakes
|
|
434
|
-
|
|
435
|
-
- Copying everything into every project.
|
|
436
|
-
- Using implementer before planner.
|
|
437
|
-
- Using reviewer as validator.
|
|
438
|
-
- Creating too many agents.
|
|
439
|
-
- Skipping project-specific rules.
|
|
440
|
-
- Not validating before merge.
|
|
441
|
-
- Mixing discovery, estimate, and implementation in one step.
|
|
442
|
-
|
|
443
|
-
## Final recommendation
|
|
444
|
-
|
|
445
|
-
Start with Level 2 adoption for serious projects. Use Level 1 for small bug fixes. Use Level 3 only when building a long-lived project or team workflow.
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# Command Cheat Sheet
|
|
2
|
-
|
|
3
|
-
## Codex Prompt Entrypoints (`.codex/prompts/`)
|
|
4
|
-
|
|
5
|
-
| Command | When to Use |
|
|
6
|
-
|---------|-------------|
|
|
7
|
-
| `start-project.md` | Start a new session with safe defaults (`orchestrator` with fallbacks to `discovery`, `prompt-engineer`, or `planner`). |
|
|
8
|
-
| `plan-from-requirement.md` | Turn a user request or rough idea into requirement, spec, technical plan, PR breakdown, and optional handoff. |
|
|
9
|
-
| `execute-selected-pr.md` | Implement one selected PR from a plan or handoff. |
|
|
10
|
-
| `review-implementation.md` | Review the current implementation or diff before merging. |
|
|
11
|
-
| `validate-work.md` | Validate the current repository or PR before commit or merge. |
|
|
12
|
-
|
|
13
|
-
### Spec-Driven prompts (`.codex/prompts/specs/`)
|
|
14
|
-
|
|
15
|
-
| Command | When to Use |
|
|
16
|
-
|---------|-------------|
|
|
17
|
-
| `create-spec-from-requirement.md` | Draft a testable spec from an approved requirement. |
|
|
18
|
-
| `review-spec.md` | Validate spec readiness before technical plan. |
|
|
19
|
-
| `spec-to-technical-plan.md` | Convert approved spec into technical plan output. |
|
|
20
|
-
| `spec-to-pr-breakdown.md` | Split approved spec into small PRs for execution. |
|
|
21
|
-
|
|
22
|
-
## OpenCode Commands (`opencode/commands/`)
|
|
23
|
-
|
|
24
|
-
| Command | When to Use |
|
|
25
|
-
|---------|-------------|
|
|
26
|
-
| `start.md` | Default entrypoint; routes to appropriate starting agent (`orchestrator` by default). |
|
|
27
|
-
| `ship.md` | Run low-touch end-to-end delivery with automatic delegation and required confirmations. |
|
|
28
|
-
| `plan.md` | Turn a user request or rough idea into requirement, spec, tech plan, PR breakdown, and optional handoff. |
|
|
29
|
-
| `execute.md` | Implement one selected PR from a plan or handoff. |
|
|
30
|
-
| `review.md` | Review the current implementation or diff before merge. |
|
|
31
|
-
| `validate.md` | Validate the current repository or PR before commit or merge. |
|
|
32
|
-
| `orchestrate.md` | Automatically route work across agents using gate-based handoff checks. |
|
|
33
|
-
| `deploy.md` | Prepare deployment readiness, rollout steps, and rollback plan. |
|
|
34
|
-
|
|
35
|
-
## Usage Examples
|
|
36
|
-
|
|
37
|
-
### Codex
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
# Start a new session
|
|
41
|
-
codex .codex/prompts/start-project.md
|
|
42
|
-
|
|
43
|
-
# Plan from requirement
|
|
44
|
-
codex .codex/prompts/plan-from-requirement.md
|
|
45
|
-
|
|
46
|
-
# Execute selected PR
|
|
47
|
-
codex .codex/prompts/execute-selected-pr.md
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### OpenCode
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
# Start workflow
|
|
54
|
-
opencode start
|
|
55
|
-
|
|
56
|
-
# Plan work
|
|
57
|
-
opencode plan
|
|
58
|
-
|
|
59
|
-
# Execute PR
|
|
60
|
-
opencode execute
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Safety Rules
|
|
65
|
-
|
|
66
|
-
- Always check branch status before making changes (`git status -sb`)
|
|
67
|
-
- Never implement directly on `main`; use scoped branches
|
|
68
|
-
- Validate changes before committing (`npm run validate`)
|
|
69
|
-
- Keep PRs small, reviewable, and independently useful
|
|
70
|
-
- Do not introduce unrelated refactors or dependency changes
|
|
71
|
-
- Preserve existing behavior unless explicitly changed
|