qualia-framework 2.6.0 → 3.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 (321) hide show
  1. package/CLAUDE.md +64 -0
  2. package/README.md +103 -30
  3. package/agents/builder.md +110 -0
  4. package/agents/planner.md +134 -0
  5. package/agents/qa-browser.md +186 -0
  6. package/agents/verifier.md +221 -0
  7. package/bin/cli.js +336 -531
  8. package/bin/install.js +570 -0
  9. package/bin/qualia-ui.js +299 -0
  10. package/bin/state.js +630 -0
  11. package/bin/statusline.js +252 -0
  12. package/guide.md +63 -0
  13. package/hooks/auto-update.js +139 -0
  14. package/hooks/branch-guard.js +47 -0
  15. package/hooks/migration-guard.js +60 -0
  16. package/hooks/pre-compact.js +32 -0
  17. package/hooks/pre-deploy-gate.js +110 -0
  18. package/hooks/pre-push.js +33 -0
  19. package/hooks/session-start.js +170 -0
  20. package/package.json +29 -20
  21. package/rules/design-reference.md +179 -0
  22. package/rules/frontend.md +126 -0
  23. package/skills/qualia/SKILL.md +87 -0
  24. package/skills/qualia-build/SKILL.md +97 -0
  25. package/skills/qualia-debug/SKILL.md +87 -0
  26. package/skills/qualia-design/SKILL.md +93 -0
  27. package/skills/qualia-handoff/SKILL.md +66 -0
  28. package/skills/qualia-idk/SKILL.md +8 -0
  29. package/skills/qualia-learn/SKILL.md +88 -0
  30. package/skills/qualia-new/SKILL.md +323 -0
  31. package/{framework/skills → skills}/qualia-optimize/SKILL.md +1 -1
  32. package/skills/qualia-pause/SKILL.md +63 -0
  33. package/skills/qualia-plan/SKILL.md +101 -0
  34. package/skills/qualia-polish/SKILL.md +157 -0
  35. package/skills/qualia-quick/SKILL.md +37 -0
  36. package/skills/qualia-report/SKILL.md +105 -0
  37. package/skills/qualia-resume/SKILL.md +49 -0
  38. package/skills/qualia-review/SKILL.md +76 -0
  39. package/skills/qualia-ship/SKILL.md +90 -0
  40. package/skills/qualia-skill-new/SKILL.md +167 -0
  41. package/skills/qualia-task/SKILL.md +91 -0
  42. package/skills/qualia-verify/SKILL.md +113 -0
  43. package/templates/DESIGN.md +137 -0
  44. package/templates/plan.md +28 -0
  45. package/templates/project.md +22 -0
  46. package/templates/state.md +27 -0
  47. package/templates/tracking.json +20 -0
  48. package/tests/bin.test.sh +673 -0
  49. package/tests/hooks.test.sh +315 -0
  50. package/tests/state.test.sh +535 -0
  51. package/tests/statusline.test.sh +243 -0
  52. package/bin/collect-metrics.sh +0 -62
  53. package/framework/.claudeignore +0 -51
  54. package/framework/CLAUDE.md +0 -51
  55. package/framework/MCP_SETUP.md +0 -229
  56. package/framework/agents/architecture-strategist.md +0 -53
  57. package/framework/agents/backend-agent.md +0 -150
  58. package/framework/agents/code-simplicity-reviewer.md +0 -86
  59. package/framework/agents/frontend-agent.md +0 -111
  60. package/framework/agents/kieran-typescript-reviewer.md +0 -96
  61. package/framework/agents/performance-oracle.md +0 -111
  62. package/framework/agents/qualia-codebase-mapper.md +0 -761
  63. package/framework/agents/qualia-debugger.md +0 -1204
  64. package/framework/agents/qualia-executor.md +0 -882
  65. package/framework/agents/qualia-integration-checker.md +0 -424
  66. package/framework/agents/qualia-phase-researcher.md +0 -457
  67. package/framework/agents/qualia-plan-checker.md +0 -700
  68. package/framework/agents/qualia-planner.md +0 -1245
  69. package/framework/agents/qualia-project-researcher.md +0 -603
  70. package/framework/agents/qualia-research-synthesizer.md +0 -200
  71. package/framework/agents/qualia-roadmapper.md +0 -606
  72. package/framework/agents/qualia-verifier.md +0 -686
  73. package/framework/agents/red-team-qa.md +0 -130
  74. package/framework/agents/security-auditor.md +0 -72
  75. package/framework/agents/team-orchestrator.md +0 -229
  76. package/framework/agents/teams/framework-audit-team.md +0 -66
  77. package/framework/agents/teams/full-stack-team.md +0 -48
  78. package/framework/agents/teams/optimize-team.md +0 -53
  79. package/framework/agents/teams/review-team.md +0 -70
  80. package/framework/agents/teams/ship-team.md +0 -86
  81. package/framework/agents/test-agent.md +0 -182
  82. package/framework/hooks/auto-format.sh +0 -54
  83. package/framework/hooks/block-env-edit.sh +0 -42
  84. package/framework/hooks/branch-guard.sh +0 -43
  85. package/framework/hooks/confirm-delete.sh +0 -59
  86. package/framework/hooks/migration-validate.sh +0 -77
  87. package/framework/hooks/notification-speak.sh +0 -16
  88. package/framework/hooks/pre-commit.sh +0 -100
  89. package/framework/hooks/pre-compact.sh +0 -56
  90. package/framework/hooks/pre-deploy-gate.sh +0 -160
  91. package/framework/hooks/qualia-colors.sh +0 -32
  92. package/framework/hooks/retention-cleanup.sh +0 -62
  93. package/framework/hooks/save-session-state.sh +0 -185
  94. package/framework/hooks/session-context-loader.sh +0 -96
  95. package/framework/hooks/session-learn.sh +0 -32
  96. package/framework/hooks/skill-announce.sh +0 -123
  97. package/framework/hooks/tool-error-announce.sh +0 -27
  98. package/framework/install.ps1 +0 -323
  99. package/framework/install.sh +0 -313
  100. package/framework/qualia-framework/VERSION +0 -1
  101. package/framework/qualia-framework/assets/qualia-logo.png +0 -0
  102. package/framework/qualia-framework/bin/collect-metrics.sh +0 -67
  103. package/framework/qualia-framework/bin/generate-report-docx.py +0 -429
  104. package/framework/qualia-framework/bin/qualia-tools.js +0 -2201
  105. package/framework/qualia-framework/bin/qualia-tools.test.js +0 -1054
  106. package/framework/qualia-framework/references/checkpoints.md +0 -775
  107. package/framework/qualia-framework/references/completion-checklists.md +0 -359
  108. package/framework/qualia-framework/references/continuation-format.md +0 -249
  109. package/framework/qualia-framework/references/continuation-prompt.md +0 -97
  110. package/framework/qualia-framework/references/decimal-phase-calculation.md +0 -65
  111. package/framework/qualia-framework/references/design-quality.md +0 -56
  112. package/framework/qualia-framework/references/employee-guide.md +0 -167
  113. package/framework/qualia-framework/references/git-integration.md +0 -254
  114. package/framework/qualia-framework/references/git-planning-commit.md +0 -50
  115. package/framework/qualia-framework/references/model-profile-resolution.md +0 -32
  116. package/framework/qualia-framework/references/model-profiles.md +0 -73
  117. package/framework/qualia-framework/references/phase-argument-parsing.md +0 -61
  118. package/framework/qualia-framework/references/planning-config.md +0 -195
  119. package/framework/qualia-framework/references/questioning.md +0 -141
  120. package/framework/qualia-framework/references/tdd.md +0 -263
  121. package/framework/qualia-framework/references/ui-brand.md +0 -160
  122. package/framework/qualia-framework/references/verification-patterns.md +0 -612
  123. package/framework/qualia-framework/templates/DEBUG.md +0 -159
  124. package/framework/qualia-framework/templates/DESIGN.md +0 -81
  125. package/framework/qualia-framework/templates/UAT.md +0 -247
  126. package/framework/qualia-framework/templates/codebase/architecture.md +0 -255
  127. package/framework/qualia-framework/templates/codebase/concerns.md +0 -310
  128. package/framework/qualia-framework/templates/codebase/conventions.md +0 -307
  129. package/framework/qualia-framework/templates/codebase/integrations.md +0 -280
  130. package/framework/qualia-framework/templates/codebase/stack.md +0 -186
  131. package/framework/qualia-framework/templates/codebase/structure.md +0 -285
  132. package/framework/qualia-framework/templates/codebase/testing.md +0 -480
  133. package/framework/qualia-framework/templates/config.json +0 -35
  134. package/framework/qualia-framework/templates/context.md +0 -283
  135. package/framework/qualia-framework/templates/continue-here.md +0 -78
  136. package/framework/qualia-framework/templates/debug-subagent-prompt.md +0 -91
  137. package/framework/qualia-framework/templates/discovery.md +0 -146
  138. package/framework/qualia-framework/templates/lab-notes.md +0 -16
  139. package/framework/qualia-framework/templates/milestone-archive.md +0 -123
  140. package/framework/qualia-framework/templates/milestone.md +0 -115
  141. package/framework/qualia-framework/templates/phase-prompt.md +0 -567
  142. package/framework/qualia-framework/templates/planner-subagent-prompt.md +0 -117
  143. package/framework/qualia-framework/templates/project.md +0 -184
  144. package/framework/qualia-framework/templates/projects/ai-agent.md +0 -156
  145. package/framework/qualia-framework/templates/projects/mobile-app.md +0 -181
  146. package/framework/qualia-framework/templates/projects/voice-agent.md +0 -134
  147. package/framework/qualia-framework/templates/projects/website.md +0 -137
  148. package/framework/qualia-framework/templates/requirements.md +0 -231
  149. package/framework/qualia-framework/templates/research-project/ARCHITECTURE.md +0 -204
  150. package/framework/qualia-framework/templates/research-project/FEATURES.md +0 -147
  151. package/framework/qualia-framework/templates/research-project/PITFALLS.md +0 -200
  152. package/framework/qualia-framework/templates/research-project/STACK.md +0 -120
  153. package/framework/qualia-framework/templates/research-project/SUMMARY.md +0 -170
  154. package/framework/qualia-framework/templates/research.md +0 -552
  155. package/framework/qualia-framework/templates/roadmap.md +0 -206
  156. package/framework/qualia-framework/templates/state.md +0 -179
  157. package/framework/qualia-framework/templates/summary-complex.md +0 -59
  158. package/framework/qualia-framework/templates/summary-minimal.md +0 -41
  159. package/framework/qualia-framework/templates/summary-standard.md +0 -48
  160. package/framework/qualia-framework/templates/summary.md +0 -246
  161. package/framework/qualia-framework/templates/user-setup.md +0 -311
  162. package/framework/qualia-framework/templates/verification-report.md +0 -322
  163. package/framework/qualia-framework/workflows/add-phase.md +0 -179
  164. package/framework/qualia-framework/workflows/add-todo.md +0 -157
  165. package/framework/qualia-framework/workflows/audit-milestone.md +0 -241
  166. package/framework/qualia-framework/workflows/check-todos.md +0 -176
  167. package/framework/qualia-framework/workflows/complete-milestone.md +0 -858
  168. package/framework/qualia-framework/workflows/diagnose-issues.md +0 -219
  169. package/framework/qualia-framework/workflows/discovery-phase.md +0 -289
  170. package/framework/qualia-framework/workflows/discuss-phase.md +0 -534
  171. package/framework/qualia-framework/workflows/execute-phase.md +0 -559
  172. package/framework/qualia-framework/workflows/execute-plan.md +0 -438
  173. package/framework/qualia-framework/workflows/help.md +0 -470
  174. package/framework/qualia-framework/workflows/insert-phase.md +0 -220
  175. package/framework/qualia-framework/workflows/list-phase-assumptions.md +0 -178
  176. package/framework/qualia-framework/workflows/map-codebase.md +0 -327
  177. package/framework/qualia-framework/workflows/new-milestone.md +0 -363
  178. package/framework/qualia-framework/workflows/new-project.md +0 -982
  179. package/framework/qualia-framework/workflows/pause-work.md +0 -122
  180. package/framework/qualia-framework/workflows/plan-milestone-gaps.md +0 -256
  181. package/framework/qualia-framework/workflows/plan-phase.md +0 -422
  182. package/framework/qualia-framework/workflows/progress.md +0 -389
  183. package/framework/qualia-framework/workflows/quick.md +0 -252
  184. package/framework/qualia-framework/workflows/remove-phase.md +0 -326
  185. package/framework/qualia-framework/workflows/research-phase.md +0 -74
  186. package/framework/qualia-framework/workflows/resume-project.md +0 -306
  187. package/framework/qualia-framework/workflows/set-profile.md +0 -80
  188. package/framework/qualia-framework/workflows/settings.md +0 -145
  189. package/framework/qualia-framework/workflows/transition.md +0 -556
  190. package/framework/qualia-framework/workflows/update.md +0 -197
  191. package/framework/qualia-framework/workflows/verify-phase.md +0 -195
  192. package/framework/qualia-framework/workflows/verify-work.md +0 -625
  193. package/framework/rules/context7.md +0 -14
  194. package/framework/rules/frontend.md +0 -33
  195. package/framework/rules/speed.md +0 -23
  196. package/framework/scripts/__pycache__/say.cpython-314.pyc +0 -0
  197. package/framework/scripts/apply-retention.sh +0 -120
  198. package/framework/scripts/bootstrap-pop-os.sh +0 -354
  199. package/framework/scripts/claude-voice +0 -13
  200. package/framework/scripts/cleanup.sh +0 -131
  201. package/framework/scripts/cowork-mode.sh +0 -141
  202. package/framework/scripts/generate-project-claude-md.sh +0 -153
  203. package/framework/scripts/load-test-webhook.js +0 -172
  204. package/framework/scripts/say.py +0 -236
  205. package/framework/scripts/showcase-video-recorder/ffmpeg-builder.js +0 -167
  206. package/framework/scripts/showcase-video-recorder/playwright-helpers.js +0 -216
  207. package/framework/scripts/speak.py +0 -55
  208. package/framework/scripts/speak.sh +0 -18
  209. package/framework/scripts/status.sh +0 -138
  210. package/framework/scripts/sync-to-framework.sh +0 -65
  211. package/framework/scripts/voice-hotkey.py +0 -227
  212. package/framework/scripts/voice-input.sh +0 -51
  213. package/framework/skills/animate/SKILL.md +0 -202
  214. package/framework/skills/bolder/SKILL.md +0 -144
  215. package/framework/skills/browser-qa/SKILL.md +0 -536
  216. package/framework/skills/clarify/SKILL.md +0 -179
  217. package/framework/skills/client-handoff/SKILL.md +0 -135
  218. package/framework/skills/collab-onboard/SKILL.md +0 -111
  219. package/framework/skills/colorize/SKILL.md +0 -170
  220. package/framework/skills/critique/SKILL.md +0 -126
  221. package/framework/skills/deep-research/SKILL.md +0 -240
  222. package/framework/skills/delight/SKILL.md +0 -329
  223. package/framework/skills/deploy/SKILL.md +0 -261
  224. package/framework/skills/deploy-verify/SKILL.md +0 -377
  225. package/framework/skills/deploy-verify/scripts/canary-check.sh +0 -206
  226. package/framework/skills/deploy-verify/scripts/check-console-errors.js +0 -147
  227. package/framework/skills/deploy-verify/scripts/check-cwv.js +0 -139
  228. package/framework/skills/deploy-verify/scripts/project-detect.sh +0 -84
  229. package/framework/skills/deploy-verify/scripts/verify.sh +0 -548
  230. package/framework/skills/design-quieter/SKILL.md +0 -130
  231. package/framework/skills/distill/SKILL.md +0 -149
  232. package/framework/skills/docs-lookup/SKILL.md +0 -79
  233. package/framework/skills/fcm-notifications/SKILL.md +0 -125
  234. package/framework/skills/financial-ledger/SKILL.md +0 -1039
  235. package/framework/skills/frontend-master/NOTICE.md +0 -4
  236. package/framework/skills/frontend-master/SKILL.md +0 -127
  237. package/framework/skills/frontend-master/reference/color-and-contrast.md +0 -132
  238. package/framework/skills/frontend-master/reference/interaction-design.md +0 -123
  239. package/framework/skills/frontend-master/reference/motion-design.md +0 -99
  240. package/framework/skills/frontend-master/reference/responsive-design.md +0 -114
  241. package/framework/skills/frontend-master/reference/spatial-design.md +0 -100
  242. package/framework/skills/frontend-master/reference/typography.md +0 -131
  243. package/framework/skills/frontend-master/reference/ux-writing.md +0 -107
  244. package/framework/skills/harden/SKILL.md +0 -357
  245. package/framework/skills/i18n-rtl/SKILL.md +0 -752
  246. package/framework/skills/learn/SKILL.md +0 -95
  247. package/framework/skills/memory/SKILL.md +0 -50
  248. package/framework/skills/mobile-expo/SKILL.md +0 -977
  249. package/framework/skills/mobile-expo/references/store-checklist.md +0 -550
  250. package/framework/skills/nestjs-backend/README.md +0 -73
  251. package/framework/skills/nestjs-backend/SKILL.md +0 -446
  252. package/framework/skills/nestjs-backend/references/templates.md +0 -1173
  253. package/framework/skills/normalize/SKILL.md +0 -79
  254. package/framework/skills/onboard/SKILL.md +0 -242
  255. package/framework/skills/openrouter-agent/SKILL.md +0 -922
  256. package/framework/skills/polish/SKILL.md +0 -209
  257. package/framework/skills/pr/SKILL.md +0 -66
  258. package/framework/skills/qualia/SKILL.md +0 -199
  259. package/framework/skills/qualia-add-todo/SKILL.md +0 -68
  260. package/framework/skills/qualia-audit-milestone/SKILL.md +0 -95
  261. package/framework/skills/qualia-check-todos/SKILL.md +0 -55
  262. package/framework/skills/qualia-complete-milestone/SKILL.md +0 -134
  263. package/framework/skills/qualia-debug/SKILL.md +0 -149
  264. package/framework/skills/qualia-design/SKILL.md +0 -203
  265. package/framework/skills/qualia-discuss-phase/SKILL.md +0 -72
  266. package/framework/skills/qualia-evolve/SKILL.md +0 -200
  267. package/framework/skills/qualia-execute-phase/SKILL.md +0 -89
  268. package/framework/skills/qualia-framework-audit/SKILL.md +0 -604
  269. package/framework/skills/qualia-guide/SKILL.md +0 -32
  270. package/framework/skills/qualia-help/SKILL.md +0 -114
  271. package/framework/skills/qualia-idk/SKILL.md +0 -352
  272. package/framework/skills/qualia-list-phase-assumptions/SKILL.md +0 -67
  273. package/framework/skills/qualia-new-milestone/SKILL.md +0 -72
  274. package/framework/skills/qualia-new-project/SKILL.md +0 -232
  275. package/framework/skills/qualia-pause-work/SKILL.md +0 -96
  276. package/framework/skills/qualia-plan-milestone-gaps/SKILL.md +0 -57
  277. package/framework/skills/qualia-plan-phase/SKILL.md +0 -104
  278. package/framework/skills/qualia-production-check/SKILL.md +0 -0
  279. package/framework/skills/qualia-progress/SKILL.md +0 -53
  280. package/framework/skills/qualia-quick/SKILL.md +0 -89
  281. package/framework/skills/qualia-report/SKILL.md +0 -166
  282. package/framework/skills/qualia-research-phase/SKILL.md +0 -88
  283. package/framework/skills/qualia-resume-work/SKILL.md +0 -62
  284. package/framework/skills/qualia-review/SKILL.md +0 -263
  285. package/framework/skills/qualia-start/SKILL.md +0 -161
  286. package/framework/skills/qualia-verify-work/SKILL.md +0 -132
  287. package/framework/skills/rag/SKILL.md +0 -750
  288. package/framework/skills/responsive/SKILL.md +0 -231
  289. package/framework/skills/retro/SKILL.md +0 -284
  290. package/framework/skills/sakani-conventions/SKILL.md +0 -136
  291. package/framework/skills/sakani-conventions/evals/evals.json +0 -23
  292. package/framework/skills/sakani-conventions/references/entities.md +0 -365
  293. package/framework/skills/sakani-conventions/references/error-codes.md +0 -95
  294. package/framework/skills/seo-master/SKILL.md +0 -490
  295. package/framework/skills/seo-master/references/checklist.md +0 -199
  296. package/framework/skills/seo-master/references/structured-data.md +0 -609
  297. package/framework/skills/ship/SKILL.md +0 -239
  298. package/framework/skills/stack-researcher/SKILL.md +0 -215
  299. package/framework/skills/status/SKILL.md +0 -154
  300. package/framework/skills/status/scripts/health-check.sh +0 -562
  301. package/framework/skills/subscription-payments/SKILL.md +0 -250
  302. package/framework/skills/supabase/SKILL.md +0 -973
  303. package/framework/skills/supabase/references/templates.md +0 -159
  304. package/framework/skills/team/SKILL.md +0 -67
  305. package/framework/skills/test-runner/SKILL.md +0 -202
  306. package/framework/skills/voice-agent/SKILL.md +0 -1312
  307. package/framework/skills/zoho-workflow/SKILL.md +0 -51
  308. package/framework/statusline-command.sh +0 -117
  309. package/framework/teams/default/inboxes/plan-04.json +0 -9
  310. package/framework/teams/review-team.md +0 -75
  311. package/framework/teams/ship-team.md +0 -86
  312. package/profiles/fawzi.json +0 -16
  313. package/profiles/hasan.json +0 -16
  314. package/profiles/moayad.json +0 -16
  315. package/templates/CLAUDE-owner.md +0 -52
  316. package/templates/CLAUDE.md.hbs +0 -58
  317. package/templates/env.claude.template +0 -12
  318. package/templates/settings.json +0 -172
  319. package/uninstall.sh +0 -90
  320. /package/{framework/rules → rules}/deployment.md +0 -0
  321. /package/{framework/rules → rules}/security.md +0 -0
