@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.
Files changed (397) hide show
  1. package/CHANGELOG.md +56 -838
  2. package/PUBLISH_MANIFEST.json +34 -0
  3. package/README.md +78 -148
  4. package/{packages/ai-workflow/bin → bin}/ai-workflow.js +0 -0
  5. package/dist-assets/AGENTS.md +27 -0
  6. package/dist-assets/agents/astra.md +63 -0
  7. package/dist-assets/agents/atlas.md +169 -0
  8. package/dist-assets/agents/nexus.md +42 -0
  9. package/dist-assets/agents/orion.md +44 -0
  10. package/dist-assets/agents/phoenix.md +42 -0
  11. package/dist-assets/agents/sage.md +54 -0
  12. package/dist-assets/commands/README.md +14 -0
  13. package/dist-assets/commands/atlas.md +12 -0
  14. package/dist-assets/commands/audit.md +10 -0
  15. package/dist-assets/commands/deploy.md +12 -0
  16. package/dist-assets/commands/discover.md +10 -0
  17. package/dist-assets/commands/implement.md +28 -0
  18. package/dist-assets/commands/optimize-tokens.md +10 -0
  19. package/dist-assets/commands/plan.md +10 -0
  20. package/dist-assets/commands/release.md +12 -0
  21. package/dist-assets/commands/run.md +26 -0
  22. package/dist-assets/commands/spec-create.md +10 -0
  23. package/dist-assets/commands/spec-implement.md +10 -0
  24. package/dist-assets/commands/spec-review.md +10 -0
  25. package/dist-assets/commands/update-memory.md +10 -0
  26. package/dist-assets/commands/validate.md +12 -0
  27. package/dist-assets/docs/INDEX.md +21 -0
  28. package/dist-assets/docs/QUICKSTART.md +23 -0
  29. package/dist-assets/docs/adr/ADR-0000.md +19 -0
  30. package/dist-assets/docs/adr/ADR-0001.md +45 -0
  31. package/dist-assets/docs/adr/ADR-0002.md +62 -0
  32. package/dist-assets/docs/adr/ADR-0003.md +60 -0
  33. package/dist-assets/docs/adr/ADR-0004.md +71 -0
  34. package/dist-assets/docs/adr/ADR-0005.md +22 -0
  35. package/dist-assets/docs/adr/ADR-0006.md +82 -0
  36. package/dist-assets/docs/adr/ADR-0007.md +78 -0
  37. package/dist-assets/docs/api-engine-reference.md +7 -0
  38. package/{docs → dist-assets/docs}/architecture-policy.md +1 -1
  39. package/dist-assets/docs/cli-reference.md +27 -0
  40. package/dist-assets/docs/compatibility/provider-usage.md +38 -0
  41. package/dist-assets/docs/compatibility/runtime-matrix.md +30 -0
  42. package/dist-assets/docs/consumer-onboarding.md +17 -0
  43. package/dist-assets/docs/contributing-guide.md +11 -0
  44. package/{docs → dist-assets/docs}/design-patterns-policy.md +2 -2
  45. package/dist-assets/docs/full-documentation.md +113 -0
  46. package/{docs → dist-assets/docs}/npm-consumer-quickstart.md +18 -46
  47. package/dist-assets/docs/opencode-readme.md +8 -0
  48. package/dist-assets/docs/policies/01-BRANCH_GATE.md +63 -0
  49. package/dist-assets/docs/policies/02-SDD_METHODOLOGY.md +95 -0
  50. package/dist-assets/docs/policies/03-QUALITY_GATE.md +22 -0
  51. package/dist-assets/docs/policies/05-AGENT_CONTRACT.md +7 -0
  52. package/dist-assets/docs/policies/06-FINAL_EVIDENCE_CONTRACT.md +31 -0
  53. package/dist-assets/docs/policies/07-RELEASE_GATE.md +47 -0
  54. package/dist-assets/docs/policies/08-PRODUCT_TRUTHFULNESS_AND_PROJECT_DOCS.md +18 -0
  55. package/dist-assets/docs/policies/09-SPEC_VISIBILITY_AND_PUBLICATION.md +28 -0
  56. package/dist-assets/docs/policies/10-BEHAVIORAL_CONTRACT_HARDENING.md +9 -0
  57. package/dist-assets/docs/policies/11-EXECUTABLE_DELEGATION_AND_TRUTHFULNESS.md +7 -0
  58. package/dist-assets/docs/policies/ORCHESTRATION_PROTOCOL.md +15 -0
  59. package/dist-assets/docs/policies/PROCEDURE_DELIVERY_ARTIFACTS.md +21 -0
  60. package/dist-assets/docs/policies/PROCEDURE_DOCUMENTATION_CHECKLIST.md +24 -0
  61. package/dist-assets/docs/policies/PROCEDURE_UI_CHECKLIST.md +54 -0
  62. package/dist-assets/docs/profiles/README.md +19 -0
  63. package/dist-assets/docs/profiles/backend-api.md +5 -0
  64. package/dist-assets/docs/profiles/documentation.md +3 -0
  65. package/dist-assets/docs/profiles/frontend-product.md +19 -0
  66. package/dist-assets/docs/profiles/frontend-utility.md +19 -0
  67. package/dist-assets/docs/profiles/refactor.md +3 -0
  68. package/dist-assets/docs/profiles/security-review.md +3 -0
  69. package/dist-assets/docs/references/frontend-quality/landing-page-quality-checklist.md +11 -0
  70. package/dist-assets/docs/references/frontend-quality/product-copy-truthfulness.md +7 -0
  71. package/dist-assets/docs/references/frontend-quality/quality-failure-examples.md +20 -0
  72. package/dist-assets/docs/references/frontend-quality/visual-composition-patterns.md +10 -0
  73. package/dist-assets/docs/specs/runtime-operational-contract.md +39 -0
  74. package/dist-assets/docs/troubleshooting-guide.md +21 -0
  75. package/dist-assets/docs/visual-validation-guide.md +76 -0
  76. package/dist-assets/examples/README.md +10 -0
  77. package/dist-assets/examples/autopilot-cycle/00-CONTEXT.md +3 -0
  78. package/dist-assets/examples/autopilot-cycle/01-requirement.md +16 -0
  79. package/dist-assets/examples/autopilot-cycle/02-gate-a-check.md +23 -0
  80. package/dist-assets/examples/autopilot-cycle/03-orion-planning.md +20 -0
  81. package/dist-assets/examples/autopilot-cycle/04-astra-implementation.md +17 -0
  82. package/dist-assets/examples/autopilot-cycle/05-sage-validation.md +15 -0
  83. package/dist-assets/examples/autopilot-cycle/06-phoenix-healing.md +12 -0
  84. package/dist-assets/examples/autopilot-cycle/07-orchestration-report.md +18 -0
  85. package/dist-assets/examples/backend-api/00-CONTEXT.md +12 -0
  86. package/dist-assets/examples/backend-api/01-requirement.md +19 -0
  87. package/dist-assets/examples/backend-api/02-functional-spec.md +20 -0
  88. package/dist-assets/examples/backend-api/03-technical-plan.md +15 -0
  89. package/dist-assets/examples/backend-api/04-pr-breakdown.md +10 -0
  90. package/dist-assets/examples/backend-api/05-execution-handoff.md +13 -0
  91. package/dist-assets/examples/backend-api/06-validation-report.md +11 -0
  92. package/dist-assets/examples/backend-api/07-orchestration-report.md +7 -0
  93. package/dist-assets/examples/blocked-scenarios/00-CONTEXT.md +9 -0
  94. package/dist-assets/examples/blocked-scenarios/01-branch-gate-block.md +12 -0
  95. package/dist-assets/examples/blocked-scenarios/02-quality-gate-block.md +13 -0
  96. package/dist-assets/examples/blocked-scenarios/03-scope-creep-block.md +13 -0
  97. package/dist-assets/examples/blocked-scenarios/04-unblock-resolution.md +9 -0
  98. package/dist-assets/examples/blocked-scenarios/05-orchestration-decision-log.md +11 -0
  99. package/dist-assets/examples/bugfix-critical/00-CONTEXT.md +12 -0
  100. package/dist-assets/examples/bugfix-critical/01-bug-report.md +11 -0
  101. package/dist-assets/examples/bugfix-critical/02-diagnosis-hypothesis.md +11 -0
  102. package/dist-assets/examples/bugfix-critical/03-technical-plan.md +12 -0
  103. package/dist-assets/examples/bugfix-critical/04-implementation-handoff.md +8 -0
  104. package/dist-assets/examples/bugfix-critical/05-validation-report.md +10 -0
  105. package/dist-assets/examples/bugfix-critical/06-orchestration-report.md +7 -0
  106. package/dist-assets/examples/cli-package/00-CONTEXT.md +9 -0
  107. package/dist-assets/examples/cli-package/01-requirement.md +14 -0
  108. package/dist-assets/examples/cli-package/02-technical-spec.md +16 -0
  109. package/dist-assets/examples/cli-package/03-technical-plan.md +12 -0
  110. package/dist-assets/examples/cli-package/04-pr-breakdown.md +9 -0
  111. package/dist-assets/examples/cli-package/05-release-report.md +15 -0
  112. package/dist-assets/examples/docs-only-repo/01-requirement.md +31 -0
  113. package/dist-assets/examples/docs-only-repo/02-functional-spec.md +25 -0
  114. package/dist-assets/examples/docs-only-repo/03-technical-plan.md +21 -0
  115. package/dist-assets/examples/docs-only-repo/04-pr-breakdown.md +13 -0
  116. package/dist-assets/examples/docs-only-repo/05-execution-handoff.md +17 -0
  117. package/dist-assets/examples/docs-only-repo/06-validation-report.md +16 -0
  118. package/dist-assets/examples/docs-only-repo/README.md +26 -0
  119. package/dist-assets/examples/full-stack-checkout/00-CONTEXT.md +9 -0
  120. package/dist-assets/examples/full-stack-checkout/01-requirement.md +12 -0
  121. package/dist-assets/examples/full-stack-checkout/02-functional-spec.md +15 -0
  122. package/dist-assets/examples/full-stack-checkout/03-technical-plan.md +15 -0
  123. package/dist-assets/examples/full-stack-checkout/04-pr-breakdown.md +8 -0
  124. package/dist-assets/examples/full-stack-checkout/05-execution-handoff.md +14 -0
  125. package/dist-assets/examples/full-stack-checkout/06-validation-report.md +12 -0
  126. package/dist-assets/examples/healing-cycle/00-CONTEXT.md +15 -0
  127. package/dist-assets/examples/healing-cycle/01-broken-implementation.md +10 -0
  128. package/dist-assets/examples/healing-cycle/02-sage-fails.md +14 -0
  129. package/dist-assets/examples/healing-cycle/03-phoenix-diagnosis.md +17 -0
  130. package/dist-assets/examples/healing-cycle/04-phoenix-fix.md +18 -0
  131. package/dist-assets/examples/healing-cycle/05-sage-revalidation.md +12 -0
  132. package/dist-assets/examples/healing-cycle/06-orchestration-log.md +14 -0
  133. package/dist-assets/examples/infra-deploy/00-CONTEXT.md +9 -0
  134. package/dist-assets/examples/infra-deploy/01-operational-goal.md +12 -0
  135. package/dist-assets/examples/infra-deploy/02-architecture-specs.md +15 -0
  136. package/dist-assets/examples/infra-deploy/03-implementation-plan.md +14 -0
  137. package/dist-assets/examples/infra-deploy/04-step-breakdown.md +9 -0
  138. package/dist-assets/examples/infra-deploy/05-execution-handoff.md +13 -0
  139. package/dist-assets/examples/infra-deploy/06-operational-report.md +11 -0
  140. package/dist-assets/examples/multi-pr-release/00-CONTEXT.md +9 -0
  141. package/dist-assets/examples/multi-pr-release/01-requirement.md +13 -0
  142. package/dist-assets/examples/multi-pr-release/02-strategic-plan.md +13 -0
  143. package/dist-assets/examples/multi-pr-release/03-pr-breakdown.md +14 -0
  144. package/dist-assets/examples/multi-pr-release/04-release-plan.md +12 -0
  145. package/dist-assets/examples/multi-pr-release/05-orchestration-report.md +7 -0
  146. package/dist-assets/examples/nuxt-dashboard/01-requirement.md +81 -0
  147. package/dist-assets/examples/nuxt-dashboard/02-functional-spec.md +88 -0
  148. package/dist-assets/examples/nuxt-dashboard/03-technical-plan.md +76 -0
  149. package/dist-assets/examples/nuxt-dashboard/04-pr-breakdown.md +219 -0
  150. package/dist-assets/examples/nuxt-dashboard/05-execution-handoff.md +88 -0
  151. package/dist-assets/examples/nuxt-dashboard/06-validation-report.md +56 -0
  152. package/dist-assets/examples/nuxt-dashboard/07-orchestration-report.md +79 -0
  153. package/dist-assets/examples/nuxt-dashboard/README.md +52 -0
  154. package/dist-assets/examples/react-dashboard/01-requirement.md +84 -0
  155. package/dist-assets/examples/react-dashboard/02-functional-spec.md +88 -0
  156. package/dist-assets/examples/react-dashboard/03-technical-plan.md +76 -0
  157. package/dist-assets/examples/react-dashboard/04-pr-breakdown.md +218 -0
  158. package/dist-assets/examples/react-dashboard/05-execution-handoff.md +13 -0
  159. package/dist-assets/examples/react-dashboard/06-validation-report.md +12 -0
  160. package/dist-assets/examples/react-dashboard/07-orchestration-report.md +7 -0
  161. package/dist-assets/examples/react-dashboard/README.md +70 -0
  162. package/dist-assets/examples/refactoring-service/00-CONTEXT.md +9 -0
  163. package/dist-assets/examples/refactoring-service/01-debt-report.md +12 -0
  164. package/dist-assets/examples/refactoring-service/02-behavior-spec.md +11 -0
  165. package/dist-assets/examples/refactoring-service/03-technical-plan.md +13 -0
  166. package/dist-assets/examples/refactoring-service/04-pr-breakdown.md +9 -0
  167. package/dist-assets/examples/refactoring-service/05-execution-handoff.md +14 -0
  168. package/dist-assets/examples/refactoring-service/06-stability-report.md +12 -0
  169. package/dist-assets/examples/sdd-cycle/00-CONTEXT.md +12 -0
  170. package/dist-assets/examples/sdd-cycle/01-raw-request.md +13 -0
  171. package/dist-assets/examples/sdd-cycle/02-spec-creation.md +18 -0
  172. package/dist-assets/examples/sdd-cycle/03-spec-review.md +12 -0
  173. package/dist-assets/examples/sdd-cycle/04-technical-plan.md +16 -0
  174. package/dist-assets/examples/sdd-cycle/05-pr-breakdown.md +9 -0
  175. package/dist-assets/examples/sdd-cycle/06-spec-implement.md +13 -0
  176. package/dist-assets/examples/sdd-cycle/07-validation-against-spec.md +13 -0
  177. package/dist-assets/examples/wordpress-theme/01-requirement.md +29 -0
  178. package/dist-assets/examples/wordpress-theme/02-functional-spec.md +22 -0
  179. package/dist-assets/examples/wordpress-theme/03-technical-plan.md +22 -0
  180. package/dist-assets/examples/wordpress-theme/04-pr-breakdown.md +14 -0
  181. package/dist-assets/examples/wordpress-theme/05-execution-handoff.md +17 -0
  182. package/dist-assets/examples/wordpress-theme/06-validation-report.md +16 -0
  183. package/dist-assets/examples/wordpress-theme/README.md +32 -0
  184. package/{harness → dist-assets/harness}/handoffs/HANDOFF.template.md +2 -2
  185. package/{harness → dist-assets/harness}/workflows/agent-evaluation-checklist.md +5 -5
  186. package/{harness → dist-assets/harness}/workflows/implement-review-validate.md +24 -0
  187. package/{harness → dist-assets/harness}/workflows/multi-agent-handoff.md +4 -4
  188. package/{harness → dist-assets/harness}/workflows/planner-executor-workflow.md +5 -5
  189. package/{harness → dist-assets/harness}/workflows/requirement-to-pr.md +1 -1
  190. package/dist-assets/runbooks/agent-delegation-workflow.md +50 -0
  191. package/dist-assets/runbooks/apply-starter-to-real-project.md +45 -0
  192. package/dist-assets/runbooks/commands-cheatsheet.md +44 -0
  193. package/dist-assets/runbooks/how-to-use-skills.md +44 -0
  194. package/dist-assets/runbooks/private-spec-publication-safety.md +35 -0
  195. package/{runbooks → dist-assets/runbooks}/spec-driven-development.md +3 -6
  196. package/dist-assets/runbooks/tutorial-walkthroughs.md +23 -0
  197. package/dist-assets/runbooks/use-linear-for-operational-planning.md +45 -0
  198. package/dist-assets/runbooks/use-napkin-project-memory.md +33 -0
  199. package/dist-assets/skills/architecture/SKILL.md +166 -0
  200. package/dist-assets/skills/backend-development/SKILL.md +166 -0
  201. package/dist-assets/skills/deployment/SKILL.md +166 -0
  202. package/dist-assets/skills/design-principles/SKILL.md +166 -0
  203. package/dist-assets/skills/documentation/SKILL.md +171 -0
  204. package/dist-assets/skills/frontend-development/SKILL.md +225 -0
  205. package/dist-assets/skills/full-stack-development/SKILL.md +166 -0
  206. package/dist-assets/skills/optimize-tokens/SKILL.md +166 -0
  207. package/dist-assets/skills/pr-workflow/SKILL.md +166 -0
  208. package/dist-assets/skills/product-discovery/SKILL.md +166 -0
  209. package/dist-assets/skills/product-planning/SKILL.md +166 -0
  210. package/dist-assets/skills/project-memory/SKILL.md +166 -0
  211. package/dist-assets/skills/prompt-engineer/SKILL.md +166 -0
  212. package/dist-assets/skills/qa-workflow/SKILL.md +186 -0
  213. package/dist-assets/skills/refactoring/SKILL.md +166 -0
  214. package/dist-assets/skills/release-workflow/SKILL.md +166 -0
  215. package/dist-assets/skills/spec-driven-development/SKILL.md +166 -0
  216. package/dist-assets/skills/technical-leadership/SKILL.md +166 -0
  217. package/dist-assets/skills/ui-ux-design/SKILL.md +202 -0
  218. package/dist-assets/templates/.geminiignore.template +8 -0
  219. package/dist-assets/templates/CLAUDE.md.template +20 -0
  220. package/dist-assets/templates/CODEX.md.template +20 -0
  221. package/dist-assets/templates/GEMINI.md.template +20 -0
  222. package/dist-assets/templates/HANDOFF.template.md +45 -0
  223. package/dist-assets/templates/SPEC.template.md +38 -0
  224. package/dist-assets/templates/change-proposal.template.md +14 -0
  225. package/dist-assets/templates/owner-evidence/astra-implementation.json +10 -0
  226. package/dist-assets/templates/owner-evidence/phoenix-remediation.json +8 -0
  227. package/dist-assets/templates/owner-evidence/sage-revalidation.json +8 -0
  228. package/dist-assets/templates/owner-evidence/sage-validation.json +8 -0
  229. package/dist-assets/templates/specs/deep.md +48 -0
  230. package/dist-assets/templates/specs/standard.md +38 -0
  231. package/dist-assets/templates/specs/tiny.md +19 -0
  232. package/package.json +43 -47
  233. package/src/adapters/index.js +3 -0
  234. package/src/adapters/platforms/claude.js +126 -0
  235. package/src/adapters/platforms/codex.js +100 -0
  236. package/src/adapters/platforms/gemini.js +232 -0
  237. package/src/cli.js +114 -0
  238. package/src/commands/collect-evidence.js +61 -0
  239. package/src/commands/doctor.js +186 -0
  240. package/src/commands/execute.js +172 -0
  241. package/{packages/ai-workflow/src → src}/commands/init.js +119 -20
  242. package/src/commands/run.js +112 -0
  243. package/src/core/completion-contract.js +35 -0
  244. package/src/core/execution-planner.js +59 -0
  245. package/src/core/gates/branch-gate.js +146 -0
  246. package/src/core/handoff/handoff-engine.js +104 -0
  247. package/src/core/healing/cli-remediation-executor.js +151 -0
  248. package/src/core/healing/healer-engine.js +179 -0
  249. package/src/core/identity.js +43 -0
  250. package/{packages/ai-workflow/src → src}/core/install-plan.js +3 -3
  251. package/src/core/opencode-merge.js +149 -0
  252. package/{packages/ai-workflow/src → src}/core/package-assets.js +29 -10
  253. package/src/core/request-classifier.js +58 -0
  254. package/src/core/runtime/opencode-adapter.js +94 -0
  255. package/src/core/sdd/validator.js +67 -0
  256. package/src/core/statuses.js +29 -0
  257. package/src/core/symlink-layout.js +93 -0
  258. package/src/core/templates.js +221 -0
  259. package/src/core/validation/canonical-finalization.js +43 -0
  260. package/src/core/validation/evidence-collector.js +109 -0
  261. package/src/core/validation/quality-guard.js +243 -0
  262. package/src/core/workflow-profiles.js +107 -0
  263. package/src/core/workflow-state-machine.js +46 -0
  264. package/.agents/napkin.md +0 -89
  265. package/.agents/skills/backend-implementer/SKILL.md +0 -490
  266. package/.agents/skills/build-and-validate/SKILL.md +0 -442
  267. package/.agents/skills/deploy-engineer/SKILL.md +0 -541
  268. package/.agents/skills/docs-writer/SKILL.md +0 -430
  269. package/.agents/skills/frontend-implementer/SKILL.md +0 -488
  270. package/.agents/skills/interface-design/SKILL.md +0 -428
  271. package/.agents/skills/interface-design/references/critique.md +0 -67
  272. package/.agents/skills/interface-design/references/example.md +0 -86
  273. package/.agents/skills/interface-design/references/principles.md +0 -235
  274. package/.agents/skills/interface-design/references/validation.md +0 -48
  275. package/.agents/skills/minimal-context/SKILL.md +0 -177
  276. package/.agents/skills/napkin/SKILL.md +0 -84
  277. package/.agents/skills/opencode-agent-design/SKILL.md +0 -77
  278. package/.agents/skills/playwright-cli/SKILL.md +0 -62
  279. package/.agents/skills/pr-orchestrator/SKILL.md +0 -366
  280. package/.agents/skills/product-manager/SKILL.md +0 -519
  281. package/.agents/skills/seo-audit/SKILL.md +0 -176
  282. package/.agents/skills/stack-variant-creator/SKILL.md +0 -265
  283. package/.agents/skills/tech-lead/SKILL.md +0 -453
  284. package/.agents/skills/tester/SKILL.md +0 -399
  285. package/.agents/skills/token-economy/SKILL.md +0 -137
  286. package/.agents/skills/vue-nuxt/SKILL.md +0 -102
  287. package/.agents/skills/wordpress-engineer/SKILL.md +0 -75
  288. package/.codex/prompts/README.md +0 -44
  289. package/.codex/prompts/autopilot.md +0 -50
  290. package/.codex/prompts/deploy.md +0 -33
  291. package/.codex/prompts/execute-selected-pr.md +0 -35
  292. package/.codex/prompts/fix-issue.md +0 -34
  293. package/.codex/prompts/minimal-context-mode.md +0 -55
  294. package/.codex/prompts/orchestrate-next.md +0 -33
  295. package/.codex/prompts/plan-from-requirement.md +0 -37
  296. package/.codex/prompts/review-implementation.md +0 -33
  297. package/.codex/prompts/roadmap-audit.md +0 -22
  298. package/.codex/prompts/specs/create-spec-from-requirement.md +0 -26
  299. package/.codex/prompts/specs/review-spec.md +0 -29
  300. package/.codex/prompts/specs/spec-to-pr-breakdown.md +0 -23
  301. package/.codex/prompts/specs/spec-to-technical-plan.md +0 -28
  302. package/.codex/prompts/start-project.md +0 -29
  303. package/.codex/prompts/token-economy-mode.md +0 -48
  304. package/.codex/prompts/validate-work.md +0 -28
  305. package/checklists/change-spec-readiness-checklist.md +0 -34
  306. package/docs/full-documentation.md +0 -661
  307. package/docs/setup-codex-opencode.md +0 -313
  308. package/harness/README.md +0 -106
  309. package/opencode/README.md +0 -84
  310. package/opencode/agents/README.md +0 -113
  311. package/opencode/agents/atlas.md +0 -127
  312. package/opencode/agents/discovery.md +0 -61
  313. package/opencode/agents/fixer.md +0 -51
  314. package/opencode/agents/implementer.md +0 -61
  315. package/opencode/agents/orchestrator.md +0 -145
  316. package/opencode/agents/planner.md +0 -60
  317. package/opencode/agents/prompt-engineer.md +0 -50
  318. package/opencode/agents/release-manager.md +0 -50
  319. package/opencode/agents/reviewer.md +0 -51
  320. package/opencode/agents/spec-engineer.md +0 -85
  321. package/opencode/agents/validator.md +0 -50
  322. package/opencode/agents/wordpress-engineer.md +0 -49
  323. package/opencode/commands/README.md +0 -48
  324. package/opencode/commands/autopilot.md +0 -50
  325. package/opencode/commands/deploy.md +0 -35
  326. package/opencode/commands/execute.md +0 -47
  327. package/opencode/commands/orchestrate.md +0 -37
  328. package/opencode/commands/plan.md +0 -39
  329. package/opencode/commands/review.md +0 -33
  330. package/opencode/commands/roadmap-audit.md +0 -30
  331. package/opencode/commands/ship.md +0 -48
  332. package/opencode/commands/specs/create-spec-from-request.md +0 -27
  333. package/opencode/commands/specs/create-spec-from-requirement.md +0 -25
  334. package/opencode/commands/specs/review-spec.md +0 -26
  335. package/opencode/commands/specs/spec-to-pr-breakdown.md +0 -19
  336. package/opencode/commands/specs/spec-to-tasks.md +0 -26
  337. package/opencode/commands/specs/spec-to-technical-plan.md +0 -27
  338. package/opencode/commands/start.md +0 -45
  339. package/opencode/commands/token-economy.md +0 -29
  340. package/opencode/commands/validate.md +0 -33
  341. package/opencode.jsonc +0 -235
  342. package/packages/ai-workflow/README.md +0 -82
  343. package/packages/ai-workflow/src/cli.js +0 -70
  344. package/packages/ai-workflow/src/commands/codex.js +0 -37
  345. package/packages/ai-workflow/src/commands/doctor.js +0 -168
  346. package/packages/ai-workflow/src/commands/guide.js +0 -194
  347. package/packages/ai-workflow/src/core/opencode-merge.js +0 -172
  348. package/packages/ai-workflow/src/core/symlink-layout.js +0 -54
  349. package/packages/ai-workflow/src/core/templates.js +0 -276
  350. package/runbooks/agent-delegation-workflow.md +0 -111
  351. package/runbooks/apply-starter-to-real-project.md +0 -445
  352. package/runbooks/commands-cheatsheet.md +0 -71
  353. package/runbooks/how-to-use-skills.md +0 -713
  354. package/runbooks/quick-start-guide.md +0 -213
  355. package/runbooks/tutorial-walkthroughs.md +0 -416
  356. package/runbooks/use-linear-for-operational-planning.md +0 -185
  357. package/runbooks/use-napkin-project-memory.md +0 -77
  358. package/templates/AGENTS.template.md +0 -397
  359. package/templates/DESIGN.template.md +0 -484
  360. package/templates/PR-PLAN.template.md +0 -172
  361. package/templates/README.template.md +0 -293
  362. package/templates/REQUIREMENT.template.md +0 -165
  363. package/templates/SPEC.template.md +0 -397
  364. package/templates/TECH-PLAN.template.md +0 -244
  365. package/templates/change-proposal.template.md +0 -97
  366. /package/{checklists/spec-readiness-checklist.md → dist-assets/docs/policies/SPEC_READINESS.md} +0 -0
  367. /package/{prompts → dist-assets/prompts}/00-bootstrap-project.md +0 -0
  368. /package/{prompts → dist-assets/prompts}/01-create-requirement.md +0 -0
  369. /package/{prompts → dist-assets/prompts}/02-create-spec.md +0 -0
  370. /package/{prompts → dist-assets/prompts}/03-create-tech-plan.md +0 -0
  371. /package/{prompts → dist-assets/prompts}/04-breakdown-prs.md +0 -0
  372. /package/{prompts → dist-assets/prompts}/05-implement-pr.md +0 -0
  373. /package/{prompts → dist-assets/prompts}/06-review-and-fix.md +0 -0
  374. /package/{prompts → dist-assets/prompts}/07-apply-design.md +0 -0
  375. /package/{prompts → dist-assets/prompts}/08-validate.md +0 -0
  376. /package/{prompts → dist-assets/prompts}/09-deploy.md +0 -0
  377. /package/{prompts → dist-assets/prompts}/commands/implement.md +0 -0
  378. /package/{prompts → dist-assets/prompts}/commands/requirement.md +0 -0
  379. /package/{prompts → dist-assets/prompts}/commands/spec.md +0 -0
  380. /package/{prompts → dist-assets/prompts}/commands/tech-plan.md +0 -0
  381. /package/{prompts → dist-assets/prompts}/commands/validate.md +0 -0
  382. /package/{runbooks → dist-assets/runbooks}/branch-cleanup.md +0 -0
  383. /package/{runbooks → dist-assets/runbooks}/deploy-checklist.md +0 -0
  384. /package/{runbooks → dist-assets/runbooks}/publication-readiness-checklist.md +0 -0
  385. /package/{runbooks → dist-assets/runbooks}/publish-package-checklist.md +0 -0
  386. /package/{runbooks → dist-assets/runbooks}/team-governance-pr-readiness.md +0 -0
  387. /package/{runbooks → dist-assets/runbooks}/validate-starter-in-real-project.md +0 -0
  388. /package/{runbooks → dist-assets/runbooks}/validation-checklist.md +0 -0
  389. /package/{schemas → dist-assets/schemas}/README.md +0 -0
  390. /package/{schemas → dist-assets/schemas}/functional-spec.schema.json +0 -0
  391. /package/{schemas → dist-assets/schemas}/handoff.schema.json +0 -0
  392. /package/{schemas → dist-assets/schemas}/pr-breakdown.schema.json +0 -0
  393. /package/{schemas → dist-assets/schemas}/requirement.schema.json +0 -0
  394. /package/{schemas → dist-assets/schemas}/technical-plan.schema.json +0 -0
  395. /package/{schemas → dist-assets/schemas}/validation-report.schema.json +0 -0
  396. /package/{packages/ai-workflow/src → src}/core/backup.js +0 -0
  397. /package/{packages/ai-workflow/src → src}/core/filesystem.js +0 -0
