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
package/docs/EXAMPLES.md
ADDED
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
# GYWD Workflow Examples
|
|
2
|
+
|
|
3
|
+
> Complete end-to-end examples showing GYWD in action.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Example 1: New Project (Greenfield)](#example-1-new-project-greenfield)
|
|
8
|
+
- [Example 2: Existing Codebase (Brownfield)](#example-2-existing-codebase-brownfield)
|
|
9
|
+
- [Example 3: Daily Development Workflow](#example-3-daily-development-workflow)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Example 1: New Project (Greenfield)
|
|
14
|
+
|
|
15
|
+
**Scenario:** You want to build a habit tracker CLI app from scratch.
|
|
16
|
+
|
|
17
|
+
### Step 1: Define Your Project
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
/gywd:new-project
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
GYWD asks questions:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
What problem are you solving?
|
|
27
|
+
> I want to track daily habits and see my streaks
|
|
28
|
+
|
|
29
|
+
Who are the users?
|
|
30
|
+
> Just me, personal productivity tool
|
|
31
|
+
|
|
32
|
+
What are the core features?
|
|
33
|
+
> Add habits, mark complete, view streaks, simple CLI
|
|
34
|
+
|
|
35
|
+
What tech stack?
|
|
36
|
+
> Node.js CLI, JSON file storage
|
|
37
|
+
|
|
38
|
+
Any constraints?
|
|
39
|
+
> Keep it simple, no database needed
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Generated:** `.planning/PROJECT.md`
|
|
43
|
+
|
|
44
|
+
```markdown
|
|
45
|
+
# Project: Habit Tracker CLI
|
|
46
|
+
|
|
47
|
+
## What This Is
|
|
48
|
+
A personal CLI tool for tracking daily habits and viewing streaks.
|
|
49
|
+
|
|
50
|
+
## Core Value
|
|
51
|
+
Simple habit tracking without app overhead.
|
|
52
|
+
|
|
53
|
+
## Requirements
|
|
54
|
+
1. Add/remove habits
|
|
55
|
+
2. Mark habits complete for today
|
|
56
|
+
3. View current streaks
|
|
57
|
+
4. Persist data in JSON file
|
|
58
|
+
|
|
59
|
+
## Technical Decisions
|
|
60
|
+
- Runtime: Node.js
|
|
61
|
+
- Storage: Local JSON file (~/.habits.json)
|
|
62
|
+
- Interface: CLI with commander.js
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Step 2: Create Roadmap
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
/gywd:create-roadmap
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Output:**
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
Created roadmap with 4 phases:
|
|
75
|
+
|
|
76
|
+
Phase 1: Core data model
|
|
77
|
+
- Habit entity, JSON storage
|
|
78
|
+
|
|
79
|
+
Phase 2: CLI interface
|
|
80
|
+
- Commands: add, remove, done, list
|
|
81
|
+
|
|
82
|
+
Phase 3: Streak tracking
|
|
83
|
+
- Calculate streaks, display stats
|
|
84
|
+
|
|
85
|
+
Phase 4: Polish
|
|
86
|
+
- Error handling, help text
|
|
87
|
+
|
|
88
|
+
View full roadmap: .planning/ROADMAP.md
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**Generated:** `.planning/ROADMAP.md`
|
|
92
|
+
|
|
93
|
+
```markdown
|
|
94
|
+
# Roadmap: Habit Tracker CLI
|
|
95
|
+
|
|
96
|
+
## Milestone: v1.0 MVP
|
|
97
|
+
|
|
98
|
+
### Phase 1: core-data-model
|
|
99
|
+
**Goal:** Define habit entity and JSON persistence
|
|
100
|
+
**Plans:** TBD
|
|
101
|
+
|
|
102
|
+
### Phase 2: cli-interface
|
|
103
|
+
**Goal:** Implement add, remove, done, list commands
|
|
104
|
+
**Depends on:** Phase 1
|
|
105
|
+
|
|
106
|
+
### Phase 3: streak-tracking
|
|
107
|
+
**Goal:** Calculate and display habit streaks
|
|
108
|
+
**Depends on:** Phase 2
|
|
109
|
+
|
|
110
|
+
### Phase 4: polish
|
|
111
|
+
**Goal:** Error handling, help text, edge cases
|
|
112
|
+
**Depends on:** Phase 3
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Step 3: Plan First Phase
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
/gywd:plan-phase 1
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
**Output:**
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
Planning Phase 1: core-data-model
|
|
125
|
+
|
|
126
|
+
Created: .planning/phases/01-core-data-model/01-01-PLAN.md
|
|
127
|
+
|
|
128
|
+
Tasks:
|
|
129
|
+
1. Create Habit type definition
|
|
130
|
+
2. Implement JSON file read/write
|
|
131
|
+
3. Add basic CRUD operations
|
|
132
|
+
|
|
133
|
+
Ready to execute? Run: /gywd:execute-plan
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**Generated:** `.planning/phases/01-core-data-model/01-01-PLAN.md`
|
|
137
|
+
|
|
138
|
+
```markdown
|
|
139
|
+
---
|
|
140
|
+
phase: 01-core-data-model
|
|
141
|
+
plan: 01
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
<objective>
|
|
145
|
+
Implement habit data model with JSON persistence.
|
|
146
|
+
</objective>
|
|
147
|
+
|
|
148
|
+
<tasks>
|
|
149
|
+
<task type="auto">
|
|
150
|
+
<name>Task 1: Create Habit type</name>
|
|
151
|
+
<files>src/types.js</files>
|
|
152
|
+
<action>
|
|
153
|
+
Define Habit with: id, name, createdAt, completions[]
|
|
154
|
+
</action>
|
|
155
|
+
</task>
|
|
156
|
+
|
|
157
|
+
<task type="auto">
|
|
158
|
+
<name>Task 2: Implement storage</name>
|
|
159
|
+
<files>src/storage.js</files>
|
|
160
|
+
<action>
|
|
161
|
+
JSON file at ~/.habits.json
|
|
162
|
+
Functions: load(), save(), getPath()
|
|
163
|
+
</action>
|
|
164
|
+
</task>
|
|
165
|
+
|
|
166
|
+
<task type="auto">
|
|
167
|
+
<name>Task 3: Add CRUD operations</name>
|
|
168
|
+
<files>src/habits.js</files>
|
|
169
|
+
<action>
|
|
170
|
+
Functions: create(), remove(), markDone(), list()
|
|
171
|
+
</action>
|
|
172
|
+
</task>
|
|
173
|
+
</tasks>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Step 4: Execute Plan
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
/gywd:execute-plan
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Output:**
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
Executing: 01-core-data-model/01-01-PLAN.md
|
|
186
|
+
|
|
187
|
+
[Task 1/3] Creating Habit type...
|
|
188
|
+
✓ Created src/types.js
|
|
189
|
+
|
|
190
|
+
[Task 2/3] Implementing storage...
|
|
191
|
+
✓ Created src/storage.js
|
|
192
|
+
|
|
193
|
+
[Task 3/3] Adding CRUD operations...
|
|
194
|
+
✓ Created src/habits.js
|
|
195
|
+
|
|
196
|
+
Phase 1 complete!
|
|
197
|
+
Created: .planning/phases/01-core-data-model/01-01-SUMMARY.md
|
|
198
|
+
|
|
199
|
+
Next: /gywd:plan-phase 2
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Step 5: Continue Next Day
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
/gywd:progress
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
**Output:**
|
|
209
|
+
|
|
210
|
+
```
|
|
211
|
+
# Habit Tracker CLI
|
|
212
|
+
|
|
213
|
+
**Progress:** [█░░░░░░░░░] 1/4 phases
|
|
214
|
+
|
|
215
|
+
## Recent Work
|
|
216
|
+
- Phase 1: Core data model complete
|
|
217
|
+
|
|
218
|
+
## Current Position
|
|
219
|
+
Phase 2 of 4: cli-interface
|
|
220
|
+
Status: Not planned
|
|
221
|
+
|
|
222
|
+
## What's Next
|
|
223
|
+
**Phase 2: cli-interface** — Implement CLI commands
|
|
224
|
+
|
|
225
|
+
▶ /gywd:plan-phase 2
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Example 2: Existing Codebase (Brownfield)
|
|
231
|
+
|
|
232
|
+
**Scenario:** You're adding authentication to an existing Express API.
|
|
233
|
+
|
|
234
|
+
### Step 1: Analyze the Codebase
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
/gywd:bootstrap
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**Output:**
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
Analyzing codebase...
|
|
244
|
+
|
|
245
|
+
Created:
|
|
246
|
+
✓ .planning/codebase/STACK.md
|
|
247
|
+
✓ .planning/codebase/ARCHITECTURE.md
|
|
248
|
+
✓ .planning/codebase/CONVENTIONS.md
|
|
249
|
+
✓ .planning/core/decisions.json (47 decisions extracted)
|
|
250
|
+
|
|
251
|
+
Summary:
|
|
252
|
+
- Stack: Node.js, Express, PostgreSQL, Jest
|
|
253
|
+
- Architecture: MVC with service layer
|
|
254
|
+
- Patterns: Repository pattern, middleware chain
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
**Generated:** `.planning/codebase/ARCHITECTURE.md`
|
|
258
|
+
|
|
259
|
+
```markdown
|
|
260
|
+
# Architecture
|
|
261
|
+
|
|
262
|
+
## Pattern: MVC + Service Layer
|
|
263
|
+
|
|
264
|
+
```
|
|
265
|
+
routes/ → controllers/ → services/ → repositories/ → db
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
## Key Decisions Found
|
|
269
|
+
|
|
270
|
+
- DEC-003: Service layer between controllers and DB
|
|
271
|
+
- DEC-007: Repository pattern for data access
|
|
272
|
+
- DEC-012: Middleware for request validation
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### Step 2: Understand Existing Code
|
|
276
|
+
|
|
277
|
+
Before adding auth, understand the current user handling:
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
/gywd:why src/controllers/userController.js
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
**Output:**
|
|
284
|
+
|
|
285
|
+
```
|
|
286
|
+
## Why: src/controllers/userController.js
|
|
287
|
+
|
|
288
|
+
**Answer:** Handles user CRUD without authentication (MVP scope).
|
|
289
|
+
|
|
290
|
+
### The Decision
|
|
291
|
+
When: October 2024
|
|
292
|
+
Who: @founder (initial commit)
|
|
293
|
+
Confidence: 82%
|
|
294
|
+
|
|
295
|
+
### Context
|
|
296
|
+
"MVP ships without auth - users identified by email only.
|
|
297
|
+
Auth planned for v2." — PR #1 description
|
|
298
|
+
|
|
299
|
+
### Current Status
|
|
300
|
+
- No password field in User model
|
|
301
|
+
- No session/token handling
|
|
302
|
+
- 12 endpoints reference this controller
|
|
303
|
+
|
|
304
|
+
### Warning
|
|
305
|
+
⚠️ Adding auth will require updating all 12 endpoints.
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
### Step 3: Plan the Feature
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
/gywd:new-project
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
```
|
|
315
|
+
What are you building?
|
|
316
|
+
> Adding JWT authentication to existing API
|
|
317
|
+
|
|
318
|
+
What's the scope?
|
|
319
|
+
> Login, register, protected routes, refresh tokens
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
```bash
|
|
323
|
+
/gywd:create-roadmap
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
**Output:**
|
|
327
|
+
|
|
328
|
+
```
|
|
329
|
+
Created roadmap respecting existing architecture:
|
|
330
|
+
|
|
331
|
+
Phase 1: User model updates
|
|
332
|
+
- Add password field, bcrypt hashing
|
|
333
|
+
|
|
334
|
+
Phase 2: Auth endpoints
|
|
335
|
+
- POST /auth/register, POST /auth/login
|
|
336
|
+
|
|
337
|
+
Phase 3: JWT middleware
|
|
338
|
+
- Token generation, validation, refresh
|
|
339
|
+
|
|
340
|
+
Phase 4: Protect existing routes
|
|
341
|
+
- Add auth middleware to 12 endpoints
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### Step 4: Get Adversarial Review
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
/gywd:challenge .planning/phases/03-jwt-middleware/03-01-PLAN.md
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
**Output:**
|
|
351
|
+
|
|
352
|
+
```
|
|
353
|
+
## Adversarial Review: JWT Middleware Plan
|
|
354
|
+
|
|
355
|
+
### 🔴 Critic
|
|
356
|
+
"Plan doesn't specify token storage on client side.
|
|
357
|
+
JWTs in localStorage are vulnerable to XSS."
|
|
358
|
+
|
|
359
|
+
Recommendation: Add httpOnly cookie option.
|
|
360
|
+
|
|
361
|
+
### 🟡 Devil's Advocate
|
|
362
|
+
"Why JWT instead of sessions? With PostgreSQL already
|
|
363
|
+
in stack, sessions would be simpler."
|
|
364
|
+
|
|
365
|
+
Counter: JWT allows future microservices without shared session store.
|
|
366
|
+
|
|
367
|
+
### 🔴 Red Team
|
|
368
|
+
"No rate limiting on /auth/login endpoint.
|
|
369
|
+
Brute force attacks possible."
|
|
370
|
+
|
|
371
|
+
Recommendation: Add rate limiting task to Phase 2.
|
|
372
|
+
|
|
373
|
+
### 🟡 Skeptic
|
|
374
|
+
"Refresh token rotation not mentioned.
|
|
375
|
+
Token theft gives permanent access."
|
|
376
|
+
|
|
377
|
+
Recommendation: Add refresh token rotation to Phase 3.
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
**Summary:** 2 critical issues, 2 considerations.
|
|
382
|
+
Update plan before executing? (y/n)
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### Step 5: Execute with Context
|
|
386
|
+
|
|
387
|
+
```bash
|
|
388
|
+
/gywd:execute-plan
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
GYWD generates code that:
|
|
392
|
+
- Follows existing service layer pattern
|
|
393
|
+
- Uses existing validation middleware style
|
|
394
|
+
- Matches coding conventions from CONVENTIONS.md
|
|
395
|
+
- References decisions when making choices
|
|
396
|
+
|
|
397
|
+
---
|
|
398
|
+
|
|
399
|
+
## Example 3: Daily Development Workflow
|
|
400
|
+
|
|
401
|
+
**Scenario:** A typical day working on a GYWD-managed project.
|
|
402
|
+
|
|
403
|
+
### Morning: Check Status
|
|
404
|
+
|
|
405
|
+
```bash
|
|
406
|
+
/gywd:progress
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
**Output:**
|
|
410
|
+
|
|
411
|
+
```
|
|
412
|
+
# E-commerce API
|
|
413
|
+
|
|
414
|
+
**Progress:** [██████░░░░] 6/10 phases
|
|
415
|
+
|
|
416
|
+
## Recent Work
|
|
417
|
+
- Phase 5: Payment integration complete
|
|
418
|
+
- Phase 6, Plan 1: Cart service complete
|
|
419
|
+
|
|
420
|
+
## Current Position
|
|
421
|
+
Phase 6 of 10: checkout-flow
|
|
422
|
+
Plan 2 of 3: Order creation
|
|
423
|
+
Status: Ready to execute
|
|
424
|
+
|
|
425
|
+
## Open Issues
|
|
426
|
+
- ISSUE-023: Cart total mismatch on currency conversion
|
|
427
|
+
|
|
428
|
+
## What's Next
|
|
429
|
+
**Phase 6, Plan 2** — Implement order creation from cart
|
|
430
|
+
|
|
431
|
+
▶ /gywd:execute-plan .planning/phases/06-checkout/06-02-PLAN.md
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
### Working: Execute Plan
|
|
435
|
+
|
|
436
|
+
```bash
|
|
437
|
+
/gywd:execute-plan
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
Work proceeds with GYWD tracking decisions...
|
|
441
|
+
|
|
442
|
+
### Stuck: Understand Existing Code
|
|
443
|
+
|
|
444
|
+
While implementing, you find confusing code:
|
|
445
|
+
|
|
446
|
+
```bash
|
|
447
|
+
/gywd:why src/services/pricing.js:142-158
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
**Output:**
|
|
451
|
+
|
|
452
|
+
```
|
|
453
|
+
## Why: Pricing service lines 142-158
|
|
454
|
+
|
|
455
|
+
**Answer:** Currency conversion with cached rates.
|
|
456
|
+
|
|
457
|
+
### The Decision
|
|
458
|
+
This caches exchange rates for 1 hour because:
|
|
459
|
+
- External API has rate limits (100/day)
|
|
460
|
+
- Rates don't change frequently
|
|
461
|
+
- Stale rate better than failed checkout
|
|
462
|
+
|
|
463
|
+
### Warning
|
|
464
|
+
⚠️ Related to ISSUE-023 (cart total mismatch).
|
|
465
|
+
Cache invalidation may be the root cause.
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
### End of Day: Save State
|
|
469
|
+
|
|
470
|
+
```bash
|
|
471
|
+
/gywd:pause-work
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
**Output:**
|
|
475
|
+
|
|
476
|
+
```
|
|
477
|
+
Saving work state...
|
|
478
|
+
|
|
479
|
+
Created: .planning/HANDOFF.md
|
|
480
|
+
|
|
481
|
+
## Session Summary
|
|
482
|
+
- Completed: Order creation service
|
|
483
|
+
- In progress: Order controller (50%)
|
|
484
|
+
- Blocked by: Need clarification on inventory check
|
|
485
|
+
|
|
486
|
+
## Resume Tomorrow
|
|
487
|
+
/gywd:resume-work
|
|
488
|
+
|
|
489
|
+
## Notes Saved
|
|
490
|
+
- Inventory service returns inconsistent types
|
|
491
|
+
- Consider adding TypeScript to Phase 8
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
### Next Day: Resume
|
|
495
|
+
|
|
496
|
+
```bash
|
|
497
|
+
/gywd:resume-work
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
**Output:**
|
|
501
|
+
|
|
502
|
+
```
|
|
503
|
+
Restoring session from 2024-01-23...
|
|
504
|
+
|
|
505
|
+
## Where You Left Off
|
|
506
|
+
Phase 6, Plan 2: Order creation
|
|
507
|
+
- Order service: ✓ Complete
|
|
508
|
+
- Order controller: 50% (stopped at createOrder method)
|
|
509
|
+
|
|
510
|
+
## Your Notes
|
|
511
|
+
- Inventory service returns inconsistent types
|
|
512
|
+
- Consider adding TypeScript to Phase 8
|
|
513
|
+
|
|
514
|
+
## Blockers Noted
|
|
515
|
+
- Need clarification on inventory check timing
|
|
516
|
+
|
|
517
|
+
Ready to continue? The order controller needs:
|
|
518
|
+
1. Finish createOrder method
|
|
519
|
+
2. Add inventory validation
|
|
520
|
+
3. Write tests
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
---
|
|
524
|
+
|
|
525
|
+
## Tips for Success
|
|
526
|
+
|
|
527
|
+
1. **Start with `/gywd:progress`** — Always know where you are
|
|
528
|
+
2. **Use `/gywd:why` liberally** — Understand before changing
|
|
529
|
+
3. **Run `/gywd:challenge` on complex plans** — Catch issues early
|
|
530
|
+
4. **End with `/gywd:pause-work`** — Never lose context
|
|
531
|
+
5. **Trust the decision graph** — It remembers so you don't have to
|
|
532
|
+
|
|
533
|
+
---
|
|
534
|
+
|
|
535
|
+
*See also: [Getting Started](GETTING-STARTED.md) | [Commands](COMMANDS.md) | [README](../README.md)*
|