@williambeto/ai-workflow 1.19.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/CHANGELOG.md +56 -837
  2. package/PUBLISH_MANIFEST.json +34 -0
  3. package/README.md +70 -149
  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/examples/README.md +10 -0
  76. package/dist-assets/examples/autopilot-cycle/00-CONTEXT.md +3 -0
  77. package/dist-assets/examples/autopilot-cycle/01-requirement.md +16 -0
  78. package/dist-assets/examples/autopilot-cycle/02-gate-a-check.md +23 -0
  79. package/dist-assets/examples/autopilot-cycle/03-orion-planning.md +20 -0
  80. package/dist-assets/examples/autopilot-cycle/04-astra-implementation.md +17 -0
  81. package/dist-assets/examples/autopilot-cycle/05-sage-validation.md +15 -0
  82. package/dist-assets/examples/autopilot-cycle/06-phoenix-healing.md +12 -0
  83. package/dist-assets/examples/autopilot-cycle/07-orchestration-report.md +18 -0
  84. package/dist-assets/examples/backend-api/00-CONTEXT.md +12 -0
  85. package/dist-assets/examples/backend-api/01-requirement.md +19 -0
  86. package/dist-assets/examples/backend-api/02-functional-spec.md +20 -0
  87. package/dist-assets/examples/backend-api/03-technical-plan.md +15 -0
  88. package/dist-assets/examples/backend-api/04-pr-breakdown.md +10 -0
  89. package/dist-assets/examples/backend-api/05-execution-handoff.md +13 -0
  90. package/dist-assets/examples/backend-api/06-validation-report.md +11 -0
  91. package/dist-assets/examples/backend-api/07-orchestration-report.md +7 -0
  92. package/dist-assets/examples/blocked-scenarios/00-CONTEXT.md +9 -0
  93. package/dist-assets/examples/blocked-scenarios/01-branch-gate-block.md +12 -0
  94. package/dist-assets/examples/blocked-scenarios/02-quality-gate-block.md +13 -0
  95. package/dist-assets/examples/blocked-scenarios/03-scope-creep-block.md +13 -0
  96. package/dist-assets/examples/blocked-scenarios/04-unblock-resolution.md +9 -0
  97. package/dist-assets/examples/blocked-scenarios/05-orchestration-decision-log.md +11 -0
  98. package/dist-assets/examples/bugfix-critical/00-CONTEXT.md +12 -0
  99. package/dist-assets/examples/bugfix-critical/01-bug-report.md +11 -0
  100. package/dist-assets/examples/bugfix-critical/02-diagnosis-hypothesis.md +11 -0
  101. package/dist-assets/examples/bugfix-critical/03-technical-plan.md +12 -0
  102. package/dist-assets/examples/bugfix-critical/04-implementation-handoff.md +8 -0
  103. package/dist-assets/examples/bugfix-critical/05-validation-report.md +10 -0
  104. package/dist-assets/examples/bugfix-critical/06-orchestration-report.md +7 -0
  105. package/dist-assets/examples/cli-package/00-CONTEXT.md +9 -0
  106. package/dist-assets/examples/cli-package/01-requirement.md +14 -0
  107. package/dist-assets/examples/cli-package/02-technical-spec.md +16 -0
  108. package/dist-assets/examples/cli-package/03-technical-plan.md +12 -0
  109. package/dist-assets/examples/cli-package/04-pr-breakdown.md +9 -0
  110. package/dist-assets/examples/cli-package/05-release-report.md +15 -0
  111. package/dist-assets/examples/docs-only-repo/01-requirement.md +31 -0
  112. package/dist-assets/examples/docs-only-repo/02-functional-spec.md +25 -0
  113. package/dist-assets/examples/docs-only-repo/03-technical-plan.md +21 -0
  114. package/dist-assets/examples/docs-only-repo/04-pr-breakdown.md +13 -0
  115. package/dist-assets/examples/docs-only-repo/05-execution-handoff.md +17 -0
  116. package/dist-assets/examples/docs-only-repo/06-validation-report.md +16 -0
  117. package/dist-assets/examples/docs-only-repo/README.md +26 -0
  118. package/dist-assets/examples/full-stack-checkout/00-CONTEXT.md +9 -0
  119. package/dist-assets/examples/full-stack-checkout/01-requirement.md +12 -0
  120. package/dist-assets/examples/full-stack-checkout/02-functional-spec.md +15 -0
  121. package/dist-assets/examples/full-stack-checkout/03-technical-plan.md +15 -0
  122. package/dist-assets/examples/full-stack-checkout/04-pr-breakdown.md +8 -0
  123. package/dist-assets/examples/full-stack-checkout/05-execution-handoff.md +14 -0
  124. package/dist-assets/examples/full-stack-checkout/06-validation-report.md +12 -0
  125. package/dist-assets/examples/healing-cycle/00-CONTEXT.md +15 -0
  126. package/dist-assets/examples/healing-cycle/01-broken-implementation.md +10 -0
  127. package/dist-assets/examples/healing-cycle/02-sage-fails.md +14 -0
  128. package/dist-assets/examples/healing-cycle/03-phoenix-diagnosis.md +17 -0
  129. package/dist-assets/examples/healing-cycle/04-phoenix-fix.md +18 -0
  130. package/dist-assets/examples/healing-cycle/05-sage-revalidation.md +12 -0
  131. package/dist-assets/examples/healing-cycle/06-orchestration-log.md +14 -0
  132. package/dist-assets/examples/infra-deploy/00-CONTEXT.md +9 -0
  133. package/dist-assets/examples/infra-deploy/01-operational-goal.md +12 -0
  134. package/dist-assets/examples/infra-deploy/02-architecture-specs.md +15 -0
  135. package/dist-assets/examples/infra-deploy/03-implementation-plan.md +14 -0
  136. package/dist-assets/examples/infra-deploy/04-step-breakdown.md +9 -0
  137. package/dist-assets/examples/infra-deploy/05-execution-handoff.md +13 -0
  138. package/dist-assets/examples/infra-deploy/06-operational-report.md +11 -0
  139. package/dist-assets/examples/multi-pr-release/00-CONTEXT.md +9 -0
  140. package/dist-assets/examples/multi-pr-release/01-requirement.md +13 -0
  141. package/dist-assets/examples/multi-pr-release/02-strategic-plan.md +13 -0
  142. package/dist-assets/examples/multi-pr-release/03-pr-breakdown.md +14 -0
  143. package/dist-assets/examples/multi-pr-release/04-release-plan.md +12 -0
  144. package/dist-assets/examples/multi-pr-release/05-orchestration-report.md +7 -0
  145. package/dist-assets/examples/nuxt-dashboard/01-requirement.md +81 -0
  146. package/dist-assets/examples/nuxt-dashboard/02-functional-spec.md +88 -0
  147. package/dist-assets/examples/nuxt-dashboard/03-technical-plan.md +76 -0
  148. package/dist-assets/examples/nuxt-dashboard/04-pr-breakdown.md +219 -0
  149. package/dist-assets/examples/nuxt-dashboard/05-execution-handoff.md +88 -0
  150. package/dist-assets/examples/nuxt-dashboard/06-validation-report.md +56 -0
  151. package/dist-assets/examples/nuxt-dashboard/07-orchestration-report.md +79 -0
  152. package/dist-assets/examples/nuxt-dashboard/README.md +52 -0
  153. package/dist-assets/examples/react-dashboard/01-requirement.md +84 -0
  154. package/dist-assets/examples/react-dashboard/02-functional-spec.md +88 -0
  155. package/dist-assets/examples/react-dashboard/03-technical-plan.md +76 -0
  156. package/dist-assets/examples/react-dashboard/04-pr-breakdown.md +218 -0
  157. package/dist-assets/examples/react-dashboard/05-execution-handoff.md +13 -0
  158. package/dist-assets/examples/react-dashboard/06-validation-report.md +12 -0
  159. package/dist-assets/examples/react-dashboard/07-orchestration-report.md +7 -0
  160. package/dist-assets/examples/react-dashboard/README.md +70 -0
  161. package/dist-assets/examples/refactoring-service/00-CONTEXT.md +9 -0
  162. package/dist-assets/examples/refactoring-service/01-debt-report.md +12 -0
  163. package/dist-assets/examples/refactoring-service/02-behavior-spec.md +11 -0
  164. package/dist-assets/examples/refactoring-service/03-technical-plan.md +13 -0
  165. package/dist-assets/examples/refactoring-service/04-pr-breakdown.md +9 -0
  166. package/dist-assets/examples/refactoring-service/05-execution-handoff.md +14 -0
  167. package/dist-assets/examples/refactoring-service/06-stability-report.md +12 -0
  168. package/dist-assets/examples/sdd-cycle/00-CONTEXT.md +12 -0
  169. package/dist-assets/examples/sdd-cycle/01-raw-request.md +13 -0
  170. package/dist-assets/examples/sdd-cycle/02-spec-creation.md +18 -0
  171. package/dist-assets/examples/sdd-cycle/03-spec-review.md +12 -0
  172. package/dist-assets/examples/sdd-cycle/04-technical-plan.md +16 -0
  173. package/dist-assets/examples/sdd-cycle/05-pr-breakdown.md +9 -0
  174. package/dist-assets/examples/sdd-cycle/06-spec-implement.md +13 -0
  175. package/dist-assets/examples/sdd-cycle/07-validation-against-spec.md +13 -0
  176. package/dist-assets/examples/wordpress-theme/01-requirement.md +29 -0
  177. package/dist-assets/examples/wordpress-theme/02-functional-spec.md +22 -0
  178. package/dist-assets/examples/wordpress-theme/03-technical-plan.md +22 -0
  179. package/dist-assets/examples/wordpress-theme/04-pr-breakdown.md +14 -0
  180. package/dist-assets/examples/wordpress-theme/05-execution-handoff.md +17 -0
  181. package/dist-assets/examples/wordpress-theme/06-validation-report.md +16 -0
  182. package/dist-assets/examples/wordpress-theme/README.md +32 -0
  183. package/{harness → dist-assets/harness}/handoffs/HANDOFF.template.md +2 -2
  184. package/{harness → dist-assets/harness}/workflows/agent-evaluation-checklist.md +5 -5
  185. package/{harness → dist-assets/harness}/workflows/implement-review-validate.md +24 -0
  186. package/{harness → dist-assets/harness}/workflows/multi-agent-handoff.md +4 -4
  187. package/{harness → dist-assets/harness}/workflows/planner-executor-workflow.md +5 -5
  188. package/{harness → dist-assets/harness}/workflows/requirement-to-pr.md +1 -1
  189. package/dist-assets/runbooks/agent-delegation-workflow.md +50 -0
  190. package/dist-assets/runbooks/apply-starter-to-real-project.md +45 -0
  191. package/dist-assets/runbooks/commands-cheatsheet.md +44 -0
  192. package/dist-assets/runbooks/how-to-use-skills.md +44 -0
  193. package/dist-assets/runbooks/private-spec-publication-safety.md +35 -0
  194. package/{runbooks → dist-assets/runbooks}/spec-driven-development.md +3 -6
  195. package/dist-assets/runbooks/tutorial-walkthroughs.md +23 -0
  196. package/dist-assets/runbooks/use-linear-for-operational-planning.md +45 -0
  197. package/dist-assets/runbooks/use-napkin-project-memory.md +33 -0
  198. package/dist-assets/skills/architecture/SKILL.md +166 -0
  199. package/dist-assets/skills/backend-development/SKILL.md +166 -0
  200. package/dist-assets/skills/deployment/SKILL.md +166 -0
  201. package/dist-assets/skills/design-principles/SKILL.md +166 -0
  202. package/dist-assets/skills/documentation/SKILL.md +171 -0
  203. package/dist-assets/skills/frontend-development/SKILL.md +225 -0
  204. package/dist-assets/skills/full-stack-development/SKILL.md +166 -0
  205. package/dist-assets/skills/optimize-tokens/SKILL.md +166 -0
  206. package/dist-assets/skills/pr-workflow/SKILL.md +166 -0
  207. package/dist-assets/skills/product-discovery/SKILL.md +166 -0
  208. package/dist-assets/skills/product-planning/SKILL.md +166 -0
  209. package/dist-assets/skills/project-memory/SKILL.md +166 -0
  210. package/dist-assets/skills/prompt-engineer/SKILL.md +166 -0
  211. package/dist-assets/skills/qa-workflow/SKILL.md +186 -0
  212. package/dist-assets/skills/refactoring/SKILL.md +166 -0
  213. package/dist-assets/skills/release-workflow/SKILL.md +166 -0
  214. package/dist-assets/skills/spec-driven-development/SKILL.md +166 -0
  215. package/dist-assets/skills/technical-leadership/SKILL.md +166 -0
  216. package/dist-assets/skills/ui-ux-design/SKILL.md +202 -0
  217. package/dist-assets/templates/.geminiignore.template +8 -0
  218. package/dist-assets/templates/CLAUDE.md.template +20 -0
  219. package/dist-assets/templates/CODEX.md.template +20 -0
  220. package/dist-assets/templates/GEMINI.md.template +20 -0
  221. package/dist-assets/templates/HANDOFF.template.md +45 -0
  222. package/dist-assets/templates/SPEC.template.md +38 -0
  223. package/dist-assets/templates/change-proposal.template.md +14 -0
  224. package/dist-assets/templates/owner-evidence/astra-implementation.json +10 -0
  225. package/dist-assets/templates/owner-evidence/phoenix-remediation.json +8 -0
  226. package/dist-assets/templates/owner-evidence/sage-revalidation.json +8 -0
  227. package/dist-assets/templates/owner-evidence/sage-validation.json +8 -0
  228. package/dist-assets/templates/specs/deep.md +48 -0
  229. package/dist-assets/templates/specs/standard.md +38 -0
  230. package/dist-assets/templates/specs/tiny.md +19 -0
  231. package/package.json +42 -47
  232. package/src/adapters/index.js +3 -0
  233. package/src/adapters/platforms/claude.js +126 -0
  234. package/src/adapters/platforms/codex.js +100 -0
  235. package/src/adapters/platforms/gemini.js +232 -0
  236. package/src/cli.js +96 -0
  237. package/src/commands/collect-evidence.js +61 -0
  238. package/src/commands/doctor.js +186 -0
  239. package/{packages/ai-workflow/src → src}/commands/init.js +119 -20
  240. package/src/commands/run.js +111 -0
  241. package/src/core/completion-contract.js +35 -0
  242. package/src/core/gates/branch-gate.js +113 -0
  243. package/src/core/handoff/handoff-engine.js +78 -0
  244. package/src/core/healing/cli-remediation-executor.js +151 -0
  245. package/src/core/healing/healer-engine.js +179 -0
  246. package/src/core/identity.js +43 -0
  247. package/{packages/ai-workflow/src → src}/core/install-plan.js +3 -3
  248. package/src/core/opencode-merge.js +149 -0
  249. package/{packages/ai-workflow/src → src}/core/package-assets.js +29 -10
  250. package/src/core/sdd/validator.js +67 -0
  251. package/src/core/statuses.js +29 -0
  252. package/src/core/symlink-layout.js +93 -0
  253. package/src/core/templates.js +218 -0
  254. package/src/core/validation/canonical-finalization.js +43 -0
  255. package/src/core/validation/evidence-collector.js +109 -0
  256. package/src/core/validation/quality-guard.js +243 -0
  257. package/src/core/workflow-profiles.js +107 -0
  258. package/.agents/napkin.md +0 -89
  259. package/.agents/skills/backend-implementer/SKILL.md +0 -490
  260. package/.agents/skills/build-and-validate/SKILL.md +0 -442
  261. package/.agents/skills/deploy-engineer/SKILL.md +0 -541
  262. package/.agents/skills/docs-writer/SKILL.md +0 -430
  263. package/.agents/skills/frontend-implementer/SKILL.md +0 -488
  264. package/.agents/skills/interface-design/SKILL.md +0 -428
  265. package/.agents/skills/interface-design/references/critique.md +0 -67
  266. package/.agents/skills/interface-design/references/example.md +0 -86
  267. package/.agents/skills/interface-design/references/principles.md +0 -235
  268. package/.agents/skills/interface-design/references/validation.md +0 -48
  269. package/.agents/skills/minimal-context/SKILL.md +0 -177
  270. package/.agents/skills/napkin/SKILL.md +0 -84
  271. package/.agents/skills/opencode-agent-design/SKILL.md +0 -77
  272. package/.agents/skills/playwright-cli/SKILL.md +0 -62
  273. package/.agents/skills/pr-orchestrator/SKILL.md +0 -366
  274. package/.agents/skills/product-manager/SKILL.md +0 -519
  275. package/.agents/skills/seo-audit/SKILL.md +0 -176
  276. package/.agents/skills/stack-variant-creator/SKILL.md +0 -265
  277. package/.agents/skills/tech-lead/SKILL.md +0 -453
  278. package/.agents/skills/tester/SKILL.md +0 -399
  279. package/.agents/skills/token-economy/SKILL.md +0 -137
  280. package/.agents/skills/vue-nuxt/SKILL.md +0 -102
  281. package/.agents/skills/wordpress-engineer/SKILL.md +0 -75
  282. package/.codex/prompts/README.md +0 -44
  283. package/.codex/prompts/autopilot.md +0 -50
  284. package/.codex/prompts/deploy.md +0 -33
  285. package/.codex/prompts/execute-selected-pr.md +0 -35
  286. package/.codex/prompts/fix-issue.md +0 -34
  287. package/.codex/prompts/minimal-context-mode.md +0 -55
  288. package/.codex/prompts/orchestrate-next.md +0 -33
  289. package/.codex/prompts/plan-from-requirement.md +0 -37
  290. package/.codex/prompts/review-implementation.md +0 -33
  291. package/.codex/prompts/roadmap-audit.md +0 -22
  292. package/.codex/prompts/specs/create-spec-from-requirement.md +0 -26
  293. package/.codex/prompts/specs/review-spec.md +0 -29
  294. package/.codex/prompts/specs/spec-to-pr-breakdown.md +0 -23
  295. package/.codex/prompts/specs/spec-to-technical-plan.md +0 -28
  296. package/.codex/prompts/start-project.md +0 -29
  297. package/.codex/prompts/token-economy-mode.md +0 -48
  298. package/.codex/prompts/validate-work.md +0 -28
  299. package/checklists/change-spec-readiness-checklist.md +0 -34
  300. package/docs/full-documentation.md +0 -661
  301. package/docs/setup-codex-opencode.md +0 -313
  302. package/harness/README.md +0 -106
  303. package/opencode/README.md +0 -84
  304. package/opencode/agents/README.md +0 -113
  305. package/opencode/agents/atlas.md +0 -127
  306. package/opencode/agents/discovery.md +0 -61
  307. package/opencode/agents/fixer.md +0 -51
  308. package/opencode/agents/implementer.md +0 -61
  309. package/opencode/agents/orchestrator.md +0 -145
  310. package/opencode/agents/planner.md +0 -60
  311. package/opencode/agents/prompt-engineer.md +0 -50
  312. package/opencode/agents/release-manager.md +0 -50
  313. package/opencode/agents/reviewer.md +0 -51
  314. package/opencode/agents/spec-engineer.md +0 -85
  315. package/opencode/agents/validator.md +0 -50
  316. package/opencode/agents/wordpress-engineer.md +0 -49
  317. package/opencode/commands/README.md +0 -48
  318. package/opencode/commands/autopilot.md +0 -50
  319. package/opencode/commands/deploy.md +0 -35
  320. package/opencode/commands/execute.md +0 -47
  321. package/opencode/commands/orchestrate.md +0 -37
  322. package/opencode/commands/plan.md +0 -39
  323. package/opencode/commands/review.md +0 -33
  324. package/opencode/commands/roadmap-audit.md +0 -30
  325. package/opencode/commands/ship.md +0 -48
  326. package/opencode/commands/specs/create-spec-from-request.md +0 -27
  327. package/opencode/commands/specs/create-spec-from-requirement.md +0 -25
  328. package/opencode/commands/specs/review-spec.md +0 -26
  329. package/opencode/commands/specs/spec-to-pr-breakdown.md +0 -19
  330. package/opencode/commands/specs/spec-to-tasks.md +0 -26
  331. package/opencode/commands/specs/spec-to-technical-plan.md +0 -27
  332. package/opencode/commands/start.md +0 -45
  333. package/opencode/commands/token-economy.md +0 -29
  334. package/opencode/commands/validate.md +0 -33
  335. package/opencode.jsonc +0 -235
  336. package/packages/ai-workflow/README.md +0 -82
  337. package/packages/ai-workflow/src/cli.js +0 -70
  338. package/packages/ai-workflow/src/commands/codex.js +0 -37
  339. package/packages/ai-workflow/src/commands/doctor.js +0 -168
  340. package/packages/ai-workflow/src/commands/guide.js +0 -194
  341. package/packages/ai-workflow/src/core/opencode-merge.js +0 -172
  342. package/packages/ai-workflow/src/core/symlink-layout.js +0 -54
  343. package/packages/ai-workflow/src/core/templates.js +0 -275
  344. package/runbooks/agent-delegation-workflow.md +0 -111
  345. package/runbooks/apply-starter-to-real-project.md +0 -445
  346. package/runbooks/commands-cheatsheet.md +0 -71
  347. package/runbooks/how-to-use-skills.md +0 -713
  348. package/runbooks/quick-start-guide.md +0 -213
  349. package/runbooks/tutorial-walkthroughs.md +0 -416
  350. package/runbooks/use-linear-for-operational-planning.md +0 -185
  351. package/runbooks/use-napkin-project-memory.md +0 -77
  352. package/templates/AGENTS.template.md +0 -397
  353. package/templates/DESIGN.template.md +0 -484
  354. package/templates/PR-PLAN.template.md +0 -172
  355. package/templates/README.template.md +0 -293
  356. package/templates/REQUIREMENT.template.md +0 -165
  357. package/templates/SPEC.template.md +0 -397
  358. package/templates/TECH-PLAN.template.md +0 -244
  359. package/templates/change-proposal.template.md +0 -97
  360. /package/{checklists/spec-readiness-checklist.md → dist-assets/docs/policies/SPEC_READINESS.md} +0 -0
  361. /package/{prompts → dist-assets/prompts}/00-bootstrap-project.md +0 -0
  362. /package/{prompts → dist-assets/prompts}/01-create-requirement.md +0 -0
  363. /package/{prompts → dist-assets/prompts}/02-create-spec.md +0 -0
  364. /package/{prompts → dist-assets/prompts}/03-create-tech-plan.md +0 -0
  365. /package/{prompts → dist-assets/prompts}/04-breakdown-prs.md +0 -0
  366. /package/{prompts → dist-assets/prompts}/05-implement-pr.md +0 -0
  367. /package/{prompts → dist-assets/prompts}/06-review-and-fix.md +0 -0
  368. /package/{prompts → dist-assets/prompts}/07-apply-design.md +0 -0
  369. /package/{prompts → dist-assets/prompts}/08-validate.md +0 -0
  370. /package/{prompts → dist-assets/prompts}/09-deploy.md +0 -0
  371. /package/{prompts → dist-assets/prompts}/commands/implement.md +0 -0
  372. /package/{prompts → dist-assets/prompts}/commands/requirement.md +0 -0
  373. /package/{prompts → dist-assets/prompts}/commands/spec.md +0 -0
  374. /package/{prompts → dist-assets/prompts}/commands/tech-plan.md +0 -0
  375. /package/{prompts → dist-assets/prompts}/commands/validate.md +0 -0
  376. /package/{runbooks → dist-assets/runbooks}/branch-cleanup.md +0 -0
  377. /package/{runbooks → dist-assets/runbooks}/deploy-checklist.md +0 -0
  378. /package/{runbooks → dist-assets/runbooks}/publication-readiness-checklist.md +0 -0
  379. /package/{runbooks → dist-assets/runbooks}/publish-package-checklist.md +0 -0
  380. /package/{runbooks → dist-assets/runbooks}/team-governance-pr-readiness.md +0 -0
  381. /package/{runbooks → dist-assets/runbooks}/validate-starter-in-real-project.md +0 -0
  382. /package/{runbooks → dist-assets/runbooks}/validation-checklist.md +0 -0
  383. /package/{schemas → dist-assets/schemas}/README.md +0 -0
  384. /package/{schemas → dist-assets/schemas}/functional-spec.schema.json +0 -0
  385. /package/{schemas → dist-assets/schemas}/handoff.schema.json +0 -0
  386. /package/{schemas → dist-assets/schemas}/pr-breakdown.schema.json +0 -0
  387. /package/{schemas → dist-assets/schemas}/requirement.schema.json +0 -0
  388. /package/{schemas → dist-assets/schemas}/technical-plan.schema.json +0 -0
  389. /package/{schemas → dist-assets/schemas}/validation-report.schema.json +0 -0
  390. /package/{packages/ai-workflow/src → src}/core/backup.js +0 -0
  391. /package/{packages/ai-workflow/src → src}/core/filesystem.js +0 -0
