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,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GYWD:research-phase
|
|
3
|
+
description: Research how to implement a phase before planning
|
|
4
|
+
argument-hint: "[phase]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Glob
|
|
9
|
+
- Grep
|
|
10
|
+
- Write
|
|
11
|
+
- WebFetch
|
|
12
|
+
- WebSearch
|
|
13
|
+
- mcp__context7__*
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<objective>
|
|
17
|
+
Comprehensive research on HOW to implement a phase before planning.
|
|
18
|
+
|
|
19
|
+
This is for niche/complex domains where Claude's training data is sparse or outdated. Research discovers:
|
|
20
|
+
- What libraries exist for this problem
|
|
21
|
+
- What architecture patterns experts use
|
|
22
|
+
- What the standard stack looks like
|
|
23
|
+
- What problems people commonly hit
|
|
24
|
+
- What NOT to hand-roll (use existing solutions)
|
|
25
|
+
|
|
26
|
+
Output: RESEARCH.md with ecosystem knowledge that informs quality planning.
|
|
27
|
+
</objective>
|
|
28
|
+
|
|
29
|
+
<execution_context>
|
|
30
|
+
@~/.claude/get-your-work-done/workflows/research-phase.md
|
|
31
|
+
@~/.claude/get-your-work-done/templates/research.md
|
|
32
|
+
@~/.claude/get-your-work-done/references/research-pitfalls.md
|
|
33
|
+
</execution_context>
|
|
34
|
+
|
|
35
|
+
<context>
|
|
36
|
+
Phase number: $ARGUMENTS (required)
|
|
37
|
+
|
|
38
|
+
**Load project state:**
|
|
39
|
+
@.planning/STATE.md
|
|
40
|
+
|
|
41
|
+
**Load roadmap:**
|
|
42
|
+
@.planning/ROADMAP.md
|
|
43
|
+
|
|
44
|
+
**Load phase context if exists:**
|
|
45
|
+
Check for `.planning/phases/XX-name/{phase}-CONTEXT.md` - bonus context from discuss-phase.
|
|
46
|
+
</context>
|
|
47
|
+
|
|
48
|
+
<process>
|
|
49
|
+
1. Validate phase number argument (error if missing or invalid)
|
|
50
|
+
2. Check if phase exists in roadmap - extract phase description
|
|
51
|
+
3. Check if RESEARCH.md already exists (offer to update or use existing)
|
|
52
|
+
4. Load CONTEXT.md if it exists (bonus context for research direction)
|
|
53
|
+
5. Follow research-phase.md workflow:
|
|
54
|
+
- Analyze phase to identify knowledge gaps
|
|
55
|
+
- Determine research domains (architecture, ecosystem, patterns, pitfalls)
|
|
56
|
+
- Execute comprehensive research via Context7, official docs, WebSearch
|
|
57
|
+
- Cross-verify all findings
|
|
58
|
+
- Create RESEARCH.md with actionable ecosystem knowledge
|
|
59
|
+
6. Offer next steps (plan the phase)
|
|
60
|
+
</process>
|
|
61
|
+
|
|
62
|
+
<when_to_use>
|
|
63
|
+
**Use research-phase for:**
|
|
64
|
+
- 3D graphics (Three.js, WebGL, procedural generation)
|
|
65
|
+
- Game development (physics, collision, AI, procedural content)
|
|
66
|
+
- Audio/music (Web Audio API, DSP, synthesis)
|
|
67
|
+
- Shaders (GLSL, Metal, ISF)
|
|
68
|
+
- ML/AI integration (model serving, inference, pipelines)
|
|
69
|
+
- Real-time systems (WebSockets, WebRTC, sync)
|
|
70
|
+
- Specialized frameworks with active ecosystems
|
|
71
|
+
- Any domain where "how do experts do this" matters
|
|
72
|
+
|
|
73
|
+
**Skip research-phase for:**
|
|
74
|
+
- Standard web dev (auth, CRUD, REST APIs)
|
|
75
|
+
- Well-known patterns (forms, validation, testing)
|
|
76
|
+
- Simple integrations (Stripe, SendGrid with clear docs)
|
|
77
|
+
- Commodity features Claude handles well
|
|
78
|
+
</when_to_use>
|
|
79
|
+
|
|
80
|
+
<success_criteria>
|
|
81
|
+
- [ ] Phase validated against roadmap
|
|
82
|
+
- [ ] Domain/ecosystem identified from phase description
|
|
83
|
+
- [ ] Comprehensive research executed (Context7 + official docs + WebSearch)
|
|
84
|
+
- [ ] All WebSearch findings cross-verified with authoritative sources
|
|
85
|
+
- [ ] RESEARCH.md created with ecosystem knowledge
|
|
86
|
+
- [ ] Standard stack/libraries identified
|
|
87
|
+
- [ ] Architecture patterns documented
|
|
88
|
+
- [ ] Common pitfalls catalogued
|
|
89
|
+
- [ ] What NOT to hand-roll is clear
|
|
90
|
+
- [ ] User knows next steps (plan phase)
|
|
91
|
+
</success_criteria>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GYWD:resume-work
|
|
3
|
+
description: Resume work from previous session with full context restoration
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Bash
|
|
7
|
+
- Write
|
|
8
|
+
- AskUserQuestion
|
|
9
|
+
- SlashCommand
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Restore complete project context and resume work seamlessly from previous session.
|
|
14
|
+
|
|
15
|
+
Routes to the resume-project workflow which handles:
|
|
16
|
+
|
|
17
|
+
- STATE.md loading (or reconstruction if missing)
|
|
18
|
+
- Checkpoint detection (.continue-here files)
|
|
19
|
+
- Incomplete work detection (PLAN without SUMMARY)
|
|
20
|
+
- Status presentation
|
|
21
|
+
- Context-aware next action routing
|
|
22
|
+
</objective>
|
|
23
|
+
|
|
24
|
+
<execution_context>
|
|
25
|
+
@~/.claude/get-your-work-done/workflows/resume-project.md
|
|
26
|
+
</execution_context>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
**Follow the resume-project workflow** from `@~/.claude/get-your-work-done/workflows/resume-project.md`.
|
|
30
|
+
|
|
31
|
+
The workflow handles all resumption logic including:
|
|
32
|
+
|
|
33
|
+
1. Project existence verification
|
|
34
|
+
2. STATE.md loading or reconstruction
|
|
35
|
+
3. Checkpoint and incomplete work detection
|
|
36
|
+
4. Visual status presentation
|
|
37
|
+
5. Context-aware option offering (checks CONTEXT.md before suggesting plan vs discuss)
|
|
38
|
+
6. Routing to appropriate next command
|
|
39
|
+
7. Session continuity updates
|
|
40
|
+
</process>
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GYWD:rollback
|
|
3
|
+
description: Rollback to a previous checkpoint or phase
|
|
4
|
+
argument-hint: "[phase-number|plan-id|'last']"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Safely rollback work to a previous checkpoint when something goes wrong.
|
|
9
|
+
|
|
10
|
+
Rollback types:
|
|
11
|
+
- **Phase rollback**: Undo entire phase
|
|
12
|
+
- **Plan rollback**: Undo specific plan
|
|
13
|
+
- **Last rollback**: Undo most recent plan
|
|
14
|
+
|
|
15
|
+
Uses git history to restore code state while preserving planning artifacts for learning.
|
|
16
|
+
</objective>
|
|
17
|
+
|
|
18
|
+
<context>
|
|
19
|
+
Target: $ARGUMENTS
|
|
20
|
+
|
|
21
|
+
Options:
|
|
22
|
+
- Phase number: `3` - Rollback to before phase 3
|
|
23
|
+
- Plan ID: `03-02` - Rollback to before plan 03-02
|
|
24
|
+
- `last` - Rollback the most recent plan
|
|
25
|
+
- No args - Interactive selection
|
|
26
|
+
</context>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
## 1. Parse Target
|
|
30
|
+
|
|
31
|
+
If no arguments:
|
|
32
|
+
```
|
|
33
|
+
## Rollback Options
|
|
34
|
+
|
|
35
|
+
Recent checkpoints:
|
|
36
|
+
|
|
37
|
+
1. [last] Plan 03-02: Payment webhooks (2 hours ago)
|
|
38
|
+
2. [03-01] Plan 03-01: Stripe integration (yesterday)
|
|
39
|
+
3. [phase-2] Phase 2 complete (3 days ago)
|
|
40
|
+
4. [phase-1] Phase 1 complete (1 week ago)
|
|
41
|
+
|
|
42
|
+
Select: _
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 2. Identify Rollback Point
|
|
46
|
+
|
|
47
|
+
Find the git commit/tag for the checkpoint:
|
|
48
|
+
- Phases have tags: `gywd-phase-{n}-complete`
|
|
49
|
+
- Plans have commits: Search for `docs({phase}-{plan}): complete`
|
|
50
|
+
|
|
51
|
+
## 3. Show Impact Analysis
|
|
52
|
+
|
|
53
|
+
```markdown
|
|
54
|
+
## Rollback Impact: Plan 03-02
|
|
55
|
+
|
|
56
|
+
**Target:** Before "Payment webhooks" implementation
|
|
57
|
+
**Commit:** abc1234
|
|
58
|
+
**Files affected:** 5
|
|
59
|
+
|
|
60
|
+
### Changes to Revert
|
|
61
|
+
|
|
62
|
+
| File | Action | Lines |
|
|
63
|
+
|------|--------|-------|
|
|
64
|
+
| src/webhooks/stripe.ts | DELETE | -120 |
|
|
65
|
+
| src/routes/webhooks.ts | DELETE | -45 |
|
|
66
|
+
| src/services/payment.ts | MODIFY | -30 |
|
|
67
|
+
| tests/webhooks.test.ts | DELETE | -80 |
|
|
68
|
+
| package.json | MODIFY | -2 deps |
|
|
69
|
+
|
|
70
|
+
### Planning Files
|
|
71
|
+
|
|
72
|
+
These will be PRESERVED (not rolled back):
|
|
73
|
+
- .planning/phases/03-payment/03-02-PLAN.md
|
|
74
|
+
- .planning/phases/03-payment/03-02-SUMMARY.md (will be updated)
|
|
75
|
+
- .planning/STATE.md (will be updated)
|
|
76
|
+
|
|
77
|
+
### Confirm Rollback?
|
|
78
|
+
|
|
79
|
+
This will:
|
|
80
|
+
1. Revert code to commit abc1234
|
|
81
|
+
2. Mark plan 03-02 as "rolled back" in STATE.md
|
|
82
|
+
3. Add rollback note to SUMMARY.md
|
|
83
|
+
4. Create new commit documenting rollback
|
|
84
|
+
|
|
85
|
+
[Y/n]: _
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## 4. Execute Rollback
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# Create rollback branch for safety
|
|
92
|
+
git checkout -b rollback-03-02-{timestamp}
|
|
93
|
+
|
|
94
|
+
# Revert changes (keeping history)
|
|
95
|
+
git revert --no-commit abc1234..HEAD
|
|
96
|
+
|
|
97
|
+
# Commit rollback
|
|
98
|
+
git commit -m "rollback(03-02): revert payment webhooks
|
|
99
|
+
|
|
100
|
+
Reason: {user-provided or 'Manual rollback requested'}
|
|
101
|
+
|
|
102
|
+
Rolled back commits:
|
|
103
|
+
- abc1234: feat(03-02): implement webhook handlers
|
|
104
|
+
- def5678: feat(03-02): add webhook tests
|
|
105
|
+
|
|
106
|
+
Planning artifacts preserved for reference."
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## 5. Update Planning State
|
|
110
|
+
|
|
111
|
+
Update STATE.md:
|
|
112
|
+
```markdown
|
|
113
|
+
## Rollbacks
|
|
114
|
+
|
|
115
|
+
| Plan | Date | Reason | Branch |
|
|
116
|
+
|------|------|--------|--------|
|
|
117
|
+
| 03-02 | 2024-01-15 | Webhook approach didn't work | rollback-03-02-1705312345 |
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Update SUMMARY.md (add note):
|
|
121
|
+
```markdown
|
|
122
|
+
## Rollback Note
|
|
123
|
+
|
|
124
|
+
**Status:** ROLLED BACK
|
|
125
|
+
**Date:** 2024-01-15
|
|
126
|
+
**Reason:** {reason}
|
|
127
|
+
**Recovery branch:** rollback-03-02-1705312345
|
|
128
|
+
|
|
129
|
+
The approach in this plan was reverted. See alternative approach in plan 03-03.
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## 6. Provide Recovery Options
|
|
133
|
+
|
|
134
|
+
```markdown
|
|
135
|
+
## Rollback Complete
|
|
136
|
+
|
|
137
|
+
Code reverted to before plan 03-02.
|
|
138
|
+
|
|
139
|
+
### Recovery Options
|
|
140
|
+
|
|
141
|
+
If you need the rolled-back code:
|
|
142
|
+
```
|
|
143
|
+
git checkout rollback-03-02-1705312345
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Next Steps
|
|
147
|
+
|
|
148
|
+
1. `/gywd:plan-phase 3` - Re-plan this phase
|
|
149
|
+
2. `/gywd:memory add pattern "Webhooks: avoid approach X"` - Remember lesson
|
|
150
|
+
3. Continue with alternative approach
|
|
151
|
+
```
|
|
152
|
+
</process>
|
|
153
|
+
|
|
154
|
+
<safety_features>
|
|
155
|
+
**Before rollback:**
|
|
156
|
+
- Creates safety branch
|
|
157
|
+
- Shows full impact analysis
|
|
158
|
+
- Requires confirmation
|
|
159
|
+
|
|
160
|
+
**During rollback:**
|
|
161
|
+
- Uses git revert (preserves history)
|
|
162
|
+
- Never uses --hard reset
|
|
163
|
+
- Keeps planning files
|
|
164
|
+
|
|
165
|
+
**After rollback:**
|
|
166
|
+
- Documents reason
|
|
167
|
+
- Creates recovery path
|
|
168
|
+
- Updates project state
|
|
169
|
+
</safety_features>
|
|
170
|
+
|
|
171
|
+
<success_criteria>
|
|
172
|
+
- [ ] Shows clear impact analysis
|
|
173
|
+
- [ ] Creates safety branch before changes
|
|
174
|
+
- [ ] Uses git revert (not reset)
|
|
175
|
+
- [ ] Preserves planning files
|
|
176
|
+
- [ ] Documents rollback reason
|
|
177
|
+
- [ ] Updates STATE.md with rollback record
|
|
178
|
+
- [ ] Provides recovery options
|
|
179
|
+
</success_criteria>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GYWD:status
|
|
3
|
+
description: Quick one-line project status check
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<objective>
|
|
7
|
+
Display a quick, single-line project status without verbose output.
|
|
8
|
+
|
|
9
|
+
Perfect for checking where you are at a glance.
|
|
10
|
+
</objective>
|
|
11
|
+
|
|
12
|
+
<process>
|
|
13
|
+
1. Check if `.planning/` directory exists
|
|
14
|
+
- If not: Output "No GYWD project initialized. Run /gywd:new-project to start."
|
|
15
|
+
|
|
16
|
+
2. Check if `.planning/STATE.md` exists
|
|
17
|
+
- If not: Output "Project exists but no state. Run /gywd:create-roadmap."
|
|
18
|
+
|
|
19
|
+
3. Read STATE.md and extract:
|
|
20
|
+
- Current phase number and name
|
|
21
|
+
- Overall progress percentage
|
|
22
|
+
- Last activity
|
|
23
|
+
|
|
24
|
+
4. Output single-line status in format:
|
|
25
|
+
```
|
|
26
|
+
[██████░░░░] 60% | Phase 3/5: Core Features | Last: 2 hours ago
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
5. If issues exist in ISSUES.md, append count:
|
|
30
|
+
```
|
|
31
|
+
[██████░░░░] 60% | Phase 3/5: Core Features | 3 issues pending
|
|
32
|
+
```
|
|
33
|
+
</process>
|
|
34
|
+
|
|
35
|
+
<output_format>
|
|
36
|
+
Single line. No headers. No suggestions. Just status.
|
|
37
|
+
|
|
38
|
+
Examples:
|
|
39
|
+
- `[░░░░░░░░░░] 0% | Not started | Run /gywd:new-project`
|
|
40
|
+
- `[████░░░░░░] 40% | Phase 2/5: Authentication | Last: today`
|
|
41
|
+
- `[██████████] 100% | Complete | Ready for /gywd:complete-milestone`
|
|
42
|
+
</output_format>
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GYWD:sync-github
|
|
3
|
+
description: Sync GYWD project state with GitHub issues, PRs, and milestones
|
|
4
|
+
argument-hint: "[issues|prs|milestones|all]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Bidirectional sync between GYWD planning files and GitHub:
|
|
9
|
+
|
|
10
|
+
**From GYWD → GitHub:**
|
|
11
|
+
- Create GitHub issues from ISSUES.md
|
|
12
|
+
- Create GitHub milestones from ROADMAP.md
|
|
13
|
+
- Create PRs for completed phases
|
|
14
|
+
|
|
15
|
+
**From GitHub → GYWD:**
|
|
16
|
+
- Import GitHub issues to ISSUES.md
|
|
17
|
+
- Sync issue status changes
|
|
18
|
+
- Link PR merges to phase completion
|
|
19
|
+
</objective>
|
|
20
|
+
|
|
21
|
+
<context>
|
|
22
|
+
Sync type: $ARGUMENTS
|
|
23
|
+
|
|
24
|
+
Options:
|
|
25
|
+
- `issues` - Sync issues bidirectionally
|
|
26
|
+
- `prs` - Create PRs for completed work
|
|
27
|
+
- `milestones` - Sync milestones with GitHub
|
|
28
|
+
- `all` - Full sync (default)
|
|
29
|
+
- `status` - Show sync status without changes
|
|
30
|
+
</context>
|
|
31
|
+
|
|
32
|
+
<prerequisites>
|
|
33
|
+
Requires:
|
|
34
|
+
- `gh` CLI installed and authenticated
|
|
35
|
+
- Git remote configured to GitHub
|
|
36
|
+
- Repository write access
|
|
37
|
+
</prerequisites>
|
|
38
|
+
|
|
39
|
+
<process>
|
|
40
|
+
## status (check sync state)
|
|
41
|
+
|
|
42
|
+
```markdown
|
|
43
|
+
## GitHub Sync Status
|
|
44
|
+
|
|
45
|
+
**Repository:** cyberbloke9/my-project
|
|
46
|
+
**Last sync:** 2024-01-15 14:30
|
|
47
|
+
|
|
48
|
+
### Issues
|
|
49
|
+
|
|
50
|
+
| GYWD | GitHub | Status |
|
|
51
|
+
|------|--------|--------|
|
|
52
|
+
| #1 Auth bug | #12 | ✅ Synced |
|
|
53
|
+
| #2 Performance | #15 | ✅ Synced |
|
|
54
|
+
| #3 New feature | - | ⬆️ Needs push |
|
|
55
|
+
| - | #18 (bug) | ⬇️ Needs import |
|
|
56
|
+
|
|
57
|
+
### Milestones
|
|
58
|
+
|
|
59
|
+
| GYWD | GitHub | Status |
|
|
60
|
+
|------|--------|--------|
|
|
61
|
+
| v1.0 MVP | v1.0 | ✅ Synced |
|
|
62
|
+
| v1.1 Features | - | ⬆️ Needs push |
|
|
63
|
+
|
|
64
|
+
### PRs
|
|
65
|
+
|
|
66
|
+
| Phase | PR | Status |
|
|
67
|
+
|-------|-----|--------|
|
|
68
|
+
| Phase 1 | #5 | ✅ Merged |
|
|
69
|
+
| Phase 2 | #8 | 🔄 Open |
|
|
70
|
+
| Phase 3 | - | 📋 Ready to create |
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## issues
|
|
74
|
+
|
|
75
|
+
### Push to GitHub
|
|
76
|
+
|
|
77
|
+
For each issue in ISSUES.md without GitHub link:
|
|
78
|
+
```bash
|
|
79
|
+
gh issue create \
|
|
80
|
+
--title "Issue title" \
|
|
81
|
+
--body "Description from ISSUES.md" \
|
|
82
|
+
--label "from-gywd"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Update ISSUES.md with GitHub issue number:
|
|
86
|
+
```markdown
|
|
87
|
+
## #3 Add dark mode [GitHub: #19]
|
|
88
|
+
|
|
89
|
+
Status: Open
|
|
90
|
+
Created: 2024-01-15
|
|
91
|
+
...
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Import from GitHub
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# Get issues labeled for import
|
|
98
|
+
gh issue list --label "needs-planning" --json number,title,body
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Add to ISSUES.md:
|
|
102
|
+
```markdown
|
|
103
|
+
## #4 Mobile responsive [GitHub: #20]
|
|
104
|
+
|
|
105
|
+
Status: Open
|
|
106
|
+
Source: GitHub import
|
|
107
|
+
Priority: Medium
|
|
108
|
+
...
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## milestones
|
|
112
|
+
|
|
113
|
+
### Push to GitHub
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
gh api repos/{owner}/{repo}/milestones \
|
|
117
|
+
--method POST \
|
|
118
|
+
-f title="v1.1 Features" \
|
|
119
|
+
-f description="Phase 4-7 features" \
|
|
120
|
+
-f due_on="2024-02-01"
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Sync Progress
|
|
124
|
+
|
|
125
|
+
Update milestone progress based on closed issues:
|
|
126
|
+
```markdown
|
|
127
|
+
## Milestone Sync
|
|
128
|
+
|
|
129
|
+
v1.0 MVP: 80% complete (8/10 issues closed)
|
|
130
|
+
v1.1 Features: 20% complete (2/10 issues closed)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## prs
|
|
134
|
+
|
|
135
|
+
### Create PR for Phase
|
|
136
|
+
|
|
137
|
+
When phase completes, offer to create PR:
|
|
138
|
+
|
|
139
|
+
```markdown
|
|
140
|
+
## Create PR for Phase 3?
|
|
141
|
+
|
|
142
|
+
**Branch:** feature/phase-3-payment
|
|
143
|
+
**Target:** main
|
|
144
|
+
**Changes:** 12 files, +450/-20 lines
|
|
145
|
+
|
|
146
|
+
### Suggested PR Description
|
|
147
|
+
|
|
148
|
+
## Summary
|
|
149
|
+
- Implemented Stripe payment integration
|
|
150
|
+
- Added webhook handling
|
|
151
|
+
- Created payment history API
|
|
152
|
+
|
|
153
|
+
## Test Plan
|
|
154
|
+
- [x] Unit tests pass
|
|
155
|
+
- [x] Integration tests pass
|
|
156
|
+
- [ ] Manual checkout flow test
|
|
157
|
+
|
|
158
|
+
## Related Issues
|
|
159
|
+
Closes #12, #15
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
Create PR? [Y/n]: _
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
gh pr create \
|
|
168
|
+
--title "feat: Phase 3 - Payment Integration" \
|
|
169
|
+
--body "..." \
|
|
170
|
+
--base main \
|
|
171
|
+
--head feature/phase-3-payment
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Link Merged PRs
|
|
175
|
+
|
|
176
|
+
When PR merges, update STATE.md:
|
|
177
|
+
```markdown
|
|
178
|
+
## Completed Phases
|
|
179
|
+
|
|
180
|
+
| Phase | PR | Merged |
|
|
181
|
+
|-------|-----|--------|
|
|
182
|
+
| Phase 1 | #5 | 2024-01-10 |
|
|
183
|
+
| Phase 2 | #8 | 2024-01-12 |
|
|
184
|
+
| Phase 3 | #11 | 2024-01-15 |
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## all (full sync)
|
|
188
|
+
|
|
189
|
+
1. Check status
|
|
190
|
+
2. Push new issues to GitHub
|
|
191
|
+
3. Import new GitHub issues
|
|
192
|
+
4. Sync milestones
|
|
193
|
+
5. Offer to create PRs for completed work
|
|
194
|
+
6. Update sync timestamp
|
|
195
|
+
|
|
196
|
+
Output:
|
|
197
|
+
```markdown
|
|
198
|
+
## Sync Complete
|
|
199
|
+
|
|
200
|
+
| Action | Count |
|
|
201
|
+
|--------|-------|
|
|
202
|
+
| Issues pushed | 2 |
|
|
203
|
+
| Issues imported | 1 |
|
|
204
|
+
| Milestones synced | 1 |
|
|
205
|
+
| PRs created | 1 |
|
|
206
|
+
|
|
207
|
+
Next sync: Run `/gywd:sync-github` anytime
|
|
208
|
+
```
|
|
209
|
+
</process>
|
|
210
|
+
|
|
211
|
+
<configuration>
|
|
212
|
+
Settings in config.json:
|
|
213
|
+
```json
|
|
214
|
+
{
|
|
215
|
+
"github": {
|
|
216
|
+
"auto_sync": false,
|
|
217
|
+
"import_labels": ["needs-planning", "enhancement"],
|
|
218
|
+
"export_label": "from-gywd",
|
|
219
|
+
"create_prs": "prompt",
|
|
220
|
+
"milestone_sync": true
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
</configuration>
|
|
225
|
+
|
|
226
|
+
<success_criteria>
|
|
227
|
+
- [ ] Shows current sync status
|
|
228
|
+
- [ ] Pushes local issues to GitHub
|
|
229
|
+
- [ ] Imports GitHub issues locally
|
|
230
|
+
- [ ] Syncs milestones bidirectionally
|
|
231
|
+
- [ ] Creates PRs for completed phases
|
|
232
|
+
- [ ] Updates planning files with GitHub links
|
|
233
|
+
- [ ] Handles auth/permission errors gracefully
|
|
234
|
+
</success_criteria>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: GYWD:verify-work
|
|
3
|
+
description: Guide manual user acceptance testing of recently built features
|
|
4
|
+
argument-hint: "[optional: phase or plan number, e.g., '4' or '04-02']"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Glob
|
|
9
|
+
- Grep
|
|
10
|
+
- Edit
|
|
11
|
+
- Write
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
<objective>
|
|
16
|
+
Guide the user through manual acceptance testing of recently built features.
|
|
17
|
+
|
|
18
|
+
Purpose: Validate that what Claude thinks was built actually works from the user's perspective. The USER performs all testing — Claude generates the test checklist, guides the process, and captures issues.
|
|
19
|
+
|
|
20
|
+
Output: Validation of features, any issues logged to phase-scoped ISSUES.md
|
|
21
|
+
</objective>
|
|
22
|
+
|
|
23
|
+
<execution_context>
|
|
24
|
+
@~/.claude/get-your-work-done/workflows/verify-work.md
|
|
25
|
+
@~/.claude/get-your-work-done/templates/uat-issues.md
|
|
26
|
+
</execution_context>
|
|
27
|
+
|
|
28
|
+
<context>
|
|
29
|
+
Scope: $ARGUMENTS (optional)
|
|
30
|
+
- If provided: Test specific phase or plan (e.g., "4" or "04-02")
|
|
31
|
+
- If not provided: Test most recently completed plan
|
|
32
|
+
|
|
33
|
+
**Load project state:**
|
|
34
|
+
@.planning/STATE.md
|
|
35
|
+
|
|
36
|
+
**Load roadmap:**
|
|
37
|
+
@.planning/ROADMAP.md
|
|
38
|
+
</context>
|
|
39
|
+
|
|
40
|
+
<process>
|
|
41
|
+
1. Validate arguments (if provided, parse as phase or plan number)
|
|
42
|
+
2. Find relevant SUMMARY.md (specified or most recent)
|
|
43
|
+
3. Follow verify-work.md workflow:
|
|
44
|
+
- Extract testable deliverables
|
|
45
|
+
- Generate test checklist
|
|
46
|
+
- Guide through each test via AskUserQuestion
|
|
47
|
+
- Collect and categorize issues
|
|
48
|
+
- Log issues to `.planning/phases/XX-name/{phase}-{plan}-ISSUES.md`
|
|
49
|
+
- Present summary with verdict
|
|
50
|
+
4. Offer next steps based on results:
|
|
51
|
+
- If all passed: Continue to next phase
|
|
52
|
+
- If issues found: `/gywd:plan-fix {phase} {plan}` to create fix plan
|
|
53
|
+
</process>
|
|
54
|
+
|
|
55
|
+
<anti_patterns>
|
|
56
|
+
- Don't run automated tests (that's for CI/test suites)
|
|
57
|
+
- Don't make assumptions about test results — USER reports outcomes
|
|
58
|
+
- Don't skip the guidance — walk through each test
|
|
59
|
+
- Don't dismiss minor issues — log everything user reports
|
|
60
|
+
- Don't fix issues during testing — capture for later
|
|
61
|
+
</anti_patterns>
|
|
62
|
+
|
|
63
|
+
<success_criteria>
|
|
64
|
+
- [ ] Test scope identified from SUMMARY.md
|
|
65
|
+
- [ ] Checklist generated based on deliverables
|
|
66
|
+
- [ ] User guided through each test
|
|
67
|
+
- [ ] All test results captured (pass/fail/partial/skip)
|
|
68
|
+
- [ ] Any issues logged to phase-scoped ISSUES.md (not global)
|
|
69
|
+
- [ ] Summary presented with verdict
|
|
70
|
+
- [ ] User knows next steps based on results
|
|
71
|
+
</success_criteria>
|