@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,442 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: build-and-validate
|
|
3
|
-
description: Use when running or defining project validation commands such as lint, typecheck, tests, build, formatting checks, or release readiness checks.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
> Token economy active: keep output compact, context minimal. Reference: `token-economy` + `minimal-context` skills.
|
|
7
|
-
|
|
8
|
-
# Build and Validate Skill
|
|
9
|
-
|
|
10
|
-
## Purpose
|
|
11
|
-
|
|
12
|
-
Use this skill when Codex needs to verify that a project, feature, pull request, or generated change can be built, checked, and validated safely.
|
|
13
|
-
|
|
14
|
-
The goal of this skill is to provide a disciplined validation layer before a change is considered ready.
|
|
15
|
-
|
|
16
|
-
This skill focuses on build commands, validation commands, test execution, error analysis, regression risk, and evidence-based reporting.
|
|
17
|
-
|
|
18
|
-
## When to use this skill
|
|
19
|
-
|
|
20
|
-
Use this skill when the task involves:
|
|
21
|
-
|
|
22
|
-
- running or planning build validation;
|
|
23
|
-
- checking if a project compiles;
|
|
24
|
-
- validating lint, format, typecheck, unit tests, integration tests, or E2E tests;
|
|
25
|
-
- reviewing command output;
|
|
26
|
-
- diagnosing failed validation commands;
|
|
27
|
-
- preparing a validation report;
|
|
28
|
-
- checking whether a pull request is safe to review;
|
|
29
|
-
- validating generated files or build artifacts;
|
|
30
|
-
- confirming that a change did not break existing behavior.
|
|
31
|
-
|
|
32
|
-
## Core responsibilities
|
|
33
|
-
|
|
34
|
-
When using this skill, Codex must:
|
|
35
|
-
|
|
36
|
-
1. identify the project stack when possible;
|
|
37
|
-
2. detect available validation commands from project files;
|
|
38
|
-
3. run or recommend the smallest relevant validation set;
|
|
39
|
-
4. distinguish build errors from lint, type, test, runtime, and environment errors;
|
|
40
|
-
5. report exact commands and results;
|
|
41
|
-
6. explain failures with evidence;
|
|
42
|
-
7. avoid claiming validation success without command output or clear evidence;
|
|
43
|
-
8. identify untested areas;
|
|
44
|
-
9. assess regression risk;
|
|
45
|
-
10. recommend the next safe action.
|
|
46
|
-
|
|
47
|
-
## Validation hierarchy
|
|
48
|
-
|
|
49
|
-
Use the lightest effective validation first, then escalate when needed.
|
|
50
|
-
|
|
51
|
-
Recommended order:
|
|
52
|
-
|
|
53
|
-
1. static file review;
|
|
54
|
-
2. formatting or lint check;
|
|
55
|
-
3. typecheck or compile check;
|
|
56
|
-
4. unit tests;
|
|
57
|
-
5. integration tests;
|
|
58
|
-
6. build;
|
|
59
|
-
7. E2E tests;
|
|
60
|
-
8. manual validation;
|
|
61
|
-
9. deployment or production-like validation.
|
|
62
|
-
|
|
63
|
-
Do not run expensive validation before cheaper checks when cheaper checks are likely to catch the issue.
|
|
64
|
-
|
|
65
|
-
## Command discovery
|
|
66
|
-
|
|
67
|
-
Before inventing commands, inspect available project configuration when possible.
|
|
68
|
-
|
|
69
|
-
Common files to check:
|
|
70
|
-
|
|
71
|
-
- `package.json`
|
|
72
|
-
- `pnpm-lock.yaml`
|
|
73
|
-
- `package-lock.json`
|
|
74
|
-
- `yarn.lock`
|
|
75
|
-
- `composer.json`
|
|
76
|
-
- `phpunit.xml`
|
|
77
|
-
- `vite.config.*`
|
|
78
|
-
- `nuxt.config.*`
|
|
79
|
-
- `tsconfig.json`
|
|
80
|
-
- `playwright.config.*`
|
|
81
|
-
- `cypress.config.*`
|
|
82
|
-
- `vitest.config.*`
|
|
83
|
-
- `jest.config.*`
|
|
84
|
-
- `Dockerfile`
|
|
85
|
-
- `docker-compose.yml`
|
|
86
|
-
- `.github/workflows/*`
|
|
87
|
-
|
|
88
|
-
Prefer commands already defined by the project.
|
|
89
|
-
|
|
90
|
-
Examples:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
npm run lint
|
|
94
|
-
npm run typecheck
|
|
95
|
-
npm test
|
|
96
|
-
npm run build
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
Only recommend or run generic commands when no project-specific command is available.
|
|
100
|
-
|
|
101
|
-
## Package manager rule
|
|
102
|
-
|
|
103
|
-
Use the package manager indicated by the project.
|
|
104
|
-
|
|
105
|
-
Prefer:
|
|
106
|
-
|
|
107
|
-
- `pnpm` when `pnpm-lock.yaml` exists;
|
|
108
|
-
- `npm` when `package-lock.json` exists;
|
|
109
|
-
- `yarn` when `yarn.lock` exists;
|
|
110
|
-
- `composer` when `composer.json` exists;
|
|
111
|
-
- project documentation when it explicitly defines commands.
|
|
112
|
-
|
|
113
|
-
Do not switch package managers without explicit reason.
|
|
114
|
-
|
|
115
|
-
## Validation scope
|
|
116
|
-
|
|
117
|
-
Validation must be proportional to the change.
|
|
118
|
-
|
|
119
|
-
### Documentation-only changes
|
|
120
|
-
|
|
121
|
-
Recommended checks:
|
|
122
|
-
|
|
123
|
-
- Markdown formatting;
|
|
124
|
-
- broken code fences;
|
|
125
|
-
- broken links when feasible;
|
|
126
|
-
- consistency with repository structure;
|
|
127
|
-
- clarity and completeness.
|
|
128
|
-
|
|
129
|
-
### Frontend changes
|
|
130
|
-
|
|
131
|
-
Recommended checks:
|
|
132
|
-
|
|
133
|
-
- lint;
|
|
134
|
-
- typecheck;
|
|
135
|
-
- unit tests when available;
|
|
136
|
-
- component tests when available;
|
|
137
|
-
- build;
|
|
138
|
-
- browser/manual validation for affected screens;
|
|
139
|
-
- accessibility basics when UI changes.
|
|
140
|
-
|
|
141
|
-
### Backend changes
|
|
142
|
-
|
|
143
|
-
Recommended checks:
|
|
144
|
-
|
|
145
|
-
- lint or static analysis when available;
|
|
146
|
-
- unit tests;
|
|
147
|
-
- integration tests;
|
|
148
|
-
- API contract validation;
|
|
149
|
-
- database migration checks when relevant;
|
|
150
|
-
- security and authorization checks.
|
|
151
|
-
|
|
152
|
-
### Full-stack changes
|
|
153
|
-
|
|
154
|
-
Recommended checks:
|
|
155
|
-
|
|
156
|
-
- frontend validation;
|
|
157
|
-
- backend validation;
|
|
158
|
-
- integration flow validation;
|
|
159
|
-
- environment variable checks;
|
|
160
|
-
- contract compatibility checks.
|
|
161
|
-
|
|
162
|
-
### Deployment changes
|
|
163
|
-
|
|
164
|
-
Recommended checks:
|
|
165
|
-
|
|
166
|
-
- build;
|
|
167
|
-
- environment configuration;
|
|
168
|
-
- CI/CD workflow syntax;
|
|
169
|
-
- secrets handling;
|
|
170
|
-
- rollback path;
|
|
171
|
-
- smoke test plan.
|
|
172
|
-
|
|
173
|
-
## Failure classification
|
|
174
|
-
|
|
175
|
-
When a command fails, classify the failure.
|
|
176
|
-
|
|
177
|
-
### Build failure
|
|
178
|
-
|
|
179
|
-
The project cannot generate the expected production or distributable output.
|
|
180
|
-
|
|
181
|
-
Examples:
|
|
182
|
-
|
|
183
|
-
- bundler error;
|
|
184
|
-
- missing dependency;
|
|
185
|
-
- compile failure;
|
|
186
|
-
- invalid import;
|
|
187
|
-
- broken asset pipeline.
|
|
188
|
-
|
|
189
|
-
### Type failure
|
|
190
|
-
|
|
191
|
-
The project has type errors or invalid type assumptions.
|
|
192
|
-
|
|
193
|
-
Examples:
|
|
194
|
-
|
|
195
|
-
- TypeScript error;
|
|
196
|
-
- invalid interface usage;
|
|
197
|
-
- unsafe null access reported by typecheck;
|
|
198
|
-
- incompatible return type.
|
|
199
|
-
|
|
200
|
-
### Lint failure
|
|
201
|
-
|
|
202
|
-
The project violates lint rules.
|
|
203
|
-
|
|
204
|
-
Examples:
|
|
205
|
-
|
|
206
|
-
- unused variables;
|
|
207
|
-
- forbidden imports;
|
|
208
|
-
- style violations;
|
|
209
|
-
- rule-specific errors.
|
|
210
|
-
|
|
211
|
-
### Test failure
|
|
212
|
-
|
|
213
|
-
A test command runs but one or more tests fail.
|
|
214
|
-
|
|
215
|
-
Examples:
|
|
216
|
-
|
|
217
|
-
- failed assertion;
|
|
218
|
-
- timeout;
|
|
219
|
-
- snapshot mismatch;
|
|
220
|
-
- mocked dependency mismatch.
|
|
221
|
-
|
|
222
|
-
### Runtime failure
|
|
223
|
-
|
|
224
|
-
The code builds but fails during execution.
|
|
225
|
-
|
|
226
|
-
Examples:
|
|
227
|
-
|
|
228
|
-
- browser console error;
|
|
229
|
-
- API request failure;
|
|
230
|
-
- server exception;
|
|
231
|
-
- broken navigation;
|
|
232
|
-
- hydration error.
|
|
233
|
-
|
|
234
|
-
### Environment failure
|
|
235
|
-
|
|
236
|
-
The validation cannot complete because of missing or invalid environment setup.
|
|
237
|
-
|
|
238
|
-
Examples:
|
|
239
|
-
|
|
240
|
-
- missing `.env`;
|
|
241
|
-
- missing service;
|
|
242
|
-
- missing database;
|
|
243
|
-
- unavailable API;
|
|
244
|
-
- invalid credentials;
|
|
245
|
-
- unsupported local runtime.
|
|
246
|
-
|
|
247
|
-
## Evidence rules
|
|
248
|
-
|
|
249
|
-
Every validation report must include evidence.
|
|
250
|
-
|
|
251
|
-
Evidence can be:
|
|
252
|
-
|
|
253
|
-
- command executed;
|
|
254
|
-
- command exit status;
|
|
255
|
-
- relevant error excerpt;
|
|
256
|
-
- file path;
|
|
257
|
-
- line number when available;
|
|
258
|
-
- screenshot or manual observation when relevant;
|
|
259
|
-
- test name;
|
|
260
|
-
- CI result;
|
|
261
|
-
- build output summary.
|
|
262
|
-
|
|
263
|
-
Do not fabricate command results.
|
|
264
|
-
|
|
265
|
-
If a command was not executed, state that clearly.
|
|
266
|
-
|
|
267
|
-
## Output format
|
|
268
|
-
|
|
269
|
-
When using this skill, Codex should respond using this structure:
|
|
270
|
-
|
|
271
|
-
```md
|
|
272
|
-
# Build and Validation Report
|
|
273
|
-
|
|
274
|
-
## Summary
|
|
275
|
-
|
|
276
|
-
Short conclusion about the validation result.
|
|
277
|
-
|
|
278
|
-
## Scope
|
|
279
|
-
|
|
280
|
-
- Files or areas validated.
|
|
281
|
-
- Change or PR being checked.
|
|
282
|
-
|
|
283
|
-
## Environment
|
|
284
|
-
|
|
285
|
-
- Runtime:
|
|
286
|
-
- Package manager:
|
|
287
|
-
- Relevant framework:
|
|
288
|
-
- Notes:
|
|
289
|
-
|
|
290
|
-
## Commands executed
|
|
291
|
-
|
|
292
|
-
| Command | Result | Notes |
|
|
293
|
-
| --------- | ------------------------- | ---------- |
|
|
294
|
-
| `command` | Passed / Failed / Not run | Short note |
|
|
295
|
-
|
|
296
|
-
## Findings
|
|
297
|
-
|
|
298
|
-
### Finding 1
|
|
299
|
-
|
|
300
|
-
Severity: High | Medium | Low
|
|
301
|
-
Type: Build failure | Type failure | Lint failure | Test failure | Runtime failure | Environment failure | Observation | Hypothesis
|
|
302
|
-
|
|
303
|
-
Description:
|
|
304
|
-
Explain the issue clearly.
|
|
305
|
-
|
|
306
|
-
Evidence:
|
|
307
|
-
Show the exact evidence.
|
|
308
|
-
|
|
309
|
-
Impact:
|
|
310
|
-
Explain why it matters.
|
|
311
|
-
|
|
312
|
-
Recommended action:
|
|
313
|
-
Explain the smallest safe next step.
|
|
314
|
-
|
|
315
|
-
How to validate after fix:
|
|
316
|
-
Explain the command or manual check.
|
|
317
|
-
|
|
318
|
-
## Untested areas
|
|
319
|
-
|
|
320
|
-
- Area not validated — reason.
|
|
321
|
-
|
|
322
|
-
## Regression risks
|
|
323
|
-
|
|
324
|
-
- Risk 1
|
|
325
|
-
- Risk 2
|
|
326
|
-
|
|
327
|
-
## Final recommendation
|
|
328
|
-
|
|
329
|
-
Approved | Approved with notes | Changes requested | Blocked
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
## Severity model
|
|
333
|
-
|
|
334
|
-
### High
|
|
335
|
-
|
|
336
|
-
Use `High` when validation shows or strongly indicates:
|
|
337
|
-
|
|
338
|
-
- build failure;
|
|
339
|
-
- failing required tests;
|
|
340
|
-
- broken critical flow;
|
|
341
|
-
- security risk;
|
|
342
|
-
- deployment-blocking issue;
|
|
343
|
-
- data loss risk;
|
|
344
|
-
- severe regression.
|
|
345
|
-
|
|
346
|
-
### Medium
|
|
347
|
-
|
|
348
|
-
Use `Medium` when validation shows or suggests:
|
|
349
|
-
|
|
350
|
-
- missing validation for important behavior;
|
|
351
|
-
- partial test failure in non-critical flow;
|
|
352
|
-
- type or lint issues that do not block runtime but reduce safety;
|
|
353
|
-
- fragile configuration;
|
|
354
|
-
- environment-specific risk;
|
|
355
|
-
- unclear build assumptions.
|
|
356
|
-
|
|
357
|
-
### Low
|
|
358
|
-
|
|
359
|
-
Use `Low` when validation shows:
|
|
360
|
-
|
|
361
|
-
- minor warning;
|
|
362
|
-
- non-blocking cleanup;
|
|
363
|
-
- small documentation gap;
|
|
364
|
-
- minor formatting issue;
|
|
365
|
-
- low-risk command or configuration improvement.
|
|
366
|
-
|
|
367
|
-
## Approval criteria
|
|
368
|
-
|
|
369
|
-
A change can be approved when:
|
|
370
|
-
|
|
371
|
-
- relevant commands were identified;
|
|
372
|
-
- appropriate validation was executed or explicitly marked as not executed;
|
|
373
|
-
- no high-severity issue remains;
|
|
374
|
-
- failures are understood or documented;
|
|
375
|
-
- regression risks are acceptable;
|
|
376
|
-
- untested areas are visible;
|
|
377
|
-
- the final recommendation is clear.
|
|
378
|
-
|
|
379
|
-
Use `Approved` when all relevant checks pass.
|
|
380
|
-
|
|
381
|
-
Use `Approved with notes` when the change is acceptable but has low-risk gaps or non-blocking warnings.
|
|
382
|
-
|
|
383
|
-
Use `Changes requested` when there are fixable failures or medium/high issues.
|
|
384
|
-
|
|
385
|
-
Use `Blocked` when validation cannot continue because of missing environment, missing dependencies, missing context, or unavailable required services.
|
|
386
|
-
|
|
387
|
-
## Boundaries
|
|
388
|
-
|
|
389
|
-
When using this skill, Codex must not:
|
|
390
|
-
|
|
391
|
-
- invent command results;
|
|
392
|
-
- claim that tests passed without evidence;
|
|
393
|
-
- switch package managers unnecessarily;
|
|
394
|
-
- run destructive commands without explicit permission;
|
|
395
|
-
- delete files to make validation pass;
|
|
396
|
-
- ignore failing commands;
|
|
397
|
-
- treat environment failures as code failures without evidence;
|
|
398
|
-
- treat hypotheses as confirmed issues;
|
|
399
|
-
- expand validation scope beyond what is useful;
|
|
400
|
-
- approve deployment when build validation failed.
|
|
401
|
-
|
|
402
|
-
## Destructive command rule
|
|
403
|
-
|
|
404
|
-
Do not run destructive or irreversible commands unless explicitly instructed.
|
|
405
|
-
|
|
406
|
-
Examples of commands that require explicit permission:
|
|
407
|
-
|
|
408
|
-
```bash
|
|
409
|
-
rm -rf
|
|
410
|
-
git reset --hard
|
|
411
|
-
git clean -fd
|
|
412
|
-
docker system prune
|
|
413
|
-
dropdb
|
|
414
|
-
php artisan migrate:fresh
|
|
415
|
-
npm publish
|
|
416
|
-
pnpm publish
|
|
417
|
-
composer update
|
|
418
|
-
```
|
|
419
|
-
|
|
420
|
-
If cleanup is needed, recommend a safe command first and explain the risk.
|
|
421
|
-
|
|
422
|
-
## Good validation behavior
|
|
423
|
-
|
|
424
|
-
Good validation is:
|
|
425
|
-
|
|
426
|
-
- proportional;
|
|
427
|
-
- evidence-based;
|
|
428
|
-
- repeatable;
|
|
429
|
-
- explicit about failures;
|
|
430
|
-
- explicit about untested areas;
|
|
431
|
-
- aligned with project scripts;
|
|
432
|
-
- focused on regression prevention;
|
|
433
|
-
- practical enough to be used repeatedly.
|
|
434
|
-
|
|
435
|
-
The goal is not to run every possible command.
|
|
436
|
-
|
|
437
|
-
The goal is to run the right checks for the risk of the change.
|
|
438
|
-
|
|
439
|
-
## Stop conditions
|
|
440
|
-
|
|
441
|
-
- Stop when validation evidence is complete and the final recommendation is clear.
|
|
442
|
-
- Stop and report `Blocked` if required environment, dependencies, or context is missing.
|