@@ -1,775 +0,0 @@
1
- <overview>
2
- Plans execute autonomously. Checkpoints formalize interaction points where human verification or decisions are needed.
3
-
4
- **Core principle:** Claude automates everything with CLI/API. Checkpoints are for verification and decisions, not manual work.
5
-
6
- **Golden rules:**
7
- 1. **If Claude can run it, Claude runs it** - Never ask user to execute CLI commands, start servers, or run builds
8
- 2. **Claude sets up the verification environment** - Start dev servers, seed databases, configure env vars
9
- 3. **User only does what requires human judgment** - Visual checks, UX evaluation, "does this feel right?"
10
- 4. **Secrets come from user, automation comes from Claude** - Ask for API keys, then Claude uses them via CLI
11
- </overview>
12
-
13
- <checkpoint_types>
14
-
15
- <type name="human-verify">
16
- ## checkpoint:human-verify (Most Common - 90%)
17
-
18
- **When:** Claude completed automated work, human confirms it works correctly.
19
-
20
- **Use for:**
21
- - Visual UI checks (layout, styling, responsiveness)
22
- - Interactive flows (click through wizard, test user flows)
23
- - Functional verification (feature works as expected)
24
- - Audio/video playback quality
25
- - Animation smoothness
26
- - Accessibility testing
27
-
28
- **Structure:**
29
- ```xml
30
- <task type="checkpoint:human-verify" gate="blocking">
31
- <what-built>[What Claude automated and deployed/built]</what-built>
32
- <how-to-verify>
33
- [Exact steps to test - URLs, commands, expected behavior]
34
- </how-to-verify>
35
- <resume-signal>[How to continue - "approved", "yes", or describe issues]</resume-signal>
36
- </task>
37
- ```
38
-
39
- **Example: UI Component (shows key pattern: Claude starts server BEFORE checkpoint)**
40
- ```xml
41
- <task type="auto">
42
- <name>Build responsive dashboard layout</name>
43
- <files>src/components/Dashboard.tsx, src/app/dashboard/page.tsx</files>
44
- <action>Create dashboard with sidebar, header, and content area. Use Tailwind responsive classes for mobile.</action>
45
- <verify>npm run build succeeds, no TypeScript errors</verify>
46
- <done>Dashboard component builds without errors</done>
47
- </task>
48
-
49
- <task type="auto">
50
- <name>Start dev server for verification</name>
51
- <action>Run `npm run dev` in background, wait for "ready" message, capture port</action>
52
- <verify>curl http://localhost:3000 returns 200</verify>
53
- <done>Dev server running at http://localhost:3000</done>
54
- </task>
55
-
56
- <task type="checkpoint:human-verify" gate="blocking">
57
- <what-built>Responsive dashboard layout - dev server running at http://localhost:3000</what-built>
58
- <how-to-verify>
59
- Visit http://localhost:3000/dashboard and verify:
60
- 1. Desktop (>1024px): Sidebar left, content right, header top
61
- 2. Tablet (768px): Sidebar collapses to hamburger menu
62
- 3. Mobile (375px): Single column layout, bottom nav appears
63
- 4. No layout shift or horizontal scroll at any size
64
- </how-to-verify>
65
- <resume-signal>Type "approved" or describe layout issues</resume-signal>
66
- </task>
67
- ```
68
-
69
- **Example: Xcode Build**
70
- ```xml
71
- <task type="auto">
72
- <name>Build macOS app with Xcode</name>
73
- <files>App.xcodeproj, Sources/</files>
74
- <action>Run `xcodebuild -project App.xcodeproj -scheme App build`. Check for compilation errors in output.</action>
75
- <verify>Build output contains "BUILD SUCCEEDED", no errors</verify>
76
- <done>App builds successfully</done>
77
- </task>
78
-
79
- <task type="checkpoint:human-verify" gate="blocking">
80
- <what-built>Built macOS app at DerivedData/Build/Products/Debug/App.app</what-built>
81
- <how-to-verify>
82
- Open App.app and test:
83
- - App launches without crashes
84
- - Menu bar icon appears
85
- - Preferences window opens correctly
86
- - No visual glitches or layout issues
87
- </how-to-verify>
88
- <resume-signal>Type "approved" or describe issues</resume-signal>
89
- </task>
90
- ```
91
- </type>
92
-
93
- <type name="decision">
94
- ## checkpoint:decision (9%)
95
-
96
- **When:** Human must make choice that affects implementation direction.
97
-
98
- **Use for:**
99
- - Technology selection (which auth provider, which database)
100
- - Architecture decisions (monorepo vs separate repos)
101
- - Design choices (color scheme, layout approach)
102
- - Feature prioritization (which variant to build)
103
- - Data model decisions (schema structure)
104
-
105
- **Structure:**
106
- ```xml
107
- <task type="checkpoint:decision" gate="blocking">
108
- <decision>[What's being decided]</decision>
109
- <context>[Why this decision matters]</context>
110
- <options>
111
- <option id="option-a">
112
- <name>[Option name]</name>
113
- <pros>[Benefits]</pros>
114
- <cons>[Tradeoffs]</cons>
115
- </option>
116
- <option id="option-b">
117
- <name>[Option name]</name>
118
- <pros>[Benefits]</pros>
119
- <cons>[Tradeoffs]</cons>
120
- </option>
121
- </options>
122
- <resume-signal>[How to indicate choice]</resume-signal>
123
- </task>
124
- ```
125
-
126
- **Example: Auth Provider Selection**
127
- ```xml
128
- <task type="checkpoint:decision" gate="blocking">
129
- <decision>Select authentication provider</decision>
130
- <context>
131
- Need user authentication for the app. Three solid options with different tradeoffs.
132
- </context>
133
- <options>
134
- <option id="supabase">
135
- <name>Supabase Auth</name>
136
- <pros>Built-in with Supabase DB we're using, generous free tier, row-level security integration</pros>
137
- <cons>Less customizable UI, tied to Supabase ecosystem</cons>
138
- </option>
139
- <option id="clerk">
140
- <name>Clerk</name>
141
- <pros>Beautiful pre-built UI, best developer experience, excellent docs</pros>
142
- <cons>Paid after 10k MAU, vendor lock-in</cons>
143
- </option>
144
- <option id="nextauth">
145
- <name>NextAuth.js</name>
146
- <pros>Free, self-hosted, maximum control, widely adopted</pros>
147
- <cons>More setup work, you manage security updates, UI is DIY</cons>
148
- </option>
149
- </options>
150
- <resume-signal>Select: supabase, clerk, or nextauth</resume-signal>
151
- </task>
152
- ```
153
-
154
- **Example: Database Selection**
155
- ```xml
156
- <task type="checkpoint:decision" gate="blocking">
157
- <decision>Select database for user data</decision>
158
- <context>
159
- App needs persistent storage for users, sessions, and user-generated content.
160
- Expected scale: 10k users, 1M records first year.
161
- </context>
162
- <options>
163
- <option id="supabase">
164
- <name>Supabase (Postgres)</name>
165
- <pros>Full SQL, generous free tier, built-in auth, real-time subscriptions</pros>
166
- <cons>Vendor lock-in for real-time features, less flexible than raw Postgres</cons>
167
- </option>
168
- <option id="planetscale">
169
- <name>PlanetScale (MySQL)</name>
170
- <pros>Serverless scaling, branching workflow, excellent DX</pros>
171
- <cons>MySQL not Postgres, no foreign keys in free tier</cons>
172
- </option>
173
- <option id="convex">
174
- <name>Convex</name>
175
- <pros>Real-time by default, TypeScript-native, automatic caching</pros>
176
- <cons>Newer platform, different mental model, less SQL flexibility</cons>
177
- </option>
178
- </options>
179
- <resume-signal>Select: supabase, planetscale, or convex</resume-signal>
180
- </task>
181
- ```
182
- </type>
183
-
184
- <type name="human-action">
185
- ## checkpoint:human-action (1% - Rare)
186
-
187
- **When:** Action has NO CLI/API and requires human-only interaction, OR Claude hit an authentication gate during automation.
188
-
189
- **Use ONLY for:**
190
- - **Authentication gates** - Claude tried CLI/API but needs credentials (this is NOT a failure)
191
- - Email verification links (clicking email)
192
- - SMS 2FA codes (phone verification)
193
- - Manual account approvals (platform requires human review)
194
- - Credit card 3D Secure flows (web-based payment authorization)
195
- - OAuth app approvals (web-based approval)
196
-
197
- **Do NOT use for pre-planned manual work:**
198
- - Deploying (use CLI - auth gate if needed)
199
- - Creating webhooks/databases (use API/CLI - auth gate if needed)
200
- - Running builds/tests (use Bash tool)
201
- - Creating files (use Write tool)
202
-
203
- **Structure:**
204
- ```xml
205
- <task type="checkpoint:human-action" gate="blocking">
206
- <action>[What human must do - Claude already did everything automatable]</action>
207
- <instructions>
208
- [What Claude already automated]
209
- [The ONE thing requiring human action]
210
- </instructions>
211
- <verification>[What Claude can check afterward]</verification>
212
- <resume-signal>[How to continue]</resume-signal>
213
- </task>
214
- ```
215
-
216
- **Example: Email Verification**
217
- ```xml
218
- <task type="auto">
219
- <name>Create SendGrid account via API</name>
220
- <action>Use SendGrid API to create subuser account with provided email. Request verification email.</action>
221
- <verify>API returns 201, account created</verify>
222
- <done>Account created, verification email sent</done>
223
- </task>
224
-
225
- <task type="checkpoint:human-action" gate="blocking">
226
- <action>Complete email verification for SendGrid account</action>
227
- <instructions>
228
- I created the account and requested verification email.
229
- Check your inbox for SendGrid verification link and click it.
230
- </instructions>
231
- <verification>SendGrid API key works: curl test succeeds</verification>
232
- <resume-signal>Type "done" when email verified</resume-signal>
233
- </task>
234
- ```
235
-
236
- **Example: Authentication Gate (Dynamic Checkpoint)**
237
- ```xml
238
- <task type="auto">
239
- <name>Deploy to Vercel</name>
240
- <files>.vercel/, vercel.json</files>
241
- <action>Run `vercel --yes` to deploy</action>
242
- <verify>vercel ls shows deployment, curl returns 200</verify>
243
- </task>
244
-
245
- <!-- If vercel returns "Error: Not authenticated", Claude creates checkpoint on the fly -->
246
-
247
- <task type="checkpoint:human-action" gate="blocking">
248
- <action>Authenticate Vercel CLI so I can continue deployment</action>
249
- <instructions>
250
- I tried to deploy but got authentication error.
251
- Run: vercel login
252
- This will open your browser - complete the authentication flow.
253
- </instructions>
254
- <verification>vercel whoami returns your account email</verification>
255
- <resume-signal>Type "done" when authenticated</resume-signal>
256
- </task>
257
-
258
- <!-- After authentication, Claude retries the deployment -->
259
-
260
- <task type="auto">
261
- <name>Retry Vercel deployment</name>
262
- <action>Run `vercel --yes` (now authenticated)</action>
263
- <verify>vercel ls shows deployment, curl returns 200</verify>
264
- </task>
265
- ```
266
-
267
- **Key distinction:** Auth gates are created dynamically when Claude encounters auth errors. NOT pre-planned — Claude automates first, asks for credentials only when blocked.
268
- </type>
269
- </checkpoint_types>
270
-
271
- <execution_protocol>
272
-
273
- When Claude encounters `type="checkpoint:*"`:
274
-
275
- 1. **Stop immediately** - do not proceed to next task
276
- 2. **Display checkpoint clearly** using the format below
277
- 3. **Wait for user response** - do not hallucinate completion
278
- 4. **Verify if possible** - check files, run tests, whatever is specified
279
- 5. **Resume execution** - continue to next task only after confirmation
280
-
281
- **For checkpoint:human-verify:**
282
- ```
283
- ╔═══════════════════════════════════════════════════════╗
284
- ║ CHECKPOINT: Verification Required ║
285
- ╚═══════════════════════════════════════════════════════╝
286
-
287
- Progress: 5/8 tasks complete
288
- Task: Responsive dashboard layout
289
-
290
- Built: Responsive dashboard at /dashboard
291
-
292
- How to verify:
293
- 1. Visit: http://localhost:3000/dashboard
294
- 2. Desktop (>1024px): Sidebar visible, content fills remaining space
295
- 3. Tablet (768px): Sidebar collapses to icons
296
- 4. Mobile (375px): Sidebar hidden, hamburger menu appears
297
-
298
- ────────────────────────────────────────────────────────
299
- → YOUR ACTION: Type "approved" or describe issues
300
- ────────────────────────────────────────────────────────
301
- ```
302
-
303
- **For checkpoint:decision:**
304
- ```
305
- ╔═══════════════════════════════════════════════════════╗
306
- ║ CHECKPOINT: Decision Required ║
307
- ╚═══════════════════════════════════════════════════════╝
308
-
309
- Progress: 2/6 tasks complete
310
- Task: Select authentication provider
311
-
312
- Decision: Which auth provider should we use?
313
-
314
- Context: Need user authentication. Three options with different tradeoffs.
315
-
316
- Options:
317
- 1. supabase - Built-in with our DB, free tier
318
- Pros: Row-level security integration, generous free tier
319
- Cons: Less customizable UI, ecosystem lock-in
320
-
321
- 2. clerk - Best DX, paid after 10k users
322
- Pros: Beautiful pre-built UI, excellent documentation
323
- Cons: Vendor lock-in, pricing at scale
324
-
325
- 3. nextauth - Self-hosted, maximum control
326
- Pros: Free, no vendor lock-in, widely adopted
327
- Cons: More setup work, DIY security updates
328
-
329
- ────────────────────────────────────────────────────────
330
- → YOUR ACTION: Select supabase, clerk, or nextauth
331
- ────────────────────────────────────────────────────────
332
- ```
333
-
334
- **For checkpoint:human-action:**
335
- ```
336
- ╔═══════════════════════════════════════════════════════╗
337
- ║ CHECKPOINT: Action Required ║
338
- ╚═══════════════════════════════════════════════════════╝
339
-
340
- Progress: 3/8 tasks complete
341
- Task: Deploy to Vercel
342
-
343
- Attempted: vercel --yes
344
- Error: Not authenticated. Please run 'vercel login'
345
-
346
- What you need to do:
347
- 1. Run: vercel login
348
- 2. Complete browser authentication when it opens
349
- 3. Return here when done
350
-
351
- I'll verify: vercel whoami returns your account
352
-
353
- ────────────────────────────────────────────────────────
354
- → YOUR ACTION: Type "done" when authenticated
355
- ────────────────────────────────────────────────────────
356
- ```
357
- </execution_protocol>
358
-
359
- <authentication_gates>
360
-
361
- **Auth gate = Claude tried CLI/API, got auth error.** Not a failure — a gate requiring human input to unblock.
362
-
363
- **Pattern:** Claude tries automation → auth error → creates checkpoint:human-action → user authenticates → Claude retries → continues
364
-
365
- **Gate protocol:**
366
- 1. Recognize it's not a failure - missing auth is expected
367
- 2. Stop current task - don't retry repeatedly
368
- 3. Create checkpoint:human-action dynamically
369
- 4. Provide exact authentication steps
370
- 5. Verify authentication works
371
- 6. Retry the original task
372
- 7. Continue normally
373
-
374
- **Key distinction:**
375
- - Pre-planned checkpoint: "I need you to do X" (wrong - Claude should automate)
376
- - Auth gate: "I tried to automate X but need credentials" (correct - unblocks automation)
377
-
378
- </authentication_gates>
379
-
380
- <automation_reference>
381
-
382
- **The rule:** If it has CLI/API, Claude does it. Never ask human to perform automatable work.
383
-
384
- ## Service CLI Reference
385
-
386
- | Service | CLI/API | Key Commands | Auth Gate |
387
- |---------|---------|--------------|-----------|
388
- | Vercel | `vercel` | `--yes`, `env add`, `--prod`, `ls` | `vercel login` |
389
- | Railway | `railway` | `init`, `up`, `variables set` | `railway login` |
390
- | Fly | `fly` | `launch`, `deploy`, `secrets set` | `fly auth login` |
391
- | Stripe | `stripe` + API | `listen`, `trigger`, API calls | API key in .env |
392
- | Supabase | `supabase` | `init`, `link`, `db push`, `gen types` | `supabase login` |
393
- | Upstash | `upstash` | `redis create`, `redis get` | `upstash auth login` |
394
- | PlanetScale | `pscale` | `database create`, `branch create` | `pscale auth login` |
395
- | GitHub | `gh` | `repo create`, `pr create`, `secret set` | `gh auth login` |
396
- | Node | `npm`/`pnpm` | `install`, `run build`, `test`, `run dev` | N/A |
397
- | Xcode | `xcodebuild` | `-project`, `-scheme`, `build`, `test` | N/A |
398
- | Convex | `npx convex` | `dev`, `deploy`, `env set`, `env get` | `npx convex login` |
399
-
400
- ## Environment Variable Automation
401
-
402
- **Env files:** Use Write/Edit tools. Never ask human to create .env manually.
403
-
404
- **Dashboard env vars via CLI:**
405
-
406
- | Platform | CLI Command | Example |
407
- |----------|-------------|---------|
408
- | Convex | `npx convex env set` | `npx convex env set OPENAI_API_KEY sk-...` |
409
- | Vercel | `vercel env add` | `vercel env add STRIPE_KEY production` |
410
- | Railway | `railway variables set` | `railway variables set API_KEY=value` |
411
- | Fly | `fly secrets set` | `fly secrets set DATABASE_URL=...` |
412
- | Supabase | `supabase secrets set` | `supabase secrets set MY_SECRET=value` |
413
-
414
- **Secret collection pattern:**
415
- ```xml
416
- <!-- WRONG: Asking user to add env vars in dashboard -->
417
- <task type="checkpoint:human-action">
418
- <action>Add OPENAI_API_KEY to Convex dashboard</action>
419
- <instructions>Go to dashboard.convex.dev → Settings → Environment Variables → Add</instructions>
420
- </task>
421
-
422
- <!-- RIGHT: Claude asks for value, then adds via CLI -->
423
- <task type="checkpoint:human-action">
424
- <action>Provide your OpenAI API key</action>
425
- <instructions>
426
- I need your OpenAI API key for Convex backend.
427
- Get it from: https://platform.openai.com/api-keys
428
- Paste the key (starts with sk-)
429
- </instructions>
430
- <verification>I'll add it via `npx convex env set` and verify</verification>
431
- <resume-signal>Paste your API key</resume-signal>
432
- </task>
433
-
434
- <task type="auto">
435
- <name>Configure OpenAI key in Convex</name>
436
- <action>Run `npx convex env set OPENAI_API_KEY {user-provided-key}`</action>
437
- <verify>`npx convex env get OPENAI_API_KEY` returns the key (masked)</verify>
438
- </task>
439
- ```
440
-
441
- ## Dev Server Automation
442
-
443
- | Framework | Start Command | Ready Signal | Default URL |
444
- |-----------|---------------|--------------|-------------|
445
- | Next.js | `npm run dev` | "Ready in" or "started server" | http://localhost:3000 |
446
- | Vite | `npm run dev` | "ready in" | http://localhost:5173 |
447
- | Convex | `npx convex dev` | "Convex functions ready" | N/A (backend only) |
448
- | Express | `npm start` | "listening on port" | http://localhost:3000 |
449
- | Django | `python manage.py runserver` | "Starting development server" | http://localhost:8000 |
450
-
451
- **Server lifecycle:**
452
- ```bash
453
- # Run in background, capture PID
454
- npm run dev &
455
- DEV_SERVER_PID=$!
456
-
457
- # Wait for ready (max 30s)
458
- timeout 30 bash -c 'until curl -s localhost:3000 > /dev/null 2>&1; do sleep 1; done'
459
- ```
460
-
461
- **Port conflicts:** Kill stale process (`lsof -ti:3000 | xargs kill`) or use alternate port (`--port 3001`).
462
-
463
- **Server stays running** through checkpoints. Only kill when plan complete, switching to production, or port needed for different service.
464
-
465
- ## CLI Installation Handling
466
-
467
- | CLI | Auto-install? | Command |
468
- |-----|---------------|---------|
469
- | npm/pnpm/yarn | No - ask user | User chooses package manager |
470
- | vercel | Yes | `npm i -g vercel` |
471
- | gh (GitHub) | Yes | `brew install gh` (macOS) or `apt install gh` (Linux) |
472
- | stripe | Yes | `npm i -g stripe` |
473
- | supabase | Yes | `npm i -g supabase` |
474
- | convex | No - use npx | `npx convex` (no install needed) |
475
- | fly | Yes | `brew install flyctl` or curl installer |
476
- | railway | Yes | `npm i -g @railway/cli` |
477
-
478
- **Protocol:** Try command → "command not found" → auto-installable? → yes: install silently, retry → no: checkpoint asking user to install.
479
-
480
- ## Pre-Checkpoint Automation Failures
481
-
482
- | Failure | Response |
483
- |---------|----------|
484
- | Server won't start | Check error, fix issue, retry (don't proceed to checkpoint) |
485
- | Port in use | Kill stale process or use alternate port |
486
- | Missing dependency | Run `npm install`, retry |
487
- | Build error | Fix the error first (bug, not checkpoint issue) |
488
- | Auth error | Create auth gate checkpoint |
489
- | Network timeout | Retry with backoff, then checkpoint if persistent |
490
-
491
- **Never present a checkpoint with broken verification environment.** If `curl localhost:3000` fails, don't ask user to "visit localhost:3000".
492
-
493
- ```xml
494
- <!-- WRONG: Checkpoint with broken environment -->
495
- <task type="checkpoint:human-verify">
496
- <what-built>Dashboard (server failed to start)</what-built>
497
- <how-to-verify>Visit http://localhost:3000...</how-to-verify>
498
- </task>
499
-
500
- <!-- RIGHT: Fix first, then checkpoint -->
501
- <task type="auto">
502
- <name>Fix server startup issue</name>
503
- <action>Investigate error, fix root cause, restart server</action>
504
- <verify>curl http://localhost:3000 returns 200</verify>
505
- </task>
506
-
507
- <task type="checkpoint:human-verify">
508
- <what-built>Dashboard - server running at http://localhost:3000</what-built>
509
- <how-to-verify>Visit http://localhost:3000/dashboard...</how-to-verify>
510
- </task>
511
- ```
512
-
513
- ## Automatable Quick Reference
514
-
515
- | Action | Automatable? | Claude does it? |
516
- |--------|--------------|-----------------|
517
- | Deploy to Vercel | Yes (`vercel`) | YES |
518
- | Create Stripe webhook | Yes (API) | YES |
519
- | Write .env file | Yes (Write tool) | YES |
520
- | Create Upstash DB | Yes (`upstash`) | YES |
521
- | Run tests | Yes (`npm test`) | YES |
522
- | Start dev server | Yes (`npm run dev`) | YES |
523
- | Add env vars to Convex | Yes (`npx convex env set`) | YES |
524
- | Add env vars to Vercel | Yes (`vercel env add`) | YES |
525
- | Seed database | Yes (CLI/API) | YES |
526
- | Click email verification link | No | NO |
527
- | Enter credit card with 3DS | No | NO |
528
- | Complete OAuth in browser | No | NO |
529
- | Visually verify UI looks correct | No | NO |
530
- | Test interactive user flows | No | NO |
531
-
532
- </automation_reference>
533
-
534
- <writing_guidelines>
535
-
536
- **DO:**
537
- - Automate everything with CLI/API before checkpoint
538
- - Be specific: "Visit https://myapp.vercel.app" not "check deployment"
539
- - Number verification steps
540
- - State expected outcomes: "You should see X"
541
- - Provide context: why this checkpoint exists
542
-
543
- **DON'T:**
544
- - Ask human to do work Claude can automate ❌
545
- - Assume knowledge: "Configure the usual settings" ❌
546
- - Skip steps: "Set up database" (too vague) ❌
547
- - Mix multiple verifications in one checkpoint ❌
548
-
549
- **Placement:**
550
- - **After automation completes** - not before Claude does the work
551
- - **After UI buildout** - before declaring phase complete
552
- - **Before dependent work** - decisions before implementation
553
- - **At integration points** - after configuring external services
554
-
555
- **Bad placement:** Before automation ❌ | Too frequent ❌ | Too late (dependent tasks already needed the result) ❌
556
- </writing_guidelines>
557
-
558
- <examples>
559
-
560
- ### Example 1: Database Setup (No Checkpoint Needed)
561
-
562
- ```xml
563
- <task type="auto">
564
- <name>Create Upstash Redis database</name>
565
- <files>.env</files>
566
- <action>
567
- 1. Run `upstash redis create myapp-cache --region us-east-1`
568
- 2. Capture connection URL from output
569
- 3. Write to .env: UPSTASH_REDIS_URL={url}
570
- 4. Verify connection with test command
571
- </action>
572
- <verify>
573
- - upstash redis list shows database
574
- - .env contains UPSTASH_REDIS_URL
575
- - Test connection succeeds
576
- </verify>
577
- <done>Redis database created and configured</done>
578
- </task>
579
-
580
- <!-- NO CHECKPOINT NEEDED - Claude automated everything and verified programmatically -->
581
- ```
582
-
583
- ### Example 2: Full Auth Flow (Single checkpoint at end)
584
-
585
- ```xml
586
- <task type="auto">
587
- <name>Create user schema</name>
588
- <files>src/db/schema.ts</files>
589
- <action>Define User, Session, Account tables with Drizzle ORM</action>
590
- <verify>npm run db:generate succeeds</verify>
591
- </task>
592
-
593
- <task type="auto">
594
- <name>Create auth API routes</name>
595
- <files>src/app/api/auth/[...nextauth]/route.ts</files>
596
- <action>Set up NextAuth with GitHub provider, JWT strategy</action>
597
- <verify>TypeScript compiles, no errors</verify>
598
- </task>
599
-
600
- <task type="auto">
601
- <name>Create login UI</name>
602
- <files>src/app/login/page.tsx, src/components/LoginButton.tsx</files>
603
- <action>Create login page with GitHub OAuth button</action>
604
- <verify>npm run build succeeds</verify>
605
- </task>
606
-
607
- <task type="auto">
608
- <name>Start dev server for auth testing</name>
609
- <action>Run `npm run dev` in background, wait for ready signal</action>
610
- <verify>curl http://localhost:3000 returns 200</verify>
611
- <done>Dev server running at http://localhost:3000</done>
612
- </task>
613
-
614
- <!-- ONE checkpoint at end verifies the complete flow -->
615
- <task type="checkpoint:human-verify" gate="blocking">
616
- <what-built>Complete authentication flow - dev server running at http://localhost:3000</what-built>
617
- <how-to-verify>
618
- 1. Visit: http://localhost:3000/login
619
- 2. Click "Sign in with GitHub"
620
- 3. Complete GitHub OAuth flow
621
- 4. Verify: Redirected to /dashboard, user name displayed
622
- 5. Refresh page: Session persists
623
- 6. Click logout: Session cleared
624
- </how-to-verify>
625
- <resume-signal>Type "approved" or describe issues</resume-signal>
626
- </task>
627
- ```
628
- </examples>
629
-
630
- <anti_patterns>
631
-
632
- ### ❌ BAD: Asking user to start dev server
633
-
634
- ```xml
635
- <task type="checkpoint:human-verify" gate="blocking">
636
- <what-built>Dashboard component</what-built>
637
- <how-to-verify>
638
- 1. Run: npm run dev
639
- 2. Visit: http://localhost:3000/dashboard
640
- 3. Check layout is correct
641
- </how-to-verify>
642
- </task>
643
- ```
644
-
645
- **Why bad:** Claude can run `npm run dev`. User should only visit URLs, not execute commands.
646
-
647
- ### ✅ GOOD: Claude starts server, user visits
648
-
649
- ```xml
650
- <task type="auto">
651
- <name>Start dev server</name>
652
- <action>Run `npm run dev` in background</action>
653
- <verify>curl localhost:3000 returns 200</verify>
654
- </task>
655
-
656
- <task type="checkpoint:human-verify" gate="blocking">
657
- <what-built>Dashboard at http://localhost:3000/dashboard (server running)</what-built>
658
- <how-to-verify>
659
- Visit http://localhost:3000/dashboard and verify:
660
- 1. Layout matches design
661
- 2. No console errors
662
- </how-to-verify>
663
- </task>
664
- ```
665
-
666
- ### ❌ BAD: Asking human to deploy / ✅ GOOD: Claude automates
667
-
668
- ```xml
669
- <!-- BAD: Asking user to deploy via dashboard -->
670
- <task type="checkpoint:human-action" gate="blocking">
671
- <action>Deploy to Vercel</action>
672
- <instructions>Visit vercel.com/new → Import repo → Click Deploy → Copy URL</instructions>
673
- </task>
674
-
675
- <!-- GOOD: Claude deploys, user verifies -->
676
- <task type="auto">
677
- <name>Deploy to Vercel</name>
678
- <action>Run `vercel --yes`. Capture URL.</action>
679
- <verify>vercel ls shows deployment, curl returns 200</verify>
680
- </task>
681
-
682
- <task type="checkpoint:human-verify">
683
- <what-built>Deployed to {url}</what-built>
684
- <how-to-verify>Visit {url}, check homepage loads</how-to-verify>
685
- <resume-signal>Type "approved"</resume-signal>
686
- </task>
687
- ```
688
-
689
- ### ❌ BAD: Too many checkpoints / ✅ GOOD: Single checkpoint
690
-
691
- ```xml
692
- <!-- BAD: Checkpoint after every task -->
693
- <task type="auto">Create schema</task>
694
- <task type="checkpoint:human-verify">Check schema</task>
695
- <task type="auto">Create API route</task>
696
- <task type="checkpoint:human-verify">Check API</task>
697
- <task type="auto">Create UI form</task>
698
- <task type="checkpoint:human-verify">Check form</task>
699
-
700
- <!-- GOOD: One checkpoint at end -->
701
- <task type="auto">Create schema</task>
702
- <task type="auto">Create API route</task>
703
- <task type="auto">Create UI form</task>
704
-
705
- <task type="checkpoint:human-verify">
706
- <what-built>Complete auth flow (schema + API + UI)</what-built>
707
- <how-to-verify>Test full flow: register, login, access protected page</how-to-verify>
708
- <resume-signal>Type "approved"</resume-signal>
709
- </task>
710
- ```
711
-
712
- ### ❌ BAD: Vague verification / ✅ GOOD: Specific steps
713
-
714
- ```xml
715
- <!-- BAD -->
716
- <task type="checkpoint:human-verify">
717
- <what-built>Dashboard</what-built>
718
- <how-to-verify>Check it works</how-to-verify>
719
- </task>
720
-
721
- <!-- GOOD -->
722
- <task type="checkpoint:human-verify">
723
- <what-built>Responsive dashboard - server running at http://localhost:3000</what-built>
724
- <how-to-verify>
725
- Visit http://localhost:3000/dashboard and verify:
726
- 1. Desktop (>1024px): Sidebar visible, content area fills remaining space
727
- 2. Tablet (768px): Sidebar collapses to icons
728
- 3. Mobile (375px): Sidebar hidden, hamburger menu in header
729
- 4. No horizontal scroll at any size
730
- </how-to-verify>
731
- <resume-signal>Type "approved" or describe layout issues</resume-signal>
732
- </task>
733
- ```
734
-
735
- ### ❌ BAD: Asking user to run CLI commands
736
-
737
- ```xml
738
- <task type="checkpoint:human-action">
739
- <action>Run database migrations</action>
740
- <instructions>Run: npx prisma migrate deploy && npx prisma db seed</instructions>
741
- </task>
742
- ```
743
-
744
- **Why bad:** Claude can run these commands. User should never execute CLI commands.
745
-
746
- ### ❌ BAD: Asking user to copy values between services
747
-
748
- ```xml
749
- <task type="checkpoint:human-action">
750
- <action>Configure webhook URL in Stripe</action>
751
- <instructions>Copy deployment URL → Stripe Dashboard → Webhooks → Add endpoint → Copy secret → Add to .env</instructions>
752
- </task>
753
- ```
754
-
755
- **Why bad:** Stripe has an API. Claude should create the webhook via API and write to .env directly.
756
-
757
- </anti_patterns>
758
-
759
- <summary>
760
-
761
- Checkpoints formalize human-in-the-loop points for verification and decisions, not manual work.
762
-
763
- **The golden rule:** If Claude CAN automate it, Claude MUST automate it.
764
-
765
- **Checkpoint priority:**
766
- 1. **checkpoint:human-verify** (90%) - Claude automated everything, human confirms visual/functional correctness
767
- 2. **checkpoint:decision** (9%) - Human makes architectural/technology choices
768
- 3. **checkpoint:human-action** (1%) - Truly unavoidable manual steps with no API/CLI
769
-
770
- **When NOT to use checkpoints:**
771
- - Things Claude can verify programmatically (tests, builds)
772
- - File operations (Claude can read files)
773
- - Code correctness (tests and static analysis)
774
- - Anything automatable via CLI/API
775
- </summary>