@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
package/.codex/prompts/README.md
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Codex Prompt Entrypoints
|
|
2
|
-
|
|
3
|
-
These files are compact prompt entrypoints for Codex.
|
|
4
|
-
|
|
5
|
-
Use them instead of repeatedly pasting large workflow prompts. Each command points Codex at the repository assets that hold the detailed rules and contracts:
|
|
6
|
-
|
|
7
|
-
- `AGENTS.md`
|
|
8
|
-
- `prompts/`
|
|
9
|
-
- `harness/`
|
|
10
|
-
|
|
11
|
-
- `schemas/`
|
|
12
|
-
- `examples/`
|
|
13
|
-
|
|
14
|
-
The command files are intentionally short. They should start the right workflow, gather only the needed context, and keep token use lower by referencing existing files instead of duplicating them.
|
|
15
|
-
|
|
16
|
-
## Commands
|
|
17
|
-
|
|
18
|
-
| File | Use when |
|
|
19
|
-
| ---- | -------- |
|
|
20
|
-
| `start-project.md` | Start a new session with `orchestrator` by default and safe fallbacks (`discovery`, `prompt-engineer`, or `planner` for planning-only requests). |
|
|
21
|
-
| `plan-from-requirement.md` | Turn a user request or rough idea into a requirement, specification, technical plan, PR breakdown, and optional handoff. |
|
|
22
|
-
| `execute-selected-pr.md` | Implement one selected PR from an existing plan or handoff. |
|
|
23
|
-
| `review-implementation.md` | Review the current implementation or diff before merge. |
|
|
24
|
-
| `validate-work.md` | Validate the current repository or PR before commit or merge. |
|
|
25
|
-
| `autopilot.md` | Run a local-first autopilot entrypoint that routes tasks through existing workflow gates and agents. |
|
|
26
|
-
| `roadmap-audit.md` | Run a compact technical roadmap audit with severity-tagged findings and smallest-safe next PR recommendation. |
|
|
27
|
-
| `token-economy-mode.md` | Force compact output contracts (`compact`, `terse`, `audit`, `handoff`) for current task. |
|
|
28
|
-
|
|
29
|
-
### Specs workflow (`.codex/prompts/specs/`)
|
|
30
|
-
|
|
31
|
-
| File | Use when |
|
|
32
|
-
| ---- | -------- |
|
|
33
|
-
| `create-spec-from-requirement.md` | Draft a functional spec from an approved requirement. |
|
|
34
|
-
| `review-spec.md` | Review spec readiness before technical planning. |
|
|
35
|
-
| `spec-to-technical-plan.md` | Convert approved spec to technical plan. |
|
|
36
|
-
| `spec-to-pr-breakdown.md` | Split approved spec into small PRs. |
|
|
37
|
-
|
|
38
|
-
## How To Use
|
|
39
|
-
|
|
40
|
-
1. Open the command file that matches the current workflow step.
|
|
41
|
-
2. Paste or invoke it in Codex with the current user request, issue, handoff, or PR context.
|
|
42
|
-
3. Let Codex read the referenced repository assets before producing output.
|
|
43
|
-
4. Keep each run scoped to one workflow step.
|
|
44
|
-
5. Use the next command only after the current step has evidence and a clear handoff.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Codex Prompt - Autopilot
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Run a local-first workflow entrypoint that interprets a user task, routes to existing workflow assets, and enforces safety gates.
|
|
6
|
-
|
|
7
|
-
Do not create new architecture, agents, or skills inside this prompt.
|
|
8
|
-
|
|
9
|
-
## Context To Read
|
|
10
|
-
|
|
11
|
-
Minimum-first context loading:
|
|
12
|
-
|
|
13
|
-
1. Always read first:
|
|
14
|
-
- `.codex/prompts/orchestrate-next.md`
|
|
15
|
-
2. Read only when route requires it:
|
|
16
|
-
- `harness/workflows/requirement-to-pr.md` (planner behavior)
|
|
17
|
-
- `harness/workflows/implement-review-validate.md` (implementation behavior)
|
|
18
|
-
- `harness/workflows/multi-agent-handoff.md` (orchestrated gate progression)
|
|
19
|
-
3. Read only relevant sections of `AGENTS.md` for delegation matrix, constraints, and validation.
|
|
20
|
-
|
|
21
|
-
## Instructions
|
|
22
|
-
|
|
23
|
-
1. Parse user objective and define the smallest safe scope (in-scope/out-of-scope).
|
|
24
|
-
2. Choose the lightest valid route:
|
|
25
|
-
- `planner` behavior for requirement/spec/plan output;
|
|
26
|
-
- `orchestrator` behavior for multi-step or cross-functional delivery;
|
|
27
|
-
- specialist owner from the AGENTS delegation matrix for focused work.
|
|
28
|
-
3. Reuse existing prompts, skills, and workflow contracts only; do not create new ones during execution.
|
|
29
|
-
4. Enforce local-first git safety before write operations:
|
|
30
|
-
- run `git status -sb`;
|
|
31
|
-
- if on `main`, create/switch to scoped branch `git switch -c <type>/<short-task-slug>`;
|
|
32
|
-
- continue only off `main`.
|
|
33
|
-
5. Keep execution local-first:
|
|
34
|
-
- do not push, publish, create remote repos, merge PRs, release, or deploy unless explicitly approved.
|
|
35
|
-
6. Validate proportionally to risk and provide evidence.
|
|
36
|
-
7. Stop and report `Blocked` when:
|
|
37
|
-
- required context is missing;
|
|
38
|
-
- task scope is too broad;
|
|
39
|
-
- validation fails.
|
|
40
|
-
8. At the end, ask whether user wants push/publish/remote-repo/merge/release/deploy actions.
|
|
41
|
-
|
|
42
|
-
## Expected Output
|
|
43
|
-
|
|
44
|
-
- Selected route and reason
|
|
45
|
-
- Scope (in-scope / out-of-scope)
|
|
46
|
-
- Active step and gate (`Pass`/`Blocked`)
|
|
47
|
-
- Files changed
|
|
48
|
-
- Validation commands and results
|
|
49
|
-
- Risks and open questions
|
|
50
|
-
- Next safe step (including optional push/publish/remote/merge/release/deploy question)
|
package/.codex/prompts/deploy.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Deploy
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Prepare, validate, or review deployment readiness before releasing a change to a target environment.
|
|
6
|
-
|
|
7
|
-
## Instructions For Codex
|
|
8
|
-
|
|
9
|
-
1. Read the relevant context:
|
|
10
|
-
- `AGENTS.md`
|
|
11
|
-
- `prompts/09-deploy.md`
|
|
12
|
-
- `.agents/skills/deploy-engineer/SKILL.md`
|
|
13
|
-
- `runbooks/deploy-checklist.md`
|
|
14
|
-
- Validation evidence and selected PR summary
|
|
15
|
-
2. Confirm deployment scope, target environment, and release objective.
|
|
16
|
-
3. Confirm required validation evidence exists before any deploy recommendation.
|
|
17
|
-
4. Identify deployment steps, rollback steps, and ownership.
|
|
18
|
-
5. Check environment prerequisites, CI/CD requirements, secrets handling, and smoke-test plan.
|
|
19
|
-
6. Classify risks and blockers using `High`, `Medium`, `Low` severity.
|
|
20
|
-
7. Recommend `Proceed`, `Needs changes`, or `Blocked` with explicit evidence.
|
|
21
|
-
8. Do not claim deploy success without execution evidence.
|
|
22
|
-
9. Do not expose secrets or credentials.
|
|
23
|
-
|
|
24
|
-
## Expected Output
|
|
25
|
-
|
|
26
|
-
- Deployment scope
|
|
27
|
-
- Target environment and method
|
|
28
|
-
- Preconditions and validation evidence
|
|
29
|
-
- Deployment steps
|
|
30
|
-
- Smoke tests
|
|
31
|
-
- Rollback or recovery plan
|
|
32
|
-
- Risks and blockers
|
|
33
|
-
- Final recommendation
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Execute Selected PR
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Implement one selected PR only.
|
|
6
|
-
|
|
7
|
-
## Instructions For Codex
|
|
8
|
-
|
|
9
|
-
1. Read the relevant context from:
|
|
10
|
-
- `AGENTS.md`
|
|
11
|
-
- `harness/workflows/implement-review-validate.md`
|
|
12
|
-
- the selected PR prompt, plan, issue, or handoff provided by the user
|
|
13
|
-
2. If a handoff exists, use it as the scope contract.
|
|
14
|
-
3. Confirm the selected PR objective, files likely to change, files out of scope, and validation expectations before editing.
|
|
15
|
-
4. Enforce a branch gate before editing:
|
|
16
|
-
- run `git status -sb`;
|
|
17
|
-
- if `HEAD` is `main`, stop and create a scoped branch with `git switch -c <type>/<short-pr-slug>`;
|
|
18
|
-
- continue only when current branch is not `main`.
|
|
19
|
-
5. Preserve scope and no-regression rules.
|
|
20
|
-
6. Avoid unrelated refactors, dependency changes, formatting churn, and future PR work.
|
|
21
|
-
7. Follow existing project patterns before introducing new structure.
|
|
22
|
-
8. Keep changes minimal and reviewable.
|
|
23
|
-
9. Run available validation commands that are proportional to the change.
|
|
24
|
-
10. Report validation evidence, skipped checks, and remaining risks.
|
|
25
|
-
11. Do not commit unless explicitly asked.
|
|
26
|
-
|
|
27
|
-
## Expected Output
|
|
28
|
-
|
|
29
|
-
- Summary
|
|
30
|
-
- Files changed
|
|
31
|
-
- Implementation notes
|
|
32
|
-
- Validation performed
|
|
33
|
-
- Remaining risks
|
|
34
|
-
- Suggested commit message
|
|
35
|
-
- Effort: AI elapsed ~Xm | Senior dev estimate ~Ym
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Fix Issue
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Diagnose and fix bugs, regressions, failing tests, build failures, validation errors, or broken behavior. Apply the smallest safe fix with evidence.
|
|
6
|
-
|
|
7
|
-
## Instructions For Codex
|
|
8
|
-
|
|
9
|
-
1. Read the relevant context:
|
|
10
|
-
- `AGENTS.md`
|
|
11
|
-
- `harness/workflows/implement-review-validate.md`
|
|
12
|
-
- The error output, failing command, bug report, or reproduction steps
|
|
13
|
-
- Current diff and relevant files
|
|
14
|
-
2. Reproduce or inspect the problem. Gather concrete evidence (command output, stack trace, file path, line reference).
|
|
15
|
-
3. Identify the likely root cause. If uncertain, state it as a hypothesis with a validation step.
|
|
16
|
-
4. Apply the smallest safe fix that addresses the root cause.
|
|
17
|
-
5. State any behavior changes explicitly — even minor ones.
|
|
18
|
-
6. Run targeted validation proportional to the fix:
|
|
19
|
-
- Relevant lint, typecheck, tests, or build commands
|
|
20
|
-
- Manual checks when commands are unavailable
|
|
21
|
-
7. Document regression risk and untested areas.
|
|
22
|
-
8. Do not rewrite large areas without evidence supporting the scope.
|
|
23
|
-
9. Do not mix unrelated refactors into the fix.
|
|
24
|
-
10. Do not commit unless explicitly asked.
|
|
25
|
-
|
|
26
|
-
## Expected Output
|
|
27
|
-
|
|
28
|
-
- Problem summary
|
|
29
|
-
- Evidence (command output, file path, line reference)
|
|
30
|
-
- Root cause (or hypothesis with validation step)
|
|
31
|
-
- Fix applied (files changed, what changed and why)
|
|
32
|
-
- Validation performed (commands + results)
|
|
33
|
-
- Regression risk
|
|
34
|
-
- Suggested commit message
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# Minimal Context Mode
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Activate input-budget discipline for the current task. Read only task-relevant files, use targeted search before reading, and stop when enough evidence is found.
|
|
6
|
-
|
|
7
|
-
This prompt reduces INPUT tokens. Use alongside `token-economy-mode.md` for output discipline.
|
|
8
|
-
|
|
9
|
-
## Input vs Output Tokens
|
|
10
|
-
|
|
11
|
-
| Token type | What it is | How to reduce |
|
|
12
|
-
|---|---|---|
|
|
13
|
-
| **Input** | Files, history, context sent TO the model | This prompt (`minimal-context-mode`) |
|
|
14
|
-
| **Output** | Model response verbosity | `token-economy-mode.md` |
|
|
15
|
-
|
|
16
|
-
High input tokens (90k–164k per call) come from:
|
|
17
|
-
- Reading entire directories or large files
|
|
18
|
-
- Broad glob patterns matching many files
|
|
19
|
-
- Including prior conversation history
|
|
20
|
-
- Passing full contents to subagents
|
|
21
|
-
|
|
22
|
-
## Instructions For Codex
|
|
23
|
-
|
|
24
|
-
1. State what you are looking for before reading.
|
|
25
|
-
2. Use `grep` or `glob` to narrow to 3–7 files max.
|
|
26
|
-
3. Read only the most relevant files.
|
|
27
|
-
4. Stop and summarize findings after each batch.
|
|
28
|
-
5. Request confirmation before reading beyond 7 files.
|
|
29
|
-
6. For audit tasks, define scope first — do not read everything.
|
|
30
|
-
7. Send compact summaries to subagents, not full file contents.
|
|
31
|
-
8. Exclude unrelated prior conversation context.
|
|
32
|
-
9. Stop when evidence is sufficient for the current task.
|
|
33
|
-
|
|
34
|
-
## Input Budget Rules
|
|
35
|
-
|
|
36
|
-
| Scenario | Limit |
|
|
37
|
-
|---|---|
|
|
38
|
-
| Default task (implement, fix, review) | 3–7 files per read batch |
|
|
39
|
-
| Scoped audit | Define scope first, then sample strategically |
|
|
40
|
-
| Subagent handoff | Summary only — no full contents |
|
|
41
|
-
|
|
42
|
-
## What to do vs not do
|
|
43
|
-
|
|
44
|
-
Do:
|
|
45
|
-
- `grep` for patterns before reading
|
|
46
|
-
- `glob` for file lists before reading
|
|
47
|
-
- Read 3–7 files, then summarize
|
|
48
|
-
- Stop after enough evidence
|
|
49
|
-
|
|
50
|
-
Do not:
|
|
51
|
-
- `glob **/*.md` and read all matches
|
|
52
|
-
- Read large files end-to-end
|
|
53
|
-
- Pass full file contents to subagents
|
|
54
|
-
- Include prior conversation history
|
|
55
|
-
- Read files without a specific target
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Orchestrate Next Step
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Progress the workflow one gate at a time using the deterministic handoff chain from `harness/workflows/multi-agent-handoff.md`.
|
|
6
|
-
|
|
7
|
-
This prompt does not implement code. It inspects the current step, checks gate criteria, and recommends the next agent with a handoff contract.
|
|
8
|
-
|
|
9
|
-
## Instructions For Codex
|
|
10
|
-
|
|
11
|
-
1. Read the relevant context:
|
|
12
|
-
- `AGENTS.md`
|
|
13
|
-
- `harness/workflows/multi-agent-handoff.md` (gates A, B, C, D)
|
|
14
|
-
- `harness/handoffs/HANDOFF.template.md`
|
|
15
|
-
- Current step outputs and validation evidence
|
|
16
|
-
2. Identify current step in the chain: `planner -> implementer -> reviewer -> validator -> release-manager`.
|
|
17
|
-
3. Classify which gate applies to the current transition.
|
|
18
|
-
4. Check entry criteria for that gate against current evidence.
|
|
19
|
-
5. If all entry criteria are met and no blocking conditions exist, output `Gate: Pass` and recommend the next agent.
|
|
20
|
-
6. If criteria are missing or blocking conditions apply, output `Gate: Blocked`, state the smallest safe fix, and return control to the previous agent.
|
|
21
|
-
7. For `Pass`: assemble a handoff packet using the contract fields from `HANDOFF.template.md` (objective, scope, files in/out, constraints, validation, risks, stop conditions, expected output).
|
|
22
|
-
8. For `Blocked`: list missing criteria and the recommended fix action with file/command paths.
|
|
23
|
-
9. Do not skip gate order unless the user explicitly requests a proportional flow for trivial changes.
|
|
24
|
-
10. Preserve branch gate, no-regression rules, and evidence requirements.
|
|
25
|
-
|
|
26
|
-
## Expected Output
|
|
27
|
-
|
|
28
|
-
- Current step and active agent
|
|
29
|
-
- Gate being evaluated (A/B/C/D)
|
|
30
|
-
- Gate result (`Pass` or `Blocked`)
|
|
31
|
-
- Blocking reason and fix request (when `Blocked`)
|
|
32
|
-
- Next agent to run (when `Pass`)
|
|
33
|
-
- Handoff contract summary (objective, scope, constraints, risks, validation required, expected output)
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Plan From Requirement
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Convert a user request or rough idea into a requirement, functional specification, technical plan, PR breakdown, and optional execution handoff.
|
|
6
|
-
|
|
7
|
-
Stop before implementation.
|
|
8
|
-
|
|
9
|
-
## Instructions For Codex
|
|
10
|
-
|
|
11
|
-
1. Read the relevant context from:
|
|
12
|
-
- `AGENTS.md`
|
|
13
|
-
- `harness/workflows/requirement-to-pr.md`
|
|
14
|
-
- `schemas/`
|
|
15
|
-
- `templates/`
|
|
16
|
-
2. Inspect existing project files only as needed to understand current patterns and constraints.
|
|
17
|
-
3. Ask at most 2 blocking questions when the work cannot be planned safely.
|
|
18
|
-
4. If a safe plan can be created, state assumptions instead of asking non-blocking questions.
|
|
19
|
-
5. Keep the plan framework-agnostic unless the target project context requires stack-specific details.
|
|
20
|
-
6. Produce small, reviewable PRs.
|
|
21
|
-
7. Identify scope boundaries, no-regression expectations, risks, trade-offs, and validation needs.
|
|
22
|
-
8. Recommend the next PR to implement.
|
|
23
|
-
9. For multi-step/cross-functional work, recommend the likely specialist owner using `AGENTS.md` delegation rules.
|
|
24
|
-
10. Include an execution handoff only when there is enough context for a separate implementer to start safely.
|
|
25
|
-
11. Do not edit files or implement code.
|
|
26
|
-
|
|
27
|
-
## Expected Output
|
|
28
|
-
|
|
29
|
-
- Summary
|
|
30
|
-
- Assumptions
|
|
31
|
-
- Requirement
|
|
32
|
-
- Functional specification
|
|
33
|
-
- Technical plan
|
|
34
|
-
- PR breakdown
|
|
35
|
-
- Recommended next PR
|
|
36
|
-
- Validation plan
|
|
37
|
-
- Open questions
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Review Implementation
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Review the current implementation or diff before merge.
|
|
6
|
-
|
|
7
|
-
## Instructions For Codex
|
|
8
|
-
|
|
9
|
-
1. Act as a critical reviewer.
|
|
10
|
-
2. Inspect the current diff and relevant surrounding files.
|
|
11
|
-
3. Compare the changes against the requirement, specification, technical plan, PR breakdown, or handoff when present.
|
|
12
|
-
4. Classify findings as `High`, `Medium`, or `Low`.
|
|
13
|
-
5. Require evidence for every finding, including file paths, line references, command output, or concrete diff behavior.
|
|
14
|
-
6. Check for:
|
|
15
|
-
- no-regression risk
|
|
16
|
-
- scope creep
|
|
17
|
-
- validation gaps
|
|
18
|
-
- documentation drift
|
|
19
|
-
- test gaps
|
|
20
|
-
- broken Markdown or structured data when relevant
|
|
21
|
-
7. Avoid nitpicks unless they affect correctness, maintainability, workflow safety, or future validation.
|
|
22
|
-
8. Do not modify files unless explicitly asked.
|
|
23
|
-
|
|
24
|
-
## Expected Output
|
|
25
|
-
|
|
26
|
-
- Verdict
|
|
27
|
-
- Findings by severity
|
|
28
|
-
- Scope check
|
|
29
|
-
- Regression risk
|
|
30
|
-
- Validation gaps
|
|
31
|
-
- Required fixes before merge
|
|
32
|
-
- Optional improvements
|
|
33
|
-
- Effort: AI elapsed ~Xm | Senior dev estimate ~Ym
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Roadmap Audit
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Run a compact technical roadmap audit and return evidence-based findings.
|
|
6
|
-
|
|
7
|
-
## Instructions For Codex
|
|
8
|
-
|
|
9
|
-
1. Confirm audit scope and read only the required files.
|
|
10
|
-
2. Summarize current roadmap status and active next step.
|
|
11
|
-
3. Report findings using severity (`High`/`Medium`/`Low`) and type (`Confirmed issue`/`Hypothesis`/`Observation`).
|
|
12
|
-
4. Require evidence for each finding (file path + section/line when available).
|
|
13
|
-
5. Recommend the smallest safe next PR.
|
|
14
|
-
6. Avoid edits unless explicitly requested.
|
|
15
|
-
|
|
16
|
-
## Expected Output
|
|
17
|
-
|
|
18
|
-
- Current state summary
|
|
19
|
-
- Findings table (severity, type, evidence, problem, risk, action)
|
|
20
|
-
- Recommended next PR (scope + files)
|
|
21
|
-
- Validation commands
|
|
22
|
-
- Open questions (only if blocking)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Create Spec From Requirement
|
|
2
|
-
|
|
3
|
-
## Outcome
|
|
4
|
-
|
|
5
|
-
Draft a clear, testable functional specification from an approved requirement.
|
|
6
|
-
|
|
7
|
-
## Use
|
|
8
|
-
|
|
9
|
-
Use `templates/SPEC.template.md` and keep output implementation-ready for planning, not coding.
|
|
10
|
-
|
|
11
|
-
## Constraints
|
|
12
|
-
|
|
13
|
-
- Do not implement code.
|
|
14
|
-
- Preserve existing behavior unless change is explicit in requirement.
|
|
15
|
-
- Ask only blocking questions (max 2).
|
|
16
|
-
- Keep scope and out-of-scope explicit.
|
|
17
|
-
|
|
18
|
-
## Required output
|
|
19
|
-
|
|
20
|
-
- Spec draft following `templates/SPEC.template.md`
|
|
21
|
-
- Assumptions and open questions
|
|
22
|
-
- Readiness status: `Ready for technical plan` | `Needs clarification` | `Too broad` | `Blocked`
|
|
23
|
-
|
|
24
|
-
## Evidence
|
|
25
|
-
|
|
26
|
-
Report files inspected and why they were needed.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Review Spec
|
|
2
|
-
|
|
3
|
-
## Outcome
|
|
4
|
-
|
|
5
|
-
Decide if a spec is ready for technical planning with explicit evidence.
|
|
6
|
-
|
|
7
|
-
## Use
|
|
8
|
-
|
|
9
|
-
Review against:
|
|
10
|
-
|
|
11
|
-
- `templates/SPEC.template.md`
|
|
12
|
-
- `checklists/spec-readiness-checklist.md`
|
|
13
|
-
|
|
14
|
-
## Constraints
|
|
15
|
-
|
|
16
|
-
- Do not implement.
|
|
17
|
-
- Do not expand scope silently.
|
|
18
|
-
- Preserve no-regression expectation.
|
|
19
|
-
|
|
20
|
-
## Required output
|
|
21
|
-
|
|
22
|
-
- Decision: `Ready` | `Needs clarification` | `Too broad` | `Blocked`
|
|
23
|
-
- Findings by severity (`High`/`Medium`/`Low`)
|
|
24
|
-
- Missing sections or unclear criteria
|
|
25
|
-
- Smallest safe fixes
|
|
26
|
-
|
|
27
|
-
## Evidence
|
|
28
|
-
|
|
29
|
-
Include file references for each finding.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Spec To PR Breakdown
|
|
2
|
-
|
|
3
|
-
## Outcome
|
|
4
|
-
|
|
5
|
-
Split an approved spec into small, reviewable PRs with validation and evidence per PR.
|
|
6
|
-
|
|
7
|
-
## Constraints
|
|
8
|
-
|
|
9
|
-
- Do not implement.
|
|
10
|
-
- Keep one objective per PR.
|
|
11
|
-
- Keep behavior changes explicit and isolated.
|
|
12
|
-
- Avoid unrelated refactors.
|
|
13
|
-
|
|
14
|
-
## Required output
|
|
15
|
-
|
|
16
|
-
- Ordered PR list (PR1, PR2, ...)
|
|
17
|
-
- Per PR: objective, scope, out-of-scope, risks, validation commands
|
|
18
|
-
- Recommended first PR
|
|
19
|
-
- Handoff-ready notes for implementer
|
|
20
|
-
|
|
21
|
-
## Evidence
|
|
22
|
-
|
|
23
|
-
Reference the source spec sections used for each PR decision.
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Spec To Technical Plan
|
|
2
|
-
|
|
3
|
-
## Outcome
|
|
4
|
-
|
|
5
|
-
Convert an approved spec into a technical plan safe for incremental PR execution.
|
|
6
|
-
|
|
7
|
-
## Use
|
|
8
|
-
|
|
9
|
-
Start from the final spec and generate technical planning output only.
|
|
10
|
-
|
|
11
|
-
## Constraints
|
|
12
|
-
|
|
13
|
-
- Do not implement.
|
|
14
|
-
- Keep architecture proportional (`docs/architecture-policy.md`).
|
|
15
|
-
- Keep design-pattern usage justified (`docs/design-patterns-policy.md`).
|
|
16
|
-
- Keep no-regression and validation explicit.
|
|
17
|
-
|
|
18
|
-
## Required output
|
|
19
|
-
|
|
20
|
-
- Technical approach summary
|
|
21
|
-
- Risks and trade-offs
|
|
22
|
-
- Validation strategy
|
|
23
|
-
- Proposed sequencing for PR breakdown
|
|
24
|
-
- Open questions (only blockers)
|
|
25
|
-
|
|
26
|
-
## Evidence
|
|
27
|
-
|
|
28
|
-
List source spec and files referenced for constraints.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Start Project (Default: Autopilot)
|
|
2
|
-
|
|
3
|
-
Use this entrypoint when opening this repository.
|
|
4
|
-
|
|
5
|
-
## Routing policy
|
|
6
|
-
|
|
7
|
-
Default to `orchestrator` behavior.
|
|
8
|
-
|
|
9
|
-
Only switch when needed:
|
|
10
|
-
|
|
11
|
-
- Use `discovery` behavior if the request is vague or missing scope/constraints.
|
|
12
|
-
- Use `prompt-engineer` behavior if the request is mainly about prompts, commands, skills, routing, or instruction quality.
|
|
13
|
-
- Use `planner` behavior when the user explicitly asks for planning-only output without execution/delegation.
|
|
14
|
-
|
|
15
|
-
## Required startup output
|
|
16
|
-
|
|
17
|
-
1. `Selected route: <orchestrator|planner|discovery|prompt-engineer>` with one-line reason.
|
|
18
|
-
2. Scope assumptions (in-scope / out-of-scope).
|
|
19
|
-
3. First safe next step.
|
|
20
|
-
4. Validation intent (what evidence will be produced).
|
|
21
|
-
|
|
22
|
-
## Constraints
|
|
23
|
-
|
|
24
|
-
- Follow `AGENTS.md` as the primary operational contract.
|
|
25
|
-
- For multi-step or cross-functional work, use orchestrator-style routing from `AGENTS.md` (`Agent delegation and orchestration`).
|
|
26
|
-
- Map task type to specialist owner before delegating and include a handoff contract when delegation happens.
|
|
27
|
-
- Avoid overdelegation: do not delegate trivial one-file edits; keep routing to one owner + one reviewer unless cross-functional.
|
|
28
|
-
- Keep no-regression, small-scope, and evidence-based validation rules explicit.
|
|
29
|
-
- Ask at most two blocking questions when critical context is missing.
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Token Economy Mode
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Activate compact output behavior for current task while preserving technical accuracy, validation evidence, severity, and acceptance criteria.
|
|
6
|
-
|
|
7
|
-
## Instructions For Codex
|
|
8
|
-
|
|
9
|
-
1. Read:
|
|
10
|
-
- `AGENTS.md`
|
|
11
|
-
- `.agents/skills/token-economy/SKILL.md`
|
|
12
|
-
2. Ask user for mode when missing: `compact`, `terse`, `audit`, or `handoff`.
|
|
13
|
-
3. Keep commands, file paths, and statuses exact.
|
|
14
|
-
4. Keep no-regression and validation rules explicit.
|
|
15
|
-
5. Avoid broad repository scans unless explicitly requested.
|
|
16
|
-
6. Do not modify workflow behavior; only reduce response verbosity.
|
|
17
|
-
|
|
18
|
-
## Output contracts
|
|
19
|
-
|
|
20
|
-
### Implementation
|
|
21
|
-
|
|
22
|
-
- Scope
|
|
23
|
-
- Files changed
|
|
24
|
-
- Validation commands and results
|
|
25
|
-
- Risks
|
|
26
|
-
- Acceptance status
|
|
27
|
-
|
|
28
|
-
### Audit
|
|
29
|
-
|
|
30
|
-
- Findings table only: Severity | Evidence | Impact | Required fix
|
|
31
|
-
- Validation gaps
|
|
32
|
-
- Final recommendation
|
|
33
|
-
|
|
34
|
-
### Bugfix
|
|
35
|
-
|
|
36
|
-
- Root cause
|
|
37
|
-
- Fix applied
|
|
38
|
-
- Files changed
|
|
39
|
-
- Validation commands and results
|
|
40
|
-
- Regression risks
|
|
41
|
-
|
|
42
|
-
### Handoff
|
|
43
|
-
|
|
44
|
-
- Summary
|
|
45
|
-
- Changed files
|
|
46
|
-
- Validations
|
|
47
|
-
- Risks
|
|
48
|
-
- Next action
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Validate Work
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Validate the repository or current PR before commit or merge.
|
|
6
|
-
|
|
7
|
-
## Instructions For Codex
|
|
8
|
-
|
|
9
|
-
1. Inspect `package.json` for available validation scripts.
|
|
10
|
-
2. Run available validation commands that are appropriate for the current change.
|
|
11
|
-
3. Check Markdown validation when Markdown files changed.
|
|
12
|
-
4. Check JSON parsing for `schemas/` when schemas exist or changed.
|
|
13
|
-
5. Check Git status and the current diff.
|
|
14
|
-
6. Summarize pass or fail with evidence.
|
|
15
|
-
7. Identify blocking issues and non-blocking warnings.
|
|
16
|
-
8. Avoid modifying files unless explicitly asked.
|
|
17
|
-
9. Do not commit unless explicitly asked.
|
|
18
|
-
|
|
19
|
-
## Expected Output
|
|
20
|
-
|
|
21
|
-
- Validation status
|
|
22
|
-
- Commands run
|
|
23
|
-
- Results
|
|
24
|
-
- Files changed
|
|
25
|
-
- Blocking issues
|
|
26
|
-
- Non-blocking warnings
|
|
27
|
-
- Merge recommendation
|
|
28
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Change Spec Readiness Checklist
|
|
2
|
-
|
|
3
|
-
Use this checklist before implementation starts.
|
|
4
|
-
|
|
5
|
-
## Clarity and scope
|
|
6
|
-
|
|
7
|
-
- [ ] Objective is clear and measurable.
|
|
8
|
-
- [ ] Problem is explicit.
|
|
9
|
-
- [ ] Scope and out-of-scope are explicit.
|
|
10
|
-
- [ ] Assumptions are explicit and labeled.
|
|
11
|
-
- [ ] Open questions are resolved or marked as blockers.
|
|
12
|
-
|
|
13
|
-
## Behavior and design
|
|
14
|
-
|
|
15
|
-
- [ ] Requirements are testable.
|
|
16
|
-
- [ ] Scenarios cover main flow and key edge cases.
|
|
17
|
-
- [ ] Technical design is lightweight and sufficient for implementation.
|
|
18
|
-
- [ ] Constraints and integration points are explicit.
|
|
19
|
-
|
|
20
|
-
## Delivery readiness
|
|
21
|
-
|
|
22
|
-
- [ ] Task breakdown is small, ordered, and reviewable.
|
|
23
|
-
- [ ] Validation plan includes real commands/checks.
|
|
24
|
-
- [ ] Expected evidence is explicit.
|
|
25
|
-
- [ ] Risks include mitigation notes.
|
|
26
|
-
|
|
27
|
-
## Decision
|
|
28
|
-
|
|
29
|
-
Mark one:
|
|
30
|
-
|
|
31
|
-
- [ ] Ready for implementation handoff
|
|
32
|
-
- [ ] Needs clarification
|
|
33
|
-
- [ ] Too broad (split into smaller changes)
|
|
34
|
-
- [ ] Blocked by missing context/decision
|