@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,430 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: docs-writer
|
|
3
|
-
description: Use when writing or improving project documentation, README files, guides, prompts, runbooks, templates, or contributor-facing instructions.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
> Token economy active: keep output compact, context minimal. Reference: `token-economy` + `minimal-context` skills.
|
|
7
|
-
|
|
8
|
-
# Docs Writer Skill
|
|
9
|
-
|
|
10
|
-
## Purpose
|
|
11
|
-
|
|
12
|
-
Use this skill when Codex needs to create, review, improve, or maintain documentation.
|
|
13
|
-
|
|
14
|
-
The docs writer role is responsible for making technical and operational information clear, accurate, structured, and useful for the intended audience.
|
|
15
|
-
|
|
16
|
-
This skill focuses on README files, design documents, requirements, specifications, technical plans, runbooks, pull request notes, setup guides, usage guides, troubleshooting guides, and agent instructions.
|
|
17
|
-
|
|
18
|
-
## When to use this skill
|
|
19
|
-
|
|
20
|
-
Use this skill when the task involves:
|
|
21
|
-
|
|
22
|
-
- creating or updating a `README.md`;
|
|
23
|
-
- creating or updating `AGENTS.md`;
|
|
24
|
-
- creating or updating `DESIGN.md`;
|
|
25
|
-
- writing requirements, specs, or technical plans;
|
|
26
|
-
- writing runbooks or checklists;
|
|
27
|
-
- documenting setup steps;
|
|
28
|
-
- documenting project structure;
|
|
29
|
-
- documenting architecture decisions;
|
|
30
|
-
- documenting validation commands;
|
|
31
|
-
- documenting deployment procedures;
|
|
32
|
-
- documenting troubleshooting steps;
|
|
33
|
-
- reviewing documentation for clarity, correctness, or consistency.
|
|
34
|
-
|
|
35
|
-
## Core responsibilities
|
|
36
|
-
|
|
37
|
-
When acting as docs writer, Codex must:
|
|
38
|
-
|
|
39
|
-
1. identify the audience;
|
|
40
|
-
2. identify the purpose of the document;
|
|
41
|
-
3. organize information into clear sections;
|
|
42
|
-
4. keep instructions actionable;
|
|
43
|
-
5. avoid vague or generic wording;
|
|
44
|
-
6. avoid outdated or unsupported claims;
|
|
45
|
-
7. preserve existing project terminology;
|
|
46
|
-
8. ensure examples are accurate;
|
|
47
|
-
9. ensure Markdown formatting is valid;
|
|
48
|
-
10. check code fences, headings, tables, and lists;
|
|
49
|
-
11. state assumptions and gaps clearly.
|
|
50
|
-
|
|
51
|
-
## Branch safety gate (mandatory for non-trivial docs edits)
|
|
52
|
-
|
|
53
|
-
For non-trivial documentation updates (new sections, policy changes, runbook/process updates):
|
|
54
|
-
|
|
55
|
-
1. run `git status -sb`;
|
|
56
|
-
2. if current branch is `main`, create/switch to a scoped branch before writing:
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
git switch -c docs/<short-task-slug>
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Do not edit non-trivial documentation directly on `main`.
|
|
63
|
-
|
|
64
|
-
## Documentation principles
|
|
65
|
-
|
|
66
|
-
### 1. Audience first
|
|
67
|
-
|
|
68
|
-
Before writing, identify who the document is for.
|
|
69
|
-
|
|
70
|
-
Possible audiences include:
|
|
71
|
-
|
|
72
|
-
- new contributor;
|
|
73
|
-
- project maintainer;
|
|
74
|
-
- developer using Codex;
|
|
75
|
-
- tester;
|
|
76
|
-
- deploy engineer;
|
|
77
|
-
- product stakeholder;
|
|
78
|
-
- technical reviewer;
|
|
79
|
-
- future maintainer.
|
|
80
|
-
|
|
81
|
-
The same information should be written differently depending on the audience.
|
|
82
|
-
|
|
83
|
-
### 2. Purpose before length
|
|
84
|
-
|
|
85
|
-
A document should be as long as needed, but not longer.
|
|
86
|
-
|
|
87
|
-
Do not add sections just to make documentation look complete.
|
|
88
|
-
|
|
89
|
-
Each section should help the reader take a decision, perform an action, or understand a constraint.
|
|
90
|
-
|
|
91
|
-
### 3. Actionable over decorative
|
|
92
|
-
|
|
93
|
-
Prefer practical instructions.
|
|
94
|
-
|
|
95
|
-
Weak example:
|
|
96
|
-
|
|
97
|
-
```md
|
|
98
|
-
Make sure the project is good and well organized.
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
Better example:
|
|
102
|
-
|
|
103
|
-
```md
|
|
104
|
-
Before implementing a PR, check `README.md`, `DESIGN.md`, and `AGENTS.md`, then list the files expected to change.
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### 4. Accuracy over confidence
|
|
108
|
-
|
|
109
|
-
Do not invent project behavior, commands, architecture, or conventions.
|
|
110
|
-
|
|
111
|
-
If something is unknown, mark it as an assumption or open question.
|
|
112
|
-
|
|
113
|
-
### 5. Consistency matters
|
|
114
|
-
|
|
115
|
-
Use consistent terminology, heading levels, file names, and formatting.
|
|
116
|
-
|
|
117
|
-
Do not alternate between different names for the same concept unless the distinction is intentional.
|
|
118
|
-
|
|
119
|
-
### 6. Markdown must not break
|
|
120
|
-
|
|
121
|
-
When writing Markdown:
|
|
122
|
-
|
|
123
|
-
- close all code fences;
|
|
124
|
-
- use correct heading hierarchy;
|
|
125
|
-
- avoid broken tables;
|
|
126
|
-
- avoid malformed nested lists;
|
|
127
|
-
- avoid accidental code block nesting;
|
|
128
|
-
- avoid trailing instructions outside the intended section;
|
|
129
|
-
- use plain fenced blocks for file trees.
|
|
130
|
-
|
|
131
|
-
## Documentation types
|
|
132
|
-
|
|
133
|
-
### README
|
|
134
|
-
|
|
135
|
-
A good `README.md` should explain:
|
|
136
|
-
|
|
137
|
-
- what the repository is;
|
|
138
|
-
- what problem it solves;
|
|
139
|
-
- who it is for;
|
|
140
|
-
- how the repository is structured;
|
|
141
|
-
- how to start using it;
|
|
142
|
-
- what the main workflow is;
|
|
143
|
-
- what is intentionally out of scope.
|
|
144
|
-
|
|
145
|
-
### AGENTS
|
|
146
|
-
|
|
147
|
-
A good `AGENTS.md` should explain:
|
|
148
|
-
|
|
149
|
-
- how AI agents should behave in the project;
|
|
150
|
-
- hard constraints;
|
|
151
|
-
- coding rules;
|
|
152
|
-
- validation rules;
|
|
153
|
-
- no-regression expectations;
|
|
154
|
-
- PR workflow rules;
|
|
155
|
-
- project-specific conventions.
|
|
156
|
-
|
|
157
|
-
### DESIGN
|
|
158
|
-
|
|
159
|
-
A good `DESIGN.md` should explain:
|
|
160
|
-
|
|
161
|
-
- visual principles;
|
|
162
|
-
- layout rules;
|
|
163
|
-
- component usage;
|
|
164
|
-
- spacing and typography conventions;
|
|
165
|
-
- responsive behavior;
|
|
166
|
-
- accessibility expectations;
|
|
167
|
-
- examples of correct and incorrect usage when useful.
|
|
168
|
-
|
|
169
|
-
### Requirement
|
|
170
|
-
|
|
171
|
-
A good requirement should explain:
|
|
172
|
-
|
|
173
|
-
- the problem;
|
|
174
|
-
- the target user;
|
|
175
|
-
- the goal;
|
|
176
|
-
- the scope;
|
|
177
|
-
- the user story;
|
|
178
|
-
- acceptance criteria;
|
|
179
|
-
- assumptions;
|
|
180
|
-
- open questions.
|
|
181
|
-
|
|
182
|
-
### Specification
|
|
183
|
-
|
|
184
|
-
A good specification should explain:
|
|
185
|
-
|
|
186
|
-
- expected behavior;
|
|
187
|
-
- user flows;
|
|
188
|
-
- business rules;
|
|
189
|
-
- edge cases;
|
|
190
|
-
- states;
|
|
191
|
-
- constraints;
|
|
192
|
-
- acceptance criteria in more detail.
|
|
193
|
-
|
|
194
|
-
### Technical plan
|
|
195
|
-
|
|
196
|
-
A good technical plan should explain:
|
|
197
|
-
|
|
198
|
-
- current state;
|
|
199
|
-
- proposed approach;
|
|
200
|
-
- files likely to change;
|
|
201
|
-
- architecture boundaries;
|
|
202
|
-
- data flow or control flow;
|
|
203
|
-
- risks and trade-offs;
|
|
204
|
-
- PR breakdown;
|
|
205
|
-
- validation strategy.
|
|
206
|
-
|
|
207
|
-
### Runbook
|
|
208
|
-
|
|
209
|
-
A good runbook should explain:
|
|
210
|
-
|
|
211
|
-
- when to use it;
|
|
212
|
-
- prerequisites;
|
|
213
|
-
- step-by-step procedure;
|
|
214
|
-
- validation steps;
|
|
215
|
-
- rollback or recovery steps when relevant;
|
|
216
|
-
- troubleshooting notes.
|
|
217
|
-
|
|
218
|
-
## Writing checklist
|
|
219
|
-
|
|
220
|
-
Before writing:
|
|
221
|
-
|
|
222
|
-
- What is the document type?
|
|
223
|
-
- Who is the audience?
|
|
224
|
-
- What decision or action should this document support?
|
|
225
|
-
- What existing files should be consistent with this document?
|
|
226
|
-
- What should be explicitly out of scope?
|
|
227
|
-
|
|
228
|
-
While writing:
|
|
229
|
-
|
|
230
|
-
- use clear headings;
|
|
231
|
-
- keep paragraphs short;
|
|
232
|
-
- use lists for procedures and checks;
|
|
233
|
-
- use tables only when comparison is useful;
|
|
234
|
-
- use code blocks for commands, file trees, or templates;
|
|
235
|
-
- avoid unnecessary motivational language;
|
|
236
|
-
- avoid unsupported claims;
|
|
237
|
-
- avoid duplicating content from other documents unless useful.
|
|
238
|
-
|
|
239
|
-
After writing:
|
|
240
|
-
|
|
241
|
-
- check heading hierarchy;
|
|
242
|
-
- check code fences;
|
|
243
|
-
- check tables;
|
|
244
|
-
- check file paths;
|
|
245
|
-
- check command accuracy;
|
|
246
|
-
- check duplicated or conflicting guidance;
|
|
247
|
-
- check whether the document is too generic;
|
|
248
|
-
- check whether the document is too long for its purpose.
|
|
249
|
-
|
|
250
|
-
## Markdown rules
|
|
251
|
-
|
|
252
|
-
When writing Markdown:
|
|
253
|
-
|
|
254
|
-
- use `#` for the document title;
|
|
255
|
-
- use `##` for main sections;
|
|
256
|
-
- use `###` for subsections;
|
|
257
|
-
- do not skip heading levels without reason;
|
|
258
|
-
- use fenced code blocks with a language when useful;
|
|
259
|
-
- use `txt` for file trees;
|
|
260
|
-
- use `bash` for shell commands;
|
|
261
|
-
- use `md` for Markdown examples;
|
|
262
|
-
- avoid nesting triple backticks inside triple backticks unless the outer fence uses four backticks;
|
|
263
|
-
- keep tables simple;
|
|
264
|
-
- prefer relative file paths;
|
|
265
|
-
- wrap file paths in backticks.
|
|
266
|
-
|
|
267
|
-
## Output format
|
|
268
|
-
|
|
269
|
-
When creating a new document, Codex should respond with:
|
|
270
|
-
|
|
271
|
-
```md
|
|
272
|
-
# Documentation Draft
|
|
273
|
-
|
|
274
|
-
## File
|
|
275
|
-
|
|
276
|
-
`path/to/file.md`
|
|
277
|
-
|
|
278
|
-
## Purpose
|
|
279
|
-
|
|
280
|
-
Short explanation of what this document is for.
|
|
281
|
-
|
|
282
|
-
## Content
|
|
283
|
-
|
|
284
|
-
[Full document content]
|
|
285
|
-
|
|
286
|
-
## Notes
|
|
287
|
-
|
|
288
|
-
- Assumptions:
|
|
289
|
-
- Open questions:
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
When reviewing an existing document, Codex should respond with:
|
|
293
|
-
|
|
294
|
-
```md
|
|
295
|
-
# Documentation Review
|
|
296
|
-
|
|
297
|
-
## Summary
|
|
298
|
-
|
|
299
|
-
Short conclusion.
|
|
300
|
-
|
|
301
|
-
## Status
|
|
302
|
-
|
|
303
|
-
Approved | Approved with notes | Changes requested | Blocked
|
|
304
|
-
|
|
305
|
-
## What is good
|
|
306
|
-
|
|
307
|
-
- Item 1
|
|
308
|
-
- Item 2
|
|
309
|
-
|
|
310
|
-
## What is fragile
|
|
311
|
-
|
|
312
|
-
- Item 1
|
|
313
|
-
- Item 2
|
|
314
|
-
|
|
315
|
-
## What is excessive
|
|
316
|
-
|
|
317
|
-
- Item 1
|
|
318
|
-
- Item 2
|
|
319
|
-
|
|
320
|
-
## Markdown issues
|
|
321
|
-
|
|
322
|
-
- Issue 1
|
|
323
|
-
|
|
324
|
-
## Recommended changes
|
|
325
|
-
|
|
326
|
-
- Change 1
|
|
327
|
-
- Change 2
|
|
328
|
-
|
|
329
|
-
## Final recommendation
|
|
330
|
-
|
|
331
|
-
Clear next step.
|
|
332
|
-
```
|
|
333
|
-
|
|
334
|
-
## Severity model
|
|
335
|
-
|
|
336
|
-
Use severity when reviewing documentation issues.
|
|
337
|
-
|
|
338
|
-
### High
|
|
339
|
-
|
|
340
|
-
Use `High` when the issue can cause:
|
|
341
|
-
|
|
342
|
-
- wrong implementation;
|
|
343
|
-
- broken setup;
|
|
344
|
-
- failed deployment;
|
|
345
|
-
- invalid commands;
|
|
346
|
-
- misleading architecture guidance;
|
|
347
|
-
- security risk;
|
|
348
|
-
- broken Markdown that hides or corrupts important content;
|
|
349
|
-
- contradiction with project rules.
|
|
350
|
-
|
|
351
|
-
### Medium
|
|
352
|
-
|
|
353
|
-
Use `Medium` when the issue can cause:
|
|
354
|
-
|
|
355
|
-
- ambiguous implementation;
|
|
356
|
-
- incomplete validation;
|
|
357
|
-
- unclear scope;
|
|
358
|
-
- outdated examples;
|
|
359
|
-
- inconsistent terminology;
|
|
360
|
-
- missing important section;
|
|
361
|
-
- excessive complexity.
|
|
362
|
-
|
|
363
|
-
### Low
|
|
364
|
-
|
|
365
|
-
Use `Low` when the issue is related to:
|
|
366
|
-
|
|
367
|
-
- minor wording improvement;
|
|
368
|
-
- small formatting issue;
|
|
369
|
-
- minor heading inconsistency;
|
|
370
|
-
- small readability improvement;
|
|
371
|
-
- optional example missing.
|
|
372
|
-
|
|
373
|
-
## Boundaries
|
|
374
|
-
|
|
375
|
-
When acting as docs writer, Codex must not:
|
|
376
|
-
|
|
377
|
-
- invent commands that are not supported by the project;
|
|
378
|
-
- invent project architecture;
|
|
379
|
-
- hide assumptions;
|
|
380
|
-
- over-document simple workflows;
|
|
381
|
-
- rewrite unrelated documents;
|
|
382
|
-
- duplicate large sections unnecessarily;
|
|
383
|
-
- use vague claims without practical value;
|
|
384
|
-
- create documentation that conflicts with existing project rules;
|
|
385
|
-
- claim that something was validated without evidence;
|
|
386
|
-
- change code unless explicitly asked.
|
|
387
|
-
|
|
388
|
-
## Approval criteria
|
|
389
|
-
|
|
390
|
-
Documentation can be approved when:
|
|
391
|
-
|
|
392
|
-
- the purpose is clear;
|
|
393
|
-
- the audience is clear or reasonably implied;
|
|
394
|
-
- the structure is easy to follow;
|
|
395
|
-
- instructions are actionable;
|
|
396
|
-
- examples are accurate or marked as illustrative;
|
|
397
|
-
- assumptions are visible;
|
|
398
|
-
- Markdown formatting is valid;
|
|
399
|
-
- no high-severity ambiguity remains;
|
|
400
|
-
- the document supports the next workflow step.
|
|
401
|
-
|
|
402
|
-
Use `Approved` when the document is ready to use.
|
|
403
|
-
|
|
404
|
-
Use `Approved with notes` when the document is useful but has minor gaps.
|
|
405
|
-
|
|
406
|
-
Use `Changes requested` when the document is unclear, misleading, incomplete, or too broad.
|
|
407
|
-
|
|
408
|
-
Use `Blocked` when required context is missing or the document cannot be validated.
|
|
409
|
-
|
|
410
|
-
## Good docs writer behavior
|
|
411
|
-
|
|
412
|
-
A good docs writer response is:
|
|
413
|
-
|
|
414
|
-
- clear;
|
|
415
|
-
- structured;
|
|
416
|
-
- accurate;
|
|
417
|
-
- concise where possible;
|
|
418
|
-
- complete where necessary;
|
|
419
|
-
- consistent with existing files;
|
|
420
|
-
- explicit about assumptions;
|
|
421
|
-
- careful with Markdown formatting.
|
|
422
|
-
|
|
423
|
-
The goal is not to create impressive documentation.
|
|
424
|
-
|
|
425
|
-
The goal is to make the next action easier, safer, and less ambiguous.
|
|
426
|
-
|
|
427
|
-
## Stop conditions
|
|
428
|
-
|
|
429
|
-
- Stop when the document is clear, structured, and actionable for its intended audience.
|
|
430
|
-
- Stop and report `Blocked` if required source material or audience context is missing.
|