zaileys 2.2.7 → 3.0.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/.agent/skills/codebase-mapper/SKILL.md +226 -0
- package/.agent/skills/context-compressor/SKILL.md +201 -0
- package/.agent/skills/context-fetch/SKILL.md +184 -0
- package/.agent/skills/context-health-monitor/SKILL.md +105 -0
- package/.agent/skills/debugger/SKILL.md +273 -0
- package/.agent/skills/empirical-validation/SKILL.md +97 -0
- package/.agent/skills/executor/SKILL.md +465 -0
- package/.agent/skills/plan-checker/SKILL.md +283 -0
- package/.agent/skills/planner/SKILL.md +485 -0
- package/.agent/skills/token-budget/SKILL.md +166 -0
- package/.agent/skills/verifier/SKILL.md +421 -0
- package/.agent/workflows/add-phase.md +96 -0
- package/.agent/workflows/add-todo.md +69 -0
- package/.agent/workflows/audit-milestone.md +107 -0
- package/.agent/workflows/check-todos.md +80 -0
- package/.agent/workflows/complete-milestone.md +135 -0
- package/.agent/workflows/debug.md +235 -0
- package/.agent/workflows/discuss-phase.md +103 -0
- package/.agent/workflows/execute.md +325 -0
- package/.agent/workflows/health.md +122 -0
- package/.agent/workflows/help.md +96 -0
- package/.agent/workflows/insert-phase.md +109 -0
- package/.agent/workflows/install.md +152 -0
- package/.agent/workflows/list-phase-assumptions.md +82 -0
- package/.agent/workflows/map.md +394 -0
- package/.agent/workflows/new-milestone.md +126 -0
- package/.agent/workflows/new-project.md +368 -0
- package/.agent/workflows/pause.md +176 -0
- package/.agent/workflows/plan-milestone-gaps.md +116 -0
- package/.agent/workflows/plan.md +380 -0
- package/.agent/workflows/progress.md +90 -0
- package/.agent/workflows/quick.md +128 -0
- package/.agent/workflows/remove-phase.md +139 -0
- package/.agent/workflows/research-phase.md +160 -0
- package/.agent/workflows/resume.md +131 -0
- package/.agent/workflows/update.md +203 -0
- package/.agent/workflows/verify.md +263 -0
- package/.agent/workflows/web-search.md +121 -0
- package/.agent/workflows/whats-new.md +80 -0
- package/.gemini/GEMINI.md +67 -0
- package/.gsd/DEBUG.md +26 -0
- package/.gsd/GSD-STYLE.md +272 -0
- package/.gsd/PROJECT_RULES.md +256 -0
- package/.gsd/ROADMAP.md +38 -0
- package/.gsd/SPEC.md +16 -0
- package/.gsd/STATE.md +10 -0
- package/.gsd/adapters/CLAUDE.md +77 -0
- package/.gsd/adapters/GEMINI.md +92 -0
- package/.gsd/adapters/GPT_OSS.md +130 -0
- package/.gsd/docs/model-selection-playbook.md +128 -0
- package/.gsd/docs/runbook.md +296 -0
- package/.gsd/docs/token-optimization-guide.md +207 -0
- package/.gsd/model_capabilities.yaml +108 -0
- package/.gsd/phases/1/1-PLAN.md +44 -0
- package/.gsd/phases/1/2-PLAN.md +54 -0
- package/.gsd/phases/1/3-PLAN.md +46 -0
- package/.gsd/phases/1/4-PLAN.md +39 -0
- package/.gsd/phases/2/2-1-SUMMARY.md +8 -0
- package/.gsd/phases/2/2-PLAN.md +47 -0
- package/.gsd/phases/3/3-1-SUMMARY.md +8 -0
- package/.gsd/phases/3/3-PLAN.md +43 -0
- package/.gsd/phases/4/4-1-PLAN.md +44 -0
- package/.gsd/phases/4/4-1-SUMMARY.md +8 -0
- package/.gsd/phases/4/4-2-PLAN.md +59 -0
- package/.gsd/phases/4/4-2-SUMMARY.md +8 -0
- package/.gsd/phases/4/4-3-PLAN.md +42 -0
- package/.gsd/phases/4/4-3-SUMMARY.md +8 -0
- package/.gsd/phases/4/VERIFICATION.md +8 -0
- package/.gsd/phases/5/1-SUMMARY.md +5 -0
- package/.gsd/phases/5/5-PLAN.md +47 -0
- package/.gsd/phases/5/RESEARCH.md +24 -0
- package/.gsd/phases/5/VERIFICATION.md +8 -0
- package/.gsd/phases/6/1-SUMMARY.md +6 -0
- package/.gsd/phases/6/6-PLAN.md +46 -0
- package/.gsd/phases/6/RESEARCH.md +33 -0
- package/.gsd/phases/6/VERIFICATION.md +7 -0
- package/.gsd/phases/7/1-SUMMARY.md +12 -0
- package/.gsd/phases/7/7-PLAN.md +78 -0
- package/.gsd/phases/7/VERIFICATION.md +7 -0
- package/.gsd/templates/DEBUG.md +123 -0
- package/.gsd/templates/PLAN.md +90 -0
- package/.gsd/templates/RESEARCH.md +75 -0
- package/.gsd/templates/SUMMARY.md +103 -0
- package/.gsd/templates/UAT.md +168 -0
- package/.gsd/templates/VERIFICATION.md +70 -0
- package/.gsd/templates/architecture.md +67 -0
- package/.gsd/templates/context.md +91 -0
- package/.gsd/templates/decisions.md +37 -0
- package/.gsd/templates/discovery.md +122 -0
- package/.gsd/templates/journal.md +46 -0
- package/.gsd/templates/milestone.md +91 -0
- package/.gsd/templates/phase-summary.md +52 -0
- package/.gsd/templates/project.md +124 -0
- package/.gsd/templates/requirements.md +92 -0
- package/.gsd/templates/roadmap.md +103 -0
- package/.gsd/templates/spec.md +51 -0
- package/.gsd/templates/sprint.md +57 -0
- package/.gsd/templates/stack.md +62 -0
- package/.gsd/templates/state.md +92 -0
- package/.gsd/templates/state_snapshot.md +132 -0
- package/.gsd/templates/todo.md +32 -0
- package/.gsd/templates/token_report.md +79 -0
- package/.gsd/templates/user-setup.md +116 -0
- package/.husky/commit-msg +1 -0
- package/.husky/pre-commit +1 -0
- package/LICENSE +21 -21
- package/README.MD +1280 -1230
- package/commitlint.config.js +3 -0
- package/dist/index.d.mts +1397 -908
- package/dist/index.d.ts +1397 -908
- package/dist/index.js +29 -28
- package/dist/index.mjs +29 -28
- package/package.json +11 -27
- package/tsconfig.json +19 -19
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create plans to address gaps found in milestone audit
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /plan-milestone-gaps Workflow
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Create targeted plans to address gaps, technical debt, and issues identified during milestone audit.
|
|
9
|
+
</objective>
|
|
10
|
+
|
|
11
|
+
<process>
|
|
12
|
+
|
|
13
|
+
## 1. Load Gap Information
|
|
14
|
+
|
|
15
|
+
Read from:
|
|
16
|
+
- Latest AUDIT.md or VERIFICATION.md
|
|
17
|
+
- TODO.md for deferred items
|
|
18
|
+
- DECISIONS.md for acknowledged debt
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 2. Categorize Gaps
|
|
23
|
+
|
|
24
|
+
| Category | Priority | Action |
|
|
25
|
+
|----------|----------|--------|
|
|
26
|
+
| Must-have failures | 🔴 High | Create fix phase |
|
|
27
|
+
| Technical debt | 🟡 Medium | Add to roadmap |
|
|
28
|
+
| Nice-to-have misses | 🟢 Low | Add to backlog |
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 3. Create Gap Closure Phase
|
|
33
|
+
|
|
34
|
+
Add new phase to ROADMAP.md:
|
|
35
|
+
|
|
36
|
+
```markdown
|
|
37
|
+
### Phase {N}: Gap Closure
|
|
38
|
+
**Status**: ⬜ Not Started
|
|
39
|
+
**Objective**: Address gaps from milestone audit
|
|
40
|
+
|
|
41
|
+
**Gaps to Close:**
|
|
42
|
+
- [ ] {gap 1}
|
|
43
|
+
- [ ] {gap 2}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 4. Create PLAN.md for Each Gap
|
|
49
|
+
|
|
50
|
+
```markdown
|
|
51
|
+
---
|
|
52
|
+
phase: {N}
|
|
53
|
+
plan: fix-{gap-id}
|
|
54
|
+
wave: 1
|
|
55
|
+
gap_closure: true
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
# Fix: {Gap Description}
|
|
59
|
+
|
|
60
|
+
## Problem
|
|
61
|
+
{What the audit found}
|
|
62
|
+
|
|
63
|
+
## Root Cause
|
|
64
|
+
{Why it exists}
|
|
65
|
+
|
|
66
|
+
## Tasks
|
|
67
|
+
|
|
68
|
+
<task type="auto">
|
|
69
|
+
<name>Fix {issue}</name>
|
|
70
|
+
<files>{files}</files>
|
|
71
|
+
<action>{fix instructions}</action>
|
|
72
|
+
<verify>{original verification that failed}</verify>
|
|
73
|
+
<done>{criteria}</done>
|
|
74
|
+
</task>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 5. Update STATE.md
|
|
80
|
+
|
|
81
|
+
```markdown
|
|
82
|
+
## Gap Closure Mode
|
|
83
|
+
Addressing {N} gaps from milestone audit.
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 6. Commit Plans
|
|
89
|
+
|
|
90
|
+
```powershell
|
|
91
|
+
git add .gsd/
|
|
92
|
+
git commit -m "docs: create gap closure plans"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## 7. Offer Execution
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
101
|
+
GSD ► GAP CLOSURE PLANS CREATED ✓
|
|
102
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
103
|
+
|
|
104
|
+
Gaps identified: {N}
|
|
105
|
+
Plans created: {M}
|
|
106
|
+
|
|
107
|
+
───────────────────────────────────────────────────────
|
|
108
|
+
|
|
109
|
+
▶ NEXT
|
|
110
|
+
|
|
111
|
+
/execute {N} --gaps-only — Execute gap closure plans
|
|
112
|
+
|
|
113
|
+
───────────────────────────────────────────────────────
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
</process>
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: The Strategist — Decompose requirements into executable phases in ROADMAP.md
|
|
3
|
+
argument-hint: "[phase] [--research] [--skip-research] [--gaps]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /plan Workflow
|
|
7
|
+
|
|
8
|
+
<role>
|
|
9
|
+
You are a GSD planner orchestrator. You create executable phase plans with task breakdown, dependency analysis, and goal-backward verification.
|
|
10
|
+
|
|
11
|
+
**Core responsibilities:**
|
|
12
|
+
- Parse arguments and validate phase
|
|
13
|
+
- Handle research (unless skipped or exists)
|
|
14
|
+
- Create PLAN.md files with XML task structure
|
|
15
|
+
- Verify plans with checker logic
|
|
16
|
+
- Iterate until plans pass (max 3 iterations)
|
|
17
|
+
</role>
|
|
18
|
+
|
|
19
|
+
<objective>
|
|
20
|
+
Create executable phase prompts (PLAN.md files) for a roadmap phase with integrated research and verification.
|
|
21
|
+
|
|
22
|
+
**Default flow:** Research (if needed) → Plan → Verify → Done
|
|
23
|
+
|
|
24
|
+
**Why subagents:** Research and planning burn context fast. Verification uses fresh context. User sees the flow between agents in main context.
|
|
25
|
+
</objective>
|
|
26
|
+
|
|
27
|
+
<context>
|
|
28
|
+
**Phase number:** $ARGUMENTS (optional — auto-detects next unplanned phase if not provided)
|
|
29
|
+
|
|
30
|
+
**Flags:**
|
|
31
|
+
- `--research` — Force re-research even if RESEARCH.md exists
|
|
32
|
+
- `--skip-research` — Skip research entirely, go straight to planning
|
|
33
|
+
- `--gaps` — Gap closure mode (reads VERIFICATION.md, skips research)
|
|
34
|
+
- `--auto` — Auto-advance mode (proceed directly to /execute without stopping)
|
|
35
|
+
|
|
36
|
+
**Required files:**
|
|
37
|
+
- `.gsd/SPEC.md` — Must be FINALIZED (Planning Lock)
|
|
38
|
+
- `.gsd/ROADMAP.md` — Must have phases defined
|
|
39
|
+
</context>
|
|
40
|
+
|
|
41
|
+
<philosophy>
|
|
42
|
+
|
|
43
|
+
## Solo Developer + Claude Workflow
|
|
44
|
+
You are planning for ONE person (the user) and ONE implementer (Claude).
|
|
45
|
+
- No teams, stakeholders, ceremonies, coordination overhead
|
|
46
|
+
- User is the visionary/product owner
|
|
47
|
+
- Claude is the builder
|
|
48
|
+
|
|
49
|
+
## Plans Are Prompts
|
|
50
|
+
PLAN.md is NOT a document that gets transformed into a prompt.
|
|
51
|
+
PLAN.md IS the prompt. It contains:
|
|
52
|
+
- Objective (what and why)
|
|
53
|
+
- Context (@file references)
|
|
54
|
+
- Tasks (with verification criteria)
|
|
55
|
+
- Success criteria (measurable)
|
|
56
|
+
|
|
57
|
+
## Quality Degradation Curve
|
|
58
|
+
|
|
59
|
+
| Context Usage | Quality | State |
|
|
60
|
+
|---------------|---------|-------|
|
|
61
|
+
| 0-30% | PEAK | Thorough, comprehensive |
|
|
62
|
+
| 30-50% | GOOD | Confident, solid work |
|
|
63
|
+
| 50-70% | DEGRADING | Efficiency mode begins |
|
|
64
|
+
| 70%+ | POOR | Rushed, minimal |
|
|
65
|
+
|
|
66
|
+
**The rule:** Plans should complete within ~50% context. More plans, smaller scope.
|
|
67
|
+
|
|
68
|
+
## Aggressive Atomicity
|
|
69
|
+
Each plan: **2-3 tasks max**. No exceptions.
|
|
70
|
+
|
|
71
|
+
</philosophy>
|
|
72
|
+
|
|
73
|
+
<discovery_levels>
|
|
74
|
+
|
|
75
|
+
## Discovery Protocol
|
|
76
|
+
|
|
77
|
+
Discovery is MANDATORY unless you can prove current context exists.
|
|
78
|
+
|
|
79
|
+
**Level 0 — Skip** (pure internal work)
|
|
80
|
+
- ALL work follows established codebase patterns
|
|
81
|
+
- No new external dependencies
|
|
82
|
+
- Pure internal refactoring or feature extension
|
|
83
|
+
|
|
84
|
+
**Level 1 — Quick Verification** (2-5 min)
|
|
85
|
+
- Single known library, confirming syntax/version
|
|
86
|
+
- Low-risk decision (easily changed later)
|
|
87
|
+
- Action: Quick web search, no RESEARCH.md needed
|
|
88
|
+
|
|
89
|
+
**Level 2 — Standard Research** (15-30 min)
|
|
90
|
+
- Choosing between 2-3 options
|
|
91
|
+
- New external integration (API, service)
|
|
92
|
+
- Medium-risk decision
|
|
93
|
+
- Action: Create RESEARCH.md with findings
|
|
94
|
+
|
|
95
|
+
**Level 3 — Deep Dive** (1+ hour)
|
|
96
|
+
- Architectural decision with long-term impact
|
|
97
|
+
- Novel problem without clear patterns
|
|
98
|
+
- High-risk, hard to change later
|
|
99
|
+
- Action: Full research with RESEARCH.md
|
|
100
|
+
|
|
101
|
+
</discovery_levels>
|
|
102
|
+
|
|
103
|
+
<process>
|
|
104
|
+
|
|
105
|
+
## 1. Validate Environment (Planning Lock)
|
|
106
|
+
|
|
107
|
+
**PowerShell:**
|
|
108
|
+
```powershell
|
|
109
|
+
# Check SPEC.md exists and is finalized
|
|
110
|
+
$spec = Get-Content ".gsd/SPEC.md" -Raw
|
|
111
|
+
if ($spec -notmatch "FINALIZED") {
|
|
112
|
+
Write-Error "SPEC.md must be FINALIZED before planning"
|
|
113
|
+
exit
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Bash:**
|
|
118
|
+
```bash
|
|
119
|
+
# Check SPEC.md exists and is finalized
|
|
120
|
+
if ! grep -q "FINALIZED" ".gsd/SPEC.md"; then
|
|
121
|
+
echo "Error: SPEC.md must be FINALIZED before planning" >&2
|
|
122
|
+
exit 1
|
|
123
|
+
fi
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**If not finalized:** Error — user must complete SPEC.md first.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## 2. Parse and Normalize Arguments
|
|
131
|
+
|
|
132
|
+
Extract from $ARGUMENTS:
|
|
133
|
+
- Phase number (integer)
|
|
134
|
+
- `--research` flag
|
|
135
|
+
- `--skip-research` flag
|
|
136
|
+
- `--gaps` flag
|
|
137
|
+
|
|
138
|
+
**If no phase number:** Detect next unplanned phase from ROADMAP.md.
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## 3. Validate Phase
|
|
143
|
+
|
|
144
|
+
**PowerShell:**
|
|
145
|
+
```powershell
|
|
146
|
+
Select-String -Path ".gsd/ROADMAP.md" -Pattern "Phase $PHASE:"
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
**Bash:**
|
|
150
|
+
```bash
|
|
151
|
+
grep "Phase $PHASE:" ".gsd/ROADMAP.md"
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**If not found:** Error with available phases.
|
|
155
|
+
**If found:** Extract phase name and description.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## 4. Ensure Phase Directory
|
|
160
|
+
|
|
161
|
+
**PowerShell:**
|
|
162
|
+
```powershell
|
|
163
|
+
$PHASE_DIR = ".gsd/phases/$PHASE"
|
|
164
|
+
if (-not (Test-Path $PHASE_DIR)) {
|
|
165
|
+
New-Item -ItemType Directory -Path $PHASE_DIR
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**Bash:**
|
|
170
|
+
```bash
|
|
171
|
+
PHASE_DIR=".gsd/phases/$PHASE"
|
|
172
|
+
mkdir -p "$PHASE_DIR"
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## 5. Handle Research
|
|
178
|
+
|
|
179
|
+
**If `--gaps` flag:** Skip research (gap closure uses VERIFICATION.md).
|
|
180
|
+
|
|
181
|
+
**If `--skip-research` flag:** Skip to step 6.
|
|
182
|
+
|
|
183
|
+
**Check for existing research:**
|
|
184
|
+
**PowerShell:**
|
|
185
|
+
```powershell
|
|
186
|
+
Test-Path "$PHASE_DIR/RESEARCH.md"
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Bash:**
|
|
190
|
+
```bash
|
|
191
|
+
test -f "$PHASE_DIR/RESEARCH.md"
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**If RESEARCH.md exists AND `--research` flag NOT set:**
|
|
195
|
+
- Display: `Using existing research: $PHASE_DIR/RESEARCH.md`
|
|
196
|
+
- Skip to step 6
|
|
197
|
+
|
|
198
|
+
**If research needed:**
|
|
199
|
+
|
|
200
|
+
Display banner:
|
|
201
|
+
```
|
|
202
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
203
|
+
GSD ► RESEARCHING PHASE {N}
|
|
204
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
Perform research based on discovery level (see `<discovery_levels>`).
|
|
208
|
+
|
|
209
|
+
Create `$PHASE_DIR/RESEARCH.md` with findings.
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## 6. Create Plans
|
|
214
|
+
|
|
215
|
+
Display banner:
|
|
216
|
+
```
|
|
217
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
218
|
+
GSD ► PLANNING PHASE {N}
|
|
219
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### 6a. Gather Context
|
|
223
|
+
Load:
|
|
224
|
+
- `.gsd/SPEC.md` — Requirements
|
|
225
|
+
- `.gsd/ROADMAP.md` — Phase description
|
|
226
|
+
- `$PHASE_DIR/RESEARCH.md` — If exists
|
|
227
|
+
- `$PHASE_DIR/$PHASE-CONTEXT.md` — If exists (contains user decisions from discuss-phase)
|
|
228
|
+
- `.gsd/ARCHITECTURE.md` — If exists
|
|
229
|
+
|
|
230
|
+
### 6b. Decompose into Tasks
|
|
231
|
+
For the phase goal:
|
|
232
|
+
1. Identify all deliverables
|
|
233
|
+
2. Break into atomic tasks (2-3 per plan)
|
|
234
|
+
3. Determine dependencies between tasks
|
|
235
|
+
4. Assign execution waves
|
|
236
|
+
|
|
237
|
+
### 6c. Write PLAN.md Files
|
|
238
|
+
|
|
239
|
+
Create `$PHASE_DIR/{N}-PLAN.md`:
|
|
240
|
+
|
|
241
|
+
```markdown
|
|
242
|
+
---
|
|
243
|
+
phase: {N}
|
|
244
|
+
plan: 1
|
|
245
|
+
wave: 1
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
# Plan {N}.1: {Plan Name}
|
|
249
|
+
|
|
250
|
+
## Objective
|
|
251
|
+
{What this plan delivers and why}
|
|
252
|
+
|
|
253
|
+
## Context
|
|
254
|
+
- .gsd/SPEC.md
|
|
255
|
+
- .gsd/ARCHITECTURE.md
|
|
256
|
+
- {relevant source files}
|
|
257
|
+
|
|
258
|
+
## Tasks
|
|
259
|
+
|
|
260
|
+
<task type="auto">
|
|
261
|
+
<name>{Task name}</name>
|
|
262
|
+
<files>{exact file paths}</files>
|
|
263
|
+
<action>
|
|
264
|
+
{Specific implementation instructions}
|
|
265
|
+
- What to do
|
|
266
|
+
- What to avoid and WHY
|
|
267
|
+
</action>
|
|
268
|
+
<verify>{Command to prove task complete}</verify>
|
|
269
|
+
<done>{Measurable acceptance criteria}</done>
|
|
270
|
+
</task>
|
|
271
|
+
|
|
272
|
+
<task type="auto">
|
|
273
|
+
...
|
|
274
|
+
</task>
|
|
275
|
+
|
|
276
|
+
## Success Criteria
|
|
277
|
+
- [ ] {Measurable outcome 1}
|
|
278
|
+
- [ ] {Measurable outcome 2}
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## 7. Verify Plans (Checker Logic)
|
|
284
|
+
|
|
285
|
+
For each plan, verify:
|
|
286
|
+
- [ ] All files specified exist or will be created
|
|
287
|
+
- [ ] Actions are specific (no "implement X")
|
|
288
|
+
- [ ] Verify commands are executable
|
|
289
|
+
- [ ] Done criteria are measurable
|
|
290
|
+
- [ ] Context references exist
|
|
291
|
+
|
|
292
|
+
**If issues found:** Fix and re-verify (max 3 iterations).
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## 8. Update State
|
|
297
|
+
|
|
298
|
+
Update `.gsd/STATE.md`:
|
|
299
|
+
```markdown
|
|
300
|
+
## Current Position
|
|
301
|
+
- **Phase**: {N}
|
|
302
|
+
- **Task**: Planning complete
|
|
303
|
+
- **Status**: Ready for execution
|
|
304
|
+
|
|
305
|
+
## Next Steps
|
|
306
|
+
1. /execute {N}
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## 9. Commit Plans
|
|
312
|
+
|
|
313
|
+
```bash
|
|
314
|
+
git add .gsd/phases/$PHASE/
|
|
315
|
+
git add .gsd/STATE.md
|
|
316
|
+
git commit -m "docs(phase-$PHASE): create execution plans"
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## 10. Offer Next Steps
|
|
322
|
+
|
|
323
|
+
</process>
|
|
324
|
+
|
|
325
|
+
<offer_next>
|
|
326
|
+
|
|
327
|
+
```
|
|
328
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
329
|
+
GSD ► PHASE {N} PLANNED ✓
|
|
330
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
331
|
+
|
|
332
|
+
{X} plans created across {Y} waves
|
|
333
|
+
|
|
334
|
+
Plans:
|
|
335
|
+
• {N}.1: {Name} (wave 1)
|
|
336
|
+
• {N}.2: {Name} (wave 1)
|
|
337
|
+
• {N}.3: {Name} (wave 2)
|
|
338
|
+
|
|
339
|
+
───────────────────────────────────────────────────────
|
|
340
|
+
|
|
341
|
+
▶ Next Up
|
|
342
|
+
|
|
343
|
+
/execute {N} — run all plans
|
|
344
|
+
|
|
345
|
+
───────────────────────────────────────────────────────
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
**If `--auto` flag was set:**
|
|
349
|
+
Do not show the output above to prompt the user. Instead, output the status briefly and immediately invoke the `/execute {N}` tool command yourself to proceed to the next step seamlessly without waiting for the user.
|
|
350
|
+
|
|
351
|
+
</offer_next>
|
|
352
|
+
|
|
353
|
+
<task_types>
|
|
354
|
+
|
|
355
|
+
| Type | Use For | Autonomy |
|
|
356
|
+
|------|---------|----------|
|
|
357
|
+
| `auto` | Everything Claude can do independently | Fully autonomous |
|
|
358
|
+
| `checkpoint:human-verify` | Visual/functional verification | Pauses for user |
|
|
359
|
+
| `checkpoint:decision` | Implementation choices | Pauses for user |
|
|
360
|
+
|
|
361
|
+
**Automation-first rule:** If Claude CAN do it, Claude MUST do it. Checkpoints are for verification AFTER automation.
|
|
362
|
+
|
|
363
|
+
</task_types>
|
|
364
|
+
|
|
365
|
+
<related>
|
|
366
|
+
## Related
|
|
367
|
+
|
|
368
|
+
### Workflows
|
|
369
|
+
| Command | Relationship |
|
|
370
|
+
|---------|--------------|
|
|
371
|
+
| `/map` | Run before /plan to get codebase context |
|
|
372
|
+
| `/execute` | Runs PLAN.md files created by /plan |
|
|
373
|
+
| `/verify` | Validates executed plans |
|
|
374
|
+
|
|
375
|
+
### Skills
|
|
376
|
+
| Skill | Purpose |
|
|
377
|
+
|-------|---------|
|
|
378
|
+
| `planner` | Detailed planning methodology |
|
|
379
|
+
| `plan-checker` | Validates plans before execution |
|
|
380
|
+
</related>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Show current position in roadmap and next steps
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /progress Workflow
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Quick status check — where are we and what's next?
|
|
9
|
+
</objective>
|
|
10
|
+
|
|
11
|
+
<process>
|
|
12
|
+
|
|
13
|
+
## 1. Load Current State
|
|
14
|
+
|
|
15
|
+
Read:
|
|
16
|
+
- `.gsd/STATE.md` — Current position
|
|
17
|
+
- `.gsd/ROADMAP.md` — Phase statuses
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 2. Calculate Progress
|
|
22
|
+
|
|
23
|
+
Count phases:
|
|
24
|
+
- Total phases
|
|
25
|
+
- Completed phases (✅)
|
|
26
|
+
- In progress (🔄)
|
|
27
|
+
- Blocked (⏸️)
|
|
28
|
+
- Not started (⬜)
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 3. Display Status
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
36
|
+
GSD ► PROGRESS
|
|
37
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
38
|
+
|
|
39
|
+
Project: {project name from SPEC.md}
|
|
40
|
+
Milestone: {milestone from ROADMAP.md}
|
|
41
|
+
|
|
42
|
+
───────────────────────────────────────────────────────
|
|
43
|
+
|
|
44
|
+
PHASES
|
|
45
|
+
|
|
46
|
+
✅ Phase 1: {Name}
|
|
47
|
+
✅ Phase 2: {Name}
|
|
48
|
+
🔄 Phase 3: {Name} ← CURRENT
|
|
49
|
+
⬜ Phase 4: {Name}
|
|
50
|
+
⬜ Phase 5: {Name}
|
|
51
|
+
|
|
52
|
+
Progress: {completed}/{total} ({percentage}%)
|
|
53
|
+
|
|
54
|
+
───────────────────────────────────────────────────────
|
|
55
|
+
|
|
56
|
+
CURRENT TASK
|
|
57
|
+
|
|
58
|
+
{Current task from STATE.md, or "None"}
|
|
59
|
+
|
|
60
|
+
───────────────────────────────────────────────────────
|
|
61
|
+
|
|
62
|
+
BLOCKERS
|
|
63
|
+
|
|
64
|
+
{Blockers from STATE.md, or "None"}
|
|
65
|
+
|
|
66
|
+
───────────────────────────────────────────────────────
|
|
67
|
+
|
|
68
|
+
▶ NEXT UP
|
|
69
|
+
|
|
70
|
+
{Recommended next action based on state}
|
|
71
|
+
|
|
72
|
+
───────────────────────────────────────────────────────
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 4. Suggest Action
|
|
78
|
+
|
|
79
|
+
Based on status, recommend:
|
|
80
|
+
|
|
81
|
+
| State | Recommendation |
|
|
82
|
+
|-------|----------------|
|
|
83
|
+
| Phase in progress | `/execute {N}` to continue |
|
|
84
|
+
| Phase done, not verified | `/verify {N}` |
|
|
85
|
+
| Verification failed | `/execute {N} --gaps-only` |
|
|
86
|
+
| All phases complete | Celebrate! 🎉 |
|
|
87
|
+
| No phases started | `/plan 1` to begin |
|
|
88
|
+
| SPEC not finalized | Complete SPEC.md first |
|
|
89
|
+
|
|
90
|
+
</process>
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Quick Mode — Execute small, ad-hoc tasks with lightweight guarantees
|
|
3
|
+
argument-hint: "[description] [--full] [--discuss]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /quick Workflow
|
|
7
|
+
|
|
8
|
+
<role>
|
|
9
|
+
You are a GSD Quick Mode orchestrator. Quick mode is for small, ad-hoc tasks that do not warrant a full roadmap phase, but still need atomicity and tracking.
|
|
10
|
+
</role>
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Execute a small task swiftly by automatically planning, executing, and (optional) verifying it inline, then tracking it in `STATE.md`.
|
|
14
|
+
</objective>
|
|
15
|
+
|
|
16
|
+
<context>
|
|
17
|
+
**Description:** $ARGUMENTS (everything not a flag)
|
|
18
|
+
**Flags:**
|
|
19
|
+
- `--full` — Enables strict verification after execution
|
|
20
|
+
- `--discuss` — Pre-planning discussion to capture intent
|
|
21
|
+
|
|
22
|
+
**Required files:**
|
|
23
|
+
- `.gsd/STATE.md`
|
|
24
|
+
</context>
|
|
25
|
+
|
|
26
|
+
<process>
|
|
27
|
+
## 1. Parse Arguments
|
|
28
|
+
|
|
29
|
+
Extract `--full` and `--discuss`. The remaining text is the `DESCRIPTION`.
|
|
30
|
+
If `DESCRIPTION` is empty, prompt the user: "What do you want to quickly accomplish?"
|
|
31
|
+
|
|
32
|
+
## 2. Generate Task Number
|
|
33
|
+
|
|
34
|
+
Find the next available quick task number:
|
|
35
|
+
Check `.gsd/quick/` directory (create if it doesn't exist).
|
|
36
|
+
Find the highest `NNN` prefix across all files (e.g., `001-PLAN.md`). Next number is `NNN + 1`.
|
|
37
|
+
|
|
38
|
+
## 3. Discuss Phase (if `--discuss`)
|
|
39
|
+
|
|
40
|
+
If `--discuss` was passed:
|
|
41
|
+
1. Identify 2-4 gray areas or implementation decisions derived from the `DESCRIPTION`.
|
|
42
|
+
2. Ask the user focused questions about these areas.
|
|
43
|
+
3. Wait for the user's response.
|
|
44
|
+
4. Record the decisions in `.gsd/quick/{NNN}-CONTEXT.md`.
|
|
45
|
+
|
|
46
|
+
## 4. Gather Context & Create Plan
|
|
47
|
+
|
|
48
|
+
Read relevant context for the `DESCRIPTION`.
|
|
49
|
+
Generate a minimal plan at `.gsd/quick/{NNN}-PLAN.md`:
|
|
50
|
+
|
|
51
|
+
```markdown
|
|
52
|
+
# Quick Plan {NNN}: {DESCRIPTION}
|
|
53
|
+
|
|
54
|
+
## Objective
|
|
55
|
+
{What this does}
|
|
56
|
+
|
|
57
|
+
## Context
|
|
58
|
+
{Files or context used}
|
|
59
|
+
{If --discuss was used, reference the extracted decisions}
|
|
60
|
+
|
|
61
|
+
## Tasks
|
|
62
|
+
<task type="auto">
|
|
63
|
+
<name>{Task name}</name>
|
|
64
|
+
<files>{exact file paths}</files>
|
|
65
|
+
<action>{Instructions}</action>
|
|
66
|
+
<verify>{Command}</verify>
|
|
67
|
+
<done>{Measure}</done>
|
|
68
|
+
</task>
|
|
69
|
+
```
|
|
70
|
+
*Note: Keep it to 1-3 tasks max.*
|
|
71
|
+
|
|
72
|
+
## 5. Execute Plan
|
|
73
|
+
|
|
74
|
+
Execute the `<task>` blocks inside the plan.
|
|
75
|
+
Commit changes when all tasks succeed:
|
|
76
|
+
```bash
|
|
77
|
+
git add -A
|
|
78
|
+
git commit -m "feat(quick-{NNN}): {DESCRIPTION}"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Create a summary at `.gsd/quick/{NNN}-SUMMARY.md`.
|
|
82
|
+
|
|
83
|
+
## 6. Verification (if `--full`)
|
|
84
|
+
|
|
85
|
+
If `--full` was passed:
|
|
86
|
+
Perform a verification step that ensures the original `DESCRIPTION` was satisfied.
|
|
87
|
+
Document findings in `.gsd/quick/{NNN}-VERIFICATION.md`.
|
|
88
|
+
|
|
89
|
+
## 7. Track in STATE.md
|
|
90
|
+
|
|
91
|
+
Check `.gsd/STATE.md` for a `### Quick Tasks Completed` table.
|
|
92
|
+
If it doesn't exist, create it under `### Blockers/Concerns` (or at the bottom):
|
|
93
|
+
|
|
94
|
+
```markdown
|
|
95
|
+
### Quick Tasks Completed
|
|
96
|
+
|
|
97
|
+
| # | Description | Date | Commit | Status | Directory |
|
|
98
|
+
|---|-------------|------|--------|--------|-----------|
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Append the new task:
|
|
102
|
+
```markdown
|
|
103
|
+
| {NNN} | {DESCRIPTION} | {YYYY-MM-DD} | {commit-hash} | {Verified / Done} | [.gsd/quick/](./) |
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Update the "Last activity" line in `STATE.md`.
|
|
107
|
+
|
|
108
|
+
## 8. Commit GSD Updates
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
git add .gsd/
|
|
112
|
+
git commit -m "docs(quick-{NNN}): track quick task execution"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
</process>
|
|
116
|
+
|
|
117
|
+
<offer_next>
|
|
118
|
+
```
|
|
119
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
120
|
+
GSD ► QUICK TASK {NNN} COMPLETE ✓
|
|
121
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
122
|
+
|
|
123
|
+
Task: {DESCRIPTION}
|
|
124
|
+
Summary: .gsd/quick/{NNN}-SUMMARY.md
|
|
125
|
+
|
|
126
|
+
───────────────────────────────────────────────────────
|
|
127
|
+
```
|
|
128
|
+
</offer_next>
|