@@ -1,185 +0,0 @@
1
- # Use Linear for Operational Planning
2
-
3
- ## Purpose
4
-
5
- Use this runbook when `ROADMAP.md` is too large for day-to-day planning and the team needs a smaller, current, and auditable operational backlog.
6
-
7
- Linear should become the operational source of truth for next work. `ROADMAP.md` remains the strategic and historical source of truth.
8
-
9
- ## When to use
10
-
11
- Use Linear when:
12
-
13
- - the next PR is hard to identify from `ROADMAP.md`;
14
- - roadmap items are complete but still appear in older audit reports;
15
- - product, planning, implementation, and validation work need one shared queue;
16
- - each task needs owner, priority, status, acceptance criteria, and delivery evidence.
17
-
18
- Skip Linear for one-off local edits where a short checklist is enough.
19
-
20
- ## Source-of-truth split
21
-
22
- | Source | Role |
23
- | --- | --- |
24
- | Linear | Current operational backlog, priorities, owners, status, blockers, and next PRs. |
25
- | GitHub PRs | Delivery evidence, review discussion, changed files, validation results, and merge history. |
26
- | `ROADMAP.md` | Strategic phases, durable product direction, historical context, and large milestone sequencing. |
27
- | `CHANGELOG.md` | Published or release-relevant changes. |
28
- | `docs/reports/` | Audit inputs, scorecards, and evidence-backed recommendations. |
29
-
30
- Do not use `ROADMAP.md` alone to decide the next implementation step when Linear exists.
31
-
32
- ## Linear MCP setup
33
-
34
- Linear's remote MCP endpoint is:
35
-
36
- ```txt
37
- https://mcp.linear.app/mcp
38
- ```
39
-
40
- ### Codex
41
-
42
- Preferred setup through the Codex CLI:
43
-
44
- ```bash
45
- codex mcp add linear --url https://mcp.linear.app/mcp
46
- ```
47
-
48
- If this is the first MCP server configured for Codex, enable the remote MCP client in `~/.codex/config.toml`:
49
-
50
- ```toml
51
- [features]
52
- experimental_use_rmcp_client = true
53
- ```
54
-
55
- Equivalent manual configuration:
56
-
57
- ```toml
58
- [features]
59
- experimental_use_rmcp_client = true
60
-
61
- [mcp_servers.linear]
62
- url = "https://mcp.linear.app/mcp"
63
- ```
64
-
65
- Then authenticate:
66
-
67
- ```bash
68
- codex mcp login linear
69
- ```
70
-
71
- ### OpenCode
72
-
73
- This repository includes Linear's remote MCP server in `opencode.jsonc`:
74
-
75
- ```json
76
- {
77
- "mcp": {
78
- "linear": {
79
- "type": "remote",
80
- "url": "https://mcp.linear.app/mcp",
81
- "enabled": true
82
- }
83
- }
84
- }
85
- ```
86
-
87
- After updating `opencode.jsonc`, quit and restart OpenCode so the MCP server is loaded from the project config.
88
-
89
- Authenticate through OpenCode's MCP/OAuth flow when prompted. Keep authentication state local to the developer machine.
90
-
91
- Do not commit personal MCP tokens, OAuth state, API keys, or local `~/.codex/config.toml` files to this repository.
92
-
93
- ## Recommended Linear project structure
94
-
95
- Create one Linear project:
96
-
97
- ```txt
98
- Public readiness score improvement
99
- ```
100
-
101
- Use these milestones:
102
-
103
- 1. **Validation trust**
104
- 2. **Onboarding clarity**
105
- 3. **Platform simplification**
106
-
107
- Initial issue queue:
108
-
109
- | Milestone | Issue | Initial status | Evidence source |
110
- | --- | --- | --- | --- |
111
- | Validation trust | Fix E2E validation drift | Done | `npm run test:e2e` passes 14/14; `ROADMAP.md`; `CHANGELOG.md`. |
112
- | Validation trust | Define stable validation output contract | Todo | `docs/reports/public-readiness-backlog.md`. |
113
- | Validation trust | Create Go/No-Go public checklist | Todo | `docs/reports/public-readiness-backlog.md`. |
114
- | Onboarding clarity | Add one adoption decision table | Todo | `docs/reports/project-evaluation.md`. |
115
- | Onboarding clarity | Reduce entry-doc circular/deep reference chains | Todo | `npm run validate` warnings and audit report. |
116
- | Platform simplification | Phase 17 PR 1 — Move Codex prompts to legacy | Todo | `ROADMAP.md` Phase 17. |
117
- | Platform simplification | Phase 17 PR 2 — Simplify `AGENTS.md` to OpenCode-only | Todo | `ROADMAP.md` Phase 17. |
118
- | Platform simplification | Phase 17 PR 3 — Update README and core docs for single-path | Todo | `ROADMAP.md` Phase 17. |
119
-
120
- ## Issue template
121
-
122
- Use this format for Linear issues:
123
-
124
- ```md
125
- ## Objective
126
-
127
- What outcome should this issue achieve?
128
-
129
- ## Scope
130
-
131
- Included:
132
- - ...
133
-
134
- Not included:
135
- - ...
136
-
137
- ## Acceptance criteria
138
-
139
- - ...
140
-
141
- ## Evidence required
142
-
143
- - Command:
144
- - Expected result:
145
- - Manual review:
146
-
147
- ## Source context
148
-
149
- - ROADMAP.md:
150
- - Report/backlog:
151
- - Related PR:
152
-
153
- ## Risk
154
-
155
- Low | Medium | High
156
- ```
157
-
158
- ## Operating rules
159
-
160
- - Keep one Linear issue equivalent to one small PR whenever possible.
161
- - Mark an issue `Done` only when validation evidence is attached or linked.
162
- - Link the GitHub PR to the Linear issue before review.
163
- - If an audit finding is already fixed, close it with evidence instead of recreating work.
164
- - Update `ROADMAP.md` only for durable strategic changes, phase status changes, or historical milestones.
165
- - Update `CHANGELOG.md` only for published or release-relevant changes.
166
-
167
- ## Planning cadence
168
-
169
- Before selecting the next PR:
170
-
171
- 1. Check Linear for highest-priority `Todo` or `Blocked` issues.
172
- 2. Confirm the issue still matches current repository evidence.
173
- 3. If evidence contradicts the issue, update or close the issue before implementation.
174
- 4. Select one issue.
175
- 5. Create a scoped branch.
176
- 6. Implement only that issue.
177
- 7. Attach validation evidence before marking it `Done`.
178
-
179
- ## Acceptance criteria for Linear adoption
180
-
181
- - A Linear project exists for public-readiness score improvement.
182
- - The known completed E2E drift item is marked `Done` with evidence.
183
- - Planned score-improvement items are represented as small issues.
184
- - Each active issue has acceptance criteria and required evidence.
185
- - `ROADMAP.md` is no longer used as the only day-to-day planning source.
@@ -1,77 +0,0 @@
1
- # Use Napkin Project Memory
2
-
3
- ## What Napkin is
4
-
5
- Napkin is the repository's durable project-memory workflow.
6
-
7
- It is implemented with:
8
-
9
- - the skill at `.agents/skills/napkin/SKILL.md`;
10
- - the memory file at `.agents/napkin.md`.
11
-
12
- Napkin is discoverable by both Codex and OpenCode workflows, but it follows progressive disclosure.
13
-
14
- Progressive disclosure means: do not load or rewrite all memory on every task. Read and apply only entries relevant to the active scope.
15
-
16
- ## When to read Napkin
17
-
18
- - At task start when work depends on repository structure, workflow constraints, validation behavior, or recurring conventions.
19
- - Before review and handoff to avoid repeating known mistakes.
20
- - Before changing skills, prompts, runbooks, validation scripts, or agent instructions.
21
-
22
- ## When to update Napkin
23
-
24
- - A repeated failure mode was confirmed and has a clear reusable rule.
25
- - A user correction should become a stable operating rule.
26
- - A validated tactic repeatedly improves quality or reliability.
27
-
28
- Do not update Napkin for one-off notes, temporary investigations, or daily status logs.
29
-
30
- ## Entry format
31
-
32
- Use this format for each durable entry:
33
-
34
- ```md
35
- ### [YYYY-MM-DD] <Category>: <Rule>
36
-
37
- - Instead of: <old behavior or failed assumption>
38
- - Do: <small repeatable behavior>
39
- - Evidence/source: <file path, command output, review note, or user correction>
40
- ```
41
-
42
- ## Good vs bad examples
43
-
44
- Good:
45
-
46
- ```md
47
- ### [2026-05-11] Validation: Run full validation before final report
48
-
49
- - Instead of: Reporting success after partial checks.
50
- - Do: Run `npm run validate` and include command result evidence.
51
- - Evidence/source: `AGENTS.md` evidence requirements.
52
- ```
53
-
54
- Bad (task log):
55
-
56
- ```md
57
- ### [2026-05-11] Worked on docs
58
-
59
- - Did many edits and fixed things.
60
- ```
61
-
62
- Bad (secret):
63
-
64
- ```md
65
- ### [2026-05-11] CI fix
66
-
67
- - Token: ghp_...
68
- ```
69
-
70
- ## Validation checklist
71
-
72
- - `.agents/skills/napkin/SKILL.md` exists and is valid.
73
- - `.agents/napkin.md` exists.
74
- - Entries are durable, concise, and actionable.
75
- - Entries include `Instead of`, `Do`, and `Evidence/source`.
76
- - No secrets or sensitive data are stored.
77
- - Memory is curated: duplicates merged, stale entries removed.
@@ -1,397 +0,0 @@
1
- # AGENTS.md
2
-
3
- ## Purpose
4
-
5
- This file defines how AI agents should work in this repository.
6
-
7
- It exists to make AI-assisted development safer, more consistent, and easier to review.
8
-
9
- Agents must use this file as the main project instruction source before planning, implementing, reviewing, validating, or deploying changes.
10
-
11
- ## Repository context
12
-
13
- [Describe the repository purpose]
14
-
15
- Example:
16
-
17
- ```txt
18
- This repository is a Workflow starter kit for studying and evolving AI-assisted software delivery workflows with ordered prompts, specialist skills, templates, runbooks, and progressive validation.
19
- ```
20
-
21
- ## Primary workflow
22
-
23
- Agents should follow this workflow unless the user explicitly requests a different path:
24
-
25
- 1. clarify the requirement;
26
- 2. create or update the functional specification;
27
- 3. create or update the technical plan;
28
- 4. break the work into small pull requests;
29
- 5. implement one PR at a time;
30
- 6. review and fix the selected PR;
31
- 7. validate with evidence;
32
- 8. prepare deployment only when requested.
33
-
34
- Do not skip steps for medium or high-risk changes.
35
-
36
- For small documentation changes, use a proportional workflow.
37
-
38
- ## Specialist skills
39
-
40
- Use the relevant skill depending on the task.
41
-
42
- ```txt
43
- .agents/skills/product-manager/SKILL.md
44
- .agents/skills/tech-lead/SKILL.md
45
- .agents/skills/pr-orchestrator/SKILL.md
46
- .agents/skills/frontend-implementer/SKILL.md
47
- .agents/skills/backend-implementer/SKILL.md
48
- .agents/skills/tester/SKILL.md
49
- .agents/skills/build-and-validate/SKILL.md
50
- .agents/skills/docs-writer/SKILL.md
51
- .agents/skills/deploy-engineer/SKILL.md
52
- ```
53
-
54
- ### Skill usage guide
55
-
56
- - Use `product-manager` to clarify requirements, scope, users, outcomes, and acceptance criteria.
57
- - Use `tech-lead` to create technical plans, identify architecture boundaries, risks, and trade-offs.
58
- - Use `pr-orchestrator` to plan, scope, summarize, and review pull requests.
59
- - Use `frontend-implementer` for UI, component, state, routing, styling, accessibility, and frontend API integration work.
60
- - Use `backend-implementer` for APIs, services, repositories, persistence, validation, authentication, authorization, and backend integrations.
61
- - Use `tester` for acceptance criteria validation, regression review, edge cases, and final approval checks.
62
- - Use `build-and-validate` for commands, builds, lint, typecheck, tests, artifacts, and failure diagnosis.
63
- - Use `docs-writer` for README, AGENTS, DESIGN, requirements, specs, tech plans, runbooks, and documentation validation.
64
- - Use `deploy-engineer` for release readiness, environment configuration, smoke tests, rollback, and deployment risk.
65
-
66
- ## Prompt workflow
67
-
68
- Use the ordered prompts when running a structured workflow.
69
-
70
- ```txt
71
- prompts/00-bootstrap-project.md
72
- prompts/01-create-requirement.md
73
- prompts/02-create-spec.md
74
- prompts/03-create-tech-plan.md
75
- prompts/04-breakdown-prs.md
76
- prompts/05-implement-pr.md
77
- prompts/06-review-and-fix.md
78
- prompts/07-apply-design.md
79
- prompts/08-validate.md
80
- prompts/09-deploy.md
81
- ```
82
-
83
- ### Prompt usage guide
84
-
85
- - Use `00-bootstrap-project.md` to create the initial project foundation.
86
- - Use `01-create-requirement.md` to turn an idea into a product requirement.
87
- - Use `02-create-spec.md` to turn an approved requirement into a functional specification.
88
- - Use `03-create-tech-plan.md` to turn an approved specification into a technical plan.
89
- - Use `04-breakdown-prs.md` to split the technical plan into reviewable PRs.
90
- - Use `05-implement-pr.md` to implement one selected PR.
91
- - Use `06-review-and-fix.md` to review and fix one implemented PR.
92
- - Use `07-apply-design.md` to apply UI/design refinements without changing product behavior.
93
- - Use `08-validate.md` to validate with evidence before moving forward.
94
- - Use `09-deploy.md` to prepare or review deployment.
95
-
96
- ## Hard constraints
97
-
98
- Agents must always follow these constraints:
99
-
100
- - Preserve existing behavior unless a behavior change is explicitly requested.
101
- - Treat no-regression as a hard requirement.
102
- - Keep changes small and reviewable.
103
- - Do not implement multiple PRs at once.
104
- - Do not introduce unrelated refactors.
105
- - Do not add, remove, or upgrade dependencies without explicit justification.
106
- - Do not invent architecture when existing project patterns are sufficient.
107
- - Do not change public contracts silently.
108
- - Do not expose secrets, tokens, credentials, or private keys.
109
- - Do not claim tests, builds, or validations passed without evidence.
110
- - Do not hide untested areas.
111
- - Do not make commits unless explicitly instructed.
112
- - Do not deploy unless explicitly instructed.
113
-
114
- ## Scope control
115
-
116
- Before editing files, agents must identify:
117
-
118
- - the task objective;
119
- - the files likely to change;
120
- - the files that should not change;
121
- - what is in scope;
122
- - what is out of scope;
123
- - expected validation;
124
- - known risks.
125
-
126
- If new work is discovered during implementation, agents must classify it as:
127
-
128
- ```md
129
- ## Out-of-scope follow-up
130
-
131
- - Issue:
132
- - Evidence:
133
- - Impact:
134
- - Recommended future PR:
135
- ```
136
-
137
- Do not implement out-of-scope discoveries automatically.
138
-
139
- ## Existing patterns first
140
-
141
- Agents must inspect and follow existing project patterns before proposing new ones.
142
-
143
- Prefer existing patterns for:
144
-
145
- - folder structure;
146
- - naming;
147
- - routing;
148
- - components;
149
- - services;
150
- - repositories;
151
- - stores;
152
- - middleware;
153
- - validation;
154
- - error handling;
155
- - tests;
156
- - build scripts;
157
- - documentation style;
158
- - deployment scripts.
159
-
160
- Introduce a new pattern only when:
161
-
162
- - the existing pattern cannot support the requirement;
163
- - the new pattern reduces real complexity or risk;
164
- - the trade-off is documented;
165
- - the change is scoped and reviewable.
166
-
167
- ## Validation rules
168
-
169
- Agents must validate proportionally to the risk of the change.
170
-
171
- ### Documentation changes
172
-
173
- Check:
174
-
175
- - Markdown formatting;
176
- - closed code fences;
177
- - heading hierarchy;
178
- - correct file paths;
179
- - clear instructions;
180
- - no conflicting guidance.
181
-
182
- ### Frontend changes
183
-
184
- Check:
185
-
186
- - affected UI behavior;
187
- - loading, empty, error, and success states when relevant;
188
- - responsive behavior when relevant;
189
- - accessibility basics;
190
- - lint, typecheck, tests, or build when available.
191
-
192
- ### Backend changes
193
-
194
- Check:
195
-
196
- - API behavior;
197
- - validation;
198
- - authentication;
199
- - authorization;
200
- - data integrity;
201
- - error handling;
202
- - tests or build when available.
203
-
204
- ### Deployment changes
205
-
206
- Check:
207
-
208
- - build status;
209
- - environment configuration;
210
- - secrets handling;
211
- - smoke tests;
212
- - rollback or recovery path.
213
-
214
- ## Evidence requirements
215
-
216
- Every validation summary must include evidence.
217
-
218
- Valid evidence includes:
219
-
220
- - command executed;
221
- - command result;
222
- - relevant error output;
223
- - file path;
224
- - line reference when available;
225
- - test name;
226
- - manual check result;
227
- - screenshot reference when relevant;
228
- - CI result;
229
- - acceptance criteria comparison.
230
-
231
- Invalid evidence includes:
232
-
233
- - “looks good” without support;
234
- - assumed command success;
235
- - vague claims;
236
- - unverified behavior;
237
- - hidden skipped checks.
238
-
239
- If validation was not executed, agents must state why.
240
-
241
- ## Severity model
242
-
243
- Use this severity model when reporting issues.
244
-
245
- ### High
246
-
247
- Use `High` when the issue can cause:
248
-
249
- - broken critical functionality;
250
- - security vulnerability;
251
- - data loss;
252
- - data corruption;
253
- - deployment failure;
254
- - failing required tests;
255
- - severe regression;
256
- - inaccessible critical flow;
257
- - incorrect business behavior.
258
-
259
- ### Medium
260
-
261
- Use `Medium` when the issue can cause:
262
-
263
- - incomplete validation;
264
- - incorrect secondary behavior;
265
- - weak error handling;
266
- - maintainability risk;
267
- - missing tests for important behavior;
268
- - fragile assumptions;
269
- - partial mismatch with requirements.
270
-
271
- ### Low
272
-
273
- Use `Low` when the issue is related to:
274
-
275
- - minor wording issue;
276
- - small formatting problem;
277
- - small readability improvement;
278
- - optional cleanup;
279
- - low-risk consistency issue.
280
-
281
- ## Output expectations
282
-
283
- For planning tasks, agents should provide:
284
-
285
- - objective;
286
- - scope;
287
- - files likely to change;
288
- - risks and trade-offs;
289
- - validation plan;
290
- - final recommendation.
291
-
292
- For implementation tasks, agents should provide:
293
-
294
- - summary;
295
- - files changed;
296
- - behavior preserved;
297
- - behavior changed;
298
- - validation executed;
299
- - validation not executed;
300
- - regression risks;
301
- - final status.
302
-
303
- For review tasks, agents should provide:
304
-
305
- - findings;
306
- - severity;
307
- - evidence;
308
- - impact;
309
- - recommendation;
310
- - how to validate after fixes;
311
- - final recommendation.
312
-
313
- ## Approval rules
314
-
315
- Use these final statuses consistently.
316
-
317
- ### Approved
318
-
319
- Use when all relevant checks pass and no important issue remains.
320
-
321
- ### Approved with notes
322
-
323
- Use when the result is acceptable but minor gaps, low-risk issues, or non-critical untested areas remain.
324
-
325
- ### Changes requested
326
-
327
- Use when medium or high issues remain and should be fixed before moving forward.
328
-
329
- ### Blocked
330
-
331
- Use when required context, files, environment, validation evidence, decisions, or permissions are missing.
332
-
333
- ## Destructive operations
334
-
335
- Do not run or recommend destructive operations without explicit approval.
336
-
337
- Examples:
338
-
339
- ```bash
340
- rm -rf
341
- git reset --hard
342
- git clean -fd
343
- docker system prune
344
- dropdb
345
- truncate table
346
- php artisan migrate:fresh
347
- npm publish
348
- pnpm publish
349
- composer update
350
- kubectl delete
351
- terraform destroy
352
- ```
353
-
354
- If a destructive operation appears necessary, explain:
355
-
356
- - why it is needed;
357
- - what can be lost;
358
- - safer alternatives;
359
- - rollback or recovery options.
360
-
361
- ## Documentation standards
362
-
363
- Documentation should be:
364
-
365
- - clear;
366
- - actionable;
367
- - structured;
368
- - consistent with repository terminology;
369
- - explicit about assumptions;
370
- - explicit about open questions;
371
- - valid Markdown.
372
-
373
- Use:
374
-
375
- - `txt` code fences for file trees;
376
- - `bash` code fences for shell commands;
377
- - `md` code fences for Markdown examples;
378
- - backticks for file paths and commands.
379
-
380
- When nesting Markdown code fences, use four backticks for the outer block.
381
-
382
- ## Security rules
383
-
384
- Agents must not:
385
-
386
- - expose secrets;
387
- - print real credentials;
388
- - commit `.env` files unless explicitly intended and safe;
389
- - weaken authentication or authorization;
390
- - log tokens, passwords, private keys, or sensitive personal data;
391
- - recommend unsafe production operations without risk disclosure.
392
-
393
- ## Final instruction
394
-
395
- When uncertain, agents must not guess silently.
396
-
397
- State the assumption, classify the risk, and recommend the smallest safe next step.