@williambeto/ai-workflow 1.19.1 → 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 -838
- 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 -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,26 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Spec To Tasks
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Convert an approved spec/change artifact into small, reviewable implementation tasks with validation and evidence expectations.
|
|
6
|
-
|
|
7
|
-
## Constraints
|
|
8
|
-
|
|
9
|
-
1. Do not implement.
|
|
10
|
-
2. Keep tasks ordered and dependency-aware.
|
|
11
|
-
3. Keep each task objective small and testable.
|
|
12
|
-
4. Include validation criteria and expected evidence.
|
|
13
|
-
|
|
14
|
-
## Context To Read
|
|
15
|
-
|
|
16
|
-
- `templates/change-proposal.template.md`
|
|
17
|
-
- `checklists/change-spec-readiness-checklist.md`
|
|
18
|
-
- `AGENTS.md`
|
|
19
|
-
|
|
20
|
-
## Expected Output
|
|
21
|
-
|
|
22
|
-
- Ordered task list
|
|
23
|
-
- Per task: objective, scope, out-of-scope, risk note
|
|
24
|
-
- Validation criteria per task
|
|
25
|
-
- Expected evidence per task
|
|
26
|
-
- Recommended first task for implementation
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Spec To Technical Plan
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Convert an approved specification into a technical plan safe for incremental implementation.
|
|
6
|
-
|
|
7
|
-
## Context To Read
|
|
8
|
-
|
|
9
|
-
- `docs/architecture-policy.md`
|
|
10
|
-
- `docs/design-patterns-policy.md`
|
|
11
|
-
- `AGENTS.md`
|
|
12
|
-
- Approved specification
|
|
13
|
-
|
|
14
|
-
## Constraints
|
|
15
|
-
|
|
16
|
-
1. Do not implement.
|
|
17
|
-
2. Keep architecture proportional.
|
|
18
|
-
3. Keep design-pattern usage justified.
|
|
19
|
-
4. Keep no-regression and validation explicit.
|
|
20
|
-
|
|
21
|
-
## Expected Output
|
|
22
|
-
|
|
23
|
-
- Technical approach summary
|
|
24
|
-
- Risks and trade-offs
|
|
25
|
-
- Validation strategy
|
|
26
|
-
- PR-sequencing guidance
|
|
27
|
-
- Blocking open questions
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Start workflow (default: orchestrator)
|
|
2
|
-
|
|
3
|
-
Use this command when opening the project to pick the safest starting agent.
|
|
4
|
-
|
|
5
|
-
## Default route
|
|
6
|
-
|
|
7
|
-
Use `orchestrator` by default.
|
|
8
|
-
|
|
9
|
-
## Dynamic fallback
|
|
10
|
-
|
|
11
|
-
Switch from `orchestrator` only when one of these conditions is true:
|
|
12
|
-
|
|
13
|
-
1. `discovery`
|
|
14
|
-
- Use when the request is vague, goals are unclear, or scope/constraints are missing.
|
|
15
|
-
2. `prompt-engineer`
|
|
16
|
-
- Use when the request is mainly about prompts, commands, skills, or workflow-instruction quality.
|
|
17
|
-
3. `planner`
|
|
18
|
-
- Use when user explicitly asks for planning-only output without execution/delegation.
|
|
19
|
-
|
|
20
|
-
## Execution policy
|
|
21
|
-
|
|
22
|
-
1. State chosen route in one line: `Selected agent: <name> — reason: <short reason>`.
|
|
23
|
-
2. Enforce branch gate before any write operation:
|
|
24
|
-
- run `git status -sb`;
|
|
25
|
-
- if branch is `main`, create/switch to a scoped branch: `git switch -c <type>/<short-task-slug>`;
|
|
26
|
-
- continue write operations only off `main`.
|
|
27
|
-
3. Keep no-regression and validation requirements explicit.
|
|
28
|
-
4. If route confidence is low, ask at most two blocking questions.
|
|
29
|
-
5. After route confirmation, proceed with that agent's normal workflow.
|
|
30
|
-
6. Before delegating, classify task type and check if delegation is necessary (skip delegation for trivial one-file edits).
|
|
31
|
-
7. Limit delegation to one owner + one reviewer unless task is explicitly cross-functional.
|
|
32
|
-
|
|
33
|
-
## Expected output
|
|
34
|
-
|
|
35
|
-
- Selected agent and reason
|
|
36
|
-
- Scope assumptions
|
|
37
|
-
- First safe next action
|
|
38
|
-
|
|
39
|
-
## Auto-load routing
|
|
40
|
-
|
|
41
|
-
After initial route confirmation:
|
|
42
|
-
|
|
43
|
-
- if selected agent is `orchestrator`, delegate automatically by workflow gates and request confirmation only at required checkpoints;
|
|
44
|
-
- if selected agent is `planner` and output includes a selected PR + handoff, auto-load `orchestrator` for gate-based step progression;
|
|
45
|
-
- if selected agent is `discovery` or `prompt-engineer`, continue in that agent until output is ready for planner.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Token Economy
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Apply compact output mode for current task without changing implementation behavior.
|
|
6
|
-
|
|
7
|
-
## Context To Read
|
|
8
|
-
|
|
9
|
-
- `AGENTS.md`
|
|
10
|
-
- `.agents/skills/token-economy/SKILL.md`
|
|
11
|
-
- current task prompt/handoff/issue
|
|
12
|
-
|
|
13
|
-
## Instructions
|
|
14
|
-
|
|
15
|
-
1. Select mode: `compact`, `terse`, `audit`, or `handoff`.
|
|
16
|
-
2. Keep technical correctness, evidence, severity, validation commands, and acceptance criteria.
|
|
17
|
-
3. Keep output short; remove filler and repeated explanations.
|
|
18
|
-
4. Keep exact file paths, command names, and command results.
|
|
19
|
-
5. Avoid broad repository scans unless explicitly requested.
|
|
20
|
-
6. Do not alter workflow gates, branch safety, or validation rules.
|
|
21
|
-
7. Do not commit unless explicitly requested.
|
|
22
|
-
|
|
23
|
-
## Expected Output
|
|
24
|
-
|
|
25
|
-
- Mode used
|
|
26
|
-
- Task output in selected compact contract
|
|
27
|
-
- Validation commands and results (if executed)
|
|
28
|
-
- Risks
|
|
29
|
-
- Next action
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# OpenCode Command - Validate
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Validate the repository or current PR before commit or merge.
|
|
6
|
-
|
|
7
|
-
## Context To Read
|
|
8
|
-
|
|
9
|
-
- `package.json`
|
|
10
|
-
- `.markdownlint.json`
|
|
11
|
-
- `schemas/`
|
|
12
|
-
|
|
13
|
-
## Instructions
|
|
14
|
-
|
|
15
|
-
1. Inspect `package.json` for available validation scripts.
|
|
16
|
-
2. Run available validation commands that are appropriate for the current change.
|
|
17
|
-
3. Run Markdown validation when Markdown files changed.
|
|
18
|
-
4. Check JSON parsing for `schemas/` when schemas exist or changed.
|
|
19
|
-
5. Check Git status and the current diff.
|
|
20
|
-
6. Summarize pass or fail with evidence.
|
|
21
|
-
7. Identify blocking issues and non-blocking warnings.
|
|
22
|
-
8. Avoid modifying files unless explicitly asked.
|
|
23
|
-
9. Do not commit unless explicitly asked.
|
|
24
|
-
|
|
25
|
-
## Expected Output
|
|
26
|
-
|
|
27
|
-
- Validation status
|
|
28
|
-
- Commands run
|
|
29
|
-
- Results
|
|
30
|
-
- Files changed
|
|
31
|
-
- Blocking issues
|
|
32
|
-
- Non-blocking warnings
|
|
33
|
-
- Merge recommendation
|
package/opencode.jsonc
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opencode.ai/config.json",
|
|
3
|
-
"default_agent": "atlas",
|
|
4
|
-
"agent": {
|
|
5
|
-
"atlas": {
|
|
6
|
-
"mode": "primary",
|
|
7
|
-
"description": "Primary senior engineering partner and workflow orchestrator",
|
|
8
|
-
"prompt": "{file:./opencode/agents/atlas.md}"
|
|
9
|
-
},
|
|
10
|
-
"discovery": {
|
|
11
|
-
"mode": "primary",
|
|
12
|
-
"description": "Explore codebase, understand requirements, gather context",
|
|
13
|
-
"prompt": "{file:./opencode/agents/discovery.md}"
|
|
14
|
-
},
|
|
15
|
-
"planner": {
|
|
16
|
-
"mode": "primary",
|
|
17
|
-
"description": "Plan requirements, specs, technical plans, and PR breakdowns",
|
|
18
|
-
"prompt": "{file:./opencode/agents/planner.md}"
|
|
19
|
-
},
|
|
20
|
-
"spec-engineer": {
|
|
21
|
-
"mode": "primary",
|
|
22
|
-
"description": "Turn vague requests into lightweight spec-driven change artifacts",
|
|
23
|
-
"prompt": "{file:./opencode/agents/spec-engineer.md}"
|
|
24
|
-
},
|
|
25
|
-
"implementer": {
|
|
26
|
-
"mode": "primary",
|
|
27
|
-
"description": "Implement features, fixes, and code changes",
|
|
28
|
-
"prompt": "{file:./opencode/agents/implementer.md}"
|
|
29
|
-
},
|
|
30
|
-
"fixer": {
|
|
31
|
-
"mode": "primary",
|
|
32
|
-
"description": "Fix bugs, errors, and validation failures",
|
|
33
|
-
"prompt": "{file:./opencode/agents/fixer.md}"
|
|
34
|
-
},
|
|
35
|
-
"reviewer": {
|
|
36
|
-
"mode": "primary",
|
|
37
|
-
"description": "Review code, documentation, and implementation quality",
|
|
38
|
-
"prompt": "{file:./opencode/agents/reviewer.md}"
|
|
39
|
-
},
|
|
40
|
-
"validator": {
|
|
41
|
-
"mode": "primary",
|
|
42
|
-
"description": "Validate work against acceptance criteria and evidence",
|
|
43
|
-
"prompt": "{file:./opencode/agents/validator.md}"
|
|
44
|
-
},
|
|
45
|
-
"release-manager": {
|
|
46
|
-
"mode": "primary",
|
|
47
|
-
"description": "Prepare releases, commits, PR summaries, and deployments",
|
|
48
|
-
"prompt": "{file:./opencode/agents/release-manager.md}"
|
|
49
|
-
},
|
|
50
|
-
"wordpress-engineer": {
|
|
51
|
-
"mode": "primary",
|
|
52
|
-
"description": "Work on WordPress, WooCommerce, themes, and PHP 7 compatible code",
|
|
53
|
-
"prompt": "{file:./opencode/agents/wordpress-engineer.md}"
|
|
54
|
-
},
|
|
55
|
-
"prompt-engineer": {
|
|
56
|
-
"mode": "primary",
|
|
57
|
-
"description": "Design and refine prompts, skills, and workflow instructions",
|
|
58
|
-
"prompt": "{file:./opencode/agents/prompt-engineer.md}"
|
|
59
|
-
},
|
|
60
|
-
"orchestrator": {
|
|
61
|
-
"mode": "primary",
|
|
62
|
-
"description": "Route work across agents with gate-based handoff checks",
|
|
63
|
-
"prompt": "{file:./opencode/agents/orchestrator.md}"
|
|
64
|
-
},
|
|
65
|
-
"frontend-implementer": {
|
|
66
|
-
"mode": "subagent",
|
|
67
|
-
"description": "Implement frontend UI, components, state, routing, styling, accessibility",
|
|
68
|
-
"prompt": "{file:.agents/skills/frontend-implementer/SKILL.md}"
|
|
69
|
-
},
|
|
70
|
-
"backend-implementer": {
|
|
71
|
-
"mode": "subagent",
|
|
72
|
-
"description": "Implement backend APIs, services, persistence, authentication, validation",
|
|
73
|
-
"prompt": "{file:.agents/skills/backend-implementer/SKILL.md}"
|
|
74
|
-
},
|
|
75
|
-
"tester": {
|
|
76
|
-
"mode": "subagent",
|
|
77
|
-
"description": "Design and review tests, acceptance criteria, regression coverage",
|
|
78
|
-
"prompt": "{file:.agents/skills/tester/SKILL.md}"
|
|
79
|
-
},
|
|
80
|
-
"docs-writer": {
|
|
81
|
-
"mode": "subagent",
|
|
82
|
-
"description": "Write and improve documentation, README, guides, prompts, runbooks",
|
|
83
|
-
"prompt": "{file:.agents/skills/docs-writer/SKILL.md}"
|
|
84
|
-
},
|
|
85
|
-
"product-manager": {
|
|
86
|
-
"mode": "subagent",
|
|
87
|
-
"description": "Clarify requirements, define scope, write functional specifications",
|
|
88
|
-
"prompt": "{file:.agents/skills/product-manager/SKILL.md}"
|
|
89
|
-
},
|
|
90
|
-
"seo-audit": {
|
|
91
|
-
"mode": "subagent",
|
|
92
|
-
"description": "Audit SEO, AEO, and GEO signals with evidence-based findings",
|
|
93
|
-
"prompt": "{file:.agents/skills/seo-audit/SKILL.md}"
|
|
94
|
-
},
|
|
95
|
-
"tech-lead": {
|
|
96
|
-
"mode": "subagent",
|
|
97
|
-
"description": "Make technical decisions, review architecture, identify trade-offs",
|
|
98
|
-
"prompt": "{file:.agents/skills/tech-lead/SKILL.md}"
|
|
99
|
-
},
|
|
100
|
-
"deploy-engineer": {
|
|
101
|
-
"mode": "subagent",
|
|
102
|
-
"description": "Plan and review deployment, release, rollback, CI/CD readiness",
|
|
103
|
-
"prompt": "{file:.agents/skills/deploy-engineer/SKILL.md}"
|
|
104
|
-
},
|
|
105
|
-
"pr-orchestrator": {
|
|
106
|
-
"mode": "subagent",
|
|
107
|
-
"description": "Plan and validate small PRs, preserve scope, avoid regressions",
|
|
108
|
-
"prompt": "{file:.agents/skills/pr-orchestrator/SKILL.md}"
|
|
109
|
-
},
|
|
110
|
-
"build-and-validate": {
|
|
111
|
-
"mode": "subagent",
|
|
112
|
-
"description": "Run lint, typecheck, tests, build, and release readiness checks",
|
|
113
|
-
"prompt": "{file:.agents/skills/build-and-validate/SKILL.md}"
|
|
114
|
-
},
|
|
115
|
-
"napkin": {
|
|
116
|
-
"mode": "subagent",
|
|
117
|
-
"description": "Manage discoverable project memory for durable decisions",
|
|
118
|
-
"prompt": "{file:.agents/skills/napkin/SKILL.md}"
|
|
119
|
-
},
|
|
120
|
-
"minimal-context": {
|
|
121
|
-
"mode": "subagent",
|
|
122
|
-
"description": "Read and search repository with minimal token usage",
|
|
123
|
-
"prompt": "{file:.agents/skills/minimal-context/SKILL.md}"
|
|
124
|
-
},
|
|
125
|
-
"token-economy": {
|
|
126
|
-
"mode": "subagent",
|
|
127
|
-
"description": "Keep outputs compact while preserving technical accuracy",
|
|
128
|
-
"prompt": "{file:.agents/skills/token-economy/SKILL.md}"
|
|
129
|
-
},
|
|
130
|
-
"interface-design": {
|
|
131
|
-
"mode": "subagent",
|
|
132
|
-
"description": "Design product interfaces, dashboards, admin panels, tools",
|
|
133
|
-
"prompt": "{file:.agents/skills/interface-design/SKILL.md}"
|
|
134
|
-
},
|
|
135
|
-
"opencode-agent-design": {
|
|
136
|
-
"mode": "subagent",
|
|
137
|
-
"description": "Design OpenCode agents, commands, routing, role boundaries",
|
|
138
|
-
"prompt": "{file:.agents/skills/opencode-agent-design/SKILL.md}"
|
|
139
|
-
},
|
|
140
|
-
"stack-variant-creator": {
|
|
141
|
-
"mode": "subagent",
|
|
142
|
-
"description": "Create workflow variants for specific tech stacks",
|
|
143
|
-
"prompt": "{file:.agents/skills/stack-variant-creator/SKILL.md}"
|
|
144
|
-
},
|
|
145
|
-
"vue-nuxt": {
|
|
146
|
-
"mode": "subagent",
|
|
147
|
-
"description": "Structure Vue/Nuxt frontend — architecture, dashboards, CRUD, stores, composables, TypeScript contracts",
|
|
148
|
-
"prompt": "{file:.agents/skills/vue-nuxt/SKILL.md}"
|
|
149
|
-
},
|
|
150
|
-
"playwright-cli": {
|
|
151
|
-
"mode": "subagent",
|
|
152
|
-
"description": "Run and debug Playwright CLI workflows for browser tests",
|
|
153
|
-
"prompt": "{file:.agents/skills/playwright-cli/SKILL.md}"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
"mcp": {
|
|
157
|
-
"linear": {
|
|
158
|
-
"type": "local",
|
|
159
|
-
"command": ["npx", "-y", "mcp-remote", "https://mcp.linear.app/mcp"],
|
|
160
|
-
"enabled": true
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"command": {
|
|
164
|
-
"start": {
|
|
165
|
-
"description": "Select default startup route (orchestrator with fallback)",
|
|
166
|
-
"agent": "orchestrator",
|
|
167
|
-
"template": "{file:./opencode/commands/start.md}"
|
|
168
|
-
},
|
|
169
|
-
"ship": {
|
|
170
|
-
"description": "Run low-touch end-to-end workflow with required confirmations",
|
|
171
|
-
"agent": "orchestrator",
|
|
172
|
-
"template": "{file:./opencode/commands/ship.md}"
|
|
173
|
-
},
|
|
174
|
-
"plan": {
|
|
175
|
-
"description": "Plan from requirement to PR breakdown",
|
|
176
|
-
"agent": "planner",
|
|
177
|
-
"template": "{file:./opencode/commands/plan.md}"
|
|
178
|
-
},
|
|
179
|
-
"execute": {
|
|
180
|
-
"description": "Implement a selected PR",
|
|
181
|
-
"agent": "implementer",
|
|
182
|
-
"template": "{file:./opencode/commands/execute.md}"
|
|
183
|
-
},
|
|
184
|
-
"review": {
|
|
185
|
-
"description": "Review implementation or diff",
|
|
186
|
-
"agent": "reviewer",
|
|
187
|
-
"template": "{file:./opencode/commands/review.md}"
|
|
188
|
-
},
|
|
189
|
-
"validate": {
|
|
190
|
-
"description": "Validate work before commit or merge",
|
|
191
|
-
"agent": "validator",
|
|
192
|
-
"template": "{file:./opencode/commands/validate.md}"
|
|
193
|
-
},
|
|
194
|
-
"token-economy": {
|
|
195
|
-
"description": "Apply compact output mode for current task",
|
|
196
|
-
"agent": "orchestrator",
|
|
197
|
-
"template": "{file:./opencode/commands/token-economy.md}"
|
|
198
|
-
},
|
|
199
|
-
"autopilot": {
|
|
200
|
-
"description": "Run local-first task routing through existing workflow gates",
|
|
201
|
-
"agent": "orchestrator",
|
|
202
|
-
"template": "{file:./opencode/commands/autopilot.md}"
|
|
203
|
-
},
|
|
204
|
-
"roadmap-audit": {
|
|
205
|
-
"description": "Audit roadmap status and recommend smallest safe next PR",
|
|
206
|
-
"agent": "orchestrator",
|
|
207
|
-
"template": "{file:./opencode/commands/roadmap-audit.md}"
|
|
208
|
-
},
|
|
209
|
-
"orchestrate": {
|
|
210
|
-
"description": "Automatically route work across agents by gate status",
|
|
211
|
-
"agent": "orchestrator",
|
|
212
|
-
"template": "{file:./opencode/commands/orchestrate.md}"
|
|
213
|
-
},
|
|
214
|
-
"deploy": {
|
|
215
|
-
"description": "Prepare deployment readiness and rollback plan",
|
|
216
|
-
"agent": "deploy-engineer",
|
|
217
|
-
"template": "{file:./opencode/commands/deploy.md}"
|
|
218
|
-
},
|
|
219
|
-
"spec-create": {
|
|
220
|
-
"description": "Create a lightweight spec/change artifact from a vague request",
|
|
221
|
-
"agent": "spec-engineer",
|
|
222
|
-
"template": "{file:./opencode/commands/specs/create-spec-from-request.md}"
|
|
223
|
-
},
|
|
224
|
-
"spec-review": {
|
|
225
|
-
"description": "Review or improve spec readiness for implementation handoff",
|
|
226
|
-
"agent": "spec-engineer",
|
|
227
|
-
"template": "{file:./opencode/commands/specs/review-spec.md}"
|
|
228
|
-
},
|
|
229
|
-
"spec-tasks": {
|
|
230
|
-
"description": "Convert approved spec into small implementation tasks",
|
|
231
|
-
"agent": "spec-engineer",
|
|
232
|
-
"template": "{file:./opencode/commands/specs/spec-to-tasks.md}"
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# @williambeto/ai-workflow
|
|
2
|
-
|
|
3
|
-
`@williambeto/ai-workflow` is the npm CLI for installing AI Workflow Kit assets into a project.
|
|
4
|
-
|
|
5
|
-
It prepares a repository for Codex and OpenCode workflows with local prompts, generated workflow assets, managed `opencode.jsonc` sections, and doctor checks.
|
|
6
|
-
|
|
7
|
-
## Commands
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npx @williambeto/ai-workflow init
|
|
11
|
-
npx @williambeto/ai-workflow doctor
|
|
12
|
-
npx @williambeto/ai-workflow codex:start
|
|
13
|
-
npx @williambeto/ai-workflow codex:orchestrate
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
For existing projects, preview changes first:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
npx @williambeto/ai-workflow init --dry-run
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Init flags
|
|
23
|
-
|
|
24
|
-
```txt
|
|
25
|
-
--yes non-interactive safe defaults
|
|
26
|
-
--force replace managed files when conflicts exist
|
|
27
|
-
--dry-run plan only; do not write files
|
|
28
|
-
--no-install skip dependency installation step
|
|
29
|
-
--no-overwrite skip conflicts even when --force is set
|
|
30
|
-
--profile=minimal|operational|full select onboarding profile (default: full)
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Notes
|
|
34
|
-
|
|
35
|
-
- `init` uses `full` profile by default.
|
|
36
|
-
- Setup is prepared for both Codex and OpenCode by default.
|
|
37
|
-
- `init` creates or merges managed sections in `opencode.jsonc` for operational/full profiles.
|
|
38
|
-
- `full` profile also installs local Codex prompt starter files (`start`, `orchestrate-next`, `plan`, `execute`, `review`, `validate`) under `.codex/prompts/`, plus OpenCode agents and skills under `opencode/agents/` and `.agents/skills/`.
|
|
39
|
-
- conflict backups are stored under `.ai-workflow-backups/` with per-file retention.
|
|
40
|
-
|
|
41
|
-
- `doctor` validates profile readiness (`.ai-workflow.json` and `opencode.jsonc` managed blocks for operational/full profiles).
|
|
42
|
-
|
|
43
|
-
## Profiles
|
|
44
|
-
|
|
45
|
-
| Profile | Use when | Generated assets |
|
|
46
|
-
| --- | --- | --- |
|
|
47
|
-
| `minimal` | Basic workflow docs and Codex placeholders only. | `.ai-workflow.json`, `README.workflow.md`, `.codex/prompts/README.md`, `opencode/README.md`. |
|
|
48
|
-
| `operational` | Repeatable PR workflow with minimal local assets. | Minimal assets plus managed `opencode.jsonc` default agent and `start` command. |
|
|
49
|
-
| `full` | Local starter files for the full role catalog. | Operational assets plus starter files under `.codex/prompts/`, `opencode/agents/`, and `.agents/skills/`. |
|
|
50
|
-
|
|
51
|
-
`full` creates starter files for local customization; it does not mean every project should keep every agent or skill.
|
|
52
|
-
|
|
53
|
-
## Codex wrapper commands
|
|
54
|
-
|
|
55
|
-
Use wrapper commands to print generated prompt entrypoints for copy/paste into Codex:
|
|
56
|
-
|
|
57
|
-
```txt
|
|
58
|
-
codex:start
|
|
59
|
-
codex:orchestrate
|
|
60
|
-
codex:plan
|
|
61
|
-
codex:execute
|
|
62
|
-
codex:review
|
|
63
|
-
codex:validate
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
If prompt files are missing, re-run:
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
npx @williambeto/ai-workflow init --yes --profile=full --force
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## Preview status
|
|
73
|
-
|
|
74
|
-
This CLI is in preview. It is validated for:
|
|
75
|
-
|
|
76
|
-
- `init --dry-run`;
|
|
77
|
-
- `init --yes`;
|
|
78
|
-
- `doctor`;
|
|
79
|
-
- managed `opencode.jsonc` merge with JSONC comments;
|
|
80
|
-
- `npm run validate` in projects with a `validate` script.
|
|
81
|
-
|
|
82
|
-
Before using it in a shared project, inspect generated files and commit only intentional changes.
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { runInit } from "./commands/init.js";
|
|
2
|
-
import { runDoctor } from "./commands/doctor.js";
|
|
3
|
-
import { runGuide } from "./commands/guide.js";
|
|
4
|
-
import { getCodexCommands, runCodexCommand } from "./commands/codex.js";
|
|
5
|
-
|
|
6
|
-
function printHelp() {
|
|
7
|
-
const codexCommands = getCodexCommands().map((cmd) => ` ai-workflow ${cmd}`).join("\n");
|
|
8
|
-
|
|
9
|
-
console.log(`ai-workflow
|
|
10
|
-
|
|
11
|
-
Usage:
|
|
12
|
-
ai-workflow init [--yes] [--force] [--dry-run] [--no-install] [--no-overwrite] [--profile minimal|operational|full]
|
|
13
|
-
ai-workflow doctor
|
|
14
|
-
ai-workflow guide
|
|
15
|
-
${codexCommands}
|
|
16
|
-
|
|
17
|
-
Commands:
|
|
18
|
-
init Install AI workflow defaults (Codex + OpenCode)
|
|
19
|
-
doctor Verify local ai-workflow installation
|
|
20
|
-
guide Interactive quick-start guide (detect assets, choose goal, see next steps)
|
|
21
|
-
codex:* Print generated Codex starter prompt content
|
|
22
|
-
`);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function parseFlags(args) {
|
|
26
|
-
const profileArg = args.find((arg) => arg.startsWith("--profile="));
|
|
27
|
-
|
|
28
|
-
return {
|
|
29
|
-
yes: args.includes("--yes"),
|
|
30
|
-
force: args.includes("--force"),
|
|
31
|
-
dryRun: args.includes("--dry-run"),
|
|
32
|
-
noInstall: args.includes("--no-install"),
|
|
33
|
-
noOverwrite: args.includes("--no-overwrite"),
|
|
34
|
-
profile: profileArg ? profileArg.replace("--profile=", "") : undefined
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export async function runCli(args) {
|
|
39
|
-
const [command] = args;
|
|
40
|
-
|
|
41
|
-
if (!command || command === "--help" || command === "-h") {
|
|
42
|
-
printHelp();
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (command === "init") {
|
|
47
|
-
await runInit({
|
|
48
|
-
cwd: process.cwd(),
|
|
49
|
-
...parseFlags(args.slice(1))
|
|
50
|
-
});
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (command === "doctor") {
|
|
55
|
-
await runDoctor({ cwd: process.cwd() });
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (command === "guide") {
|
|
60
|
-
await runGuide({ cwd: process.cwd() });
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (getCodexCommands().includes(command)) {
|
|
65
|
-
await runCodexCommand({ cwd: process.cwd(), command });
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
throw new Error(`unknown command: ${command}`);
|
|
70
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import fs from "node:fs/promises";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
|
|
4
|
-
const CODEX_PROMPT_MAP = {
|
|
5
|
-
"codex:start": ".codex/prompts/start-project.md",
|
|
6
|
-
"codex:orchestrate": ".codex/prompts/orchestrate-next.md",
|
|
7
|
-
"codex:plan": ".codex/prompts/plan-from-requirement.md",
|
|
8
|
-
"codex:execute": ".codex/prompts/execute-selected-pr.md",
|
|
9
|
-
"codex:review": ".codex/prompts/review-implementation.md",
|
|
10
|
-
"codex:validate": ".codex/prompts/validate-work.md"
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export function getCodexCommands() {
|
|
14
|
-
return Object.keys(CODEX_PROMPT_MAP);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export async function runCodexCommand({ cwd, command }) {
|
|
18
|
-
const relativePath = CODEX_PROMPT_MAP[command];
|
|
19
|
-
|
|
20
|
-
if (!relativePath) {
|
|
21
|
-
throw new Error(`unknown codex command: ${command}`);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const absolutePath = path.join(cwd, relativePath);
|
|
25
|
-
|
|
26
|
-
let content;
|
|
27
|
-
try {
|
|
28
|
-
content = await fs.readFile(absolutePath, "utf8");
|
|
29
|
-
} catch {
|
|
30
|
-
throw new Error(
|
|
31
|
-
`${relativePath} not found. Run: npx ai-workflow init --yes --profile=full --force`
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
console.log(`# Source: ${relativePath}\n`);
|
|
36
|
-
console.log(content.trimEnd());
|
|
37
|
-
}
|