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,202 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GYWD:consider-issues
|
|
3
|
+
description: Review deferred issues with codebase context, close resolved ones, identify urgent ones
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Bash
|
|
7
|
+
- Grep
|
|
8
|
+
- Glob
|
|
9
|
+
- Edit
|
|
10
|
+
- AskUserQuestion
|
|
11
|
+
- SlashCommand
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<objective>
|
|
15
|
+
Review all open issues from ISSUES.md with current codebase context. Identify which issues are resolved (can close), which are now urgent (should address), and which can continue waiting.
|
|
16
|
+
|
|
17
|
+
This prevents issue pile-up by providing a triage mechanism with codebase awareness.
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<context>
|
|
21
|
+
@.planning/ISSUES.md
|
|
22
|
+
@.planning/STATE.md
|
|
23
|
+
@.planning/ROADMAP.md
|
|
24
|
+
</context>
|
|
25
|
+
|
|
26
|
+
<process>
|
|
27
|
+
|
|
28
|
+
<step name="verify">
|
|
29
|
+
**Verify issues file exists:**
|
|
30
|
+
|
|
31
|
+
If no `.planning/ISSUES.md`:
|
|
32
|
+
```
|
|
33
|
+
No issues file found.
|
|
34
|
+
|
|
35
|
+
This means no enhancements have been deferred yet (Rule 5 hasn't triggered).
|
|
36
|
+
|
|
37
|
+
Nothing to review.
|
|
38
|
+
```
|
|
39
|
+
Exit.
|
|
40
|
+
|
|
41
|
+
If ISSUES.md exists but has no open issues (only template or empty "Open Enhancements"):
|
|
42
|
+
```
|
|
43
|
+
No open issues to review.
|
|
44
|
+
|
|
45
|
+
All clear - continue with current work.
|
|
46
|
+
```
|
|
47
|
+
Exit.
|
|
48
|
+
</step>
|
|
49
|
+
|
|
50
|
+
<step name="parse">
|
|
51
|
+
**Parse all open issues:**
|
|
52
|
+
|
|
53
|
+
Extract from "## Open Enhancements" section:
|
|
54
|
+
- ISS number (ISS-001, ISS-002, etc.)
|
|
55
|
+
- Brief description
|
|
56
|
+
- Discovered phase/date
|
|
57
|
+
- Type (Performance/Refactoring/UX/Testing/Documentation/Accessibility)
|
|
58
|
+
- Description details
|
|
59
|
+
- Effort estimate
|
|
60
|
+
|
|
61
|
+
Build list of issues to analyze.
|
|
62
|
+
</step>
|
|
63
|
+
|
|
64
|
+
<step name="analyze">
|
|
65
|
+
**For each open issue, perform codebase analysis:**
|
|
66
|
+
|
|
67
|
+
1. **Check if still relevant:**
|
|
68
|
+
- Search codebase for related code/files mentioned in issue
|
|
69
|
+
- If code no longer exists or was significantly refactored: likely resolved
|
|
70
|
+
|
|
71
|
+
2. **Check if accidentally resolved:**
|
|
72
|
+
- Look for commits/changes that may have addressed this
|
|
73
|
+
- Check if the enhancement was implemented as part of other work
|
|
74
|
+
|
|
75
|
+
3. **Assess current urgency:**
|
|
76
|
+
- Is this blocking upcoming phases?
|
|
77
|
+
- Has this become a pain point mentioned in recent summaries?
|
|
78
|
+
- Is this now affecting code we're actively working on?
|
|
79
|
+
|
|
80
|
+
4. **Check natural fit:**
|
|
81
|
+
- Does this align with an upcoming phase in the roadmap?
|
|
82
|
+
- Would addressing it now touch the same files as current work?
|
|
83
|
+
|
|
84
|
+
**Categorize each issue:**
|
|
85
|
+
- **Resolved** - Can be closed (code changed, no longer applicable)
|
|
86
|
+
- **Urgent** - Should address before continuing (blocking or causing problems)
|
|
87
|
+
- **Natural fit** - Good candidate for upcoming phase X
|
|
88
|
+
- **Can wait** - Keep deferred, no change in status
|
|
89
|
+
</step>
|
|
90
|
+
|
|
91
|
+
<step name="report">
|
|
92
|
+
**Present categorized report:**
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
# Issue Review
|
|
96
|
+
|
|
97
|
+
**Analyzed:** [N] open issues
|
|
98
|
+
**Last reviewed:** [today's date]
|
|
99
|
+
|
|
100
|
+
## Resolved (can close)
|
|
101
|
+
|
|
102
|
+
### ISS-XXX: [description]
|
|
103
|
+
**Reason:** [Why it's resolved - code changed, implemented elsewhere, no longer applicable]
|
|
104
|
+
**Evidence:** [What you found - file changes, missing code, etc.]
|
|
105
|
+
|
|
106
|
+
[Repeat for each resolved issue, or "None" if none resolved]
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Urgent (should address now)
|
|
111
|
+
|
|
112
|
+
### ISS-XXX: [description]
|
|
113
|
+
**Why urgent:** [What changed - blocking next phase, causing active problems, etc.]
|
|
114
|
+
**Recommendation:** Insert plan before Phase [X] / Add to current phase
|
|
115
|
+
**Effort:** [Quick/Medium/Substantial]
|
|
116
|
+
|
|
117
|
+
[Repeat for each urgent issue, or "None - all issues can wait" if none urgent]
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Natural Fit for Upcoming Work
|
|
122
|
+
|
|
123
|
+
### ISS-XXX: [description]
|
|
124
|
+
**Fits with:** Phase [X] - [phase name]
|
|
125
|
+
**Reason:** [Same files, same subsystem, natural inclusion]
|
|
126
|
+
|
|
127
|
+
[Repeat for each, or "None" if no natural fits]
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Can Wait (no change)
|
|
132
|
+
|
|
133
|
+
### ISS-XXX: [description]
|
|
134
|
+
**Status:** Still valid, not urgent, keep deferred
|
|
135
|
+
|
|
136
|
+
[Repeat for each, or list ISS numbers if many]
|
|
137
|
+
```
|
|
138
|
+
</step>
|
|
139
|
+
|
|
140
|
+
<step name="offer_actions">
|
|
141
|
+
**Offer batch actions:**
|
|
142
|
+
|
|
143
|
+
Based on analysis, present options:
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
## Actions
|
|
147
|
+
|
|
148
|
+
What would you like to do?
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Use AskUserQuestion with appropriate options based on findings:
|
|
152
|
+
|
|
153
|
+
**If resolved issues exist:**
|
|
154
|
+
- "Close resolved issues" - Move to Closed Enhancements section
|
|
155
|
+
- "Review each first" - Show details before closing
|
|
156
|
+
|
|
157
|
+
**If urgent issues exist:**
|
|
158
|
+
- "Insert urgent phase" - Create phase to address urgent issues (/gywd:insert-phase)
|
|
159
|
+
- "Add to current plan" - Include in next plan being created
|
|
160
|
+
- "Defer anyway" - Keep as-is despite urgency
|
|
161
|
+
|
|
162
|
+
**If natural fits exist:**
|
|
163
|
+
- "Note for phase planning" - Will be picked up during /gywd:plan-phase
|
|
164
|
+
- "Add explicit reminder" - Update issue with "Include in Phase X"
|
|
165
|
+
|
|
166
|
+
**Always include:**
|
|
167
|
+
- "Done for now" - Exit without changes
|
|
168
|
+
</step>
|
|
169
|
+
|
|
170
|
+
<step name="execute_actions">
|
|
171
|
+
**Execute selected actions:**
|
|
172
|
+
|
|
173
|
+
**If closing resolved issues:**
|
|
174
|
+
1. Read current ISSUES.md
|
|
175
|
+
2. For each resolved issue:
|
|
176
|
+
- Remove from "## Open Enhancements"
|
|
177
|
+
- Add to "## Closed Enhancements" with resolution note:
|
|
178
|
+
```
|
|
179
|
+
### ISS-XXX: [description]
|
|
180
|
+
**Resolved:** [date] - [reason]
|
|
181
|
+
```
|
|
182
|
+
3. Write updated ISSUES.md
|
|
183
|
+
4. Update STATE.md deferred issues count
|
|
184
|
+
|
|
185
|
+
**If inserting urgent phase:**
|
|
186
|
+
- Display the command for user to run after clearing: `/gywd:insert-phase [after-phase] Address urgent issues ISS-XXX, ISS-YYY`
|
|
187
|
+
|
|
188
|
+
**If noting for phase planning:**
|
|
189
|
+
- Update issue's "Suggested phase" field with specific phase number
|
|
190
|
+
- These will be picked up by /gywd:plan-phase workflow
|
|
191
|
+
</step>
|
|
192
|
+
|
|
193
|
+
</process>
|
|
194
|
+
|
|
195
|
+
<success_criteria>
|
|
196
|
+
- [ ] All open issues analyzed against current codebase
|
|
197
|
+
- [ ] Each issue categorized (resolved/urgent/natural-fit/can-wait)
|
|
198
|
+
- [ ] Clear reasoning provided for each categorization
|
|
199
|
+
- [ ] Actions offered based on findings
|
|
200
|
+
- [ ] ISSUES.md updated if user takes action
|
|
201
|
+
- [ ] STATE.md updated if issue count changes
|
|
202
|
+
</success_criteria>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GYWD:context
|
|
3
|
+
description: Show context budget visibility and usage analysis
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<objective>
|
|
7
|
+
Display context budget analysis to help users understand their context consumption and prevent the "context cliff" that kills productivity.
|
|
8
|
+
|
|
9
|
+
Shows:
|
|
10
|
+
- Current estimated context usage
|
|
11
|
+
- Context breakdown by file type
|
|
12
|
+
- Recommendations for optimization
|
|
13
|
+
- Warning thresholds
|
|
14
|
+
</objective>
|
|
15
|
+
|
|
16
|
+
<process>
|
|
17
|
+
1. Check if `.planning/` exists
|
|
18
|
+
- If not: Output "No GYWD project. Run /gywd:new-project first."
|
|
19
|
+
|
|
20
|
+
2. Analyze context sources:
|
|
21
|
+
|
|
22
|
+
**Planning Files:**
|
|
23
|
+
- Count lines in .planning/*.md files
|
|
24
|
+
- Count lines in .planning/phases/**/*.md files
|
|
25
|
+
- Count lines in .planning/codebase/*.md (if exists)
|
|
26
|
+
|
|
27
|
+
**Estimate token usage:**
|
|
28
|
+
- Rough estimate: 1 line ≈ 10-15 tokens average
|
|
29
|
+
- Planning docs: Count total lines × 12
|
|
30
|
+
- Code context: If codebase mapped, count those lines × 10
|
|
31
|
+
|
|
32
|
+
3. Calculate budget breakdown:
|
|
33
|
+
```
|
|
34
|
+
Claude Code context window: ~200,000 tokens
|
|
35
|
+
|
|
36
|
+
Breakdown:
|
|
37
|
+
- System prompts & tools: ~15,000 tokens (reserved)
|
|
38
|
+
- Conversation history: Variable
|
|
39
|
+
- Available for project: ~185,000 tokens
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
4. Generate visual output:
|
|
43
|
+
```
|
|
44
|
+
## Context Budget Analysis
|
|
45
|
+
|
|
46
|
+
**Estimated Usage:**
|
|
47
|
+
[████████░░░░░░░░░░░░] 42% (~78,000 / 185,000 tokens)
|
|
48
|
+
|
|
49
|
+
**Breakdown:**
|
|
50
|
+
| Source | Lines | Est. Tokens | % |
|
|
51
|
+
|--------|-------|-------------|---|
|
|
52
|
+
| PROJECT.md | 45 | 540 | 0.3% |
|
|
53
|
+
| ROADMAP.md | 120 | 1,440 | 0.8% |
|
|
54
|
+
| STATE.md | 80 | 960 | 0.5% |
|
|
55
|
+
| Phase Plans | 450 | 5,400 | 2.9% |
|
|
56
|
+
| Codebase Maps | 2,100 | 21,000 | 11.4% |
|
|
57
|
+
| Code Files (est.) | 4,000 | 48,000 | 26.0% |
|
|
58
|
+
|
|
59
|
+
**Status:** ✅ Healthy
|
|
60
|
+
|
|
61
|
+
**Recommendations:**
|
|
62
|
+
- None needed at current usage
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
5. Show warnings if needed:
|
|
66
|
+
- 0-50%: ✅ Healthy - "Plenty of headroom"
|
|
67
|
+
- 50-70%: ⚠️ Moderate - "Consider summarizing older plans"
|
|
68
|
+
- 70-85%: 🟠 High - "Archive completed phases to reduce load"
|
|
69
|
+
- 85%+: 🔴 Critical - "Risk of context degradation. Archive now."
|
|
70
|
+
|
|
71
|
+
6. If high usage, suggest actions:
|
|
72
|
+
- "Run /gywd:complete-milestone to archive"
|
|
73
|
+
- "Delete old SUMMARY.md files after review"
|
|
74
|
+
- "Consider running /gywd:digest instead of full codebase map"
|
|
75
|
+
</process>
|
|
76
|
+
|
|
77
|
+
<output_format>
|
|
78
|
+
Clean, visual output with:
|
|
79
|
+
- Progress bar showing usage
|
|
80
|
+
- Table breakdown by source
|
|
81
|
+
- Status indicator (emoji + text)
|
|
82
|
+
- Actionable recommendations if needed
|
|
83
|
+
|
|
84
|
+
Keep output concise - this is a quick check, not a report.
|
|
85
|
+
</output_format>
|
|
86
|
+
|
|
87
|
+
<success_criteria>
|
|
88
|
+
- [ ] Shows estimated context usage percentage
|
|
89
|
+
- [ ] Breaks down by source type
|
|
90
|
+
- [ ] Provides clear status indicator
|
|
91
|
+
- [ ] Gives actionable recommendations when needed
|
|
92
|
+
- [ ] Executes quickly (< 5 seconds)
|
|
93
|
+
</success_criteria>
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GYWD:create-roadmap
|
|
3
|
+
description: Create roadmap with phases for the project
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Bash
|
|
8
|
+
- AskUserQuestion
|
|
9
|
+
- Glob
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Create project roadmap with phase breakdown.
|
|
14
|
+
|
|
15
|
+
Roadmaps define what work happens in what order. Run after /gywd:new-project.
|
|
16
|
+
</objective>
|
|
17
|
+
|
|
18
|
+
<execution_context>
|
|
19
|
+
@~/.claude/get-your-work-done/workflows/create-roadmap.md
|
|
20
|
+
@~/.claude/get-your-work-done/templates/roadmap.md
|
|
21
|
+
@~/.claude/get-your-work-done/templates/state.md
|
|
22
|
+
</execution_context>
|
|
23
|
+
|
|
24
|
+
<context>
|
|
25
|
+
@.planning/PROJECT.md
|
|
26
|
+
@.planning/config.json
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
|
|
31
|
+
<step name="validate">
|
|
32
|
+
```bash
|
|
33
|
+
# Verify project exists
|
|
34
|
+
[ -f .planning/PROJECT.md ] || { echo "ERROR: No PROJECT.md found. Run /gywd:new-project first."; exit 1; }
|
|
35
|
+
```
|
|
36
|
+
</step>
|
|
37
|
+
|
|
38
|
+
<step name="check_existing">
|
|
39
|
+
Check if roadmap already exists:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
[ -f .planning/ROADMAP.md ] && echo "ROADMAP_EXISTS" || echo "NO_ROADMAP"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**If ROADMAP_EXISTS:**
|
|
46
|
+
Use AskUserQuestion:
|
|
47
|
+
- header: "Roadmap exists"
|
|
48
|
+
- question: "A roadmap already exists. What would you like to do?"
|
|
49
|
+
- options:
|
|
50
|
+
- "View existing" - Show current roadmap
|
|
51
|
+
- "Replace" - Create new roadmap (will overwrite)
|
|
52
|
+
- "Cancel" - Keep existing roadmap
|
|
53
|
+
|
|
54
|
+
If "View existing": `cat .planning/ROADMAP.md` and exit
|
|
55
|
+
If "Cancel": Exit
|
|
56
|
+
If "Replace": Continue with workflow
|
|
57
|
+
</step>
|
|
58
|
+
|
|
59
|
+
<step name="create_roadmap">
|
|
60
|
+
Follow the create-roadmap.md workflow starting from detect_domain step.
|
|
61
|
+
|
|
62
|
+
The workflow handles:
|
|
63
|
+
- Domain expertise detection
|
|
64
|
+
- Phase identification
|
|
65
|
+
- Research flags for each phase
|
|
66
|
+
- Confirmation gates (respecting config mode)
|
|
67
|
+
- ROADMAP.md creation
|
|
68
|
+
- STATE.md initialization
|
|
69
|
+
- Phase directory creation
|
|
70
|
+
- Git commit
|
|
71
|
+
</step>
|
|
72
|
+
|
|
73
|
+
<step name="done">
|
|
74
|
+
```
|
|
75
|
+
Roadmap created:
|
|
76
|
+
- Roadmap: .planning/ROADMAP.md
|
|
77
|
+
- State: .planning/STATE.md
|
|
78
|
+
- [N] phases defined
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## ▶ Next Up
|
|
83
|
+
|
|
84
|
+
**Phase 1: [Name]** — [Goal from ROADMAP.md]
|
|
85
|
+
|
|
86
|
+
`/gywd:plan-phase 1`
|
|
87
|
+
|
|
88
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
**Also available:**
|
|
93
|
+
- `/gywd:discuss-phase 1` — gather context first
|
|
94
|
+
- `/gywd:research-phase 1` — investigate unknowns
|
|
95
|
+
- Review roadmap
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
```
|
|
99
|
+
</step>
|
|
100
|
+
|
|
101
|
+
</process>
|
|
102
|
+
|
|
103
|
+
<output>
|
|
104
|
+
- `.planning/ROADMAP.md`
|
|
105
|
+
- `.planning/STATE.md`
|
|
106
|
+
- `.planning/phases/XX-name/` directories
|
|
107
|
+
</output>
|
|
108
|
+
|
|
109
|
+
<success_criteria>
|
|
110
|
+
- [ ] PROJECT.md validated
|
|
111
|
+
- [ ] ROADMAP.md created with phases
|
|
112
|
+
- [ ] STATE.md initialized
|
|
113
|
+
- [ ] Phase directories created
|
|
114
|
+
- [ ] Changes committed
|
|
115
|
+
</success_criteria>
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GYWD:deps
|
|
3
|
+
description: Visualize phase and task dependencies
|
|
4
|
+
argument-hint: "[phase-number or 'all']"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Display dependency relationships between phases and tasks to:
|
|
9
|
+
- Identify blocked work
|
|
10
|
+
- Find parallelizable tasks
|
|
11
|
+
- Understand critical path
|
|
12
|
+
- Prevent out-of-order execution
|
|
13
|
+
|
|
14
|
+
Helps users understand what can be done now vs. what must wait.
|
|
15
|
+
</objective>
|
|
16
|
+
|
|
17
|
+
<context>
|
|
18
|
+
Arguments: $ARGUMENTS
|
|
19
|
+
|
|
20
|
+
- No args or `all`: Show all phase dependencies
|
|
21
|
+
- Phase number: Show task dependencies within that phase
|
|
22
|
+
</context>
|
|
23
|
+
|
|
24
|
+
<process>
|
|
25
|
+
## Phase Dependencies (default or 'all')
|
|
26
|
+
|
|
27
|
+
1. Read ROADMAP.md for all phases
|
|
28
|
+
2. Read each phase's PLAN.md files for dependency declarations
|
|
29
|
+
3. Build dependency graph:
|
|
30
|
+
- Look for "Dependencies:" sections
|
|
31
|
+
- Look for "Requires:" mentions
|
|
32
|
+
- Infer from ordering and context
|
|
33
|
+
|
|
34
|
+
4. Generate visualization:
|
|
35
|
+
```
|
|
36
|
+
## Phase Dependencies
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
[1] Foundation
|
|
40
|
+
↓
|
|
41
|
+
[2] Authentication ←──┐
|
|
42
|
+
↓ │
|
|
43
|
+
[3] Core Features ────┤
|
|
44
|
+
↓ │
|
|
45
|
+
[4] API Layer ────────┘
|
|
46
|
+
↓
|
|
47
|
+
[5] UI Components
|
|
48
|
+
↓
|
|
49
|
+
[6] Testing
|
|
50
|
+
↓
|
|
51
|
+
[7] Deployment
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Dependency Matrix
|
|
55
|
+
|
|
56
|
+
| Phase | Depends On | Blocks |
|
|
57
|
+
|-------|------------|--------|
|
|
58
|
+
| 1. Foundation | - | 2, 3 |
|
|
59
|
+
| 2. Auth | 1 | 4 |
|
|
60
|
+
| 3. Core | 1 | 4 |
|
|
61
|
+
| 4. API | 2, 3 | 5 |
|
|
62
|
+
| 5. UI | 4 | 6 |
|
|
63
|
+
| 6. Testing | 5 | 7 |
|
|
64
|
+
| 7. Deploy | 6 | - |
|
|
65
|
+
|
|
66
|
+
### Parallelizable
|
|
67
|
+
|
|
68
|
+
Can run in parallel:
|
|
69
|
+
- Phase 2 (Auth) ↔ Phase 3 (Core Features)
|
|
70
|
+
|
|
71
|
+
### Critical Path
|
|
72
|
+
|
|
73
|
+
Longest chain: 1 → 2 → 4 → 5 → 6 → 7 (6 phases)
|
|
74
|
+
|
|
75
|
+
### Current Status
|
|
76
|
+
|
|
77
|
+
✅ Phase 1: Complete
|
|
78
|
+
🔄 Phase 2: In progress
|
|
79
|
+
⏳ Phase 3: Can start now (parallel with 2)
|
|
80
|
+
🔒 Phase 4: Blocked by 2, 3
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Task Dependencies (specific phase)
|
|
84
|
+
|
|
85
|
+
1. Read the phase's PLAN.md
|
|
86
|
+
2. Parse task list with dependency markers
|
|
87
|
+
3. Build task dependency graph
|
|
88
|
+
|
|
89
|
+
4. Generate visualization:
|
|
90
|
+
```
|
|
91
|
+
## Phase 3: Core Features - Task Dependencies
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
[T1] Create data models
|
|
95
|
+
↓
|
|
96
|
+
[T2] Implement repositories ←──┐
|
|
97
|
+
↓ │
|
|
98
|
+
[T3] Add business logic ───────┤
|
|
99
|
+
↓ │
|
|
100
|
+
[T4] Create service layer ─────┘
|
|
101
|
+
↓
|
|
102
|
+
[T5] Write unit tests
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Task Status
|
|
106
|
+
|
|
107
|
+
| Task | Status | Depends On | Can Start? |
|
|
108
|
+
|------|--------|------------|------------|
|
|
109
|
+
| T1 | ✅ Done | - | - |
|
|
110
|
+
| T2 | ✅ Done | T1 | - |
|
|
111
|
+
| T3 | 🔄 Active | T1 | - |
|
|
112
|
+
| T4 | ⏳ Ready | T2, T3 | After T3 |
|
|
113
|
+
| T5 | 🔒 Blocked | T4 | No |
|
|
114
|
+
|
|
115
|
+
### Parallelizable Tasks
|
|
116
|
+
|
|
117
|
+
- T2 ↔ T3 (both depend only on T1)
|
|
118
|
+
|
|
119
|
+
### Next Available
|
|
120
|
+
|
|
121
|
+
After current work:
|
|
122
|
+
- T4 becomes unblocked when T3 completes
|
|
123
|
+
```
|
|
124
|
+
</process>
|
|
125
|
+
|
|
126
|
+
<dependency_detection>
|
|
127
|
+
**Explicit dependencies:**
|
|
128
|
+
- "Depends on: Phase X" or "Requires: Task Y"
|
|
129
|
+
- "After: ..." or "Blocked by: ..."
|
|
130
|
+
- Numbered references in descriptions
|
|
131
|
+
|
|
132
|
+
**Inferred dependencies:**
|
|
133
|
+
- Sequential ordering in ROADMAP.md
|
|
134
|
+
- References to outputs of other tasks
|
|
135
|
+
- Logical prerequisites (can't test before implementing)
|
|
136
|
+
- Import/usage patterns in code
|
|
137
|
+
|
|
138
|
+
**Parallel opportunities:**
|
|
139
|
+
- Tasks with same parent dependency
|
|
140
|
+
- Phases with no shared requirements
|
|
141
|
+
- Independent feature branches
|
|
142
|
+
</dependency_detection>
|
|
143
|
+
|
|
144
|
+
<output_format>
|
|
145
|
+
Visual graph using ASCII art:
|
|
146
|
+
- `↓` for direct dependency (A must complete before B)
|
|
147
|
+
- `←──` for blocking relationship
|
|
148
|
+
- `↔` for parallel opportunities
|
|
149
|
+
|
|
150
|
+
Tables for detailed status:
|
|
151
|
+
- Depends On: What must complete first
|
|
152
|
+
- Blocks: What's waiting on this
|
|
153
|
+
- Can Start?: Whether prerequisites are met
|
|
154
|
+
|
|
155
|
+
Status indicators:
|
|
156
|
+
- ✅ Complete
|
|
157
|
+
- 🔄 In progress
|
|
158
|
+
- ⏳ Ready (can start)
|
|
159
|
+
- 🔒 Blocked
|
|
160
|
+
</output_format>
|
|
161
|
+
|
|
162
|
+
<success_criteria>
|
|
163
|
+
- [ ] Parses dependencies from ROADMAP and PLANs
|
|
164
|
+
- [ ] Generates visual dependency graph
|
|
165
|
+
- [ ] Shows matrix of relationships
|
|
166
|
+
- [ ] Identifies parallelizable work
|
|
167
|
+
- [ ] Highlights critical path
|
|
168
|
+
- [ ] Shows current blocked/unblocked status
|
|
169
|
+
</success_criteria>
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GYWD:digest
|
|
3
|
+
description: Create a compact codebase digest for quick context refresh
|
|
4
|
+
argument-hint: "[optional: focus-area]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Generate a compact, focused codebase summary optimized for context efficiency.
|
|
9
|
+
|
|
10
|
+
Unlike `/gywd:map-codebase` which creates comprehensive documentation, `/gywd:digest` creates a minimal summary focused on:
|
|
11
|
+
- Key entry points
|
|
12
|
+
- Critical patterns
|
|
13
|
+
- Recent changes
|
|
14
|
+
- Active areas
|
|
15
|
+
|
|
16
|
+
Use when:
|
|
17
|
+
- Resuming work after a break
|
|
18
|
+
- Context is getting heavy
|
|
19
|
+
- Need quick orientation
|
|
20
|
+
- Working on specific area
|
|
21
|
+
</objective>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
Focus area: $ARGUMENTS (optional)
|
|
25
|
+
|
|
26
|
+
If provided, digest focuses on that area of the codebase.
|
|
27
|
+
Examples: "auth", "api", "frontend", "database"
|
|
28
|
+
</context>
|
|
29
|
+
|
|
30
|
+
<process>
|
|
31
|
+
1. If focus area provided:
|
|
32
|
+
- Scope digest to relevant directories
|
|
33
|
+
- Include only related patterns
|
|
34
|
+
|
|
35
|
+
2. Generate compact digest:
|
|
36
|
+
|
|
37
|
+
**Structure Analysis (3-5 lines max):**
|
|
38
|
+
```
|
|
39
|
+
- Entry: src/index.ts → app.ts → routes/
|
|
40
|
+
- Core: src/services/ (business logic)
|
|
41
|
+
- Data: src/models/ + prisma/schema.prisma
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Key Patterns (bullet points):**
|
|
45
|
+
```
|
|
46
|
+
- Error handling: Result<T, E> pattern
|
|
47
|
+
- API responses: standardized via utils/response.ts
|
|
48
|
+
- Auth: JWT in headers, middleware validates
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Recent Changes (from git):**
|
|
52
|
+
```
|
|
53
|
+
Last 5 commits:
|
|
54
|
+
- feat: add user preferences
|
|
55
|
+
- fix: auth token refresh
|
|
56
|
+
- refactor: extract payment service
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Active Files (most recently modified):**
|
|
60
|
+
```
|
|
61
|
+
Hot files (last 24h):
|
|
62
|
+
- src/services/payment.ts
|
|
63
|
+
- src/routes/api/checkout.ts
|
|
64
|
+
- tests/payment.test.ts
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
3. Output format:
|
|
68
|
+
```markdown
|
|
69
|
+
## Codebase Digest
|
|
70
|
+
|
|
71
|
+
**Generated:** {timestamp}
|
|
72
|
+
**Focus:** {area or "Full codebase"}
|
|
73
|
+
**Size:** ~{estimated tokens} tokens
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
### Structure
|
|
78
|
+
|
|
79
|
+
{3-5 line overview}
|
|
80
|
+
|
|
81
|
+
### Key Patterns
|
|
82
|
+
|
|
83
|
+
{5-8 bullet points}
|
|
84
|
+
|
|
85
|
+
### Recent Activity
|
|
86
|
+
|
|
87
|
+
{Last 5 commits}
|
|
88
|
+
|
|
89
|
+
### Hot Files
|
|
90
|
+
|
|
91
|
+
{Most active files}
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
*Compact digest for quick context. Run /gywd:map-codebase for full documentation.*
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
4. Save to `.planning/DIGEST.md` (overwrites previous)
|
|
99
|
+
|
|
100
|
+
5. Compare context size:
|
|
101
|
+
```
|
|
102
|
+
Context comparison:
|
|
103
|
+
- Full codebase map: ~15,000 tokens
|
|
104
|
+
- This digest: ~800 tokens
|
|
105
|
+
- Savings: 94%
|
|
106
|
+
```
|
|
107
|
+
</process>
|
|
108
|
+
|
|
109
|
+
<focus_areas>
|
|
110
|
+
Common focus areas and what they include:
|
|
111
|
+
|
|
112
|
+
| Focus | Directories | Patterns |
|
|
113
|
+
|-------|-------------|----------|
|
|
114
|
+
| auth | src/auth/, middleware/ | JWT, sessions, permissions |
|
|
115
|
+
| api | src/routes/, src/controllers/ | Endpoints, validation |
|
|
116
|
+
| data | src/models/, prisma/ | Schema, queries |
|
|
117
|
+
| frontend | src/components/, src/pages/ | UI patterns, state |
|
|
118
|
+
| testing | tests/, __tests__/ | Test patterns, mocks |
|
|
119
|
+
</focus_areas>
|
|
120
|
+
|
|
121
|
+
<output_format>
|
|
122
|
+
Compact markdown optimized for:
|
|
123
|
+
- Quick scanning (headers + bullets)
|
|
124
|
+
- Minimal token usage
|
|
125
|
+
- Essential information only
|
|
126
|
+
- Easy refresh (just re-run command)
|
|
127
|
+
|
|
128
|
+
Target size: 500-1000 tokens (vs 10,000+ for full map)
|
|
129
|
+
</output_format>
|
|
130
|
+
|
|
131
|
+
<success_criteria>
|
|
132
|
+
- [ ] Generates in under 10 seconds
|
|
133
|
+
- [ ] Output under 1000 tokens
|
|
134
|
+
- [ ] Captures key patterns
|
|
135
|
+
- [ ] Shows recent activity
|
|
136
|
+
- [ ] Saves to DIGEST.md
|
|
137
|
+
- [ ] Shows context savings
|
|
138
|
+
</success_criteria>
|