gsd-codex-cli 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codex/prompts/gsd-add-phase.md +44 -0
- package/.codex/prompts/gsd-add-todo.md +43 -0
- package/.codex/prompts/gsd-audit-milestone.md +43 -0
- package/.codex/prompts/gsd-check-todos.md +43 -0
- package/.codex/prompts/gsd-complete-milestone.md +43 -0
- package/.codex/prompts/gsd-debug.md +46 -0
- package/.codex/prompts/gsd-discuss-phase.md +43 -0
- package/.codex/prompts/gsd-execute-phase.md +43 -0
- package/.codex/prompts/gsd-help.md +43 -0
- package/.codex/prompts/gsd-insert-phase.md +43 -0
- package/.codex/prompts/gsd-list-phase-assumptions.md +43 -0
- package/.codex/prompts/gsd-map-codebase.md +43 -0
- package/.codex/prompts/gsd-new-milestone.md +43 -0
- package/.codex/prompts/gsd-new-project.md +43 -0
- package/.codex/prompts/gsd-pause-work.md +43 -0
- package/.codex/prompts/gsd-plan-milestone-gaps.md +43 -0
- package/.codex/prompts/gsd-plan-phase.md +43 -0
- package/.codex/prompts/gsd-progress.md +43 -0
- package/.codex/prompts/gsd-quick.md +43 -0
- package/.codex/prompts/gsd-remove-phase.md +43 -0
- package/.codex/prompts/gsd-research-phase.md +43 -0
- package/.codex/prompts/gsd-resume-work.md +43 -0
- package/.codex/prompts/gsd-set-profile.md +43 -0
- package/.codex/prompts/gsd-settings.md +43 -0
- package/.codex/prompts/gsd-update.md +43 -0
- package/.codex/prompts/gsd-verify-work.md +43 -0
- package/.codex/skills/get-shit-done-codex/SKILL.md +65 -0
- package/.codex/skills/get-shit-done-codex/references/compat.md +32 -0
- package/.codex/skills/get-shit-done-codex/references/windows.md +23 -0
- package/CHANGELOG.md +1434 -0
- package/LICENSE +21 -0
- package/README.md +690 -0
- package/agents/gsd-codebase-mapper.md +761 -0
- package/agents/gsd-debugger.md +1198 -0
- package/agents/gsd-executor.md +419 -0
- package/agents/gsd-integration-checker.md +423 -0
- package/agents/gsd-phase-researcher.md +469 -0
- package/agents/gsd-plan-checker.md +622 -0
- package/agents/gsd-planner.md +1159 -0
- package/agents/gsd-project-researcher.md +618 -0
- package/agents/gsd-research-synthesizer.md +236 -0
- package/agents/gsd-roadmapper.md +639 -0
- package/agents/gsd-verifier.md +541 -0
- package/bin/install-codex.js +100 -0
- package/bin/install.js +1806 -0
- package/commands/gsd/add-phase.md +39 -0
- package/commands/gsd/add-todo.md +42 -0
- package/commands/gsd/audit-milestone.md +42 -0
- package/commands/gsd/check-todos.md +41 -0
- package/commands/gsd/cleanup.md +18 -0
- package/commands/gsd/complete-milestone.md +136 -0
- package/commands/gsd/debug.md +162 -0
- package/commands/gsd/discuss-phase.md +87 -0
- package/commands/gsd/execute-phase.md +42 -0
- package/commands/gsd/health.md +22 -0
- package/commands/gsd/help.md +22 -0
- package/commands/gsd/insert-phase.md +33 -0
- package/commands/gsd/join-discord.md +18 -0
- package/commands/gsd/list-phase-assumptions.md +50 -0
- package/commands/gsd/map-codebase.md +71 -0
- package/commands/gsd/new-milestone.md +51 -0
- package/commands/gsd/new-project.md +42 -0
- package/commands/gsd/pause-work.md +35 -0
- package/commands/gsd/plan-milestone-gaps.md +40 -0
- package/commands/gsd/plan-phase.md +44 -0
- package/commands/gsd/progress.md +24 -0
- package/commands/gsd/quick.md +40 -0
- package/commands/gsd/reapply-patches.md +110 -0
- package/commands/gsd/remove-phase.md +32 -0
- package/commands/gsd/research-phase.md +187 -0
- package/commands/gsd/resume-work.md +40 -0
- package/commands/gsd/set-profile.md +34 -0
- package/commands/gsd/settings.md +36 -0
- package/commands/gsd/update.md +37 -0
- package/commands/gsd/verify-work.md +39 -0
- package/get-shit-done/bin/gsd-tools.cjs +5243 -0
- package/get-shit-done/bin/gsd-tools.test.cjs +2273 -0
- package/get-shit-done/references/checkpoints.md +775 -0
- package/get-shit-done/references/continuation-format.md +249 -0
- package/get-shit-done/references/decimal-phase-calculation.md +65 -0
- package/get-shit-done/references/git-integration.md +248 -0
- package/get-shit-done/references/git-planning-commit.md +38 -0
- package/get-shit-done/references/model-profile-resolution.md +34 -0
- package/get-shit-done/references/model-profiles.md +92 -0
- package/get-shit-done/references/phase-argument-parsing.md +61 -0
- package/get-shit-done/references/planning-config.md +196 -0
- package/get-shit-done/references/questioning.md +145 -0
- package/get-shit-done/references/tdd.md +263 -0
- package/get-shit-done/references/ui-brand.md +160 -0
- package/get-shit-done/references/verification-patterns.md +612 -0
- package/get-shit-done/templates/DEBUG.md +159 -0
- package/get-shit-done/templates/UAT.md +247 -0
- package/get-shit-done/templates/codebase/architecture.md +255 -0
- package/get-shit-done/templates/codebase/concerns.md +310 -0
- package/get-shit-done/templates/codebase/conventions.md +307 -0
- package/get-shit-done/templates/codebase/integrations.md +280 -0
- package/get-shit-done/templates/codebase/stack.md +186 -0
- package/get-shit-done/templates/codebase/structure.md +285 -0
- package/get-shit-done/templates/codebase/testing.md +480 -0
- package/get-shit-done/templates/config.json +36 -0
- package/get-shit-done/templates/context.md +283 -0
- package/get-shit-done/templates/continue-here.md +78 -0
- package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
- package/get-shit-done/templates/discovery.md +146 -0
- package/get-shit-done/templates/milestone-archive.md +123 -0
- package/get-shit-done/templates/milestone.md +115 -0
- package/get-shit-done/templates/phase-prompt.md +567 -0
- package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
- package/get-shit-done/templates/project.md +184 -0
- package/get-shit-done/templates/requirements.md +231 -0
- package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
- package/get-shit-done/templates/research-project/FEATURES.md +147 -0
- package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
- package/get-shit-done/templates/research-project/STACK.md +120 -0
- package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
- package/get-shit-done/templates/research.md +552 -0
- package/get-shit-done/templates/roadmap.md +202 -0
- package/get-shit-done/templates/state.md +176 -0
- package/get-shit-done/templates/summary-complex.md +59 -0
- package/get-shit-done/templates/summary-minimal.md +41 -0
- package/get-shit-done/templates/summary-standard.md +48 -0
- package/get-shit-done/templates/summary.md +246 -0
- package/get-shit-done/templates/user-setup.md +311 -0
- package/get-shit-done/templates/verification-report.md +322 -0
- package/get-shit-done/workflows/add-phase.md +111 -0
- package/get-shit-done/workflows/add-todo.md +157 -0
- package/get-shit-done/workflows/audit-milestone.md +242 -0
- package/get-shit-done/workflows/check-todos.md +176 -0
- package/get-shit-done/workflows/cleanup.md +152 -0
- package/get-shit-done/workflows/complete-milestone.md +674 -0
- package/get-shit-done/workflows/diagnose-issues.md +219 -0
- package/get-shit-done/workflows/discovery-phase.md +289 -0
- package/get-shit-done/workflows/discuss-phase.md +485 -0
- package/get-shit-done/workflows/execute-phase.md +408 -0
- package/get-shit-done/workflows/execute-plan.md +441 -0
- package/get-shit-done/workflows/health.md +156 -0
- package/get-shit-done/workflows/help.md +486 -0
- package/get-shit-done/workflows/insert-phase.md +129 -0
- package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
- package/get-shit-done/workflows/map-codebase.md +327 -0
- package/get-shit-done/workflows/new-milestone.md +373 -0
- package/get-shit-done/workflows/new-project.md +1113 -0
- package/get-shit-done/workflows/pause-work.md +122 -0
- package/get-shit-done/workflows/plan-milestone-gaps.md +256 -0
- package/get-shit-done/workflows/plan-phase.md +448 -0
- package/get-shit-done/workflows/progress.md +393 -0
- package/get-shit-done/workflows/quick.md +444 -0
- package/get-shit-done/workflows/remove-phase.md +154 -0
- package/get-shit-done/workflows/research-phase.md +74 -0
- package/get-shit-done/workflows/resume-project.md +306 -0
- package/get-shit-done/workflows/set-profile.md +80 -0
- package/get-shit-done/workflows/settings.md +200 -0
- package/get-shit-done/workflows/transition.md +539 -0
- package/get-shit-done/workflows/update.md +214 -0
- package/get-shit-done/workflows/verify-phase.md +242 -0
- package/get-shit-done/workflows/verify-work.md +570 -0
- package/hooks/dist/gsd-check-update.js +62 -0
- package/hooks/dist/gsd-statusline.js +91 -0
- package/package.json +54 -0
- package/scripts/build-hooks.js +42 -0
|
@@ -0,0 +1,775 @@
|
|
|
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>
|