@williambeto/ai-workflow 1.19.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -838
- package/PUBLISH_MANIFEST.json +34 -0
- package/README.md +78 -148
- 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/docs/visual-validation-guide.md +76 -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 +43 -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 +114 -0
- package/src/commands/collect-evidence.js +61 -0
- package/src/commands/doctor.js +186 -0
- package/src/commands/execute.js +172 -0
- package/{packages/ai-workflow/src → src}/commands/init.js +119 -20
- package/src/commands/run.js +112 -0
- package/src/core/completion-contract.js +35 -0
- package/src/core/execution-planner.js +59 -0
- package/src/core/gates/branch-gate.js +146 -0
- package/src/core/handoff/handoff-engine.js +104 -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/request-classifier.js +58 -0
- package/src/core/runtime/opencode-adapter.js +94 -0
- 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 +221 -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/src/core/workflow-state-machine.js +46 -0
- package/.agents/napkin.md +0 -89
- package/.agents/skills/backend-implementer/SKILL.md +0 -490
- package/.agents/skills/build-and-validate/SKILL.md +0 -442
- package/.agents/skills/deploy-engineer/SKILL.md +0 -541
- package/.agents/skills/docs-writer/SKILL.md +0 -430
- package/.agents/skills/frontend-implementer/SKILL.md +0 -488
- package/.agents/skills/interface-design/SKILL.md +0 -428
- package/.agents/skills/interface-design/references/critique.md +0 -67
- package/.agents/skills/interface-design/references/example.md +0 -86
- package/.agents/skills/interface-design/references/principles.md +0 -235
- package/.agents/skills/interface-design/references/validation.md +0 -48
- package/.agents/skills/minimal-context/SKILL.md +0 -177
- package/.agents/skills/napkin/SKILL.md +0 -84
- package/.agents/skills/opencode-agent-design/SKILL.md +0 -77
- package/.agents/skills/playwright-cli/SKILL.md +0 -62
- package/.agents/skills/pr-orchestrator/SKILL.md +0 -366
- package/.agents/skills/product-manager/SKILL.md +0 -519
- package/.agents/skills/seo-audit/SKILL.md +0 -176
- package/.agents/skills/stack-variant-creator/SKILL.md +0 -265
- package/.agents/skills/tech-lead/SKILL.md +0 -453
- package/.agents/skills/tester/SKILL.md +0 -399
- package/.agents/skills/token-economy/SKILL.md +0 -137
- package/.agents/skills/vue-nuxt/SKILL.md +0 -102
- package/.agents/skills/wordpress-engineer/SKILL.md +0 -75
- package/.codex/prompts/README.md +0 -44
- package/.codex/prompts/autopilot.md +0 -50
- package/.codex/prompts/deploy.md +0 -33
- package/.codex/prompts/execute-selected-pr.md +0 -35
- package/.codex/prompts/fix-issue.md +0 -34
- package/.codex/prompts/minimal-context-mode.md +0 -55
- package/.codex/prompts/orchestrate-next.md +0 -33
- package/.codex/prompts/plan-from-requirement.md +0 -37
- package/.codex/prompts/review-implementation.md +0 -33
- package/.codex/prompts/roadmap-audit.md +0 -22
- package/.codex/prompts/specs/create-spec-from-requirement.md +0 -26
- package/.codex/prompts/specs/review-spec.md +0 -29
- package/.codex/prompts/specs/spec-to-pr-breakdown.md +0 -23
- package/.codex/prompts/specs/spec-to-technical-plan.md +0 -28
- package/.codex/prompts/start-project.md +0 -29
- package/.codex/prompts/token-economy-mode.md +0 -48
- package/.codex/prompts/validate-work.md +0 -28
- package/checklists/change-spec-readiness-checklist.md +0 -34
- package/docs/full-documentation.md +0 -661
- package/docs/setup-codex-opencode.md +0 -313
- package/harness/README.md +0 -106
- package/opencode/README.md +0 -84
- package/opencode/agents/README.md +0 -113
- package/opencode/agents/atlas.md +0 -127
- package/opencode/agents/discovery.md +0 -61
- package/opencode/agents/fixer.md +0 -51
- package/opencode/agents/implementer.md +0 -61
- package/opencode/agents/orchestrator.md +0 -145
- package/opencode/agents/planner.md +0 -60
- package/opencode/agents/prompt-engineer.md +0 -50
- package/opencode/agents/release-manager.md +0 -50
- package/opencode/agents/reviewer.md +0 -51
- package/opencode/agents/spec-engineer.md +0 -85
- package/opencode/agents/validator.md +0 -50
- package/opencode/agents/wordpress-engineer.md +0 -49
- package/opencode/commands/README.md +0 -48
- package/opencode/commands/autopilot.md +0 -50
- package/opencode/commands/deploy.md +0 -35
- package/opencode/commands/execute.md +0 -47
- package/opencode/commands/orchestrate.md +0 -37
- package/opencode/commands/plan.md +0 -39
- package/opencode/commands/review.md +0 -33
- package/opencode/commands/roadmap-audit.md +0 -30
- package/opencode/commands/ship.md +0 -48
- package/opencode/commands/specs/create-spec-from-request.md +0 -27
- package/opencode/commands/specs/create-spec-from-requirement.md +0 -25
- package/opencode/commands/specs/review-spec.md +0 -26
- package/opencode/commands/specs/spec-to-pr-breakdown.md +0 -19
- package/opencode/commands/specs/spec-to-tasks.md +0 -26
- package/opencode/commands/specs/spec-to-technical-plan.md +0 -27
- package/opencode/commands/start.md +0 -45
- package/opencode/commands/token-economy.md +0 -29
- package/opencode/commands/validate.md +0 -33
- package/opencode.jsonc +0 -235
- package/packages/ai-workflow/README.md +0 -82
- package/packages/ai-workflow/src/cli.js +0 -70
- package/packages/ai-workflow/src/commands/codex.js +0 -37
- package/packages/ai-workflow/src/commands/doctor.js +0 -168
- package/packages/ai-workflow/src/commands/guide.js +0 -194
- package/packages/ai-workflow/src/core/opencode-merge.js +0 -172
- package/packages/ai-workflow/src/core/symlink-layout.js +0 -54
- package/packages/ai-workflow/src/core/templates.js +0 -276
- package/runbooks/agent-delegation-workflow.md +0 -111
- package/runbooks/apply-starter-to-real-project.md +0 -445
- package/runbooks/commands-cheatsheet.md +0 -71
- package/runbooks/how-to-use-skills.md +0 -713
- package/runbooks/quick-start-guide.md +0 -213
- package/runbooks/tutorial-walkthroughs.md +0 -416
- package/runbooks/use-linear-for-operational-planning.md +0 -185
- package/runbooks/use-napkin-project-memory.md +0 -77
- package/templates/AGENTS.template.md +0 -397
- package/templates/DESIGN.template.md +0 -484
- package/templates/PR-PLAN.template.md +0 -172
- package/templates/README.template.md +0 -293
- package/templates/REQUIREMENT.template.md +0 -165
- package/templates/SPEC.template.md +0 -397
- package/templates/TECH-PLAN.template.md +0 -244
- package/templates/change-proposal.template.md +0 -97
- /package/{checklists/spec-readiness-checklist.md → dist-assets/docs/policies/SPEC_READINESS.md} +0 -0
- /package/{prompts → dist-assets/prompts}/00-bootstrap-project.md +0 -0
- /package/{prompts → dist-assets/prompts}/01-create-requirement.md +0 -0
- /package/{prompts → dist-assets/prompts}/02-create-spec.md +0 -0
- /package/{prompts → dist-assets/prompts}/03-create-tech-plan.md +0 -0
- /package/{prompts → dist-assets/prompts}/04-breakdown-prs.md +0 -0
- /package/{prompts → dist-assets/prompts}/05-implement-pr.md +0 -0
- /package/{prompts → dist-assets/prompts}/06-review-and-fix.md +0 -0
- /package/{prompts → dist-assets/prompts}/07-apply-design.md +0 -0
- /package/{prompts → dist-assets/prompts}/08-validate.md +0 -0
- /package/{prompts → dist-assets/prompts}/09-deploy.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/implement.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/requirement.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/spec.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/tech-plan.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/validate.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/branch-cleanup.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/deploy-checklist.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/publication-readiness-checklist.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/publish-package-checklist.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/team-governance-pr-readiness.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/validate-starter-in-real-project.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/validation-checklist.md +0 -0
- /package/{schemas → dist-assets/schemas}/README.md +0 -0
- /package/{schemas → dist-assets/schemas}/functional-spec.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/handoff.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/pr-breakdown.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/requirement.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/technical-plan.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/validation-report.schema.json +0 -0
- /package/{packages/ai-workflow/src → src}/core/backup.js +0 -0
- /package/{packages/ai-workflow/src → src}/core/filesystem.js +0 -0
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
# Quick-Start Guide
|
|
2
|
-
|
|
3
|
-
## Objective
|
|
4
|
-
|
|
5
|
-
This guide takes you from installing AI Workflow Kit in a target project to your first scoped workflow run.
|
|
6
|
-
|
|
7
|
-
## Prerequisites
|
|
8
|
-
|
|
9
|
-
- Node.js 20+
|
|
10
|
-
- Git
|
|
11
|
-
- A text editor (VS Code recommended)
|
|
12
|
-
|
|
13
|
-
## Target-project walkthrough
|
|
14
|
-
|
|
15
|
-
### 1. Install in your project
|
|
16
|
-
|
|
17
|
-
Run from the root of the project that should receive workflow assets:
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npx @williambeto/ai-workflow init --yes
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
For existing projects, preview changes first:
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
npx @williambeto/ai-workflow init --dry-run
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Default profile: `operational`.
|
|
30
|
-
|
|
31
|
-
Profile options:
|
|
32
|
-
|
|
33
|
-
| Profile | Use when | Notes |
|
|
34
|
-
| --- | --- | --- |
|
|
35
|
-
| `minimal` | You only need basic docs and Codex prompt placeholders. | Skips managed `opencode.jsonc`. |
|
|
36
|
-
| `operational` | You want the default PR workflow. | Adds managed `opencode.jsonc` default agent and `start` command. |
|
|
37
|
-
| `full` | You want starter files for local agents and skills. | Creates starter files under `opencode/agents/` and `.agents/skills/`. |
|
|
38
|
-
|
|
39
|
-
### 2. Check installation health
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npx @williambeto/ai-workflow doctor
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Expected result: `Final status: PASS` or `PASS_WITH_NOTES` with actionable warnings.
|
|
46
|
-
|
|
47
|
-
### 3. Run project validation
|
|
48
|
-
|
|
49
|
-
Run the target project's validation commands, for example:
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
npm run build
|
|
53
|
-
npm run lint
|
|
54
|
-
npm run test
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### 4. Create a requirement
|
|
58
|
-
|
|
59
|
-
Use the generated workflow docs and your AI tool to clarify:
|
|
60
|
-
|
|
61
|
-
- problem;
|
|
62
|
-
- target user;
|
|
63
|
-
- scope;
|
|
64
|
-
- acceptance criteria;
|
|
65
|
-
- assumptions and open questions.
|
|
66
|
-
|
|
67
|
-
### 5. Follow the workflow in order
|
|
68
|
-
|
|
69
|
-
```txt
|
|
70
|
-
Requirement
|
|
71
|
-
→ Functional specification
|
|
72
|
-
→ Technical plan
|
|
73
|
-
→ PR breakdown
|
|
74
|
-
→ Implement one PR
|
|
75
|
-
→ Review and fix
|
|
76
|
-
→ Validate with evidence
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
OpenCode users can start with `/start`. Codex users can start from `.codex/prompts/start-project.md`.
|
|
80
|
-
|
|
81
|
-
### 6. Create your first PR
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
git switch -c feat/my-feature
|
|
85
|
-
# make your changes
|
|
86
|
-
git add .
|
|
87
|
-
git commit -m "feat: my first feature"
|
|
88
|
-
git push -u origin feat/my-feature
|
|
89
|
-
gh pr create --title "My first PR" --body "## Summary"
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### 7. Run validation before opening a PR
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
npm run validate
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
If the project has no `validate` script, run the actual build/lint/test commands directly and include them in the PR body.
|
|
99
|
-
|
|
100
|
-
## Workflow steps reference
|
|
101
|
-
|
|
102
|
-
Each workflow step has a recommended prompt and specialist skill:
|
|
103
|
-
|
|
104
|
-
| Step | Prompt | Primary skill |
|
|
105
|
-
| ---: | --- | --- |
|
|
106
|
-
| Bootstrap the repository | `prompts/00-bootstrap-project.md` | `docs-writer` |
|
|
107
|
-
| Create the requirement | `prompts/01-create-requirement.md` | `product-manager` |
|
|
108
|
-
| Create the specification | `prompts/02-create-spec.md` | `product-manager` + `tester` |
|
|
109
|
-
| Create the technical plan | `prompts/03-create-tech-plan.md` | `tech-lead` |
|
|
110
|
-
| Break work into PRs | `prompts/04-breakdown-prs.md` | `pr-orchestrator` |
|
|
111
|
-
| Implement PR 1 | `prompts/05-implement-pr.md` | Frontend/backend/docs/deploy implementer |
|
|
112
|
-
| Review and fix | `prompts/06-review-and-fix.md` | `tester` |
|
|
113
|
-
| Validate | `prompts/08-validate.md` | `tester` + `build-and-validate` |
|
|
114
|
-
| Prepare deployment | `prompts/09-deploy.md` | `deploy-engineer` |
|
|
115
|
-
|
|
116
|
-
Apply a design pass (`prompts/07-apply-design.md`) when the PR involves user-facing changes.
|
|
117
|
-
|
|
118
|
-
### Validation checklist per step
|
|
119
|
-
|
|
120
|
-
| Step | Key check |
|
|
121
|
-
| --- | --- |
|
|
122
|
-
| Bootstrap | Repository purpose is clear, structure matches type, no unnecessary code created. |
|
|
123
|
-
| Requirement | Problem is clear, target user identified, scope controlled, acceptance criteria testable. |
|
|
124
|
-
| Specification | Main flow defined, edge cases considered, scope did not expand silently. |
|
|
125
|
-
| Technical plan | Existing patterns identified, risks documented, validation strategy realistic. |
|
|
126
|
-
| PR breakdown | Each PR has one objective, PR 1 is small enough, refactors separated from behavior changes. |
|
|
127
|
-
| Implementation | Only PR 1 implemented, no unrelated changes, existing behavior preserved. |
|
|
128
|
-
| Review | Findings evidence-based, fixes inside PR 1 scope, out-of-scope issues documented. |
|
|
129
|
-
| Validate | Acceptance criteria checked, commands listed with results, untested areas explicit. |
|
|
130
|
-
| Deploy | Environment assumptions clear, smoke tests defined, rollback plan exists. |
|
|
131
|
-
|
|
132
|
-
Do not continue to the next step if the current step has unresolved high-severity issues.
|
|
133
|
-
|
|
134
|
-
## Common mistakes to avoid
|
|
135
|
-
|
|
136
|
-
- generating the full application at once;
|
|
137
|
-
- skipping requirement and specification;
|
|
138
|
-
- creating a technical plan without existing context;
|
|
139
|
-
- implementing before PR breakdown;
|
|
140
|
-
- implementing more than PR 1;
|
|
141
|
-
- accepting vague validation without command evidence;
|
|
142
|
-
- hiding failed commands;
|
|
143
|
-
- making broad refactors mixed with behavior changes;
|
|
144
|
-
- mixing setup, feature, design, and deployment in one PR;
|
|
145
|
-
- committing or deploying without explicit instruction.
|
|
146
|
-
|
|
147
|
-
## Recommended first PR types
|
|
148
|
-
|
|
149
|
-
Good first PRs are usually:
|
|
150
|
-
|
|
151
|
-
- documentation foundation;
|
|
152
|
-
- repository structure;
|
|
153
|
-
- first requirement, spec, or template;
|
|
154
|
-
- basic validation setup;
|
|
155
|
-
- small non-invasive project setup;
|
|
156
|
-
- test around existing behavior;
|
|
157
|
-
- one isolated UI shell;
|
|
158
|
-
- one isolated endpoint or utility.
|
|
159
|
-
|
|
160
|
-
Poor first PRs are usually:
|
|
161
|
-
|
|
162
|
-
- full application implementation;
|
|
163
|
-
- full architecture migration;
|
|
164
|
-
- dependency upgrade plus feature;
|
|
165
|
-
- database redesign;
|
|
166
|
-
- authentication plus dashboard plus products plus deploy;
|
|
167
|
-
- large design system implementation;
|
|
168
|
-
- production deployment.
|
|
169
|
-
|
|
170
|
-
## First PR quality gate
|
|
171
|
-
|
|
172
|
-
The first PR is ready only when:
|
|
173
|
-
|
|
174
|
-
- the selected PR scope is clear;
|
|
175
|
-
- the implementation matches the PR plan;
|
|
176
|
-
- no unrelated changes were introduced;
|
|
177
|
-
- validation evidence exists;
|
|
178
|
-
- untested areas are documented;
|
|
179
|
-
- regression risks are acceptable;
|
|
180
|
-
- no high-severity issue remains;
|
|
181
|
-
- the PR summary is ready for another developer to review.
|
|
182
|
-
|
|
183
|
-
## Contributor setup for this repository
|
|
184
|
-
|
|
185
|
-
Use this path only when changing AI Workflow Kit itself:
|
|
186
|
-
|
|
187
|
-
```bash
|
|
188
|
-
git clone https://github.com/williambeto/ai-workflow.git
|
|
189
|
-
cd ai-workflow
|
|
190
|
-
npm install
|
|
191
|
-
npm run validate
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
## Next steps
|
|
195
|
-
|
|
196
|
-
- Read `runbooks/tutorial-walkthroughs.md` for detailed tutorials
|
|
197
|
-
- Read `runbooks/apply-starter-to-real-project.md` for adoption in real projects
|
|
198
|
-
- Read `runbooks/how-to-use-skills.md` to choose the right skill
|
|
199
|
-
- Explore `variants/` for your specific stack
|
|
200
|
-
- Read `docs/full-documentation.md` for the complete reference
|
|
201
|
-
|
|
202
|
-
## Useful commands
|
|
203
|
-
|
|
204
|
-
| Command | What it does |
|
|
205
|
-
|---------|-----------|
|
|
206
|
-
| `npx @williambeto/ai-workflow init --dry-run` | Previews target-project install changes |
|
|
207
|
-
| `npx @williambeto/ai-workflow init --yes` | Installs default workflow assets |
|
|
208
|
-
| `npx @williambeto/ai-workflow doctor` | Checks local workflow installation |
|
|
209
|
-
| `npm run validate` | Runs target-project validation when available |
|
|
210
|
-
| `npm run validate` | Runs all repository validations when developing this kit |
|
|
211
|
-
| `npm run test:e2e` | Tests validation scripts |
|
|
212
|
-
| `npm run lint:md` | Checks Markdown formatting |
|
|
213
|
-
| `npm run validate:links` | Checks external links |
|
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
# Tutorial Walkthroughs
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
This document provides structured walkthrough scripts for learning and demonstrating the `ai-workflow` workflow.
|
|
6
|
-
|
|
7
|
-
Each tutorial maps to a workflow phase and can be used as:
|
|
8
|
-
|
|
9
|
-
- a self-guided text tutorial for new users;
|
|
10
|
-
- a script for recording video walkthroughs;
|
|
11
|
-
- a reference for team onboarding sessions.
|
|
12
|
-
|
|
13
|
-
## Tutorial index
|
|
14
|
-
|
|
15
|
-
| Module | Title | Workflow Phase | Est. Time | Prerequisites |
|
|
16
|
-
|--------|-------|----------------|-----------|---------------|
|
|
17
|
-
| 1 | From Zero to First PR | Bootstrap → Requirement → Spec → Tech Plan → PR Breakdown → Implementation | 30 min | GitHub account, Codex/OpenCode access |
|
|
18
|
-
| 2 | Creating a Requirement | Requirement | 10 min | Module 1 |
|
|
19
|
-
| 3 | Writing a Functional Spec | Specification | 10 min | Module 2 |
|
|
20
|
-
| 4 | Designing a Technical Plan | Technical Plan | 10 min | Module 3 |
|
|
21
|
-
| 5 | Breaking Work into PRs | PR Breakdown | 10 min | Module 4 |
|
|
22
|
-
| 6 | Implementing a PR | Implementation | 15 min | Module 5 |
|
|
23
|
-
| 7 | Reviewing and Fixing | Review | 10 min | Module 6 |
|
|
24
|
-
| 8 | Validating with Evidence | Validation | 10 min | Module 7 |
|
|
25
|
-
| 9 | Deploying a Release | Deployment | 10 min | Module 8 |
|
|
26
|
-
| 10 | Customizing for Your Stack | Variants | 15 min | All above |
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## Module 1: From Zero to First PR
|
|
31
|
-
|
|
32
|
-
### Objective
|
|
33
|
-
|
|
34
|
-
Bootstrap a new project from scratch, define a feature requirement, create a technical plan, split work into PRs, and implement the first PR.
|
|
35
|
-
|
|
36
|
-
### Walkthrough
|
|
37
|
-
|
|
38
|
-
1. **Clone the starter**
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
git clone https://github.com/williambeto/ai-workflow.git my-project
|
|
42
|
-
cd my-project
|
|
43
|
-
npm install
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
2. **Review the workflow**
|
|
47
|
-
|
|
48
|
-
Read `AGENTS.md` and `README.md`. Identify the ordered prompt sequence:
|
|
49
|
-
|
|
50
|
-
```txt
|
|
51
|
-
prompts/00-bootstrap-project.md → prompts/01-create-requirement.md
|
|
52
|
-
→ prompts/02-create-spec.md → prompts/03-create-tech-plan.md
|
|
53
|
-
→ prompts/04-breakdown-prs.md → prompts/05-implement-pr.md
|
|
54
|
-
→ prompts/06-review-and-fix.md → prompts/07-apply-design.md
|
|
55
|
-
→ prompts/08-validate.md → prompts/09-deploy.md
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
3. **Run validation**
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
npm run validate
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Expected: `Validation passed: 10 check(s) completed.`
|
|
65
|
-
|
|
66
|
-
4. **Start with a requirement**
|
|
67
|
-
|
|
68
|
-
Follow `prompts/01-create-requirement.md` to define a small feature. Use `templates/REQUIREMENT.template.md` as a starting point.
|
|
69
|
-
|
|
70
|
-
5. **Continue through the chain**
|
|
71
|
-
|
|
72
|
-
Follow each prompt in order. Use the corresponding template for each artifact.
|
|
73
|
-
|
|
74
|
-
6. **Create your first PR**
|
|
75
|
-
|
|
76
|
-
Follow `prompts/04-breakdown-prs.md` to split work, then `prompts/05-implement-pr.md` to implement.
|
|
77
|
-
|
|
78
|
-
### Key references
|
|
79
|
-
|
|
80
|
-
- `AGENTS.md` — agent rules and skill routing
|
|
81
|
-
- `templates/REQUIREMENT.template.md` — requirement template
|
|
82
|
-
- `templates/SPEC.template.md` — specification template
|
|
83
|
-
- `templates/TECH-PLAN.template.md` — technical plan template
|
|
84
|
-
- `templates/PR-PLAN.template.md` — PR breakdown template
|
|
85
|
-
- `opencode/commands/start.md` — OpenCode startup command
|
|
86
|
-
|
|
87
|
-
### Validation gate
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
npm run validate
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
All 8 checks must pass before moving to the next module.
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
## Module 2: Creating a Requirement
|
|
98
|
-
|
|
99
|
-
### Objective
|
|
100
|
-
|
|
101
|
-
Transform an idea into a structured product requirement with clear scope, acceptance criteria, and open questions.
|
|
102
|
-
|
|
103
|
-
### Walkthrough
|
|
104
|
-
|
|
105
|
-
1. Open `prompts/01-create-requirement.md`.
|
|
106
|
-
2. Review the expected input/output format in the prompt.
|
|
107
|
-
3. Open `templates/REQUIREMENT.template.md` and copy the structure.
|
|
108
|
-
4. Fill in each section for your chosen feature.
|
|
109
|
-
5. Validate the structure meets these criteria:
|
|
110
|
-
- Objective is clear and measurable.
|
|
111
|
-
- Scope boundaries are explicit.
|
|
112
|
-
- Acceptance criteria are testable.
|
|
113
|
-
- Open questions are documented.
|
|
114
|
-
|
|
115
|
-
### Key references
|
|
116
|
-
|
|
117
|
-
- `.agents/skills/product-manager/SKILL.md`
|
|
118
|
-
- `schemas/requirement.schema.json`
|
|
119
|
-
|
|
120
|
-
---
|
|
121
|
-
|
|
122
|
-
## Module 3: Writing a Functional Spec
|
|
123
|
-
|
|
124
|
-
### Objective
|
|
125
|
-
|
|
126
|
-
Convert a requirement into a detailed functional specification with user stories, acceptance criteria, and non-functional requirements.
|
|
127
|
-
|
|
128
|
-
### Walkthrough
|
|
129
|
-
|
|
130
|
-
1. Open `prompts/02-create-spec.md`.
|
|
131
|
-
2. Review the expected sections: overview, user stories, acceptance criteria, non-functional requirements, open questions.
|
|
132
|
-
3. Open `templates/SPEC.template.md`.
|
|
133
|
-
4. Map each requirement item to a user story.
|
|
134
|
-
5. Define clear, testable acceptance criteria per story.
|
|
135
|
-
6. Document non-functional constraints (performance, security, accessibility).
|
|
136
|
-
|
|
137
|
-
### Key references
|
|
138
|
-
|
|
139
|
-
- `.agents/skills/product-manager/SKILL.md`
|
|
140
|
-
- `schemas/functional-spec.schema.json`
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
## Module 4: Designing a Technical Plan
|
|
145
|
-
|
|
146
|
-
### Objective
|
|
147
|
-
|
|
148
|
-
Create a technical implementation plan that identifies architecture decisions, component boundaries, data flow, and risk mitigation.
|
|
149
|
-
|
|
150
|
-
### Walkthrough
|
|
151
|
-
|
|
152
|
-
1. Open `prompts/03-create-tech-plan.md`.
|
|
153
|
-
2. Review the expected structure: architecture overview, component diagram (text), data flow, technology choices, risks.
|
|
154
|
-
3. Open `templates/TECH-PLAN.template.md`.
|
|
155
|
-
4. Identify key architectural decisions and document trade-offs.
|
|
156
|
-
5. Map each spec story to a technical component.
|
|
157
|
-
6. Document risks and mitigation strategies.
|
|
158
|
-
|
|
159
|
-
### Key references
|
|
160
|
-
|
|
161
|
-
- `.agents/skills/tech-lead/SKILL.md`
|
|
162
|
-
- `schemas/technical-plan.schema.json`
|
|
163
|
-
|
|
164
|
-
---
|
|
165
|
-
|
|
166
|
-
## Module 5: Breaking Work into PRs
|
|
167
|
-
|
|
168
|
-
### Objective
|
|
169
|
-
|
|
170
|
-
Split a technical plan into small, reviewable, incremental pull requests that preserve no-regression and scope control.
|
|
171
|
-
|
|
172
|
-
### Walkthrough
|
|
173
|
-
|
|
174
|
-
1. Open `prompts/04-breakdown-prs.md`.
|
|
175
|
-
2. Review the PR breakdown criteria:
|
|
176
|
-
- Each PR is independently reviewable.
|
|
177
|
-
- Each PR preserves backward compatibility.
|
|
178
|
-
- Each PR has clear scope boundaries.
|
|
179
|
-
3. Open `templates/PR-PLAN.template.md`.
|
|
180
|
-
4. List each PR with its scope, files changed, and validation plan.
|
|
181
|
-
5. Order PRs by dependency (foundation first, features on top).
|
|
182
|
-
|
|
183
|
-
### Key references
|
|
184
|
-
|
|
185
|
-
- `.agents/skills/pr-orchestrator/SKILL.md`
|
|
186
|
-
- `schemas/pr-breakdown.schema.json`
|
|
187
|
-
- `harness/workflows/requirement-to-pr.md`
|
|
188
|
-
|
|
189
|
-
---
|
|
190
|
-
|
|
191
|
-
## Module 6: Implementing a PR
|
|
192
|
-
|
|
193
|
-
### Objective
|
|
194
|
-
|
|
195
|
-
Implement one small PR from the breakdown, following no-regression rules and scope boundaries.
|
|
196
|
-
|
|
197
|
-
### Walkthrough
|
|
198
|
-
|
|
199
|
-
1. Open `prompts/05-implement-pr.md`.
|
|
200
|
-
2. Create a feature branch:
|
|
201
|
-
|
|
202
|
-
```bash
|
|
203
|
-
git switch -c feat/my-scoped-change
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
3. Implement changes scoped to the PR.
|
|
207
|
-
4. Run validation after each logical change:
|
|
208
|
-
|
|
209
|
-
```bash
|
|
210
|
-
npm run validate
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
5. Do not introduce unrelated refactors or dependency changes.
|
|
214
|
-
6. Document out-of-scope discoveries as follow-up items.
|
|
215
|
-
|
|
216
|
-
### Key references
|
|
217
|
-
|
|
218
|
-
- `.agents/skills/frontend-implementer/SKILL.md`
|
|
219
|
-
- `.agents/skills/backend-implementer/SKILL.md`
|
|
220
|
-
- `.agents/skills/build-and-validate/SKILL.md`
|
|
221
|
-
- `scripts/validate-all.mjs`
|
|
222
|
-
|
|
223
|
-
---
|
|
224
|
-
|
|
225
|
-
## Module 7: Reviewing and Fixing
|
|
226
|
-
|
|
227
|
-
### Objective
|
|
228
|
-
|
|
229
|
-
Review an implemented PR for correctness, scope compliance, regression risk, and evidence quality.
|
|
230
|
-
|
|
231
|
-
### Walkthrough
|
|
232
|
-
|
|
233
|
-
1. Open `prompts/06-review-and-fix.md`.
|
|
234
|
-
2. Check each scope item from the PR plan.
|
|
235
|
-
3. Verify no unintended changes exist.
|
|
236
|
-
4. Check validation evidence is complete.
|
|
237
|
-
5. Use the severity model (High / Medium / Low) for issues found.
|
|
238
|
-
6. Apply fixes or document as follow-up.
|
|
239
|
-
|
|
240
|
-
### Key references
|
|
241
|
-
|
|
242
|
-
- `.agents/skills/tester/SKILL.md`
|
|
243
|
-
- `.agents/skills/pr-orchestrator/SKILL.md`
|
|
244
|
-
- `AGENTS.md` (severity model, finding types)
|
|
245
|
-
|
|
246
|
-
---
|
|
247
|
-
|
|
248
|
-
## Module 8: Validating with Evidence
|
|
249
|
-
|
|
250
|
-
### Objective
|
|
251
|
-
|
|
252
|
-
Run the full validation suite, collect evidence, and produce a validation report.
|
|
253
|
-
|
|
254
|
-
### Walkthrough
|
|
255
|
-
|
|
256
|
-
1. Open `prompts/08-validate.md`.
|
|
257
|
-
2. Run all validation checks:
|
|
258
|
-
|
|
259
|
-
```bash
|
|
260
|
-
npm run validate
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
3. Collect evidence for each check:
|
|
264
|
-
- Markdown lint output
|
|
265
|
-
- JSON validation output
|
|
266
|
-
- Cross-reference check output
|
|
267
|
-
- Documentation consistency output
|
|
268
|
-
- Workflow state output
|
|
269
|
-
- Schema validation output
|
|
270
|
-
- Skill validation output
|
|
271
|
-
- Structure validation output
|
|
272
|
-
4. Optionally run link validation:
|
|
273
|
-
|
|
274
|
-
```bash
|
|
275
|
-
npm run validate:links
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
5. Optionally run end-to-end tests:
|
|
279
|
-
|
|
280
|
-
```bash
|
|
281
|
-
npm run test:e2e
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
6. Document any warnings and decide whether they need action.
|
|
285
|
-
7. Produce a validation report using `schemas/validation-report.schema.json` as a reference.
|
|
286
|
-
|
|
287
|
-
### Key references
|
|
288
|
-
|
|
289
|
-
- `.agents/skills/tester/SKILL.md`
|
|
290
|
-
- `schemas/validation-report.schema.json`
|
|
291
|
-
- `runbooks/validation-checklist.md`
|
|
292
|
-
- `tests/validate-e2e.mjs`
|
|
293
|
-
|
|
294
|
-
---
|
|
295
|
-
|
|
296
|
-
## Module 9: Deploying a Release
|
|
297
|
-
|
|
298
|
-
### Objective
|
|
299
|
-
|
|
300
|
-
Prepare and execute a deployment plan with rollback strategy and readiness checklist.
|
|
301
|
-
|
|
302
|
-
### Walkthrough
|
|
303
|
-
|
|
304
|
-
1. Open `prompts/09-deploy.md`.
|
|
305
|
-
2. Review the deployment readiness checklist in `runbooks/deploy-checklist.md`.
|
|
306
|
-
3. Verify the release tag and CHANGELOG are up to date.
|
|
307
|
-
4. Create a version tag:
|
|
308
|
-
|
|
309
|
-
```bash
|
|
310
|
-
git tag -a v1.x.x -m "Release v1.x.x"
|
|
311
|
-
git push origin v1.x.x
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
5. The automated release workflow (`.github/workflows/release.yml`) creates a GitHub Release with notes from CHANGELOG.md.
|
|
315
|
-
|
|
316
|
-
### Key references
|
|
317
|
-
|
|
318
|
-
- `.agents/skills/deploy-engineer/SKILL.md`
|
|
319
|
-
- `runbooks/deploy-checklist.md`
|
|
320
|
-
- `.github/workflows/release.yml`
|
|
321
|
-
|
|
322
|
-
---
|
|
323
|
-
|
|
324
|
-
## Module 10: Customizing for Your Stack
|
|
325
|
-
|
|
326
|
-
### Objective
|
|
327
|
-
|
|
328
|
-
Adapt the generic workflow to a specific technology stack using the variants system.
|
|
329
|
-
|
|
330
|
-
### Walkthrough
|
|
331
|
-
|
|
332
|
-
1. Review existing variants in `variants/`:
|
|
333
|
-
|
|
334
|
-
```txt
|
|
335
|
-
variants/
|
|
336
|
-
├── nuxt/
|
|
337
|
-
├── wordpress/
|
|
338
|
-
├── node-api/
|
|
339
|
-
├── python-api/
|
|
340
|
-
└── docs-only/
|
|
341
|
-
```
|
|
342
|
-
|
|
343
|
-
2. Choose the closest variant to your stack.
|
|
344
|
-
3. Review the variant's `AGENTS.md` for stack-specific rules.
|
|
345
|
-
4. Copy the variant into your project.
|
|
346
|
-
5. Customize prompts and validation for your stack.
|
|
347
|
-
6. Ensure generic core files remain unchanged.
|
|
348
|
-
|
|
349
|
-
### Key references
|
|
350
|
-
|
|
351
|
-
- `.agents/skills/stack-variant-creator/SKILL.md`
|
|
352
|
-
- `variants/` directory
|
|
353
|
-
|
|
354
|
-
---
|
|
355
|
-
|
|
356
|
-
## Quick reference
|
|
357
|
-
|
|
358
|
-
### Commands used across tutorials
|
|
359
|
-
|
|
360
|
-
| Command | Purpose |
|
|
361
|
-
|---------|---------|
|
|
362
|
-
| `npm run validate` | Run all 8 validation checks |
|
|
363
|
-
| `npm run validate:links` | Check external HTTP links |
|
|
364
|
-
| `npm run test:e2e` | Run end-to-end validation tests |
|
|
365
|
-
| `npm run lint:md` | Check Markdown formatting |
|
|
366
|
-
| `git switch -c <branch>` | Create a feature branch |
|
|
367
|
-
| `git tag -a v1.x.x` | Create a release tag |
|
|
368
|
-
|
|
369
|
-
### Skill lookup by tutorial phase
|
|
370
|
-
|
|
371
|
-
| Tutorial | Primary Skill | Supporting Skills |
|
|
372
|
-
|----------|--------------|-------------------|
|
|
373
|
-
| Requirement | `product-manager` | `docs-writer`, `tester` |
|
|
374
|
-
| Specification | `product-manager` | `tester`, `docs-writer` |
|
|
375
|
-
| Technical Plan | `tech-lead` | `build-and-validate`, `tester` |
|
|
376
|
-
| PR Breakdown | `pr-orchestrator` | `tech-lead`, `tester` |
|
|
377
|
-
| Implementation | `frontend-implementer` or `backend-implementer` | `pr-orchestrator`, `tester` |
|
|
378
|
-
| Review | `tester` | `build-and-validate`, `pr-orchestrator` |
|
|
379
|
-
| Validation | `tester` | `build-and-validate` |
|
|
380
|
-
| Deployment | `deploy-engineer` | `build-and-validate`, `tester` |
|
|
381
|
-
|
|
382
|
-
---
|
|
383
|
-
|
|
384
|
-
## Recording tips (for video walkthroughs)
|
|
385
|
-
|
|
386
|
-
1. **Preparation**
|
|
387
|
-
- Prepare the repository in a clean state before recording.
|
|
388
|
-
- Open all files you will reference in separate tabs.
|
|
389
|
-
- Run `npm run validate` once before recording to confirm green.
|
|
390
|
-
|
|
391
|
-
2. **During recording**
|
|
392
|
-
- Show each prompt file before executing it.
|
|
393
|
-
- Show validation output after each step.
|
|
394
|
-
- Highlight key sections: scope boundaries, evidence requirements, stop conditions.
|
|
395
|
-
- Keep each module under 15 minutes.
|
|
396
|
-
|
|
397
|
-
3. **Post-production**
|
|
398
|
-
- Add chapter markers for each walkthrough section.
|
|
399
|
-
- Include on-screen annotations for commands and file paths.
|
|
400
|
-
- Link to the corresponding prompt, template, or runbook in the video description.
|
|
401
|
-
|
|
402
|
-
4. **Suggested titles**
|
|
403
|
-
- "Codex Workflow Starter: From Zero to First PR"
|
|
404
|
-
- "How to Write a Great Requirement (with Templates)"
|
|
405
|
-
- "Breaking Work into Small, Reviewable PRs"
|
|
406
|
-
- "Validating Your Work with Evidence"
|
|
407
|
-
|
|
408
|
-
---
|
|
409
|
-
|
|
410
|
-
## Next steps after completing tutorials
|
|
411
|
-
|
|
412
|
-
1. Explore advanced workflows in `harness/workflows/`.
|
|
413
|
-
2. Read `runbooks/apply-starter-to-real-project.md` for production adoption guidance.
|
|
414
|
-
3. Read `runbooks/team-governance-pr-readiness.md` for team workflow setup.
|
|
415
|
-
4. Customize prompts and templates for your team's conventions.
|
|
416
|
-
5. Create your own stack variant using `.agents/skills/stack-variant-creator/SKILL.md`.
|