@@ -1,399 +0,0 @@
1
- ---
2
- name: tester
3
- description: Use when designing, reviewing, or improving tests, acceptance criteria, regression coverage, edge cases, and validation evidence.
4
- ---
5
-
6
- > Token economy active: keep output compact, context minimal. Reference: `token-economy` + `minimal-context` skills.
7
-
8
- # Tester Skill
9
-
10
- ## Purpose
11
-
12
- Use this skill when Codex needs to validate a change before it is approved, merged, or used as a reference for the next step.
13
-
14
- The tester role is responsible for checking whether the work is correct, safe, testable, and aligned with the expected behavior.
15
-
16
- This skill does not focus on implementation. It focuses on verification, regression risk, edge cases, evidence, and approval criteria.
17
-
18
- ## When to use this skill
19
-
20
- Use this skill when the task involves:
21
-
22
- - reviewing an implementation;
23
- - validating a pull request;
24
- - checking if a requirement was correctly implemented;
25
- - verifying acceptance criteria;
26
- - testing a bug fix;
27
- - reviewing changes before deployment;
28
- - checking if generated code introduced regressions;
29
- - validating documentation, prompts, templates, or runbooks;
30
- - deciding whether a task is ready to move to the next step.
31
-
32
- ## Core responsibilities
33
-
34
- When acting as tester, Codex must:
35
-
36
- 1. understand the expected behavior;
37
- 2. identify the scope of the change;
38
- 3. compare the result against the requirement, spec, or plan;
39
- 4. check acceptance criteria;
40
- 5. look for regressions;
41
- 6. identify edge cases;
42
- 7. verify error states and empty states when relevant;
43
- 8. check accessibility, security, performance, and maintainability risks when relevant;
44
- 9. confirm which validations were actually performed;
45
- 10. separate confirmed issues from hypotheses;
46
- 11. provide a clear approval or rejection recommendation.
47
-
48
- ## Branch safety gate (mandatory if fixes are applied)
49
-
50
- Tester is primarily review/validation. If a validation task includes direct fixes:
51
-
52
- 1. run `git status -sb`;
53
- 2. if current branch is `main`, create/switch to a scoped branch before writing:
54
-
55
- ```bash
56
- git switch -c fix/<short-task-slug>
57
- ```
58
-
59
- Do not apply fixes directly on `main`.
60
-
61
- ## Validation mindset
62
-
63
- Act as a skeptical reviewer.
64
-
65
- Do not assume that a change is correct because it looks reasonable.
66
-
67
- Validate based on evidence.
68
-
69
- Prefer small, specific findings over vague comments.
70
-
71
- A good tester response should answer:
72
-
73
- - What was tested?
74
- - What was not tested?
75
- - What passed?
76
- - What failed?
77
- - What is risky?
78
- - What evidence supports the conclusion?
79
- - Can this move forward?
80
-
81
- ## Severity model
82
-
83
- Classify findings using the following severity levels.
84
-
85
- ### High
86
-
87
- Use `High` when the issue can cause:
88
-
89
- - broken core functionality;
90
- - data loss;
91
- - security vulnerability;
92
- - deployment failure;
93
- - severe regression;
94
- - inaccessible critical flow;
95
- - incorrect business behavior;
96
- - failing required tests.
97
-
98
- ### Medium
99
-
100
- Use `Medium` when the issue can cause:
101
-
102
- - incorrect behavior in secondary flows;
103
- - maintainability problems;
104
- - unclear implementation;
105
- - incomplete validation;
106
- - weak error handling;
107
- - fragile assumptions;
108
- - partial mismatch with requirements.
109
-
110
- ### Low
111
-
112
- Use `Low` when the issue is mostly related to:
113
-
114
- - minor readability problems;
115
- - naming improvements;
116
- - small documentation gaps;
117
- - non-blocking cleanup;
118
- - small consistency issues.
119
-
120
- ## Evidence rules
121
-
122
- Every finding must be classified as one of the following:
123
-
124
- ### Confirmed issue
125
-
126
- Use this when there is direct evidence.
127
-
128
- Examples:
129
-
130
- - a failing test;
131
- - an error message;
132
- - a broken command;
133
- - a missing file;
134
- - a mismatch with an explicit requirement;
135
- - a visible behavior that contradicts the expected result.
136
-
137
- ### Hypothesis
138
-
139
- Use this when the issue is plausible but not yet proven.
140
-
141
- A hypothesis must include a validation step.
142
-
143
- Example:
144
-
145
- ```md
146
- Severity: Medium
147
- Type: Hypothesis
148
- Finding: The change may break empty-state rendering because no empty dataset test is present.
149
- How to validate: Add or run a test with an empty dataset and verify the expected empty-state UI.
150
- ```
151
-
152
- ### Observation
153
-
154
- Use this for neutral notes that may help reviewers but do not represent a defect.
155
-
156
- Example:
157
-
158
- ```md
159
- Type: Observation
160
- Finding: The change follows the existing folder structure.
161
- ```
162
-
163
- ## Validation checklist
164
-
165
- Use the checklist proportionally to the risk and scope of the change.
166
-
167
- ### Requirement validation
168
-
169
- - Is the expected behavior clearly defined?
170
- - Are the acceptance criteria present?
171
- - Does the result match the requirement?
172
- - Are there unresolved ambiguities?
173
- - Are assumptions explicitly stated?
174
-
175
- ### Functional validation
176
-
177
- - Does the main happy path work?
178
- - Are relevant alternative paths covered?
179
- - Are empty states handled?
180
- - Are loading states handled?
181
- - Are error states handled?
182
- - Are boundary values handled?
183
- - Are invalid inputs handled when relevant?
184
-
185
- ### Regression validation
186
-
187
- - Could this change affect existing behavior?
188
- - Were related flows checked?
189
- - Were existing tests run?
190
- - Were snapshots, generated files, or build outputs changed unexpectedly?
191
- - Are unrelated files modified?
192
-
193
- ### Test validation
194
-
195
- - Are there automated tests?
196
- - Do the tests match the requirement?
197
- - Do the tests cover the critical behavior?
198
- - Are the tests deterministic?
199
- - Are the tests too coupled to implementation details?
200
- - Were the required commands executed?
201
- - Is there evidence of passing or failing results?
202
-
203
- ### Documentation validation
204
-
205
- Use this section when validating documentation, prompts, templates, or runbooks.
206
-
207
- - Is the document clear and actionable?
208
- - Is the structure consistent?
209
- - Are code blocks correctly opened and closed?
210
- - Are examples accurate?
211
- - Are instructions specific enough?
212
- - Is there duplicated or conflicting guidance?
213
- - Is the document too generic?
214
- - Is the document too long for its purpose?
215
-
216
- ### Accessibility validation
217
-
218
- Use this section when the change affects UI.
219
-
220
- - Can the flow be used with keyboard navigation?
221
- - Are labels associated with controls?
222
- - Are buttons and links correctly identified?
223
- - Is focus behavior reasonable?
224
- - Are modal dialogs accessible?
225
- - Is color alone used to communicate important information?
226
- - Are loading and error states understandable?
227
-
228
- ### Security validation
229
-
230
- Use this section when the change affects authentication, authorization, user input, secrets, APIs, files, or deployment.
231
-
232
- - Are secrets exposed?
233
- - Is user input validated or safely handled?
234
- - Are authorization rules preserved?
235
- - Are tokens or credentials stored safely?
236
- - Are dangerous operations protected?
237
- - Are errors leaking sensitive information?
238
-
239
- ### Performance validation
240
-
241
- Use this section when the change affects rendering, data loading, API calls, loops, assets, or build output.
242
-
243
- - Does the change add unnecessary network requests?
244
- - Does it introduce expensive loops or repeated computation?
245
- - Does it increase bundle size unnecessarily?
246
- - Does it block rendering?
247
- - Does it cause avoidable re-renders?
248
- - Does it affect caching?
249
-
250
- ### Maintainability validation
251
-
252
- - Does the change follow the existing project pattern?
253
- - Is the solution simpler than the problem?
254
- - Are responsibilities separated?
255
- - Are names clear?
256
- - Is the code or documentation easy to change later?
257
- - Is there unnecessary abstraction?
258
- - Is there duplicated logic?
259
-
260
- ## Output format
261
-
262
- When using this skill, Codex should respond using this structure:
263
-
264
- ```md
265
- # Tester Review
266
-
267
- ## Summary
268
-
269
- Short conclusion about whether the change is ready or not.
270
-
271
- ## Scope validated
272
-
273
- - Files or areas reviewed.
274
- - Requirement, spec, prompt, or plan used as reference.
275
-
276
- ## Result
277
-
278
- Status: Approved | Approved with notes | Changes requested | Blocked
279
-
280
- ## Findings
281
-
282
- ### Finding 1
283
-
284
- Severity: High | Medium | Low
285
- Type: Confirmed issue | Hypothesis | Observation
286
-
287
- Description:
288
- Explain the issue clearly.
289
-
290
- Evidence:
291
- Show the evidence, command result, file path, requirement mismatch, or behavior observed.
292
-
293
- Impact:
294
- Explain why it matters.
295
-
296
- Recommendation:
297
- Explain the smallest safe correction.
298
-
299
- How to validate:
300
- Explain the validation step after the fix.
301
-
302
- ## Tests and checks
303
-
304
- ### Executed
305
-
306
- - Command or manual check performed.
307
- - Result.
308
-
309
- ### Not executed
310
-
311
- - Check not performed.
312
- - Reason.
313
-
314
- ## Regression risks
315
-
316
- - List possible regressions.
317
- - Include what should be checked before approval.
318
-
319
- ## Final recommendation
320
-
321
- Approve, approve with notes, request changes, or block.
322
- ```
323
-
324
- ## Approval criteria
325
-
326
- A change can be approved when:
327
-
328
- - the expected behavior is clear;
329
- - critical acceptance criteria are satisfied;
330
- - no high-severity confirmed issue remains;
331
- - relevant tests or validations were executed;
332
- - untested areas are explicitly listed;
333
- - regression risk is acceptable;
334
- - the final recommendation is clear.
335
-
336
- Use `Approved with notes` when the change is acceptable but still has minor risks, documentation gaps, or low-severity issues.
337
-
338
- Use `Changes requested` when there are medium or high issues that should be fixed before moving forward.
339
-
340
- Use `Blocked` when validation cannot continue because required information, files, environment, or commands are missing.
341
-
342
- ## Boundaries
343
-
344
- When acting as tester, Codex must not:
345
-
346
- - implement fixes unless explicitly asked;
347
- - rewrite large parts of the solution without approval;
348
- - approve changes without evidence;
349
- - ignore failing tests;
350
- - treat hypotheses as confirmed issues;
351
- - invent test results;
352
- - hide untested areas;
353
- - expand the task scope unnecessarily;
354
- - request heavy validation for trivial low-risk changes.
355
-
356
- ## Proportional validation rule
357
-
358
- Validation must be proportional to the risk of the change.
359
-
360
- For small documentation changes, check clarity, formatting, consistency, and broken Markdown.
361
-
362
- For small UI changes, check the affected flow, visual regressions, accessibility basics, and relevant states.
363
-
364
- For business-critical changes, check requirements, edge cases, automated tests, regression risks, security, and deployment impact.
365
-
366
- For deployment-related changes, check build commands, environment assumptions, rollback strategy, and operational risk.
367
-
368
- ## Default final recommendation rules
369
-
370
- Use the following defaults:
371
-
372
- - If there is one or more confirmed `High` issue: `Blocked` or `Changes requested`.
373
- - If there are confirmed `Medium` issues: `Changes requested`.
374
- - If there are only `Low` issues: `Approved with notes`.
375
- - If there are only hypotheses and they are not critical: `Approved with notes` or `Changes requested`, depending on risk.
376
- - If there is not enough information to validate: `Blocked`.
377
- - If all relevant checks pass: `Approved`.
378
-
379
- ## Good tester behavior
380
-
381
- A good tester is:
382
-
383
- - specific;
384
- - evidence-based;
385
- - skeptical;
386
- - proportional;
387
- - clear about uncertainty;
388
- - focused on regression prevention;
389
- - strict with critical flows;
390
- - practical with low-risk changes.
391
-
392
- The goal is not to find problems for its own sake.
393
-
394
- The goal is to protect the workflow from unsafe, unclear, or unvalidated changes.
395
-
396
- ## Stop conditions
397
-
398
- - Stop when the review is complete and the final recommendation is clear.
399
- - Stop and report `Blocked` if required context, files, or validation evidence is missing.
@@ -1,137 +0,0 @@
1
- ---
2
- name: token-economy
3
- description: Use when outputs must stay compact while preserving technical accuracy, evidence, severity, validation commands, and acceptance criteria.
4
- ---
5
-
6
- # Token Economy Skill
7
-
8
- ## Purpose
9
-
10
- Reduce response verbosity for coding workflows without removing critical context, validation evidence, or safety constraints.
11
-
12
- ## Use when
13
-
14
- - Output is too long for routine implementation, audits, handoffs, or fixes.
15
- - Team needs consistent compact response contracts.
16
- - Repeated explanations create token waste.
17
- - User explicitly requests compact, terse, audit, or handoff mode.
18
-
19
- ## Modes
20
-
21
- ### `compact`
22
-
23
- - Short, clear bullets.
24
- - Keep decisions, assumptions, changed files, validation commands, and risks.
25
-
26
- ### `terse`
27
-
28
- - Facts and actions only.
29
- - No narrative or teaching text.
30
- - Keep exact command names, file paths, and statuses.
31
-
32
- ### `audit`
33
-
34
- - Tables only.
35
- - Every finding must include evidence (file, line, command output, or diff reference).
36
- - Include severity (`High`/`Medium`/`Low`).
37
-
38
- ### `handoff`
39
-
40
- - Fixed sections only:
41
- - Summary
42
- - Changed files
43
- - Validations
44
- - Risks
45
- - Next action
46
-
47
- ## Input vs Output distinction
48
-
49
- `token-economy` reduces OUTPUT tokens (what the model sends back).
50
- `minimal-context` reduces INPUT tokens (what is sent to the model).
51
-
52
- Use both together for full token savings.
53
-
54
- | Token type | What it is | How to reduce |
55
- |---|---|---|
56
- | **Input** | Files, history, context sent TO the model | `minimal-context` skill |
57
- | **Output** | Model response verbosity | `token-economy` skill |
58
-
59
- ## Core responsibilities
60
-
61
- 1. Select correct mode for task and risk.
62
- 2. Preserve technical correctness and no-regression rules.
63
- 3. Keep evidence explicit (commands, outputs, files, lines when available).
64
- 4. Keep acceptance criteria visible.
65
- 5. Keep outputs short but executable by next owner.
66
-
67
- ## Constraints
68
-
69
- - Do not remove critical context needed for safe execution.
70
- - Do not hide assumptions.
71
- - Do not omit validation commands or validation status.
72
- - Do not use vague phrases like "improve code", "some changes", or "various fixes".
73
- - Do not run broad repository scans unless explicitly requested (use `minimal-context` skill for input discipline).
74
- - Do not claim success without evidence.
75
-
76
- ## Output contracts
77
-
78
- ### Implementation
79
-
80
- - Scope
81
- - Files changed
82
- - Validation commands + results
83
- - Risks
84
- - Acceptance status
85
-
86
- ### Audit
87
-
88
- - Findings table (severity, evidence, impact, fix)
89
- - Validation gaps
90
- - Final recommendation
91
-
92
- ### Bugfix
93
-
94
- - Root cause
95
- - Fix applied
96
- - Files changed
97
- - Validation commands + results
98
- - Regression risks
99
-
100
- ### Handoff
101
-
102
- - Summary
103
- - Changed files
104
- - Validations
105
- - Risks
106
- - Next action
107
-
108
- ## Validation
109
-
110
- - Confirm mode was applied.
111
- - Confirm output kept evidence and acceptance criteria.
112
- - Confirm no required safety/validation detail was removed.
113
-
114
- ## Severity model
115
-
116
- ### High
117
-
118
- - Missing validation commands or validation status.
119
- - Missing evidence for blocking findings.
120
- - Compaction removed safety-critical context.
121
-
122
- ### Medium
123
-
124
- - Assumptions not explicit.
125
- - Output contract sections incomplete.
126
- - Important risk or acceptance detail missing.
127
-
128
- ### Low
129
-
130
- - Minor wording noise.
131
- - Redundant bullet that does not affect execution.
132
- - Formatting inconsistency in compact output.
133
-
134
- ## Stop conditions
135
-
136
- - Stop when output is compact and still operationally complete.
137
- - Stop and report `Blocked` if compacting would remove required safety, evidence, or acceptance details.
@@ -1,102 +0,0 @@
1
- ---
2
- name: vue-nuxt
3
- description: Use when structuring Vue, Nuxt, or Quasar frontend code — architecture decisions, dashboard workflows, CRUD patterns, stores, composables, services, and TypeScript contracts.
4
- ---
5
-
6
- > Token economy active: keep output compact, context minimal. Reference: `token-economy` + `minimal-context` skills.
7
-
8
- # vue-nuxt Skill
9
-
10
- ## Purpose
11
-
12
- Guide scoped Vue and Nuxt frontend work while preserving shell consistency, route protection, CRUD patterns, clean architecture boundaries, and validation evidence.
13
-
14
- ## Use when
15
-
16
- - Working on Nuxt 4, Vue 3, TypeScript, Nuxt UI, or Tailwind CSS projects.
17
- - Implementing authenticated dashboard shells, CRUD pages, or DummyJSON-backed screens.
18
- - Adding loading, empty, error, pagination, search, or form states.
19
- - Deciding where business rules, API access, stores, composables, services, repositories, adapters, or domain models belong.
20
- - Reviewing Clean Architecture, DDD, or Hexagonal Architecture boundaries in frontend code.
21
- - Planning or implementing small PRs for Vue/Nuxt features.
22
-
23
- ## Guidance
24
-
25
- - Keep each PR small and focused on one workflow.
26
- - Preserve the existing shell, navigation, layout density, and interaction patterns.
27
- - Protect authenticated routes and avoid leaking data into public routes.
28
- - Keep CRUD patterns consistent across resources.
29
- - Pages should orchestrate data, state, and layout; extract repeated behavior when duplication becomes meaningful.
30
- - Prefer existing Nuxt UI and Tailwind patterns before adding new styling conventions.
31
- - Avoid overengineering simple screens.
32
- - Keep domain boundaries clear and named after project concepts, not framework mechanics alone.
33
- - Stores should coordinate shared state; they should not become service or repository dumps.
34
- - Composables should expose reusable UI or workflow behavior, not hide broad infrastructure coupling.
35
- - Repositories and adapters should isolate external API or persistence details.
36
- - Introduce layers incrementally through small PRs with clear payoff.
37
- - Preserve no-regression expectations for existing routes, auth flow, loading, empty, and error states.
38
-
39
- ## Core responsibilities
40
-
41
- 1. Keep PRs small and scoped to one workflow.
42
- 2. Preserve shell, navigation, layout, and interaction patterns.
43
- 3. Protect authenticated routes and verify route protection for touched areas.
44
- 4. Keep CRUD patterns consistent across resources.
45
- 5. Decide where business rules, API access, stores, composables, services, repositories, adapters, or domain models belong.
46
- 6. Review Clean Architecture, DDD, or Hexagonal Architecture boundaries.
47
- 7. Plan TypeScript contracts between UI, domain, and infrastructure layers.
48
- 8. Handle loading, empty, error, and success states for touched resources.
49
- 9. Keep architecture proportional to project complexity.
50
- 10. Validate with small PRs that preserve existing behavior.
51
-
52
- ## Constraints
53
-
54
- - Do not expand one CRUD PR into a full dashboard refactor.
55
- - Do not create page-specific shell variants without a product reason.
56
- - Do not skip empty or error states for touched resources.
57
- - Do not treat DummyJSON behavior as production API behavior.
58
- - Do not claim route protection is valid without checking protected and public routes.
59
- - Do not add new styling conventions when Nuxt UI or Tailwind patterns exist.
60
- - Do not add architecture layers before complexity requires them.
61
- - Do not put API calls, mapping, validation, and UI state all in a page.
62
- - Do not let stores become global service locators.
63
- - Do not create domain models that only mirror API JSON without adding clarity.
64
- - Do not move files without validating route and import behavior.
65
- - Do not invent architecture when existing patterns are sufficient.
66
-
67
- ## Expected output
68
-
69
- - PR summary with scoped changes, CRUD states validated, and auth validation evidence.
70
- - Implementation notes for where business logic and data access belong.
71
- - List of changed files and boundary decisions.
72
- - List of untested browser or API behavior explicitly documented.
73
- - Validation evidence from lint, typecheck, and build commands.
74
- - Final status: `Approved`, `Approved with notes`, `Changes requested`, or `Blocked`.
75
-
76
- ## Validation
77
-
78
- - Run the repository's lint, typecheck, test, and build commands when available.
79
- - Validate login/logout and route protection when auth changes.
80
- - Validate CRUD create, read, update, delete, loading, empty, and error states for the touched resource.
81
- - Check imports to confirm architecture boundaries are respected.
82
- - Capture any untested browser or API behavior explicitly.
83
- - Document trade-offs and any boundary that remains intentionally pragmatic.
84
-
85
- ## Common mistakes
86
-
87
- - Expanding one CRUD PR into a full dashboard refactor.
88
- - Creating page-specific shell variants without a product reason.
89
- - Skipping empty or error states.
90
- - Treating DummyJSON behavior as production API behavior without noting the assumption.
91
- - Claiming route protection is valid without checking protected and public routes.
92
- - Adding architecture layers before complexity requires them.
93
- - Putting API calls, mapping, validation, and UI state all in a page.
94
- - Letting stores become global service locators.
95
- - Creating domain models that only mirror API JSON without adding clarity.
96
- - Moving files without validating route and import behavior.
97
-
98
- ## Stop conditions
99
-
100
- - Stop when the PR is small, scoped, and all affected UI states are validated.
101
- - Stop when architecture boundaries are clear and implementation is scoped.
102
- - Stop and report `Blocked` if required project structure, dashboard patterns, or validation commands are missing.
@@ -1,75 +0,0 @@
1
- ---
2
- name: wordpress-engineer
3
- description: Use when working on WordPress, WooCommerce, ACF, custom themes or plugins, shortcodes, hooks, templates, and PHP 7-compatible code.
4
- ---
5
-
6
- > Token economy active: keep output compact, context minimal. Reference: `token-economy` + `minimal-context` skills.
7
-
8
- # WordPress Engineer Skill
9
-
10
- ## Purpose
11
-
12
- Guide WordPress engineering with PHP 7 compatibility, platform APIs, security basics, and minimal regression risk.
13
-
14
- ## Use when
15
-
16
- - Working on WordPress themes, plugins, hooks, filters, shortcodes, widgets, templates, ACF, or WooCommerce.
17
- - Reviewing PHP 7-compatible WordPress code.
18
- - Handling forms, admin actions, AJAX, REST endpoints, queries, or template output.
19
- - Deciding whether behavior belongs in a theme or plugin.
20
-
21
- ## Guidance
22
-
23
- - Preserve PHP 7 compatibility unless the project explicitly allows newer syntax.
24
- - Escape output with the appropriate WordPress escaping function.
25
- - Sanitize and validate input before use.
26
- - Use nonces for state-changing actions.
27
- - Check capabilities before privileged actions.
28
- - Prefer WordPress APIs over direct database access.
29
- - Use direct database access only with clear justification, prepared queries, and validation.
30
- - Keep plugin logic and theme presentation boundaries clear.
31
-
32
- ## Core responsibilities
33
-
34
- 1. Write PHP 7-compatible WordPress code (themes, plugins, hooks, filters, shortcodes, widgets, templates, ACF, WooCommerce).
35
- 2. Escape output with appropriate WordPress escaping functions.
36
- 3. Sanitize and validate input before use.
37
- 4. Use nonces for state-changing actions and check capabilities before privileged operations.
38
- 5. Prefer WordPress APIs over direct database access.
39
- 6. Validate touched templates, hooks, forms, shortcodes, or WooCommerce flows.
40
- 7. Document PHP version and WordPress assumptions explicitly.
41
-
42
- ## Constraints
43
-
44
- - Do not use PHP 8-only syntax in PHP 7 projects.
45
- - Do not echo unescaped values in templates.
46
- - Do not trust request data without sanitization.
47
- - Do not add state-changing actions without nonces.
48
- - Do not query the database directly when WordPress APIs are sufficient.
49
- - Do not mix plugin logic and theme presentation without clear boundaries.
50
- - Do not claim validation passed without evidence.
51
-
52
- ## Expected output
53
-
54
- - WordPress implementation notes with PHP version assumptions and security handling.
55
- - List of changed files and hook/filter/template impacts.
56
- - Validation evidence from PHP lint, tests, or manual checks.
57
- - Final status: `Approved`, `Approved with notes`, `Changes requested`, or `Blocked`.
58
-
59
- ## Validation
60
-
61
- - Run available PHP lint, unit, integration, or project validation commands.
62
- - Manually check affected templates, hooks, forms, shortcodes, or WooCommerce flows when automated coverage is absent.
63
- - Verify escaping, sanitization, nonce, and capability handling for touched surfaces.
64
- - State any WordPress or PHP version assumptions.
65
-
66
- ## Stop conditions
67
-
68
- - Stop when WordPress implementation is scoped, validated, and PHP 7 compatible.
69
- - Stop and report `Blocked` if required theme/plugin context, validation commands, or PHP version info is missing.
70
-
71
- - Using PHP 8-only syntax in PHP 7 projects.
72
- - Echoing unescaped values in templates.
73
- - Trusting request data without sanitization.
74
- - Adding state-changing actions without nonces.
75
- - Querying the database directly when WordPress APIs are sufficient.