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.
Files changed (126) hide show
  1. package/LICENSE +27 -0
  2. package/README.md +567 -0
  3. package/bin/install.js +348 -0
  4. package/commands/gywd/add-phase.md +207 -0
  5. package/commands/gywd/anticipate.md +271 -0
  6. package/commands/gywd/bootstrap.md +336 -0
  7. package/commands/gywd/challenge.md +344 -0
  8. package/commands/gywd/check-drift.md +144 -0
  9. package/commands/gywd/complete-milestone.md +106 -0
  10. package/commands/gywd/consider-issues.md +202 -0
  11. package/commands/gywd/context.md +93 -0
  12. package/commands/gywd/create-roadmap.md +115 -0
  13. package/commands/gywd/deps.md +169 -0
  14. package/commands/gywd/digest.md +138 -0
  15. package/commands/gywd/discuss-milestone.md +47 -0
  16. package/commands/gywd/discuss-phase.md +60 -0
  17. package/commands/gywd/execute-plan.md +161 -0
  18. package/commands/gywd/extract-decisions.md +325 -0
  19. package/commands/gywd/health.md +150 -0
  20. package/commands/gywd/help.md +556 -0
  21. package/commands/gywd/history.md +278 -0
  22. package/commands/gywd/impact.md +317 -0
  23. package/commands/gywd/init.md +95 -0
  24. package/commands/gywd/insert-phase.md +227 -0
  25. package/commands/gywd/list-phase-assumptions.md +50 -0
  26. package/commands/gywd/map-codebase.md +84 -0
  27. package/commands/gywd/memory.md +159 -0
  28. package/commands/gywd/new-milestone.md +59 -0
  29. package/commands/gywd/new-project.md +315 -0
  30. package/commands/gywd/pause-work.md +123 -0
  31. package/commands/gywd/plan-fix.md +205 -0
  32. package/commands/gywd/plan-phase.md +93 -0
  33. package/commands/gywd/preview-plan.md +139 -0
  34. package/commands/gywd/profile.md +363 -0
  35. package/commands/gywd/progress.md +317 -0
  36. package/commands/gywd/remove-phase.md +338 -0
  37. package/commands/gywd/research-phase.md +91 -0
  38. package/commands/gywd/resume-work.md +40 -0
  39. package/commands/gywd/rollback.md +179 -0
  40. package/commands/gywd/status.md +42 -0
  41. package/commands/gywd/sync-github.md +234 -0
  42. package/commands/gywd/verify-work.md +71 -0
  43. package/commands/gywd/why.md +251 -0
  44. package/docs/COMMANDS.md +722 -0
  45. package/docs/CONTRIBUTING.md +342 -0
  46. package/docs/EXAMPLES.md +535 -0
  47. package/docs/GETTING-STARTED.md +262 -0
  48. package/docs/README.md +55 -0
  49. package/docs/RELEASING.md +159 -0
  50. package/get-your-work-done/core/agent-patterns.md +331 -0
  51. package/get-your-work-done/core/architecture.md +334 -0
  52. package/get-your-work-done/core/context-model-schema.json +154 -0
  53. package/get-your-work-done/core/decisions-schema.json +193 -0
  54. package/get-your-work-done/core/learning-state-schema.json +133 -0
  55. package/get-your-work-done/core/profile-schema.json +257 -0
  56. package/get-your-work-done/references/adaptive-decomposition.md +175 -0
  57. package/get-your-work-done/references/checkpoints.md +287 -0
  58. package/get-your-work-done/references/confidence-scoring.md +169 -0
  59. package/get-your-work-done/references/continuation-format.md +255 -0
  60. package/get-your-work-done/references/git-integration.md +254 -0
  61. package/get-your-work-done/references/plan-format.md +428 -0
  62. package/get-your-work-done/references/principles.md +157 -0
  63. package/get-your-work-done/references/questioning.md +162 -0
  64. package/get-your-work-done/references/research-pitfalls.md +215 -0
  65. package/get-your-work-done/references/scope-estimation.md +172 -0
  66. package/get-your-work-done/references/tdd.md +263 -0
  67. package/get-your-work-done/templates/codebase/architecture.md +255 -0
  68. package/get-your-work-done/templates/codebase/concerns.md +310 -0
  69. package/get-your-work-done/templates/codebase/conventions.md +307 -0
  70. package/get-your-work-done/templates/codebase/integrations.md +280 -0
  71. package/get-your-work-done/templates/codebase/stack.md +186 -0
  72. package/get-your-work-done/templates/codebase/structure.md +285 -0
  73. package/get-your-work-done/templates/codebase/testing.md +480 -0
  74. package/get-your-work-done/templates/config.json +18 -0
  75. package/get-your-work-done/templates/context.md +161 -0
  76. package/get-your-work-done/templates/continue-here.md +78 -0
  77. package/get-your-work-done/templates/discovery.md +146 -0
  78. package/get-your-work-done/templates/issues.md +32 -0
  79. package/get-your-work-done/templates/milestone-archive.md +123 -0
  80. package/get-your-work-done/templates/milestone-context.md +93 -0
  81. package/get-your-work-done/templates/milestone.md +115 -0
  82. package/get-your-work-done/templates/phase-prompt.md +303 -0
  83. package/get-your-work-done/templates/project.md +184 -0
  84. package/get-your-work-done/templates/research.md +529 -0
  85. package/get-your-work-done/templates/roadmap.md +196 -0
  86. package/get-your-work-done/templates/state.md +210 -0
  87. package/get-your-work-done/templates/summary.md +273 -0
  88. package/get-your-work-done/templates/uat-issues.md +143 -0
  89. package/get-your-work-done/workflows/complete-milestone.md +643 -0
  90. package/get-your-work-done/workflows/create-milestone.md +416 -0
  91. package/get-your-work-done/workflows/create-roadmap.md +481 -0
  92. package/get-your-work-done/workflows/discovery-phase.md +293 -0
  93. package/get-your-work-done/workflows/discuss-milestone.md +236 -0
  94. package/get-your-work-done/workflows/discuss-phase.md +247 -0
  95. package/get-your-work-done/workflows/execute-phase.md +1625 -0
  96. package/get-your-work-done/workflows/list-phase-assumptions.md +178 -0
  97. package/get-your-work-done/workflows/map-codebase.md +434 -0
  98. package/get-your-work-done/workflows/plan-phase.md +488 -0
  99. package/get-your-work-done/workflows/research-phase.md +436 -0
  100. package/get-your-work-done/workflows/resume-project.md +287 -0
  101. package/get-your-work-done/workflows/transition.md +580 -0
  102. package/get-your-work-done/workflows/verify-work.md +202 -0
  103. package/lib/automation/dependency-analyzer.js +635 -0
  104. package/lib/automation/doc-generator.js +643 -0
  105. package/lib/automation/index.js +42 -0
  106. package/lib/automation/test-generator.js +628 -0
  107. package/lib/context/context-analyzer.js +554 -0
  108. package/lib/context/context-cache.js +426 -0
  109. package/lib/context/context-predictor.js +622 -0
  110. package/lib/context/index.js +44 -0
  111. package/lib/memory/confidence-calibrator.js +484 -0
  112. package/lib/memory/feedback-collector.js +551 -0
  113. package/lib/memory/global-memory.js +465 -0
  114. package/lib/memory/index.js +75 -0
  115. package/lib/memory/pattern-aggregator.js +487 -0
  116. package/lib/memory/team-sync.js +501 -0
  117. package/lib/profile/index.js +24 -0
  118. package/lib/profile/pattern-learner.js +303 -0
  119. package/lib/profile/profile-manager.js +445 -0
  120. package/lib/questioning/index.js +49 -0
  121. package/lib/questioning/question-engine.js +311 -0
  122. package/lib/questioning/question-templates.js +315 -0
  123. package/lib/validators/command-validator.js +188 -0
  124. package/lib/validators/index.js +29 -0
  125. package/lib/validators/schema-validator.js +183 -0
  126. package/package.json +61 -0
