pmp-gywd 3.3.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/LICENSE +27 -0
- package/README.md +567 -0
- package/bin/install.js +348 -0
- package/commands/gywd/add-phase.md +207 -0
- package/commands/gywd/anticipate.md +271 -0
- package/commands/gywd/bootstrap.md +336 -0
- package/commands/gywd/challenge.md +344 -0
- package/commands/gywd/check-drift.md +144 -0
- package/commands/gywd/complete-milestone.md +106 -0
- package/commands/gywd/consider-issues.md +202 -0
- package/commands/gywd/context.md +93 -0
- package/commands/gywd/create-roadmap.md +115 -0
- package/commands/gywd/deps.md +169 -0
- package/commands/gywd/digest.md +138 -0
- package/commands/gywd/discuss-milestone.md +47 -0
- package/commands/gywd/discuss-phase.md +60 -0
- package/commands/gywd/execute-plan.md +161 -0
- package/commands/gywd/extract-decisions.md +325 -0
- package/commands/gywd/health.md +150 -0
- package/commands/gywd/help.md +556 -0
- package/commands/gywd/history.md +278 -0
- package/commands/gywd/impact.md +317 -0
- package/commands/gywd/init.md +95 -0
- package/commands/gywd/insert-phase.md +227 -0
- package/commands/gywd/list-phase-assumptions.md +50 -0
- package/commands/gywd/map-codebase.md +84 -0
- package/commands/gywd/memory.md +159 -0
- package/commands/gywd/new-milestone.md +59 -0
- package/commands/gywd/new-project.md +315 -0
- package/commands/gywd/pause-work.md +123 -0
- package/commands/gywd/plan-fix.md +205 -0
- package/commands/gywd/plan-phase.md +93 -0
- package/commands/gywd/preview-plan.md +139 -0
- package/commands/gywd/profile.md +363 -0
- package/commands/gywd/progress.md +317 -0
- package/commands/gywd/remove-phase.md +338 -0
- package/commands/gywd/research-phase.md +91 -0
- package/commands/gywd/resume-work.md +40 -0
- package/commands/gywd/rollback.md +179 -0
- package/commands/gywd/status.md +42 -0
- package/commands/gywd/sync-github.md +234 -0
- package/commands/gywd/verify-work.md +71 -0
- package/commands/gywd/why.md +251 -0
- package/docs/COMMANDS.md +722 -0
- package/docs/CONTRIBUTING.md +342 -0
- package/docs/EXAMPLES.md +535 -0
- package/docs/GETTING-STARTED.md +262 -0
- package/docs/README.md +55 -0
- package/docs/RELEASING.md +159 -0
- package/get-your-work-done/core/agent-patterns.md +331 -0
- package/get-your-work-done/core/architecture.md +334 -0
- package/get-your-work-done/core/context-model-schema.json +154 -0
- package/get-your-work-done/core/decisions-schema.json +193 -0
- package/get-your-work-done/core/learning-state-schema.json +133 -0
- package/get-your-work-done/core/profile-schema.json +257 -0
- package/get-your-work-done/references/adaptive-decomposition.md +175 -0
- package/get-your-work-done/references/checkpoints.md +287 -0
- package/get-your-work-done/references/confidence-scoring.md +169 -0
- package/get-your-work-done/references/continuation-format.md +255 -0
- package/get-your-work-done/references/git-integration.md +254 -0
- package/get-your-work-done/references/plan-format.md +428 -0
- package/get-your-work-done/references/principles.md +157 -0
- package/get-your-work-done/references/questioning.md +162 -0
- package/get-your-work-done/references/research-pitfalls.md +215 -0
- package/get-your-work-done/references/scope-estimation.md +172 -0
- package/get-your-work-done/references/tdd.md +263 -0
- package/get-your-work-done/templates/codebase/architecture.md +255 -0
- package/get-your-work-done/templates/codebase/concerns.md +310 -0
- package/get-your-work-done/templates/codebase/conventions.md +307 -0
- package/get-your-work-done/templates/codebase/integrations.md +280 -0
- package/get-your-work-done/templates/codebase/stack.md +186 -0
- package/get-your-work-done/templates/codebase/structure.md +285 -0
- package/get-your-work-done/templates/codebase/testing.md +480 -0
- package/get-your-work-done/templates/config.json +18 -0
- package/get-your-work-done/templates/context.md +161 -0
- package/get-your-work-done/templates/continue-here.md +78 -0
- package/get-your-work-done/templates/discovery.md +146 -0
- package/get-your-work-done/templates/issues.md +32 -0
- package/get-your-work-done/templates/milestone-archive.md +123 -0
- package/get-your-work-done/templates/milestone-context.md +93 -0
- package/get-your-work-done/templates/milestone.md +115 -0
- package/get-your-work-done/templates/phase-prompt.md +303 -0
- package/get-your-work-done/templates/project.md +184 -0
- package/get-your-work-done/templates/research.md +529 -0
- package/get-your-work-done/templates/roadmap.md +196 -0
- package/get-your-work-done/templates/state.md +210 -0
- package/get-your-work-done/templates/summary.md +273 -0
- package/get-your-work-done/templates/uat-issues.md +143 -0
- package/get-your-work-done/workflows/complete-milestone.md +643 -0
- package/get-your-work-done/workflows/create-milestone.md +416 -0
- package/get-your-work-done/workflows/create-roadmap.md +481 -0
- package/get-your-work-done/workflows/discovery-phase.md +293 -0
- package/get-your-work-done/workflows/discuss-milestone.md +236 -0
- package/get-your-work-done/workflows/discuss-phase.md +247 -0
- package/get-your-work-done/workflows/execute-phase.md +1625 -0
- package/get-your-work-done/workflows/list-phase-assumptions.md +178 -0
- package/get-your-work-done/workflows/map-codebase.md +434 -0
- package/get-your-work-done/workflows/plan-phase.md +488 -0
- package/get-your-work-done/workflows/research-phase.md +436 -0
- package/get-your-work-done/workflows/resume-project.md +287 -0
- package/get-your-work-done/workflows/transition.md +580 -0
- package/get-your-work-done/workflows/verify-work.md +202 -0
- package/lib/automation/dependency-analyzer.js +635 -0
- package/lib/automation/doc-generator.js +643 -0
- package/lib/automation/index.js +42 -0
- package/lib/automation/test-generator.js +628 -0
- package/lib/context/context-analyzer.js +554 -0
- package/lib/context/context-cache.js +426 -0
- package/lib/context/context-predictor.js +622 -0
- package/lib/context/index.js +44 -0
- package/lib/memory/confidence-calibrator.js +484 -0
- package/lib/memory/feedback-collector.js +551 -0
- package/lib/memory/global-memory.js +465 -0
- package/lib/memory/index.js +75 -0
- package/lib/memory/pattern-aggregator.js +487 -0
- package/lib/memory/team-sync.js +501 -0
- package/lib/profile/index.js +24 -0
- package/lib/profile/pattern-learner.js +303 -0
- package/lib/profile/profile-manager.js +445 -0
- package/lib/questioning/index.js +49 -0
- package/lib/questioning/question-engine.js +311 -0
- package/lib/questioning/question-templates.js +315 -0
- package/lib/validators/command-validator.js +188 -0
- package/lib/validators/index.js +29 -0
- package/lib/validators/schema-validator.js +183 -0
- package/package.json +61 -0
|
@@ -0,0 +1,287 @@
|
|
|
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
|
+
</overview>
|
|
6
|
+
|
|
7
|
+
<checkpoint_types>
|
|
8
|
+
|
|
9
|
+
## checkpoint:human-verify (90% of checkpoints)
|
|
10
|
+
|
|
11
|
+
**When:** Claude completed automated work, human confirms it works correctly.
|
|
12
|
+
|
|
13
|
+
**Use for:** Visual UI checks, interactive flows, functional verification, audio/video quality, animation smoothness, accessibility testing.
|
|
14
|
+
|
|
15
|
+
**Structure:**
|
|
16
|
+
```xml
|
|
17
|
+
<task type="checkpoint:human-verify" gate="blocking">
|
|
18
|
+
<what-built>[What Claude automated]</what-built>
|
|
19
|
+
<how-to-verify>[Numbered steps - URLs, commands, expected behavior]</how-to-verify>
|
|
20
|
+
<resume-signal>[How to continue - "approved" or describe issues]</resume-signal>
|
|
21
|
+
</task>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**Example:**
|
|
25
|
+
```xml
|
|
26
|
+
<task type="auto">
|
|
27
|
+
<name>Deploy to Vercel</name>
|
|
28
|
+
<action>Run `vercel --yes` to deploy. Capture URL.</action>
|
|
29
|
+
<verify>vercel ls shows deployment, curl {url} returns 200</verify>
|
|
30
|
+
</task>
|
|
31
|
+
|
|
32
|
+
<task type="checkpoint:human-verify" gate="blocking">
|
|
33
|
+
<what-built>Deployed to https://myapp.vercel.app</what-built>
|
|
34
|
+
<how-to-verify>
|
|
35
|
+
Visit URL and confirm:
|
|
36
|
+
1. Homepage loads without errors
|
|
37
|
+
2. All images/assets load
|
|
38
|
+
3. No console errors
|
|
39
|
+
</how-to-verify>
|
|
40
|
+
<resume-signal>Type "approved" or describe issues</resume-signal>
|
|
41
|
+
</task>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## checkpoint:decision (9% of checkpoints)
|
|
45
|
+
|
|
46
|
+
**When:** Human must make choice that affects implementation direction.
|
|
47
|
+
|
|
48
|
+
**Use for:** Technology selection, architecture decisions, design choices, feature prioritization.
|
|
49
|
+
|
|
50
|
+
**Structure:**
|
|
51
|
+
```xml
|
|
52
|
+
<task type="checkpoint:decision" gate="blocking">
|
|
53
|
+
<decision>[What's being decided]</decision>
|
|
54
|
+
<context>[Why this matters]</context>
|
|
55
|
+
<options>
|
|
56
|
+
<option id="option-a"><name>[Name]</name><pros>[Benefits]</pros><cons>[Tradeoffs]</cons></option>
|
|
57
|
+
<option id="option-b"><name>[Name]</name><pros>[Benefits]</pros><cons>[Tradeoffs]</cons></option>
|
|
58
|
+
</options>
|
|
59
|
+
<resume-signal>[How to indicate choice]</resume-signal>
|
|
60
|
+
</task>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Example:**
|
|
64
|
+
```xml
|
|
65
|
+
<task type="checkpoint:decision" gate="blocking">
|
|
66
|
+
<decision>Select authentication provider</decision>
|
|
67
|
+
<context>Need user auth. Three options with different tradeoffs.</context>
|
|
68
|
+
<options>
|
|
69
|
+
<option id="supabase"><name>Supabase Auth</name><pros>Built-in with DB, free tier, RLS integration</pros><cons>Less customizable, ecosystem lock-in</cons></option>
|
|
70
|
+
<option id="clerk"><name>Clerk</name><pros>Beautiful UI, best DX</pros><cons>Paid after 10k MAU</cons></option>
|
|
71
|
+
<option id="nextauth"><name>NextAuth.js</name><pros>Free, self-hosted, max control</pros><cons>More setup, DIY security</cons></option>
|
|
72
|
+
</options>
|
|
73
|
+
<resume-signal>Select: supabase, clerk, or nextauth</resume-signal>
|
|
74
|
+
</task>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## checkpoint:human-action (1% - rare)
|
|
78
|
+
|
|
79
|
+
**When:** Action has NO CLI/API and requires human-only interaction.
|
|
80
|
+
|
|
81
|
+
**Use ONLY for:** Email verification links, SMS 2FA codes, manual account approvals, 3D Secure payment flows, OAuth app approvals.
|
|
82
|
+
|
|
83
|
+
**Do NOT use for:** Deployments (use CLI), creating resources (use CLI/API), builds/tests (use Bash), file operations (use Write/Edit).
|
|
84
|
+
|
|
85
|
+
**Structure:**
|
|
86
|
+
```xml
|
|
87
|
+
<task type="checkpoint:human-action" gate="blocking">
|
|
88
|
+
<action>[Unavoidable manual step]</action>
|
|
89
|
+
<instructions>[What Claude automated] [ONE thing requiring human action]</instructions>
|
|
90
|
+
<verification>[What Claude checks afterward]</verification>
|
|
91
|
+
<resume-signal>[How to continue]</resume-signal>
|
|
92
|
+
</task>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Example (email verification):**
|
|
96
|
+
```xml
|
|
97
|
+
<task type="checkpoint:human-action" gate="blocking">
|
|
98
|
+
<action>Complete email verification for SendGrid account</action>
|
|
99
|
+
<instructions>
|
|
100
|
+
I created the account and requested verification email.
|
|
101
|
+
Check your inbox for verification link and click it.
|
|
102
|
+
</instructions>
|
|
103
|
+
<verification>SendGrid API key works: curl test succeeds</verification>
|
|
104
|
+
<resume-signal>Type "done" when verified</resume-signal>
|
|
105
|
+
</task>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
</checkpoint_types>
|
|
109
|
+
|
|
110
|
+
<execution_protocol>
|
|
111
|
+
|
|
112
|
+
When Claude encounters `type="checkpoint:*"`:
|
|
113
|
+
|
|
114
|
+
1. **Stop immediately** - do not proceed to next task
|
|
115
|
+
2. **Display checkpoint clearly:**
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
════════════════════════════════════════
|
|
119
|
+
CHECKPOINT: [Type]
|
|
120
|
+
════════════════════════════════════════
|
|
121
|
+
|
|
122
|
+
Task [X] of [Y]: [Name]
|
|
123
|
+
|
|
124
|
+
[Checkpoint-specific content]
|
|
125
|
+
|
|
126
|
+
[Resume signal instruction]
|
|
127
|
+
════════════════════════════════════════
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
3. **Wait for user response** - do not hallucinate completion
|
|
131
|
+
4. **Verify if possible** - check files, run tests
|
|
132
|
+
5. **Resume execution** - continue only after confirmation
|
|
133
|
+
|
|
134
|
+
</execution_protocol>
|
|
135
|
+
|
|
136
|
+
<authentication_gates>
|
|
137
|
+
|
|
138
|
+
**Critical:** When Claude tries CLI/API and gets auth error, this is NOT a failure - it's a gate requiring human input to unblock automation.
|
|
139
|
+
|
|
140
|
+
**Pattern:** Claude tries automation → auth error → creates checkpoint → you authenticate → Claude retries → continues
|
|
141
|
+
|
|
142
|
+
**Gate protocol:**
|
|
143
|
+
1. Recognize it's not a failure - missing auth is expected
|
|
144
|
+
2. Stop current task - don't retry repeatedly
|
|
145
|
+
3. Create checkpoint:human-action dynamically
|
|
146
|
+
4. Provide exact authentication steps
|
|
147
|
+
5. Verify authentication works
|
|
148
|
+
6. Retry the original task
|
|
149
|
+
7. Continue normally
|
|
150
|
+
|
|
151
|
+
**Example (Vercel auth gate):**
|
|
152
|
+
```xml
|
|
153
|
+
<!-- Claude tries to deploy -->
|
|
154
|
+
<task type="auto">
|
|
155
|
+
<name>Deploy to Vercel</name>
|
|
156
|
+
<action>Run `vercel --yes` to deploy</action>
|
|
157
|
+
</task>
|
|
158
|
+
|
|
159
|
+
<!-- If vercel returns "Error: Not authenticated" -->
|
|
160
|
+
<task type="checkpoint:human-action" gate="blocking">
|
|
161
|
+
<action>Authenticate Vercel CLI so I can continue</action>
|
|
162
|
+
<instructions>
|
|
163
|
+
I tried to deploy but got authentication error.
|
|
164
|
+
Run: vercel login (opens browser)
|
|
165
|
+
</instructions>
|
|
166
|
+
<verification>vercel whoami returns your account</verification>
|
|
167
|
+
<resume-signal>Type "done" when authenticated</resume-signal>
|
|
168
|
+
</task>
|
|
169
|
+
|
|
170
|
+
<!-- After auth, Claude retries automatically -->
|
|
171
|
+
<task type="auto">
|
|
172
|
+
<name>Retry deployment</name>
|
|
173
|
+
<action>Run `vercel --yes` (now authenticated)</action>
|
|
174
|
+
</task>
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Key distinction:**
|
|
178
|
+
- Pre-planned checkpoint: "I need you to do X" (wrong - Claude should automate)
|
|
179
|
+
- Auth gate: "I tried to automate X but need credentials" (correct - unblocks automation)
|
|
180
|
+
|
|
181
|
+
</authentication_gates>
|
|
182
|
+
|
|
183
|
+
<automation_reference>
|
|
184
|
+
|
|
185
|
+
**The rule:** If it has CLI/API, Claude does it. Never ask human to perform automatable work.
|
|
186
|
+
|
|
187
|
+
| Service | CLI/API | Key Commands | Auth Gate |
|
|
188
|
+
|---------|---------|--------------|-----------|
|
|
189
|
+
| Vercel | `vercel` | `--yes`, `env add`, `--prod`, `ls` | `vercel login` |
|
|
190
|
+
| Railway | `railway` | `init`, `up`, `variables set` | `railway login` |
|
|
191
|
+
| Fly | `fly` | `launch`, `deploy`, `secrets set` | `fly auth login` |
|
|
192
|
+
| Stripe | `stripe` + API | `listen`, `trigger`, API calls | API key in .env |
|
|
193
|
+
| Supabase | `supabase` | `init`, `link`, `db push`, `gen types` | `supabase login` |
|
|
194
|
+
| Upstash | `upstash` | `redis create`, `redis get` | `upstash auth login` |
|
|
195
|
+
| PlanetScale | `pscale` | `database create`, `branch create` | `pscale auth login` |
|
|
196
|
+
| GitHub | `gh` | `repo create`, `pr create`, `secret set` | `gh auth login` |
|
|
197
|
+
| Node | `npm`/`pnpm` | `install`, `run build`, `test` | N/A |
|
|
198
|
+
| Xcode | `xcodebuild` | `-project`, `-scheme`, `build`, `test` | N/A |
|
|
199
|
+
|
|
200
|
+
**Env files:** Use Write/Edit tools. Never ask human to create .env manually.
|
|
201
|
+
|
|
202
|
+
**Quick reference:**
|
|
203
|
+
|
|
204
|
+
| Action | Automatable? | Claude does it? |
|
|
205
|
+
|--------|--------------|-----------------|
|
|
206
|
+
| Deploy to Vercel | Yes (`vercel`) | YES |
|
|
207
|
+
| Create Stripe webhook | Yes (API) | YES |
|
|
208
|
+
| Write .env file | Yes (Write tool) | YES |
|
|
209
|
+
| Create Upstash DB | Yes (`upstash`) | YES |
|
|
210
|
+
| Run tests | Yes (`npm test`) | YES |
|
|
211
|
+
| Click email verification link | No | NO |
|
|
212
|
+
| Enter credit card with 3DS | No | NO |
|
|
213
|
+
|
|
214
|
+
</automation_reference>
|
|
215
|
+
|
|
216
|
+
<guidelines>
|
|
217
|
+
|
|
218
|
+
**DO:**
|
|
219
|
+
- Automate everything with CLI/API before checkpoint
|
|
220
|
+
- Be specific: "Visit https://myapp.vercel.app" not "check deployment"
|
|
221
|
+
- Number verification steps
|
|
222
|
+
- State expected outcomes
|
|
223
|
+
- Make verification executable
|
|
224
|
+
|
|
225
|
+
**DON'T:**
|
|
226
|
+
- Ask human to do work Claude can automate
|
|
227
|
+
- Assume knowledge: "Configure the usual settings"
|
|
228
|
+
- Mix multiple verifications in one checkpoint
|
|
229
|
+
- Use checkpoints too frequently (verification fatigue)
|
|
230
|
+
|
|
231
|
+
**Placement:**
|
|
232
|
+
- After automation completes (not before)
|
|
233
|
+
- After UI buildout
|
|
234
|
+
- Before dependent work (decisions)
|
|
235
|
+
- At integration points
|
|
236
|
+
|
|
237
|
+
</guidelines>
|
|
238
|
+
|
|
239
|
+
<anti_patterns>
|
|
240
|
+
|
|
241
|
+
**BAD: Asking human to automate**
|
|
242
|
+
```xml
|
|
243
|
+
<task type="checkpoint:human-action">
|
|
244
|
+
<action>Deploy to Vercel</action>
|
|
245
|
+
<instructions>Visit vercel.com/new, import repo, click Deploy</instructions>
|
|
246
|
+
</task>
|
|
247
|
+
```
|
|
248
|
+
Why bad: Vercel has CLI. Use `vercel --yes`.
|
|
249
|
+
|
|
250
|
+
**BAD: Too many checkpoints**
|
|
251
|
+
```xml
|
|
252
|
+
<task type="auto">Create schema</task>
|
|
253
|
+
<task type="checkpoint:human-verify">Check schema</task>
|
|
254
|
+
<task type="auto">Create API</task>
|
|
255
|
+
<task type="checkpoint:human-verify">Check API</task>
|
|
256
|
+
```
|
|
257
|
+
Why bad: Verification fatigue. Combine into one checkpoint at end.
|
|
258
|
+
|
|
259
|
+
**GOOD: Claude automates, human verifies once**
|
|
260
|
+
```xml
|
|
261
|
+
<task type="auto">Create schema</task>
|
|
262
|
+
<task type="auto">Create API</task>
|
|
263
|
+
<task type="auto">Create UI</task>
|
|
264
|
+
|
|
265
|
+
<task type="checkpoint:human-verify">
|
|
266
|
+
<what-built>Complete auth flow</what-built>
|
|
267
|
+
<how-to-verify>Test full flow: register, login, access protected page</how-to-verify>
|
|
268
|
+
</task>
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
</anti_patterns>
|
|
272
|
+
|
|
273
|
+
<summary>
|
|
274
|
+
|
|
275
|
+
**The golden rule:** If Claude CAN automate it, Claude MUST automate it.
|
|
276
|
+
|
|
277
|
+
**Checkpoint priority:**
|
|
278
|
+
1. **checkpoint:human-verify** (90%) - Claude automated, human confirms visual/functional correctness
|
|
279
|
+
2. **checkpoint:decision** (9%) - Human makes architectural/technology choices
|
|
280
|
+
3. **checkpoint:human-action** (1%) - Truly unavoidable manual steps with no API/CLI
|
|
281
|
+
|
|
282
|
+
**When NOT to use checkpoints:**
|
|
283
|
+
- Things Claude can verify programmatically (tests, builds)
|
|
284
|
+
- File operations (Claude can read/write)
|
|
285
|
+
- Anything with CLI/API available
|
|
286
|
+
|
|
287
|
+
</summary>
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Confidence Scoring Reference
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Confidence scoring adds transparency to AI decisions by showing certainty levels for plans, tasks, and recommendations. This helps users understand when to trust AI output vs. when to review more carefully.
|
|
6
|
+
|
|
7
|
+
## Score Scale
|
|
8
|
+
|
|
9
|
+
| Score | Label | Meaning | User Action |
|
|
10
|
+
|-------|-------|---------|-------------|
|
|
11
|
+
| 95-100% | **Certain** | Well-established pattern, clear requirements | Trust and proceed |
|
|
12
|
+
| 85-94% | **High** | Standard approach, minor ambiguity | Quick review |
|
|
13
|
+
| 70-84% | **Moderate** | Multiple valid approaches, some unknowns | Review recommended |
|
|
14
|
+
| 50-69% | **Low** | Significant uncertainty, assumptions made | Careful review |
|
|
15
|
+
| <50% | **Uncertain** | Guessing, insufficient context | User decision needed |
|
|
16
|
+
|
|
17
|
+
## When to Apply Scores
|
|
18
|
+
|
|
19
|
+
### Phase Planning
|
|
20
|
+
|
|
21
|
+
Each phase should have an overall confidence score:
|
|
22
|
+
|
|
23
|
+
```markdown
|
|
24
|
+
## Phase 3: Payment Integration
|
|
25
|
+
|
|
26
|
+
**Confidence: 78%** (Moderate)
|
|
27
|
+
|
|
28
|
+
Factors:
|
|
29
|
+
- ✅ Clear requirements for Stripe integration
|
|
30
|
+
- ✅ Standard patterns available
|
|
31
|
+
- ⚠️ Webhook handling approach uncertain
|
|
32
|
+
- ⚠️ Refund flow not fully specified
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Task-Level Scoring
|
|
36
|
+
|
|
37
|
+
Each task in a PLAN.md should include confidence:
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
### Task 1: Create Stripe client wrapper [92% confidence]
|
|
41
|
+
|
|
42
|
+
- Standard library usage, well-documented API
|
|
43
|
+
- Similar patterns exist in codebase
|
|
44
|
+
|
|
45
|
+
### Task 2: Implement webhook handlers [65% confidence]
|
|
46
|
+
|
|
47
|
+
- Multiple valid approaches (queue vs direct)
|
|
48
|
+
- Error handling strategy unclear
|
|
49
|
+
- May need user input on retry policy
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Decision Points
|
|
53
|
+
|
|
54
|
+
When plans include decisions, score each option:
|
|
55
|
+
|
|
56
|
+
```markdown
|
|
57
|
+
## Decision: State Management Approach
|
|
58
|
+
|
|
59
|
+
| Option | Confidence | Rationale |
|
|
60
|
+
|--------|------------|-----------|
|
|
61
|
+
| Redux Toolkit | 85% | Team familiarity, existing patterns |
|
|
62
|
+
| Zustand | 72% | Simpler, but team hasn't used |
|
|
63
|
+
| React Context | 60% | May not scale for this use case |
|
|
64
|
+
|
|
65
|
+
Recommendation: Redux Toolkit (85%)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Confidence Factors
|
|
69
|
+
|
|
70
|
+
### Increases Confidence (+)
|
|
71
|
+
|
|
72
|
+
- Clear, specific requirements
|
|
73
|
+
- Existing patterns in codebase
|
|
74
|
+
- Well-documented libraries/APIs
|
|
75
|
+
- Similar past implementations
|
|
76
|
+
- Strong test coverage exists
|
|
77
|
+
- Team has relevant experience
|
|
78
|
+
|
|
79
|
+
### Decreases Confidence (-)
|
|
80
|
+
|
|
81
|
+
- Vague or missing requirements
|
|
82
|
+
- Novel/unusual approach
|
|
83
|
+
- Undocumented or experimental tech
|
|
84
|
+
- No similar implementations
|
|
85
|
+
- External dependencies with unknowns
|
|
86
|
+
- Time pressure compromising research
|
|
87
|
+
|
|
88
|
+
## Integration with Commands
|
|
89
|
+
|
|
90
|
+
### /gywd:plan-phase
|
|
91
|
+
|
|
92
|
+
Plans should include:
|
|
93
|
+
```markdown
|
|
94
|
+
## Plan Confidence Summary
|
|
95
|
+
|
|
96
|
+
**Overall: 82%** (High)
|
|
97
|
+
|
|
98
|
+
| Task | Confidence | Flag |
|
|
99
|
+
|------|------------|------|
|
|
100
|
+
| T1 | 95% | - |
|
|
101
|
+
| T2 | 88% | - |
|
|
102
|
+
| T3 | 65% | ⚠️ Review |
|
|
103
|
+
| T4 | 78% | - |
|
|
104
|
+
|
|
105
|
+
⚠️ Task 3 has low confidence - consider:
|
|
106
|
+
- Breaking into smaller tasks
|
|
107
|
+
- Requesting clarification
|
|
108
|
+
- Adding research step
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### /gywd:preview-plan
|
|
112
|
+
|
|
113
|
+
Show confidence in preview:
|
|
114
|
+
```markdown
|
|
115
|
+
## Risk Assessment
|
|
116
|
+
|
|
117
|
+
**Plan Confidence: 76%** (Moderate)
|
|
118
|
+
|
|
119
|
+
Low-confidence tasks:
|
|
120
|
+
- Task 3: Caching strategy (62%) - Multiple valid approaches
|
|
121
|
+
- Task 5: Error handling (68%) - Edge cases unclear
|
|
122
|
+
|
|
123
|
+
Recommendation: Review tasks 3 and 5 before execution
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### /gywd:execute-plan
|
|
127
|
+
|
|
128
|
+
During execution, flag low-confidence work:
|
|
129
|
+
```
|
|
130
|
+
Executing Task 3... [65% confidence]
|
|
131
|
+
⚠️ Low confidence task - proceeding with stated approach
|
|
132
|
+
Assumption: Using Redis for caching
|
|
133
|
+
Alternative considered: In-memory with TTL
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Calculating Confidence
|
|
137
|
+
|
|
138
|
+
### Automated Factors
|
|
139
|
+
|
|
140
|
+
1. **Requirement clarity** (0-25 points)
|
|
141
|
+
- Specific acceptance criteria: +15
|
|
142
|
+
- Clear inputs/outputs: +10
|
|
143
|
+
|
|
144
|
+
2. **Pattern availability** (0-25 points)
|
|
145
|
+
- Existing pattern in codebase: +15
|
|
146
|
+
- Standard library approach: +10
|
|
147
|
+
|
|
148
|
+
3. **Complexity assessment** (0-25 points)
|
|
149
|
+
- Single responsibility: +15
|
|
150
|
+
- Limited external deps: +10
|
|
151
|
+
|
|
152
|
+
4. **Context completeness** (0-25 points)
|
|
153
|
+
- Full codebase context: +15
|
|
154
|
+
- Recent related work: +10
|
|
155
|
+
|
|
156
|
+
### Human Override
|
|
157
|
+
|
|
158
|
+
Users can adjust confidence:
|
|
159
|
+
```
|
|
160
|
+
/gywd:memory add rule "Payment tasks always need review (max 80% confidence)"
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Best Practices
|
|
164
|
+
|
|
165
|
+
1. **Never hide uncertainty** - If unsure, say so
|
|
166
|
+
2. **Explain factors** - Show what affects the score
|
|
167
|
+
3. **Provide alternatives** - For low-confidence decisions
|
|
168
|
+
4. **Flag for review** - Automatically surface <70% items
|
|
169
|
+
5. **Learn from outcomes** - Adjust future confidence based on results
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Continuation Format
|
|
2
|
+
|
|
3
|
+
Standard format for presenting next steps after completing a command or workflow.
|
|
4
|
+
|
|
5
|
+
## Core Structure
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## ▶ Next Up
|
|
11
|
+
|
|
12
|
+
**{identifier}: {name}** — {one-line description}
|
|
13
|
+
|
|
14
|
+
`{command to copy-paste}`
|
|
15
|
+
|
|
16
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
**Also available:**
|
|
21
|
+
- `{alternative option 1}` — description
|
|
22
|
+
- `{alternative option 2}` — description
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Format Rules
|
|
28
|
+
|
|
29
|
+
1. **Always show what it is** — name + description, never just a command path
|
|
30
|
+
2. **Pull context from source** — ROADMAP.md for phases, PLAN.md `<objective>` for plans
|
|
31
|
+
3. **Command in inline code** — backticks, easy to copy-paste, renders as clickable link
|
|
32
|
+
4. **`/clear` explanation** — always include, keeps it concise but explains why
|
|
33
|
+
5. **"Also available" not "Other options"** — sounds more app-like
|
|
34
|
+
6. **Visual separators** — `---` above and below to make it stand out
|
|
35
|
+
|
|
36
|
+
## Variants
|
|
37
|
+
|
|
38
|
+
### Execute Next Plan
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## ▶ Next Up
|
|
44
|
+
|
|
45
|
+
**02-03: Refresh Token Rotation** — Add /api/auth/refresh with sliding expiry
|
|
46
|
+
|
|
47
|
+
`/gywd:execute-plan .planning/phases/02-auth/02-03-PLAN.md`
|
|
48
|
+
|
|
49
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
**Also available:**
|
|
54
|
+
- Review plan before executing
|
|
55
|
+
- `/gywd:list-phase-assumptions 2` — check assumptions
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Execute Final Plan in Phase
|
|
61
|
+
|
|
62
|
+
Add note that this is the last plan and what comes after:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## ▶ Next Up
|
|
68
|
+
|
|
69
|
+
**02-03: Refresh Token Rotation** — Add /api/auth/refresh with sliding expiry
|
|
70
|
+
<sub>Final plan in Phase 2</sub>
|
|
71
|
+
|
|
72
|
+
`/gywd:execute-plan .planning/phases/02-auth/02-03-PLAN.md`
|
|
73
|
+
|
|
74
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
**After this completes:**
|
|
79
|
+
- Phase 2 → Phase 3 transition
|
|
80
|
+
- Next: **Phase 3: Core Features** — User dashboard and settings
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Plan a Phase
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## ▶ Next Up
|
|
91
|
+
|
|
92
|
+
**Phase 2: Authentication** — JWT login flow with refresh tokens
|
|
93
|
+
|
|
94
|
+
`/gywd:plan-phase 2`
|
|
95
|
+
|
|
96
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
**Also available:**
|
|
101
|
+
- `/gywd:discuss-phase 2` — gather context first
|
|
102
|
+
- `/gywd:research-phase 2` — investigate unknowns
|
|
103
|
+
- Review roadmap
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Phase Complete, Ready for Next
|
|
109
|
+
|
|
110
|
+
Show completion status before next action:
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## ✓ Phase 2 Complete
|
|
116
|
+
|
|
117
|
+
3/3 plans executed
|
|
118
|
+
|
|
119
|
+
## ▶ Next Up
|
|
120
|
+
|
|
121
|
+
**Phase 3: Core Features** — User dashboard, settings, and data export
|
|
122
|
+
|
|
123
|
+
`/gywd:plan-phase 3`
|
|
124
|
+
|
|
125
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
**Also available:**
|
|
130
|
+
- `/gywd:discuss-phase 3` — gather context first
|
|
131
|
+
- `/gywd:research-phase 3` — investigate unknowns
|
|
132
|
+
- Review what Phase 2 built
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Multiple Equal Options
|
|
138
|
+
|
|
139
|
+
When there's no clear primary action:
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## ▶ Next Up
|
|
145
|
+
|
|
146
|
+
**Phase 3: Core Features** — User dashboard, settings, and data export
|
|
147
|
+
|
|
148
|
+
**To plan directly:** `/gywd:plan-phase 3`
|
|
149
|
+
|
|
150
|
+
**To discuss context first:** `/gywd:discuss-phase 3`
|
|
151
|
+
|
|
152
|
+
**To research unknowns:** `/gywd:research-phase 3`
|
|
153
|
+
|
|
154
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Milestone Complete
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## 🎉 Milestone v1.0 Complete
|
|
165
|
+
|
|
166
|
+
All 4 phases shipped
|
|
167
|
+
|
|
168
|
+
## ▶ Next Up
|
|
169
|
+
|
|
170
|
+
**Plan v1.1** — Enhanced features and optimizations
|
|
171
|
+
|
|
172
|
+
`/gywd:discuss-milestone`
|
|
173
|
+
|
|
174
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
**Also available:**
|
|
179
|
+
- `/gywd:new-milestone` — create directly if scope is clear
|
|
180
|
+
- Review accomplishments before moving on
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## Pulling Context
|
|
186
|
+
|
|
187
|
+
### For phases (from ROADMAP.md):
|
|
188
|
+
|
|
189
|
+
```markdown
|
|
190
|
+
### Phase 2: Authentication
|
|
191
|
+
**Goal**: JWT login flow with refresh tokens
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Extract: `**Phase 2: Authentication** — JWT login flow with refresh tokens`
|
|
195
|
+
|
|
196
|
+
### For plans (from ROADMAP.md):
|
|
197
|
+
|
|
198
|
+
```markdown
|
|
199
|
+
Plans:
|
|
200
|
+
- [ ] 02-03: Add refresh token rotation
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Or from PLAN.md `<objective>`:
|
|
204
|
+
|
|
205
|
+
```xml
|
|
206
|
+
<objective>
|
|
207
|
+
Add refresh token rotation with sliding expiry window.
|
|
208
|
+
|
|
209
|
+
Purpose: Extend session lifetime without compromising security.
|
|
210
|
+
</objective>
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Extract: `**02-03: Refresh Token Rotation** — Add /api/auth/refresh with sliding expiry`
|
|
214
|
+
|
|
215
|
+
## Anti-Patterns
|
|
216
|
+
|
|
217
|
+
### Don't: Command-only (no context)
|
|
218
|
+
|
|
219
|
+
```
|
|
220
|
+
## To Continue
|
|
221
|
+
|
|
222
|
+
Run `/clear`, then paste:
|
|
223
|
+
/gywd:execute-plan .planning/phases/02-auth/02-03-PLAN.md
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
User has no idea what 02-03 is about.
|
|
227
|
+
|
|
228
|
+
### Don't: Missing /clear explanation
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
`/gywd:plan-phase 3`
|
|
232
|
+
|
|
233
|
+
Run /clear first.
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
Doesn't explain why. User might skip it.
|
|
237
|
+
|
|
238
|
+
### Don't: "Other options" language
|
|
239
|
+
|
|
240
|
+
```
|
|
241
|
+
Other options:
|
|
242
|
+
- Review roadmap
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Sounds like an afterthought. Use "Also available:" instead.
|
|
246
|
+
|
|
247
|
+
### Don't: Fenced code blocks for commands
|
|
248
|
+
|
|
249
|
+
```
|
|
250
|
+
```
|
|
251
|
+
/gywd:plan-phase 3
|
|
252
|
+
```
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
Fenced blocks inside templates create nesting ambiguity. Use inline backticks instead.
|