@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,713 +0,0 @@
|
|
|
1
|
-
# How to Use Skills
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Use this runbook to decide which specialist skill should be used for each phase of a Codex-assisted workflow.
|
|
6
|
-
|
|
7
|
-
The goal is to avoid asking one generic agent to do everything.
|
|
8
|
-
|
|
9
|
-
Each skill should give Codex a focused role, clearer boundaries, and better validation behavior.
|
|
10
|
-
|
|
11
|
-
## When to use
|
|
12
|
-
|
|
13
|
-
Use this runbook when:
|
|
14
|
-
|
|
15
|
-
- starting a new Codex session;
|
|
16
|
-
- choosing the right skill for a task;
|
|
17
|
-
- switching from planning to implementation;
|
|
18
|
-
- switching from implementation to validation;
|
|
19
|
-
- reviewing a PR;
|
|
20
|
-
- preparing deployment;
|
|
21
|
-
- diagnosing why Codex output is too broad, vague, or unsafe.
|
|
22
|
-
|
|
23
|
-
## Skill directory
|
|
24
|
-
|
|
25
|
-
```txt
|
|
26
|
-
.agents/skills/
|
|
27
|
-
├── backend-implementer/
|
|
28
|
-
│ └── SKILL.md
|
|
29
|
-
├── build-and-validate/
|
|
30
|
-
│ └── SKILL.md
|
|
31
|
-
├── pr-orchestrator/
|
|
32
|
-
│ └── SKILL.md
|
|
33
|
-
├── deploy-engineer/
|
|
34
|
-
│ └── SKILL.md
|
|
35
|
-
├── docs-writer/
|
|
36
|
-
│ └── SKILL.md
|
|
37
|
-
├── frontend-implementer/
|
|
38
|
-
│ └── SKILL.md
|
|
39
|
-
├── product-manager/
|
|
40
|
-
│ └── SKILL.md
|
|
41
|
-
├── seo-audit/
|
|
42
|
-
│ └── SKILL.md
|
|
43
|
-
├── tech-lead/
|
|
44
|
-
│ └── SKILL.md
|
|
45
|
-
└── tester/
|
|
46
|
-
└── SKILL.md
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Core rule
|
|
50
|
-
|
|
51
|
-
Use one primary skill per task.
|
|
52
|
-
|
|
53
|
-
Use supporting skills only when they improve the result.
|
|
54
|
-
|
|
55
|
-
Do not combine too many skills at once. Too many roles can make the output broad, inconsistent, or unfocused.
|
|
56
|
-
|
|
57
|
-
## Official team router (agent auto-load + skill auto-load)
|
|
58
|
-
|
|
59
|
-
Use this as the default auto-load map for daily work.
|
|
60
|
-
|
|
61
|
-
| Agent role | Auto-loaded primary skills | Contextual skills |
|
|
62
|
-
| ---------- | -------------------------- | ----------------- |
|
|
63
|
-
| `planner` | `product-manager`, `tech-lead`, `pr-orchestrator` | `napkin` when decisions should be preserved across sprints |
|
|
64
|
-
| `implementer` | `pr-orchestrator`, `tester`, plus one implementer skill (`frontend-implementer` or `backend-implementer`) | `interface-design` for UI/UX refinement tasks |
|
|
65
|
-
| `reviewer` | `tester`, `pr-orchestrator` | `interface-design` when reviewing design/system consistency |
|
|
66
|
-
| `validator` | `build-and-validate`, `tester` | `deploy-engineer` for deploy-readiness checks |
|
|
67
|
-
| `release-manager` | `deploy-engineer` | `napkin` when release lessons should be persisted |
|
|
68
|
-
|
|
69
|
-
Policy:
|
|
70
|
-
|
|
71
|
-
- keep one primary agent role per workflow step;
|
|
72
|
-
- use one primary skill and up to one supporting skill per task when possible;
|
|
73
|
-
- add `napkin` for recurring operational decisions;
|
|
74
|
-
- add `interface-design` only for interface-focused work.
|
|
75
|
-
|
|
76
|
-
## Skill selection table
|
|
77
|
-
|
|
78
|
-
| Task type | Primary skill | Supporting skills |
|
|
79
|
-
| ----------------------------- | ---------------------- | ----------------------------------------- |
|
|
80
|
-
| Clarify an idea or feature | `product-manager` | `tester`, `docs-writer` |
|
|
81
|
-
| Create a requirement | `product-manager` | `tester`, `docs-writer` |
|
|
82
|
-
| Review a requirement | `product-manager` | `tester` |
|
|
83
|
-
| Create a functional spec | `product-manager` | `tester`, `docs-writer` |
|
|
84
|
-
| Review a functional spec | `tester` | `product-manager` |
|
|
85
|
-
| Create a technical plan | `tech-lead` | `build-and-validate`, `tester` |
|
|
86
|
-
| Review a technical plan | `tech-lead` | `tester` |
|
|
87
|
-
| Break work into PRs | `pr-orchestrator` | `tech-lead`, `tester` |
|
|
88
|
-
| Implement frontend work | `frontend-implementer` | `pr-orchestrator`, `tester` |
|
|
89
|
-
| Implement backend work | `backend-implementer` | `pr-orchestrator`, `tester` |
|
|
90
|
-
| Write or update documentation | `docs-writer` | `tester` |
|
|
91
|
-
| Validate build/test commands | `build-and-validate` | `tester` |
|
|
92
|
-
| Review implemented PR | `tester` | `build-and-validate`, `pr-orchestrator` |
|
|
93
|
-
| Fix validation failures | `build-and-validate` | `tester`, relevant implementer |
|
|
94
|
-
| Apply UI/design improvements | `frontend-implementer` | `tester`, `docs-writer` |
|
|
95
|
-
| Audit SEO/AEO/GEO visibility | `seo-audit` | `tester`, `docs-writer` |
|
|
96
|
-
| Prepare deployment | `deploy-engineer` | `build-and-validate`, `tester` |
|
|
97
|
-
| Review deployment readiness | `deploy-engineer` | `tester`, `build-and-validate` |
|
|
98
|
-
|
|
99
|
-
## Skill responsibilities
|
|
100
|
-
|
|
101
|
-
### `product-manager`
|
|
102
|
-
|
|
103
|
-
Use for product clarity.
|
|
104
|
-
|
|
105
|
-
Best for:
|
|
106
|
-
|
|
107
|
-
- problem definition;
|
|
108
|
-
- target user;
|
|
109
|
-
- goal;
|
|
110
|
-
- scope;
|
|
111
|
-
- user stories;
|
|
112
|
-
- acceptance criteria;
|
|
113
|
-
- assumptions;
|
|
114
|
-
- open questions;
|
|
115
|
-
- requirement readiness.
|
|
116
|
-
|
|
117
|
-
Do not use as the primary skill for implementation.
|
|
118
|
-
|
|
119
|
-
### `tech-lead`
|
|
120
|
-
|
|
121
|
-
Use for technical direction.
|
|
122
|
-
|
|
123
|
-
Best for:
|
|
124
|
-
|
|
125
|
-
- architecture boundaries;
|
|
126
|
-
- current state analysis;
|
|
127
|
-
- technical approach;
|
|
128
|
-
- trade-offs;
|
|
129
|
-
- file boundaries;
|
|
130
|
-
- risk analysis;
|
|
131
|
-
- validation strategy;
|
|
132
|
-
- PR breakdown input.
|
|
133
|
-
|
|
134
|
-
Do not use as the primary skill for writing all code unless explicitly requested.
|
|
135
|
-
|
|
136
|
-
### `pr-orchestrator`
|
|
137
|
-
|
|
138
|
-
Use for PR discipline.
|
|
139
|
-
|
|
140
|
-
Best for:
|
|
141
|
-
|
|
142
|
-
- PR planning;
|
|
143
|
-
- PR scope;
|
|
144
|
-
- changed file summaries;
|
|
145
|
-
- validation summaries;
|
|
146
|
-
- regression risks;
|
|
147
|
-
- final PR summaries;
|
|
148
|
-
- checking whether a PR stayed in scope.
|
|
149
|
-
|
|
150
|
-
Do not use as a substitute for product, technical, or test judgment.
|
|
151
|
-
|
|
152
|
-
### `frontend-implementer`
|
|
153
|
-
|
|
154
|
-
Use for frontend implementation.
|
|
155
|
-
|
|
156
|
-
Best for:
|
|
157
|
-
|
|
158
|
-
- UI components;
|
|
159
|
-
- pages;
|
|
160
|
-
- layouts;
|
|
161
|
-
- routing;
|
|
162
|
-
- frontend state;
|
|
163
|
-
- forms;
|
|
164
|
-
- styling;
|
|
165
|
-
- accessibility basics;
|
|
166
|
-
- frontend API integration;
|
|
167
|
-
- frontend tests.
|
|
168
|
-
|
|
169
|
-
Do not use to redesign the product or invent a new UI system unless the design/technical plan requires it.
|
|
170
|
-
|
|
171
|
-
### `backend-implementer`
|
|
172
|
-
|
|
173
|
-
Use for backend implementation.
|
|
174
|
-
|
|
175
|
-
Best for:
|
|
176
|
-
|
|
177
|
-
- API endpoints;
|
|
178
|
-
- services;
|
|
179
|
-
- repositories;
|
|
180
|
-
- validation;
|
|
181
|
-
- authentication;
|
|
182
|
-
- authorization;
|
|
183
|
-
- persistence;
|
|
184
|
-
- migrations;
|
|
185
|
-
- external integrations;
|
|
186
|
-
- backend tests.
|
|
187
|
-
|
|
188
|
-
Do not use to change API contracts, database schema, or authorization behavior silently.
|
|
189
|
-
|
|
190
|
-
### `tester`
|
|
191
|
-
|
|
192
|
-
Use for validation and review.
|
|
193
|
-
|
|
194
|
-
Best for:
|
|
195
|
-
|
|
196
|
-
- acceptance criteria validation;
|
|
197
|
-
- regression review;
|
|
198
|
-
- edge cases;
|
|
199
|
-
- severity classification;
|
|
200
|
-
- evidence-based findings;
|
|
201
|
-
- approval recommendation;
|
|
202
|
-
- separating confirmed issues from hypotheses.
|
|
203
|
-
|
|
204
|
-
Do not use to implement fixes unless explicitly requested.
|
|
205
|
-
|
|
206
|
-
### `build-and-validate`
|
|
207
|
-
|
|
208
|
-
Use for command-based validation.
|
|
209
|
-
|
|
210
|
-
Best for:
|
|
211
|
-
|
|
212
|
-
- lint;
|
|
213
|
-
- typecheck;
|
|
214
|
-
- tests;
|
|
215
|
-
- builds;
|
|
216
|
-
- artifacts;
|
|
217
|
-
- CI failures;
|
|
218
|
-
- command discovery;
|
|
219
|
-
- package manager rules;
|
|
220
|
-
- failure diagnosis.
|
|
221
|
-
|
|
222
|
-
Do not use to invent command results or switch package managers without reason.
|
|
223
|
-
|
|
224
|
-
### `docs-writer`
|
|
225
|
-
|
|
226
|
-
Use for documentation.
|
|
227
|
-
|
|
228
|
-
Best for:
|
|
229
|
-
|
|
230
|
-
- README;
|
|
231
|
-
- AGENTS;
|
|
232
|
-
- DESIGN;
|
|
233
|
-
- requirements;
|
|
234
|
-
- specs;
|
|
235
|
-
- technical plans;
|
|
236
|
-
- runbooks;
|
|
237
|
-
- templates;
|
|
238
|
-
- Markdown validation;
|
|
239
|
-
- documentation clarity.
|
|
240
|
-
|
|
241
|
-
Do not use to invent project behavior, commands, or architecture.
|
|
242
|
-
|
|
243
|
-
### `deploy-engineer`
|
|
244
|
-
|
|
245
|
-
Use for deployment and release readiness.
|
|
246
|
-
|
|
247
|
-
Best for:
|
|
248
|
-
|
|
249
|
-
- deploy plans;
|
|
250
|
-
- environment configuration;
|
|
251
|
-
- secrets handling;
|
|
252
|
-
- smoke tests;
|
|
253
|
-
- rollback plans;
|
|
254
|
-
- CI/CD review;
|
|
255
|
-
- production risk;
|
|
256
|
-
- post-deploy checks.
|
|
257
|
-
|
|
258
|
-
Do not use to deploy production without explicit instruction.
|
|
259
|
-
|
|
260
|
-
## Workflow by phase
|
|
261
|
-
|
|
262
|
-
### Phase 1 — Idea to requirement
|
|
263
|
-
|
|
264
|
-
Use:
|
|
265
|
-
|
|
266
|
-
```txt
|
|
267
|
-
prompts/01-create-requirement.md
|
|
268
|
-
.agents/skills/product-manager/SKILL.md
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
Optional validation:
|
|
272
|
-
|
|
273
|
-
```txt
|
|
274
|
-
.agents/skills/tester/SKILL.md
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
Goal:
|
|
278
|
-
|
|
279
|
-
- make the problem clear;
|
|
280
|
-
- define target user;
|
|
281
|
-
- define scope;
|
|
282
|
-
- write testable acceptance criteria.
|
|
283
|
-
|
|
284
|
-
Do not implement.
|
|
285
|
-
|
|
286
|
-
### Phase 2 — Requirement to specification
|
|
287
|
-
|
|
288
|
-
Use:
|
|
289
|
-
|
|
290
|
-
```txt
|
|
291
|
-
prompts/02-create-spec.md
|
|
292
|
-
.agents/skills/product-manager/SKILL.md
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
Optional validation:
|
|
296
|
-
|
|
297
|
-
```txt
|
|
298
|
-
.agents/skills/tester/SKILL.md
|
|
299
|
-
```
|
|
300
|
-
|
|
301
|
-
Goal:
|
|
302
|
-
|
|
303
|
-
- define behavior;
|
|
304
|
-
- define flows;
|
|
305
|
-
- define states;
|
|
306
|
-
- define edge cases;
|
|
307
|
-
- make the spec testable.
|
|
308
|
-
|
|
309
|
-
Do not write the technical plan yet unless requested.
|
|
310
|
-
|
|
311
|
-
### Phase 3 — Specification to technical plan
|
|
312
|
-
|
|
313
|
-
Use:
|
|
314
|
-
|
|
315
|
-
```txt
|
|
316
|
-
prompts/03-create-tech-plan.md
|
|
317
|
-
.agents/skills/tech-lead/SKILL.md
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
Supporting skills:
|
|
321
|
-
|
|
322
|
-
```txt
|
|
323
|
-
.agents/skills/build-and-validate/SKILL.md
|
|
324
|
-
.agents/skills/tester/SKILL.md
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
Goal:
|
|
328
|
-
|
|
329
|
-
- identify current state;
|
|
330
|
-
- follow existing patterns;
|
|
331
|
-
- define the technical approach;
|
|
332
|
-
- list likely files;
|
|
333
|
-
- define risks;
|
|
334
|
-
- define validation strategy.
|
|
335
|
-
|
|
336
|
-
Do not implement.
|
|
337
|
-
|
|
338
|
-
### Phase 4 — Technical plan to PR breakdown
|
|
339
|
-
|
|
340
|
-
Use:
|
|
341
|
-
|
|
342
|
-
```txt
|
|
343
|
-
prompts/04-breakdown-prs.md
|
|
344
|
-
.agents/skills/pr-orchestrator/SKILL.md
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
Supporting skills:
|
|
348
|
-
|
|
349
|
-
```txt
|
|
350
|
-
.agents/skills/tech-lead/SKILL.md
|
|
351
|
-
.agents/skills/tester/SKILL.md
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
Goal:
|
|
355
|
-
|
|
356
|
-
- split work into small PRs;
|
|
357
|
-
- define PR scope;
|
|
358
|
-
- define expected files;
|
|
359
|
-
- define validation per PR;
|
|
360
|
-
- define regression risks.
|
|
361
|
-
|
|
362
|
-
Do not implement.
|
|
363
|
-
|
|
364
|
-
### Phase 5 — Implement selected PR
|
|
365
|
-
|
|
366
|
-
Use:
|
|
367
|
-
|
|
368
|
-
```txt
|
|
369
|
-
prompts/05-implement-pr.md
|
|
370
|
-
```
|
|
371
|
-
|
|
372
|
-
Choose one primary implementer:
|
|
373
|
-
|
|
374
|
-
```txt
|
|
375
|
-
.agents/skills/frontend-implementer/SKILL.md
|
|
376
|
-
.agents/skills/backend-implementer/SKILL.md
|
|
377
|
-
.agents/skills/docs-writer/SKILL.md
|
|
378
|
-
.agents/skills/deploy-engineer/SKILL.md
|
|
379
|
-
.agents/skills/build-and-validate/SKILL.md
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
Supporting skills:
|
|
383
|
-
|
|
384
|
-
```txt
|
|
385
|
-
.agents/skills/pr-orchestrator/SKILL.md
|
|
386
|
-
.agents/skills/tester/SKILL.md
|
|
387
|
-
```
|
|
388
|
-
|
|
389
|
-
Goal:
|
|
390
|
-
|
|
391
|
-
- implement only the selected PR;
|
|
392
|
-
- preserve scope;
|
|
393
|
-
- list changed files;
|
|
394
|
-
- validate or document unexecuted checks.
|
|
395
|
-
|
|
396
|
-
Do not implement future PRs.
|
|
397
|
-
|
|
398
|
-
### Phase 6 — Review and fix
|
|
399
|
-
|
|
400
|
-
Use:
|
|
401
|
-
|
|
402
|
-
```txt
|
|
403
|
-
prompts/06-review-and-fix.md
|
|
404
|
-
.agents/skills/tester/SKILL.md
|
|
405
|
-
```
|
|
406
|
-
|
|
407
|
-
Supporting skills:
|
|
408
|
-
|
|
409
|
-
```txt
|
|
410
|
-
.agents/skills/build-and-validate/SKILL.md
|
|
411
|
-
.agents/skills/pr-orchestrator/SKILL.md
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
Goal:
|
|
415
|
-
|
|
416
|
-
- review against the selected PR;
|
|
417
|
-
- identify findings;
|
|
418
|
-
- fix only in-scope issues;
|
|
419
|
-
- validate after fixes.
|
|
420
|
-
|
|
421
|
-
Do not refactor unrelated code.
|
|
422
|
-
|
|
423
|
-
### Phase 7 — Validate
|
|
424
|
-
|
|
425
|
-
Use:
|
|
426
|
-
|
|
427
|
-
```txt
|
|
428
|
-
prompts/08-validate.md
|
|
429
|
-
.agents/skills/tester/SKILL.md
|
|
430
|
-
```
|
|
431
|
-
|
|
432
|
-
Supporting skill:
|
|
433
|
-
|
|
434
|
-
```txt
|
|
435
|
-
.agents/skills/build-and-validate/SKILL.md
|
|
436
|
-
```
|
|
437
|
-
|
|
438
|
-
Goal:
|
|
439
|
-
|
|
440
|
-
- check acceptance criteria;
|
|
441
|
-
- check validation evidence;
|
|
442
|
-
- list untested areas;
|
|
443
|
-
- list regression risks;
|
|
444
|
-
- give approval recommendation.
|
|
445
|
-
|
|
446
|
-
Do not implement fixes unless explicitly requested.
|
|
447
|
-
|
|
448
|
-
### Phase 8 — Deploy
|
|
449
|
-
|
|
450
|
-
Use:
|
|
451
|
-
|
|
452
|
-
```txt
|
|
453
|
-
prompts/09-deploy.md
|
|
454
|
-
.agents/skills/deploy-engineer/SKILL.md
|
|
455
|
-
```
|
|
456
|
-
|
|
457
|
-
Supporting skills:
|
|
458
|
-
|
|
459
|
-
```txt
|
|
460
|
-
.agents/skills/build-and-validate/SKILL.md
|
|
461
|
-
.agents/skills/tester/SKILL.md
|
|
462
|
-
```
|
|
463
|
-
|
|
464
|
-
Goal:
|
|
465
|
-
|
|
466
|
-
- define deployment scope;
|
|
467
|
-
- confirm validation evidence;
|
|
468
|
-
- check environment configuration;
|
|
469
|
-
- define smoke tests;
|
|
470
|
-
- define rollback or recovery.
|
|
471
|
-
|
|
472
|
-
Do not deploy production unless explicitly instructed.
|
|
473
|
-
|
|
474
|
-
## How to ask Codex to use a skill
|
|
475
|
-
|
|
476
|
-
Use a direct instruction like:
|
|
477
|
-
|
|
478
|
-
```md
|
|
479
|
-
Use the skill `.agents/skills/tester/SKILL.md`.
|
|
480
|
-
|
|
481
|
-
Validate this PR against the selected requirement, specification, technical plan, and PR plan.
|
|
482
|
-
|
|
483
|
-
Do not implement fixes. Return findings with severity, evidence, impact, and final recommendation.
|
|
484
|
-
```
|
|
485
|
-
|
|
486
|
-
Or:
|
|
487
|
-
|
|
488
|
-
```md
|
|
489
|
-
Use the skill `.agents/skills/frontend-implementer/SKILL.md`.
|
|
490
|
-
|
|
491
|
-
Implement only PR 1 from the approved PR plan.
|
|
492
|
-
|
|
493
|
-
Preserve existing behavior, avoid unrelated refactors, list changed files, and run or document validation.
|
|
494
|
-
```
|
|
495
|
-
|
|
496
|
-
## Skill chaining
|
|
497
|
-
|
|
498
|
-
Skill chaining means using multiple skills in sequence, not all at once.
|
|
499
|
-
|
|
500
|
-
Good sequence:
|
|
501
|
-
|
|
502
|
-
```txt
|
|
503
|
-
product-manager → tester → tech-lead → pr-orchestrator → implementer → tester → build-and-validate
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
Bad sequence:
|
|
507
|
-
|
|
508
|
-
```txt
|
|
509
|
-
Use all skills and implement the whole feature.
|
|
510
|
-
```
|
|
511
|
-
|
|
512
|
-
Why the bad sequence is risky:
|
|
513
|
-
|
|
514
|
-
- scope becomes unclear;
|
|
515
|
-
- roles conflict;
|
|
516
|
-
- output becomes too broad;
|
|
517
|
-
- implementation may start before validation;
|
|
518
|
-
- review boundaries become weak.
|
|
519
|
-
|
|
520
|
-
## Multi-skill rules
|
|
521
|
-
|
|
522
|
-
Use multiple skills only when the task clearly needs them.
|
|
523
|
-
|
|
524
|
-
Examples:
|
|
525
|
-
|
|
526
|
-
### Requirement review
|
|
527
|
-
|
|
528
|
-
Primary:
|
|
529
|
-
|
|
530
|
-
```txt
|
|
531
|
-
product-manager
|
|
532
|
-
```
|
|
533
|
-
|
|
534
|
-
Supporting:
|
|
535
|
-
|
|
536
|
-
```txt
|
|
537
|
-
tester
|
|
538
|
-
```
|
|
539
|
-
|
|
540
|
-
Reason:
|
|
541
|
-
|
|
542
|
-
- product manager checks clarity and scope;
|
|
543
|
-
- tester checks testability.
|
|
544
|
-
|
|
545
|
-
### Technical plan
|
|
546
|
-
|
|
547
|
-
Primary:
|
|
548
|
-
|
|
549
|
-
```txt
|
|
550
|
-
tech-lead
|
|
551
|
-
```
|
|
552
|
-
|
|
553
|
-
Supporting:
|
|
554
|
-
|
|
555
|
-
```txt
|
|
556
|
-
build-and-validate
|
|
557
|
-
tester
|
|
558
|
-
```
|
|
559
|
-
|
|
560
|
-
Reason:
|
|
561
|
-
|
|
562
|
-
- tech lead defines approach;
|
|
563
|
-
- build-and-validate checks realistic commands;
|
|
564
|
-
- tester checks acceptance criteria coverage.
|
|
565
|
-
|
|
566
|
-
### PR implementation
|
|
567
|
-
|
|
568
|
-
Primary:
|
|
569
|
-
|
|
570
|
-
```txt
|
|
571
|
-
frontend-implementer
|
|
572
|
-
```
|
|
573
|
-
|
|
574
|
-
Supporting:
|
|
575
|
-
|
|
576
|
-
```txt
|
|
577
|
-
pr-orchestrator
|
|
578
|
-
tester
|
|
579
|
-
```
|
|
580
|
-
|
|
581
|
-
Reason:
|
|
582
|
-
|
|
583
|
-
- implementer changes files;
|
|
584
|
-
- PR workflow controls scope;
|
|
585
|
-
- tester checks acceptance criteria and regression risk.
|
|
586
|
-
|
|
587
|
-
## Decision tree
|
|
588
|
-
|
|
589
|
-
Use this quick decision tree:
|
|
590
|
-
|
|
591
|
-
```txt
|
|
592
|
-
Is the request unclear or product-focused?
|
|
593
|
-
└── Use product-manager.
|
|
594
|
-
|
|
595
|
-
Is the expected behavior defined but the technical path unclear?
|
|
596
|
-
└── Use tech-lead.
|
|
597
|
-
|
|
598
|
-
Is the work too large or needs PR planning?
|
|
599
|
-
└── Use pr-orchestrator.
|
|
600
|
-
|
|
601
|
-
Is the task frontend implementation?
|
|
602
|
-
└── Use frontend-implementer.
|
|
603
|
-
|
|
604
|
-
Is the task backend implementation?
|
|
605
|
-
└── Use backend-implementer.
|
|
606
|
-
|
|
607
|
-
Is the task documentation?
|
|
608
|
-
└── Use docs-writer.
|
|
609
|
-
|
|
610
|
-
Is the task validation, review, or acceptance criteria checking?
|
|
611
|
-
└── Use tester.
|
|
612
|
-
|
|
613
|
-
Is the task command/build/test/CI focused?
|
|
614
|
-
└── Use build-and-validate.
|
|
615
|
-
|
|
616
|
-
Is the task release/deployment focused?
|
|
617
|
-
└── Use deploy-engineer.
|
|
618
|
-
```
|
|
619
|
-
|
|
620
|
-
## Anti-patterns
|
|
621
|
-
|
|
622
|
-
Avoid these patterns.
|
|
623
|
-
|
|
624
|
-
### Generic agent does everything
|
|
625
|
-
|
|
626
|
-
```md
|
|
627
|
-
Build the full feature, test it, document it, and prepare deployment.
|
|
628
|
-
```
|
|
629
|
-
|
|
630
|
-
Risk:
|
|
631
|
-
|
|
632
|
-
- too broad;
|
|
633
|
-
- hard to review;
|
|
634
|
-
- likely scope creep;
|
|
635
|
-
- unclear validation.
|
|
636
|
-
|
|
637
|
-
Better:
|
|
638
|
-
|
|
639
|
-
```md
|
|
640
|
-
Use `prompts/04-breakdown-prs.md` with `pr-orchestrator` to split this feature into safe PRs.
|
|
641
|
-
```
|
|
642
|
-
|
|
643
|
-
### Implementation before requirement
|
|
644
|
-
|
|
645
|
-
```md
|
|
646
|
-
Implement this idea directly.
|
|
647
|
-
```
|
|
648
|
-
|
|
649
|
-
Risk:
|
|
650
|
-
|
|
651
|
-
- unclear behavior;
|
|
652
|
-
- missing acceptance criteria;
|
|
653
|
-
- wrong scope.
|
|
654
|
-
|
|
655
|
-
Better:
|
|
656
|
-
|
|
657
|
-
```md
|
|
658
|
-
Use `prompts/01-create-requirement.md` with `product-manager` first.
|
|
659
|
-
```
|
|
660
|
-
|
|
661
|
-
### Validation without evidence
|
|
662
|
-
|
|
663
|
-
```md
|
|
664
|
-
Check if this is good.
|
|
665
|
-
```
|
|
666
|
-
|
|
667
|
-
Risk:
|
|
668
|
-
|
|
669
|
-
- vague review;
|
|
670
|
-
- no acceptance criteria;
|
|
671
|
-
- no command evidence.
|
|
672
|
-
|
|
673
|
-
Better:
|
|
674
|
-
|
|
675
|
-
```md
|
|
676
|
-
Use `tester` to validate this against the acceptance criteria. Separate confirmed issues from hypotheses and list untested areas.
|
|
677
|
-
```
|
|
678
|
-
|
|
679
|
-
### Too many skills at once
|
|
680
|
-
|
|
681
|
-
```md
|
|
682
|
-
Use all skills to build this.
|
|
683
|
-
```
|
|
684
|
-
|
|
685
|
-
Risk:
|
|
686
|
-
|
|
687
|
-
- conflicting roles;
|
|
688
|
-
- bloated output;
|
|
689
|
-
- hidden assumptions.
|
|
690
|
-
|
|
691
|
-
Better:
|
|
692
|
-
|
|
693
|
-
```md
|
|
694
|
-
Use `tech-lead` first to create a technical plan. Do not implement yet.
|
|
695
|
-
```
|
|
696
|
-
|
|
697
|
-
## Quality gate before switching skills
|
|
698
|
-
|
|
699
|
-
Before moving from one skill to the next, check:
|
|
700
|
-
|
|
701
|
-
- Is the current output complete enough?
|
|
702
|
-
- Is the final recommendation clear?
|
|
703
|
-
- Are assumptions visible?
|
|
704
|
-
- Are open questions listed?
|
|
705
|
-
- Are blockers resolved or explicitly deferred?
|
|
706
|
-
- Is the next skill actually needed?
|
|
707
|
-
- Is the next step small enough?
|
|
708
|
-
|
|
709
|
-
## Final instruction
|
|
710
|
-
|
|
711
|
-
Use skills deliberately.
|
|
712
|
-
|
|
713
|
-
Choose the smallest role set that can safely complete the current workflow step.
|