@@ -0,0 +1,150 @@
1
+ ---
2
+ name: GYWD:health
3
+ description: Phase health dashboard showing quality metrics
4
+ ---
5
+
6
+ <objective>
7
+ Display a comprehensive health dashboard for the current project showing:
8
+ - Plan quality metrics
9
+ - Test coverage status
10
+ - Open issues per phase
11
+ - Completion velocity
12
+ - Risk indicators
13
+
14
+ Helps users identify problems before they become blockers.
15
+ </objective>
16
+
17
+ <process>
18
+ 1. Check project exists:
19
+ - If no `.planning/`: "No GYWD project. Run /gywd:new-project first."
20
+
21
+ 2. Gather metrics from each source:
22
+
23
+ **From ROADMAP.md:**
24
+ - Total phases and completion status
25
+ - Plans per phase
26
+
27
+ **From STATE.md:**
28
+ - Current position
29
+ - Decisions made
30
+ - Deferred issues
31
+
32
+ **From ISSUES.md (if exists):**
33
+ - Open issue count
34
+ - Issues per phase
35
+ - Issue severity breakdown
36
+
37
+ **From SUMMARY.md files:**
38
+ - Completed tasks
39
+ - Deviation count
40
+ - Time patterns (if timestamps exist)
41
+
42
+ **From codebase (if accessible):**
43
+ - Test file count vs source file count
44
+ - Package.json test script presence
45
+
46
+ 3. Calculate health scores:
47
+
48
+ **Plan Quality Score (0-100):**
49
+ - Has verification steps: +25
50
+ - Has success criteria: +25
51
+ - Reasonable task count (3-8): +25
52
+ - Clear task descriptions: +25
53
+
54
+ **Test Coverage Indicator:**
55
+ - Test files exist: ✅
56
+ - Test script in package.json: ✅
57
+ - No tests detected: ⚠️
58
+
59
+ **Issue Health:**
60
+ - 0 open issues: ✅ Clean
61
+ - 1-3 issues: 🟡 Minor debt
62
+ - 4-7 issues: 🟠 Needs attention
63
+ - 8+ issues: 🔴 Technical debt risk
64
+
65
+ 4. Generate dashboard:
66
+ ```
67
+ ## Project Health Dashboard
68
+
69
+ **Project:** {project-name}
70
+ **Phase:** 3/7 (Core Features)
71
+ **Overall Health:** 🟢 Good (85/100)
72
+
73
+ ---
74
+
75
+ ### Phase Status
76
+
77
+ | Phase | Plans | Tasks | Issues | Health |
78
+ |-------|-------|-------|--------|--------|
79
+ | 1. Foundation | 2/2 ✅ | 12/12 | 0 | 🟢 |
80
+ | 2. Auth | 1/1 ✅ | 8/8 | 1 | 🟢 |
81
+ | 3. Core ← | 1/2 🔄 | 5/10 | 2 | 🟡 |
82
+ | 4. API | 0/1 📋 | 0/? | 0 | ⬜ |
83
+ | 5. UI | 0/2 📋 | 0/? | 0 | ⬜ |
84
+
85
+ ---
86
+
87
+ ### Quality Metrics
88
+
89
+ | Metric | Status | Details |
90
+ |--------|--------|---------|
91
+ | Test Coverage | ✅ | 15 test files found |
92
+ | Plan Quality | 🟢 92% | All plans have criteria |
93
+ | Issue Backlog | 🟡 3 open | 2 in current phase |
94
+ | Velocity | → Stable | ~5 tasks/plan average |
95
+
96
+ ---
97
+
98
+ ### Attention Needed
99
+
100
+ ⚠️ **2 issues in current phase:**
101
+ - #12: Auth token refresh edge case
102
+ - #15: Error handling in user service
103
+
104
+ 💡 **Recommendation:**
105
+ Consider addressing Phase 3 issues before moving to Phase 4.
106
+ Run `/gywd:consider-issues` for detailed analysis.
107
+
108
+ ---
109
+
110
+ ### Quick Actions
111
+
112
+ - `/gywd:progress` - Continue current work
113
+ - `/gywd:consider-issues` - Review open issues
114
+ - `/gywd:context` - Check context budget
115
+ ```
116
+
117
+ 5. Provide actionable recommendations based on health:
118
+ - Low plan quality → Suggest plan review
119
+ - High issue count → Suggest issue triage
120
+ - No tests → Suggest adding test phase
121
+ - Slow velocity → Suggest smaller tasks
122
+ </process>
123
+
124
+ <output_format>
125
+ Dashboard-style output with:
126
+ - Overall health score and indicator
127
+ - Phase-by-phase breakdown table
128
+ - Quality metrics table
129
+ - Attention items (if any)
130
+ - Quick action commands
131
+
132
+ Use consistent indicators:
133
+ - 🟢 Good/Complete
134
+ - 🟡 Minor issues
135
+ - 🟠 Needs attention
136
+ - 🔴 Critical
137
+ - ⬜ Not started
138
+ - 🔄 In progress
139
+ - ✅ Complete
140
+ - ← Current phase indicator
141
+ </output_format>
142
+
143
+ <success_criteria>
144
+ - [ ] Shows overall health score
145
+ - [ ] Displays phase-by-phase breakdown
146
+ - [ ] Identifies issues in current phase
147
+ - [ ] Provides quality metrics
148
+ - [ ] Gives actionable recommendations
149
+ - [ ] Runs without modifying any files
150
+ </success_criteria>
@@ -0,0 +1,556 @@
1
+ ---
2
+ name: GYWD:help
3
+ description: Show available GYWD commands and usage guide
4
+ ---
5
+
6
+ <objective>
7
+ Display the complete GYWD command reference.
8
+
9
+ Output ONLY the reference content below. Do NOT add:
10
+
11
+ - Project-specific analysis
12
+ - Git status or file context
13
+ - Next-step suggestions
14
+ - Any commentary beyond the reference
15
+ </objective>
16
+
17
+ <reference>
18
+ # GYWD Command Reference
19
+
20
+ **GYWD** (Get Your Work Done) is a decision-aware development system for Claude Code.
21
+
22
+ **v1.4 Philosophy:** Code is crystallized decisions. GYWD understands WHY code exists, not just WHAT it does.
23
+
24
+ ## Quick Start
25
+
26
+ **Fast track (minimal questions):**
27
+ ```
28
+ /gywd:init my-project
29
+ /gywd:create-roadmap
30
+ /gywd:plan-phase 1
31
+ /gywd:execute-plan
32
+ ```
33
+
34
+ **Full setup (detailed questioning):**
35
+ ```
36
+ /gywd:new-project
37
+ /gywd:create-roadmap
38
+ /gywd:plan-phase 1
39
+ /gywd:execute-plan
40
+ ```
41
+
42
+ **Check status anytime:**
43
+ ```
44
+ /gywd:status # One-line status
45
+ /gywd:progress # Detailed progress
46
+ /gywd:context # Context budget analysis
47
+ /gywd:health # Project health dashboard
48
+ ```
49
+
50
+ **Decision Intelligence (v1.4):**
51
+ ```
52
+ /gywd:why <code> # Why does this code exist?
53
+ /gywd:extract-decisions # Build decision graph from history
54
+ /gywd:challenge # Adversarial review of plans/code
55
+ /gywd:history # Query temporal codebase evolution
56
+ /gywd:anticipate # Predictive context loading
57
+ /gywd:profile # Developer digital twin
58
+ /gywd:impact # Connect code to production reality
59
+ ```
60
+
61
+ **v2.0 Unified Intelligence:**
62
+ ```
63
+ /gywd:bootstrap # Initialize complete v2.0 system on any codebase
64
+ ```
65
+
66
+ ## Core Workflow
67
+
68
+ ```
69
+ Initialization → Planning → Execution → Milestone Completion
70
+ ```
71
+
72
+ ### Project Initialization
73
+
74
+ **`/gywd:init <name>`** *(New!)*
75
+ Quick project initialization with minimal questions.
76
+
77
+ - Creates minimal PROJECT.md and config.json
78
+ - Auto-detects brownfield vs greenfield
79
+ - Gets you coding in under 30 seconds
80
+
81
+ Usage: `/gywd:init my-app`
82
+
83
+ **`/gywd:new-project`**
84
+ Initialize new project with brief and configuration.
85
+
86
+ - Creates `.planning/PROJECT.md` (vision and requirements)
87
+ - Creates `.planning/config.json` (workflow mode)
88
+ - Asks for workflow mode (interactive/yolo) upfront
89
+ - Commits initialization files to git
90
+
91
+ Usage: `/gywd:new-project`
92
+
93
+ **`/gywd:create-roadmap`**
94
+ Create roadmap and state tracking for initialized project.
95
+
96
+ - Creates `.planning/ROADMAP.md` (phase breakdown)
97
+ - Creates `.planning/STATE.md` (project memory)
98
+ - Creates `.planning/phases/` directories
99
+
100
+ Usage: `/gywd:create-roadmap`
101
+
102
+ **`/gywd:map-codebase`**
103
+ Map an existing codebase for brownfield projects.
104
+
105
+ - Analyzes codebase with parallel Explore agents
106
+ - Creates `.planning/codebase/` with 7 focused documents
107
+ - Covers stack, architecture, structure, conventions, testing, integrations, concerns
108
+ - Use before `/gywd:new-project` on existing codebases
109
+
110
+ Usage: `/gywd:map-codebase`
111
+
112
+ ### Phase Planning
113
+
114
+ **`/gywd:discuss-phase <number>`**
115
+ Help articulate your vision for a phase before planning.
116
+
117
+ - Captures how you imagine this phase working
118
+ - Creates CONTEXT.md with your vision, essentials, and boundaries
119
+ - Use when you have ideas about how something should look/feel
120
+
121
+ Usage: `/gywd:discuss-phase 2`
122
+
123
+ **`/gywd:research-phase <number>`**
124
+ Comprehensive ecosystem research for niche/complex domains.
125
+
126
+ - Discovers standard stack, architecture patterns, pitfalls
127
+ - Creates RESEARCH.md with "how experts build this" knowledge
128
+ - Use for 3D, games, audio, shaders, ML, and other specialized domains
129
+ - Goes beyond "which library" to ecosystem knowledge
130
+
131
+ Usage: `/gywd:research-phase 3`
132
+
133
+ **`/gywd:list-phase-assumptions <number>`**
134
+ See what Claude is planning to do before it starts.
135
+
136
+ - Shows Claude's intended approach for a phase
137
+ - Lets you course-correct if Claude misunderstood your vision
138
+ - No files created - conversational output only
139
+
140
+ Usage: `/gywd:list-phase-assumptions 3`
141
+
142
+ **`/gywd:plan-phase <number>`**
143
+ Create detailed execution plan for a specific phase.
144
+
145
+ - Generates `.planning/phases/XX-phase-name/XX-YY-PLAN.md`
146
+ - Breaks phase into concrete, actionable tasks
147
+ - Includes verification criteria and success measures
148
+ - Multiple plans per phase supported (XX-01, XX-02, etc.)
149
+
150
+ Usage: `/gywd:plan-phase 1`
151
+ Result: Creates `.planning/phases/01-foundation/01-01-PLAN.md`
152
+
153
+ ### Execution
154
+
155
+ **`/gywd:preview-plan <path>`** *(New!)*
156
+ Preview what a plan will do before executing it.
157
+
158
+ - Shows all tasks that will run
159
+ - Lists files to be created/modified
160
+ - Highlights checkpoints and risks
161
+ - Read-only operation - no changes made
162
+
163
+ Usage: `/gywd:preview-plan .planning/phases/01-foundation/01-01-PLAN.md`
164
+
165
+ **`/gywd:execute-plan <path> [--tasks]`**
166
+ Execute a PLAN.md file directly.
167
+
168
+ - Runs plan tasks sequentially
169
+ - Creates SUMMARY.md after completion
170
+ - Updates STATE.md with accumulated context
171
+ - Supports partial execution with --tasks flag
172
+
173
+ Usage: `/gywd:execute-plan .planning/phases/01-foundation/01-01-PLAN.md`
174
+ Partial: `/gywd:execute-plan .planning/phases/01-foundation/01-01-PLAN.md --tasks 1-3`
175
+
176
+ ### Roadmap Management
177
+
178
+ **`/gywd:add-phase <description>`**
179
+ Add new phase to end of current milestone.
180
+
181
+ - Appends to ROADMAP.md
182
+ - Uses next sequential number
183
+ - Updates phase directory structure
184
+
185
+ Usage: `/gywd:add-phase "Add admin dashboard"`
186
+
187
+ **`/gywd:insert-phase <after> <description>`**
188
+ Insert urgent work as decimal phase between existing phases.
189
+
190
+ - Creates intermediate phase (e.g., 7.1 between 7 and 8)
191
+ - Useful for discovered work that must happen mid-milestone
192
+ - Maintains phase ordering
193
+
194
+ Usage: `/gywd:insert-phase 7 "Fix critical auth bug"`
195
+ Result: Creates Phase 7.1
196
+
197
+ **`/gywd:remove-phase <number>`**
198
+ Remove a future phase and renumber subsequent phases.
199
+
200
+ - Deletes phase directory and all references
201
+ - Renumbers all subsequent phases to close the gap
202
+ - Only works on future (unstarted) phases
203
+ - Git commit preserves historical record
204
+
205
+ Usage: `/gywd:remove-phase 17`
206
+ Result: Phase 17 deleted, phases 18-20 become 17-19
207
+
208
+ ### Milestone Management
209
+
210
+ **`/gywd:discuss-milestone`**
211
+ Figure out what you want to build in the next milestone.
212
+
213
+ - Reviews what shipped in previous milestone
214
+ - Helps you identify features to add, improve, or fix
215
+ - Routes to /gywd:new-milestone when ready
216
+
217
+ Usage: `/gywd:discuss-milestone`
218
+
219
+ **`/gywd:new-milestone <name>`**
220
+ Create a new milestone with phases for an existing project.
221
+
222
+ - Adds milestone section to ROADMAP.md
223
+ - Creates phase directories
224
+ - Updates STATE.md for new milestone
225
+
226
+ Usage: `/gywd:new-milestone "v2.0 Features"`
227
+
228
+ **`/gywd:complete-milestone <version>`**
229
+ Archive completed milestone and prepare for next version.
230
+
231
+ - Creates MILESTONES.md entry with stats
232
+ - Archives full details to milestones/ directory
233
+ - Creates git tag for the release
234
+ - Prepares workspace for next version
235
+
236
+ Usage: `/gywd:complete-milestone 1.0.0`
237
+
238
+ ### Progress Tracking
239
+
240
+ **`/gywd:status`**
241
+ Quick one-line project status.
242
+
243
+ - Shows progress bar, phase, and last activity
244
+ - Perfect for a quick glance at where you are
245
+
246
+ Usage: `/gywd:status`
247
+ Output: `[████░░░░░░] 40% | Phase 2/5: Auth | Last: today`
248
+
249
+ **`/gywd:context`** *(New!)*
250
+ Show context budget visibility and usage analysis.
251
+
252
+ - Estimates current context usage percentage
253
+ - Breaks down by source (plans, codebase, state)
254
+ - Warns when approaching context limits
255
+ - Suggests actions to reduce context load
256
+
257
+ Usage: `/gywd:context`
258
+
259
+ **`/gywd:health`** *(New!)*
260
+ Phase health dashboard showing quality metrics.
261
+
262
+ - Shows overall project health score
263
+ - Displays phase-by-phase breakdown
264
+ - Tracks open issues per phase
265
+ - Provides actionable recommendations
266
+
267
+ Usage: `/gywd:health`
268
+
269
+ **`/gywd:progress`**
270
+ Check project status and intelligently route to next action.
271
+
272
+ - Shows visual progress bar and completion percentage
273
+ - Summarizes recent work from SUMMARY files
274
+ - Displays current position and what's next
275
+ - Lists key decisions and open issues
276
+ - Offers to execute next plan or create it if missing
277
+ - Detects 100% milestone completion
278
+
279
+ Usage: `/gywd:progress`
280
+
281
+ ### Memory & Analysis
282
+
283
+ **`/gywd:memory [show|add|clear|learn]`** *(New!)*
284
+ Multi-session memory for patterns and preferences.
285
+
286
+ - Persists coding style, library choices, project rules
287
+ - Learns patterns from your work automatically
288
+ - Carries forward between sessions
289
+
290
+ Usage: `/gywd:memory show` or `/gywd:memory add preference "Use TypeScript strict mode"`
291
+
292
+ **`/gywd:check-drift`** *(New!)*
293
+ Detect specification drift between PROJECT.md and implementation.
294
+
295
+ - Shows alignment percentage
296
+ - Identifies missing/partial requirements
297
+ - Flags undocumented features
298
+ - Suggests corrective actions
299
+
300
+ Usage: `/gywd:check-drift`
301
+
302
+ **`/gywd:deps [phase-number|all]`** *(New!)*
303
+ Visualize phase and task dependencies.
304
+
305
+ - Shows dependency graph
306
+ - Identifies parallelizable work
307
+ - Highlights critical path
308
+ - Shows blocked vs ready status
309
+
310
+ Usage: `/gywd:deps` or `/gywd:deps 3`
311
+
312
+ ### Session Management
313
+
314
+ **`/gywd:resume-work`**
315
+ Resume work from previous session with full context restoration.
316
+
317
+ - Reads STATE.md for project context
318
+ - Shows current position and recent progress
319
+ - Offers next actions based on project state
320
+
321
+ Usage: `/gywd:resume-work`
322
+
323
+ **`/gywd:pause-work`**
324
+ Create context handoff when pausing work mid-phase.
325
+
326
+ - Creates .continue-here file with current state
327
+ - Updates STATE.md session continuity section
328
+ - Captures in-progress work context
329
+
330
+ Usage: `/gywd:pause-work`
331
+
332
+ ### Advanced Features
333
+
334
+ **`/gywd:digest [focus-area]`** *(New!)*
335
+ Create compact codebase digest for quick context refresh.
336
+
337
+ - 90%+ smaller than full codebase map
338
+ - Focus on specific areas (auth, api, etc.)
339
+ - Shows recent activity and hot files
340
+ - Perfect for resuming work
341
+
342
+ Usage: `/gywd:digest` or `/gywd:digest auth`
343
+
344
+ **`/gywd:rollback [target]`** *(New!)*
345
+ Safely rollback to a previous checkpoint.
346
+
347
+ - Phase rollback: Undo entire phase
348
+ - Plan rollback: Undo specific plan
349
+ - Creates safety branch before changes
350
+ - Preserves planning files for learning
351
+
352
+ Usage: `/gywd:rollback last` or `/gywd:rollback 3`
353
+
354
+ **`/gywd:sync-github [type]`** *(New!)*
355
+ Sync GYWD state with GitHub issues, PRs, milestones.
356
+
357
+ - Push issues to GitHub, import GitHub issues
358
+ - Create PRs for completed phases
359
+ - Sync milestones bidirectionally
360
+ - Track PR merges with phase completion
361
+
362
+ Usage: `/gywd:sync-github` or `/gywd:sync-github issues`
363
+
364
+ ### Issue Management
365
+
366
+ **`/gywd:consider-issues`**
367
+ Review deferred issues with codebase context.
368
+
369
+ - Analyzes all open issues against current codebase state
370
+ - Identifies resolved issues (can close)
371
+ - Identifies urgent issues (should address now)
372
+ - Identifies natural fits for upcoming phases
373
+ - Offers batch actions (close, insert phase, note for planning)
374
+
375
+ Usage: `/gywd:consider-issues`
376
+
377
+ ### Decision Intelligence (v1.4)
378
+
379
+ **`/gywd:why <target>`**
380
+ Ask why code exists - trace to decisions.
381
+
382
+ - Answers "why does this code exist?"
383
+ - Traces to original decisions and context
384
+ - Shows alternatives considered, trade-offs accepted
385
+ - Links to incidents and history
386
+
387
+ Usage: `/gywd:why src/utils/result.ts` or `/gywd:why "the retry logic in payments"`
388
+
389
+ **`/gywd:extract-decisions`**
390
+ Build decision graph from codebase history.
391
+
392
+ - Parses git history, PRs, comments for decisions
393
+ - Creates structured decision records
394
+ - Links decisions causally (A led to B)
395
+ - Identifies documentation gaps
396
+
397
+ Usage: `/gywd:extract-decisions --depth deep`
398
+
399
+ **`/gywd:history <query>`**
400
+ Query temporal codebase evolution.
401
+
402
+ - Natural language queries against history
403
+ - "When did we start using this pattern?"
404
+ - "What did auth look like before the rewrite?"
405
+ - Hotspot detection and prediction
406
+
407
+ Usage: `/gywd:history "Why did we remove Redux?"`
408
+
409
+ **`/gywd:challenge [target]`**
410
+ Adversarial review - agents that attack your plan/code.
411
+
412
+ - Critic Agent: Finds logical flaws
413
+ - Devil's Advocate: Argues for alternatives
414
+ - Red Team: Security attack simulation
415
+ - Chaos Agent: Edge case generation
416
+
417
+ Usage: `/gywd:challenge .planning/phases/03-payment/03-01-PLAN.md`
418
+
419
+ **`/gywd:anticipate`**
420
+ Predictive development - know what you'll need.
421
+
422
+ - Pre-loads relevant patterns before you ask
423
+ - Surfaces similar past work
424
+ - Warns about known pitfalls
425
+ - Protects flow state
426
+
427
+ Usage: `/gywd:anticipate --for "payment integration"`
428
+
429
+ **`/gywd:profile [show|learn]`**
430
+ Developer Digital Twin - model of your patterns.
431
+
432
+ - Captures cognitive style and preferences
433
+ - Maps expertise topology
434
+ - Learns from your behavior
435
+ - Adapts AI responses to YOU
436
+
437
+ Usage: `/gywd:profile show` or `/gywd:profile learn`
438
+
439
+ **`/gywd:impact <target>`**
440
+ Reality integration - connect code to outcomes.
441
+
442
+ - Production metrics per file/endpoint
443
+ - Business impact attribution
444
+ - Cost breakdown by code area
445
+ - Incident history linkage
446
+
447
+ Usage: `/gywd:impact src/api/checkout.ts`
448
+
449
+ ### v2.0 Unified Intelligence
450
+
451
+ **`/gywd:bootstrap [--quick|--deep]`**
452
+ Initialize complete GYWD v2.0 system on any codebase.
453
+
454
+ - One command to rule them all - replaces multiple init commands
455
+ - Maps codebase structure with parallel agents
456
+ - Extracts decision graph from git history
457
+ - Builds context intelligence model
458
+ - Creates developer profile from contributions
459
+ - Initializes continuous learning system
460
+ - Sets up PROJECT.md, ROADMAP.md, STATE.md
461
+
462
+ Modes:
463
+ - `--quick`: Shallow analysis (~2 min)
464
+ - Default: Full analysis (~5-10 min)
465
+ - `--deep`: Exhaustive analysis with adversarial validation (~15-30 min)
466
+
467
+ Usage: `/gywd:bootstrap` or `/gywd:bootstrap --deep`
468
+
469
+ ### Utility Commands
470
+
471
+ **`/gywd:help`**
472
+ Show this command reference.
473
+
474
+ ## Files & Structure
475
+
476
+ ```
477
+ .planning/
478
+ ├── PROJECT.md # Project vision
479
+ ├── ROADMAP.md # Current phase breakdown
480
+ ├── STATE.md # Project memory & context
481
+ ├── ISSUES.md # Deferred enhancements (created when needed)
482
+ ├── config.json # Workflow mode & gates
483
+ ├── codebase/ # Codebase map (brownfield projects)
484
+ │ ├── STACK.md # Languages, frameworks, dependencies
485
+ │ ├── ARCHITECTURE.md # Patterns, layers, data flow
486
+ │ ├── STRUCTURE.md # Directory layout, key files
487
+ │ ├── CONVENTIONS.md # Coding standards, naming
488
+ │ ├── TESTING.md # Test setup, patterns
489
+ │ ├── INTEGRATIONS.md # External services, APIs
490
+ │ └── CONCERNS.md # Tech debt, known issues
491
+ └── phases/
492
+ ├── 01-foundation/
493
+ │ ├── 01-01-PLAN.md
494
+ │ └── 01-01-SUMMARY.md
495
+ └── 02-core-features/
496
+ ├── 02-01-PLAN.md
497
+ └── 02-01-SUMMARY.md
498
+ ```
499
+
500
+ ## Workflow Modes
501
+
502
+ Set during `/gywd:new-project`:
503
+
504
+ **Interactive Mode**
505
+
506
+ - Confirms each major decision
507
+ - Pauses at checkpoints for approval
508
+ - More guidance throughout
509
+
510
+ **YOLO Mode**
511
+
512
+ - Auto-approves most decisions
513
+ - Executes plans without confirmation
514
+ - Only stops for critical checkpoints
515
+
516
+ Change anytime by editing `.planning/config.json`
517
+
518
+ ## Common Workflows
519
+
520
+ **Starting a new project:**
521
+
522
+ ```
523
+ /gywd:new-project
524
+ /gywd:create-roadmap
525
+ /gywd:plan-phase 1
526
+ /gywd:execute-plan .planning/phases/01-foundation/01-01-PLAN.md
527
+ ```
528
+
529
+ **Resuming work after a break:**
530
+
531
+ ```
532
+ /gywd:progress # See where you left off and continue
533
+ ```
534
+
535
+ **Adding urgent mid-milestone work:**
536
+
537
+ ```
538
+ /gywd:insert-phase 5 "Critical security fix"
539
+ /gywd:plan-phase 5.1
540
+ /gywd:execute-plan .planning/phases/05.1-critical-security-fix/05.1-01-PLAN.md
541
+ ```
542
+
543
+ **Completing a milestone:**
544
+
545
+ ```
546
+ /gywd:complete-milestone 1.0.0
547
+ /gywd:new-project # Start next milestone
548
+ ```
549
+
550
+ ## Getting Help
551
+
552
+ - Read `.planning/PROJECT.md` for project vision
553
+ - Read `.planning/STATE.md` for current context
554
+ - Check `.planning/ROADMAP.md` for phase status
555
+ - Run `/gywd:progress` to check where you're up to
556
+ </reference>