@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
@@ -0,0 +1,95 @@
1
+ # Spec-Driven Development
2
+
3
+ ## What it means in this repository
4
+
5
+ Spec-Driven Development means implementation starts only after a clear, testable specification is drafted and reviewed.
6
+
7
+ Standard flow:
8
+
9
+ ```txt
10
+ Request
11
+ → Change proposal / lightweight spec
12
+ → Spec review
13
+ → Task breakdown
14
+ → Implementation
15
+ → Validation
16
+ → Evidence report
17
+ ```
18
+
19
+ ## When to use
20
+
21
+ Use this flow for:
22
+
23
+ - new features;
24
+ - bug fixes that change behavior;
25
+ - refactors with behavioral risk;
26
+ - UI behavior changes;
27
+ - architecture-impacting changes;
28
+ - workflow/process changes.
29
+
30
+ For tiny docs-only edits, use proportional workflow.
31
+
32
+ ## Assets to use
33
+
34
+ - Lightweight change template: `templates/change-proposal.template.md`
35
+ - Lightweight readiness checklist: `checklists/change-spec-readiness-checklist.md`
36
+ - Request-to-spec command: `opencode/commands/spec-create.md`
37
+ - Spec review command: `opencode/commands/spec-review.md`
38
+ - Spec-to-implementation command: `opencode/commands/spec-implement.md`
39
+ - Spec-first owner: `opencode/agents/spec-engineer.md`
40
+ - Spec template: `templates/SPEC.template.md`
41
+ - Readiness checklist: `checklists/spec-readiness-checklist.md`
42
+
43
+ ## Artifact location convention (consumer project)
44
+
45
+ Store generated spec artifacts in the consumer repository using this default path:
46
+
47
+ ```txt
48
+ docs/specs/[spec-type]/[yyyy-mm-dd]-[change-slug]/
49
+ ```
50
+
51
+ Allowed `<spec-type>` values:
52
+
53
+ - `feature`
54
+ - `bugfix`
55
+ - `refactor`
56
+ - `ui-change`
57
+ - `architecture`
58
+ - `workflow`
59
+ - `integration`
60
+ - `test-strategy`
61
+
62
+ Recommended files inside each folder:
63
+
64
+ ```txt
65
+ 00-proposal.md
66
+ 01-spec.md
67
+ 02-design.md
68
+ 03-tasks.md
69
+ 04-validation.md
70
+ 05-handoff.md
71
+ ```
72
+
73
+ For `tiny` specs, allow a minimal set:
74
+
75
+ ```txt
76
+ 00-proposal.md
77
+ 03-tasks.md
78
+ 04-validation.md
79
+ ```
80
+
81
+ ## Connection to PR execution
82
+
83
+ After spec review passes:
84
+
85
+ 1. split into small implementation tasks (or PRs when needed);
86
+ 2. implement one scoped task/PR only;
87
+ 3. run validation before claiming success;
88
+ 4. return evidence for commands, changed files, and acceptance-criteria coverage.
89
+
90
+ ## Required evidence after validation
91
+
92
+ - commands executed + result;
93
+ - files changed;
94
+ - acceptance criteria status;
95
+ - untested areas and residual risks.
@@ -0,0 +1,22 @@
1
+ # Quality gate
2
+
3
+ Quality gates validate observed delivery outcomes, not report formatting.
4
+
5
+ ## Blocking conditions
6
+
7
+ - implementation changes on a protected branch;
8
+ - a relevant required command fails;
9
+ - implementation has no meaningful validation path;
10
+ - a material finding remains after bounded remediation;
11
+ - the reported result contradicts observed execution.
12
+
13
+ ## Non-blocking notes
14
+
15
+ Missing screenshots, optional documentation, or minor review observations may produce `COMPLETED_WITH_NOTES` when required validation passed.
16
+
17
+ ## Prohibited shortcuts
18
+
19
+ - no-op test scripts;
20
+ - checklists used as substitutes for executable validation;
21
+ - manually authored successful command results;
22
+ - success inferred from the presence or name of a workflow file.
@@ -0,0 +1,7 @@
1
+ # Agent contract
2
+
3
+ Agents are responsibilities, not evidence artefacts.
4
+
5
+ Atlas routes and coordinates. Astra implements substantial scoped work. Sage validates independently when proportional to risk. Phoenix remediates concrete findings within bounded attempts.
6
+
7
+ Do not claim a handoff occurred unless it occurred. Do not force delegation merely to populate a report. The final user response focuses on the delivered result and observed validation.
@@ -0,0 +1,31 @@
1
+ # Delivery evidence contract
2
+
3
+ Evidence exists to help the user trust the delivery. It must not become the delivery itself.
4
+
5
+ ## Quick and standard work
6
+
7
+ No fixed workflow filename, owner JSON, checklist, or `EVIDENCE.json` is required.
8
+
9
+ The final handoff must state:
10
+
11
+ - branch used;
12
+ - files or areas changed;
13
+ - validation commands actually executed;
14
+ - observed results;
15
+ - material limitations.
16
+
17
+ A report written by an agent is not proof that a command ran. Command results must come from observed execution.
18
+
19
+ ## Full, release, audit, and security work
20
+
21
+ Persisted evidence is appropriate when traceability has lasting value. The runtime may write a structured evidence file containing branch state, changed files, command exit codes, checks, limitations, and final status.
22
+
23
+ The model must not manually author successful command results.
24
+
25
+ ## Completion states
26
+
27
+ - `COMPLETED`
28
+ - `COMPLETED_WITH_NOTES`
29
+ - `BLOCKED`
30
+
31
+ A failed required command, protected-branch violation, missing meaningful validation, or unresolved material finding cannot be promoted to success.
@@ -0,0 +1,47 @@
1
+ # Release Gate Policy (Canonical)
2
+
3
+ ## Purpose
4
+
5
+ Define non-negotiable checks required before release actions.
6
+
7
+ ## Required release prerequisites
8
+
9
+ 1. **Clean git state**
10
+ - Working tree must be clean.
11
+ - No unresolved merge or untracked release-critical artifacts.
12
+
13
+ 2. **Version identity**
14
+ - Target version is consistent across relevant package metadata.
15
+ - Release version must match intended release record.
16
+
17
+ 3. **Validation evidence**
18
+ - Required validation commands executed.
19
+ - Results attached with pass/fail status and notable warnings.
20
+
21
+ 4. **`npm pack` evidence**
22
+ - `npm pack --dry-run` output attached.
23
+ - Package name/version confirmed.
24
+ - Artifact contents reviewed for expected/forbidden files.
25
+
26
+ ## Approval gate (hard stop)
27
+
28
+ Without explicit human approval:
29
+
30
+ - Do not publish npm.
31
+ - Do not deploy.
32
+ - Do not create git tag.
33
+ - Do not create GitHub release.
34
+ - Do not merge release branches.
35
+ - Do not push release changes.
36
+ - Do not force-push.
37
+ - Do not delete broadly.
38
+ - Do not change package version.
39
+
40
+ ## Post-release verification expectations
41
+
42
+ After approved release actions, verify and document:
43
+
44
+ - Published version matches expected release version.
45
+ - Install/smoke check succeeds in a clean consumer.
46
+ - Release notes/tag metadata map to the shipped artifact.
47
+ - Any non-blocking notes and follow-ups are recorded.
@@ -0,0 +1,18 @@
1
+ # Product truthfulness and project documentation
2
+
3
+ ## Product truthfulness
4
+
5
+ Do not present as verified fact anything that was not supplied by the user, implemented, or checked.
6
+
7
+ For fictional or demonstrative products, make the fictional context clear at product level. Do not pollute every component with repetitive labels unless local clarification is genuinely necessary.
8
+
9
+ Avoid unsupported claims about real customers, certifications, legal approval, guarantees, measured performance, availability, or integrations. Fictional prices, plans, and examples are allowed when the page clearly establishes that the product is fictional or demonstrative.
10
+ Claims about data sources, provenance, live integrations, privacy or storage behavior, and available product capabilities must match the delivered code and configuration. When a capability is mocked, simulated, conceptual, or not yet available, qualify it clearly at the appropriate product or feature level.
11
+
12
+ Truthfulness is primarily a semantic review responsibility. Keyword matching is not a substitute for judgement.
13
+
14
+ ## Documentation
15
+
16
+ Update documentation when setup, usage, public behavior, architecture, or operational expectations changed. Do not create documentation solely to satisfy a gate.
17
+
18
+ For small work, a concise final summary may be sufficient. Full, release, migration, and audit work may justify persisted documentation.
@@ -0,0 +1,28 @@
1
+ # 09 — Spec Visibility and Publication Gate
2
+
3
+ ## Purpose
4
+
5
+ Prevent private specification leakage to public package outputs.
6
+
7
+ ## Authority model
8
+
9
+ 1. `/specs` repository is the canonical private specification authority.
10
+ 2. `/core/packages/ai-workflow/docs/**` is public-safe output only.
11
+ 3. Public docs can summarize decisions but must not expose private rationale, internal audit details, or sensitive planning.
12
+
13
+ ## Visibility classes
14
+
15
+ - `private`: full REQ/TECH, remediation details, internal trade-offs.
16
+ - `restricted-summary`: redacted summary for package docs.
17
+ - `public-safe`: safe to publish as-is.
18
+
19
+ ## Mandatory controls
20
+
21
+ 1. Every new spec must declare a `visibility` class.
22
+ 2. Any content copied to package docs must be rewritten as `restricted-summary` or `public-safe`.
23
+ 3. Release path must include privacy validation (`validate:privacy-gate`).
24
+
25
+ ## Failure policy
26
+
27
+ - Any attempt to publish private spec paths is a release blocker.
28
+ - Fix by removing private paths from package allowlist and sanitizing docs.
@@ -0,0 +1,9 @@
1
+ # Behavioral guardrail hardening
2
+
3
+ The runtime hardens three outcomes, not report formatting:
4
+
5
+ 1. write-capable work does not proceed on protected branches;
6
+ 2. existing relevant validation is executed and observed;
7
+ 3. failed or unavailable required validation cannot become success.
8
+
9
+ Prompt text, workflow filenames, owner labels, and checklists are not independent proof. Quick and standard workflows remain proportionate. Full workflows may persist structured runtime evidence.
@@ -0,0 +1,7 @@
1
+ # Delegation and truthfulness
2
+
3
+ Delegation is useful when specialization or independent review improves the result. It is not required merely to satisfy a report.
4
+
5
+ Do not claim that Atlas, Astra, Sage, Phoenix, or a specialist acted unless the handoff occurred. For full or high-risk work, independent validation should be separated from implementation. For small and normal scoped work, use the smallest safe ownership model.
6
+
7
+ Product truthfulness is semantic: do not present unverified claims as real. Fictional products should be clearly fictional at product level without repetitive labels dominating the interface.
@@ -0,0 +1,15 @@
1
+ # Orchestration protocol
2
+
3
+ ## Quick
4
+
5
+ Inspect → safe branch → edit → targeted validation → concise handoff.
6
+
7
+ ## Standard
8
+
9
+ Understand → brief plan → safe branch → implement → relevant validation → bounded remediation when needed → concise handoff.
10
+
11
+ ## Full
12
+
13
+ Discovery/specification → safe branch → specialist implementation → independent validation → bounded remediation → revalidation → persisted evidence → final decision.
14
+
15
+ Protected-branch safety, required validation, and false-success prevention apply to every write-capable mode.
@@ -0,0 +1,21 @@
1
+ # Delivery artefacts
2
+
3
+ Artefacts are proportional to risk and future value.
4
+
5
+ ## Quick
6
+
7
+ No mandatory persisted artefact. Provide a concise final summary with validation evidence.
8
+
9
+ ## Standard
10
+
11
+ No mandatory filename or document set. Update project documentation only when behavior, setup, usage, or architecture changed.
12
+
13
+ A delivery report is optional when it helps review or handoff.
14
+
15
+ ## Full
16
+
17
+ Persist a concise evidence package appropriate to the task. It should record requirements or scope, implementation, validation, unresolved limitations, and final decision without duplicating the same information across several files.
18
+
19
+ ## Rule
20
+
21
+ A file's presence, name, or prose never proves that the workflow happened. Observed branch state, diffs, commands, exit codes, and review findings are the evidence.
@@ -0,0 +1,24 @@
1
+ # Documentation Procedure Checklist
2
+
3
+ Use for docs, prompts, agents, commands, skills, policies, and runtime instructions.
4
+
5
+ ## Checks
6
+
7
+ - Correct file path.
8
+ - Accurate behavior.
9
+ - No stale paths.
10
+ - No invented commands.
11
+ - No fake capabilities.
12
+ - Examples included when useful.
13
+ - Concise for simple changes.
14
+ - Complete enough for complex workflows.
15
+ - Branch Gate and Final Evidence preserved when relevant.
16
+ - Primary Agents and Skill-backed Specialist Roles terminology used correctly.
17
+
18
+ ## Avoid
19
+
20
+ - documenting behavior not implemented;
21
+ - duplicating docs unnecessarily;
22
+ - broad rewrites for small corrections;
23
+ - legacy theatrical taxonomy;
24
+ - calling skill-backed specialist roles standalone subagents.
@@ -0,0 +1,54 @@
1
+ # UI Procedure Checklist
2
+
3
+ Use for user-facing UI work.
4
+
5
+ ## Minimum quality
6
+
7
+ - Clear visual hierarchy.
8
+ - Consistent spacing.
9
+ - Readable typography.
10
+ - Loading state when data is fetched.
11
+ - Empty state when no data exists.
12
+ - Error state when action/fetch can fail.
13
+ - Basic keyboard/accessibility support.
14
+ - Responsive sanity for common breakpoints.
15
+ - No raw default controls when polished UI is expected.
16
+
17
+ ## Evidence
18
+
19
+ Report:
20
+
21
+ - files changed;
22
+ - screenshots if available;
23
+ - manual checks if screenshots are unavailable;
24
+ - validation command/result;
25
+ - known limitations.
26
+
27
+ ## Blocking issues
28
+
29
+ - inaccessible primary flow;
30
+ - broken layout on normal viewport;
31
+ - missing error handling for critical action;
32
+ - UI does not satisfy requested behavior.
33
+
34
+
35
+ ## Rendered UI evidence
36
+
37
+ For user-facing UI work, validation should inspect the rendered interface when the runtime can run or open the app. Prefer a browser screenshot, Playwright check, viewport check, or equivalent rendered inspection.
38
+
39
+ Build success does not prove visual quality. Unit tests do not prove visual quality.
40
+
41
+ ## Automatic FAIL_QUALITY_GATE cases
42
+
43
+ Return `FAIL_QUALITY_GATE` when user-facing UI:
44
+
45
+ - looks like default browser HTML;
46
+ - uses raw unstyled controls as the final interface;
47
+ - has broken or visibly incorrect copy;
48
+ - lacks relevant empty, loading, error, or success states;
49
+ - is not responsive for the requested context;
50
+ - is visually cluttered, unreadable, or clearly placeholder-like.
51
+
52
+ ## Product UI minimum
53
+
54
+ For request/consultation tools and dashboards, prefer a clear workspace, utility copy, styled form controls, summary cards, readable detailed sections, and one clear primary action.
@@ -0,0 +1,19 @@
1
+ # Workflow Profiles
2
+
3
+ Workflow profiles guide domain quality without turning subjective preferences into universal runtime gates. Execution mode controls artifact depth; workflow profile controls domain guidance.
4
+
5
+ The core remains deterministic: branch safety, scope, ownership, tests/build/typecheck, artifacts, evidence, truthfulness contradictions, bounded remediation, and final status.
6
+
7
+ Profiles select skills and relevant checks. They must not impose a fixed visual template or add requirements that the user did not request.
8
+
9
+ Available profiles:
10
+
11
+ - `frontend-product`
12
+ - `frontend-utility`
13
+ - `backend-api`
14
+ - `refactor`
15
+ - `documentation`
16
+ - `security-review`
17
+ - `generic`
18
+
19
+ A profile is independent from execution mode. Example: `standard + frontend-utility`.
@@ -0,0 +1,5 @@
1
+ # Backend API Profile
2
+
3
+ Use for endpoints, services, controllers, integrations, and authenticated APIs.
4
+
5
+ Focus on contracts, boundary validation, authorization, failure paths, data consistency, idempotency where relevant, and automated tests. Do not add frontend deliverables unless requested.
@@ -0,0 +1,3 @@
1
+ # Documentation Profile
2
+
3
+ Use for documentation-only work. Verify paths, commands, examples, links, and current behavior. Do not claim implementation or runtime behavior without repository evidence.
@@ -0,0 +1,19 @@
1
+ # Frontend Product Profile
2
+
3
+ Use for landing pages, product pages, marketing surfaces, redesigns, and public product experiences.
4
+
5
+ Required skills:
6
+
7
+ - `frontend-development`
8
+ - `ui-ux-design`
9
+
10
+ Objective checks:
11
+
12
+ - requested primary action works;
13
+ - CSS is loaded and the rendered page is usable;
14
+ - desktop and mobile layouts are not critically broken;
15
+ - accessibility basics are present;
16
+ - copy and data mode are truthful;
17
+ - tests, typecheck, and build run when applicable.
18
+
19
+ This profile does not require pricing, testimonials, a specific number of sections, a complex hero, or a SaaS template. Simplicity is not a failure. Broken rendering, unusable interaction, or unsupported claims are failures.
@@ -0,0 +1,19 @@
1
+ # Frontend Utility Profile
2
+
3
+ Use for search pages, validators, calculators, forms, dashboards, admin tools, and focused interactive utilities.
4
+
5
+ Required skills:
6
+
7
+ - `frontend-development`
8
+ - `ui-ux-design`
9
+
10
+ Objective checks:
11
+
12
+ - the primary flow is complete;
13
+ - applicable idle, loading, empty, error, and success states are handled;
14
+ - deterministic logic is tested;
15
+ - CSS is loaded and controls are usable;
16
+ - desktop and mobile layouts are not critically broken;
17
+ - tests, typecheck, and build run when applicable.
18
+
19
+ Do not add pricing, testimonials, marketing sections, artificial loading, or commercial claims unless explicitly requested and truthful.
@@ -0,0 +1,3 @@
1
+ # Refactor Profile
2
+
3
+ Use when observable behavior must be preserved while structure improves. Require focused diffs, characterization or regression tests, and explicit no-regression evidence. Do not combine unrelated cleanup.
@@ -0,0 +1,3 @@
1
+ # Security Review Profile
2
+
3
+ Use for read-only or evidence-first security review. Classify findings by severity and runtime impact, distinguish production dependencies from development tooling, and identify the correct remediation owner. Never run force fixes without explicit approval.
@@ -0,0 +1,11 @@
1
+ # Landing Page Quality Checklist
2
+
3
+ - The page addresses the requested audience, promise, and primary action.
4
+ - CSS is loaded and the primary action is usable.
5
+ - Visual hierarchy, spacing, typography, and responsive rhythm are intentional enough for the requested context.
6
+ - Copy and visual proof do not exceed implementation reality.
7
+ - Interactive states are implemented only when they correspond to real behavior.
8
+ - Desktop and mobile renders have no critical overflow, overlap, invisible content, or unreadable contrast.
9
+ - Accessibility basics are present.
10
+
11
+ Do not require a fixed section sequence, pricing, testimonials, a complex hero, or a particular visual fashion. A simple focused page may pass.
@@ -0,0 +1,7 @@
1
+ # Product Copy Truthfulness
2
+
3
+ - Do not invent metrics, customers, testimonials, uptime, precision, certifications, official sources, or security claims.
4
+ - Label mock and generated data visibly when users could mistake it for live data.
5
+ - Match every CTA and benefit claim to implemented behavior.
6
+ - Prefer concrete, supportable copy over inflated proof.
7
+ - Treat unsupported claims as a quality failure, not harmless marketing polish.
@@ -0,0 +1,20 @@
1
+ # Frontend Quality Failure Examples
2
+
3
+ Objective failures:
4
+
5
+ - CSS is missing, not loaded, or leaves browser-default controls when styling was requested.
6
+ - Primary interaction is unusable or required states are missing.
7
+ - Desktop or mobile layout has severe overflow, overlap, invisible content, or unreadable contrast.
8
+ - Mock data is presented as a live official integration.
9
+ - Fictitious usage, speed, uptime, accuracy, security, or customer claims are presented as real.
10
+ - Artificial loading is added to synchronous local logic.
11
+ - Identifiers, money, dates, statuses, or API mappings are incorrect.
12
+ - Visual evidence is claimed without a real browser check or evidence mode.
13
+
14
+ Not failures by themselves:
15
+
16
+ - a simple composition;
17
+ - fewer sections than another landing page;
18
+ - no pricing or testimonials;
19
+ - a visual style that differs from a previous benchmark;
20
+ - deliberate whitespace or a focused single-task layout.
@@ -0,0 +1,10 @@
1
+ # Visual Composition Patterns
2
+
3
+ Use these principles rather than copying a fixed template:
4
+
5
+ - Establish one dominant visual idea per page.
6
+ - Balance editorial storytelling with product interaction.
7
+ - Use contrast, scale, spacing, and grouping before decoration.
8
+ - Apply progressive disclosure to dense data.
9
+ - Keep semantic colors consistent with status meaning.
10
+ - Remove sections that repeat the same argument without new evidence.
@@ -0,0 +1,39 @@
1
+ # Runtime operational contract
2
+
3
+ ## Objective
4
+
5
+ Turn a natural software request into a safe, useful, validated delivery with proportionate process.
6
+
7
+ ## Invariants
8
+
9
+ - no implementation on protected branches;
10
+ - no skipped relevant validation;
11
+ - no success after failed or unavailable required validation;
12
+ - bounded remediation with `BLOCKED` on no progress;
13
+ - no fabricated command, test, file, or agent claims.
14
+
15
+ ## Modes
16
+
17
+ ### Quick
18
+
19
+ Inspect → safe branch → edit → targeted validation → concise handoff.
20
+
21
+ ### Standard
22
+
23
+ Understand → brief plan → safe branch → implement → relevant validation → bounded remediation when needed → concise handoff.
24
+
25
+ ### Full
26
+
27
+ Discovery/specification → safe branch → specialist implementation → independent validation → bounded remediation → revalidation → persisted evidence → final decision.
28
+
29
+ ## Evidence
30
+
31
+ Quick and standard modes report branch, changed areas, observed commands/results, and limitations. No fixed workflow filenames or owner JSON are required.
32
+
33
+ Full, release, audit, security, migration, and explicitly requested workflows may persist machine-generated evidence.
34
+
35
+ ## Public completion states
36
+
37
+ - `COMPLETED`
38
+ - `COMPLETED_WITH_NOTES`
39
+ - `BLOCKED`
@@ -0,0 +1,21 @@
1
+ # Troubleshooting
2
+
3
+ ## Work is blocked on main or master
4
+
5
+ Move to a scoped branch. If tracked dirty work makes recovery unsafe, preserve it and resolve the branch state before continuing.
6
+
7
+ ## Validation returns BLOCKED
8
+
9
+ Inspect the command results. Fix failed tests/build/typecheck/lint, or add a meaningful validation path when none exists. Do not add no-op scripts or workflow documents as substitutes.
10
+
11
+ ## Standard work did not create EVIDENCE.json
12
+
13
+ Expected. Quick and standard work use concise observed evidence. Persisted evidence is reserved for full, release, audit, security, migration, or explicitly requested work.
14
+
15
+ ## UI or product quality is weak
16
+
17
+ Use the selected workflow profile and relevant skills. Automated gates do not fully evaluate visual hierarchy, copy, proportional architecture, or semantic truthfulness.
18
+
19
+ ## A direct model response ignored the workflow
20
+
21
+ Direct natural-language execution remains instruction-driven unless the runtime invokes the CLI/gates. Treat unsupported claims about commands or agent handoffs as unverified.