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,139 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Remove a phase from the roadmap (with safety checks)
|
|
3
|
+
argument-hint: "<phase-number>"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /remove-phase Workflow
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Remove a phase from the roadmap, with safety checks for in-progress or completed work.
|
|
10
|
+
</objective>
|
|
11
|
+
|
|
12
|
+
<process>
|
|
13
|
+
|
|
14
|
+
## 1. Validate Phase Exists
|
|
15
|
+
|
|
16
|
+
**PowerShell:**
|
|
17
|
+
```powershell
|
|
18
|
+
$phase = Select-String -Path ".gsd/ROADMAP.md" -Pattern "### Phase $N:"
|
|
19
|
+
if (-not $phase) {
|
|
20
|
+
Write-Error "Phase $N not found in ROADMAP.md"
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**Bash:**
|
|
25
|
+
```bash
|
|
26
|
+
if ! grep -q "### Phase $N:" ".gsd/ROADMAP.md"; then
|
|
27
|
+
echo "Error: Phase $N not found in ROADMAP.md" >&2
|
|
28
|
+
fi
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 2. Check Phase Status
|
|
34
|
+
|
|
35
|
+
**PowerShell:**
|
|
36
|
+
```powershell
|
|
37
|
+
$status = Select-String -Path ".gsd/ROADMAP.md" -Pattern "Phase $N:.*\n.*Status: (.*)"
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Bash:**
|
|
41
|
+
```bash
|
|
42
|
+
status=$(grep -A1 "Phase $N:" ".gsd/ROADMAP.md" | grep "Status:" | cut -d: -f2)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Safety checks:**
|
|
46
|
+
|
|
47
|
+
| Status | Action |
|
|
48
|
+
|--------|--------|
|
|
49
|
+
| ⬜ Not Started | Safe to remove |
|
|
50
|
+
| 🔄 In Progress | Warn and confirm |
|
|
51
|
+
| ✅ Complete | Error — archive instead |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 3. Check for Dependencies
|
|
56
|
+
|
|
57
|
+
Are other phases depending on this one?
|
|
58
|
+
|
|
59
|
+
**PowerShell:**
|
|
60
|
+
```powershell
|
|
61
|
+
Select-String -Path ".gsd/ROADMAP.md" -Pattern "Depends on.*Phase $N"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Bash:**
|
|
65
|
+
```bash
|
|
66
|
+
grep "Depends on.*Phase $N" ".gsd/ROADMAP.md"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**If dependencies exist:**
|
|
70
|
+
```
|
|
71
|
+
⚠️ Phase {M} depends on Phase {N}
|
|
72
|
+
|
|
73
|
+
Cannot remove. Consider:
|
|
74
|
+
1. Update dependent phases first
|
|
75
|
+
2. Use /insert-phase to restructure
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 4. Confirm Removal
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
⚠️ CONFIRM REMOVAL
|
|
84
|
+
|
|
85
|
+
Phase {N}: {name}
|
|
86
|
+
Status: {status}
|
|
87
|
+
|
|
88
|
+
This will:
|
|
89
|
+
- Remove phase from ROADMAP.md
|
|
90
|
+
- Delete .gsd/phases/{N}/ if exists
|
|
91
|
+
- Renumber subsequent phases
|
|
92
|
+
|
|
93
|
+
Type "REMOVE" to confirm:
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 5. Remove Phase
|
|
99
|
+
|
|
100
|
+
1. Delete from ROADMAP.md
|
|
101
|
+
2. Remove `.gsd/phases/{N}/` directory
|
|
102
|
+
3. Renumber subsequent phases (N+1 becomes N, etc.)
|
|
103
|
+
4. Update dependencies
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 6. Update STATE.md
|
|
108
|
+
|
|
109
|
+
If currently in removed phase, set to previous phase or "Planning".
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 7. Commit
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
git add -A
|
|
117
|
+
git commit -m "docs: remove phase {N} - {name}"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## 8. Display Result
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
126
|
+
GSD ► PHASE REMOVED ✓
|
|
127
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
128
|
+
|
|
129
|
+
Removed: Phase {N}: {name}
|
|
130
|
+
Renumbered: {M} phases
|
|
131
|
+
|
|
132
|
+
───────────────────────────────────────────────────────
|
|
133
|
+
|
|
134
|
+
/progress — See updated roadmap
|
|
135
|
+
|
|
136
|
+
───────────────────────────────────────────────────────
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
</process>
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Deep technical research for a phase
|
|
3
|
+
argument-hint: "<phase-number> [--level 1|2|3]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /research-phase Workflow
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Conduct technical research to inform planning decisions for a phase.
|
|
10
|
+
</objective>
|
|
11
|
+
|
|
12
|
+
<discovery_levels>
|
|
13
|
+
## Discovery Levels
|
|
14
|
+
|
|
15
|
+
| Level | Time | Use When |
|
|
16
|
+
|-------|------|----------|
|
|
17
|
+
| 0 | 0 min | Already know, just doing it |
|
|
18
|
+
| 1 | 2-5 min | Single library, confirming syntax |
|
|
19
|
+
| 2 | 15-30 min | Choosing between options, new integration |
|
|
20
|
+
| 3 | 1+ hour | Architectural decision, novel problem |
|
|
21
|
+
|
|
22
|
+
**Default:** Level 2 unless specified.
|
|
23
|
+
</discovery_levels>
|
|
24
|
+
|
|
25
|
+
<process>
|
|
26
|
+
|
|
27
|
+
## 1. Load Phase Context
|
|
28
|
+
|
|
29
|
+
Read:
|
|
30
|
+
- Phase objective from ROADMAP.md
|
|
31
|
+
- Relevant ARCHITECTURE.md sections
|
|
32
|
+
- STACK.md for current technologies
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 2. Identify Research Questions
|
|
37
|
+
|
|
38
|
+
What needs to be understood before planning?
|
|
39
|
+
|
|
40
|
+
```markdown
|
|
41
|
+
## Research Questions
|
|
42
|
+
|
|
43
|
+
1. {Technical question 1}
|
|
44
|
+
2. {Technical question 2}
|
|
45
|
+
3. {Integration question}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 3. Conduct Research
|
|
51
|
+
|
|
52
|
+
Based on discovery level:
|
|
53
|
+
|
|
54
|
+
**Level 1:** Quick verification
|
|
55
|
+
- Check official docs
|
|
56
|
+
- Confirm API/syntax
|
|
57
|
+
|
|
58
|
+
**Level 2:** Comparison research
|
|
59
|
+
- Compare 2-3 options
|
|
60
|
+
- Evaluate trade-offs
|
|
61
|
+
- Make recommendation
|
|
62
|
+
|
|
63
|
+
**Level 3:** Deep dive
|
|
64
|
+
- Prototype if needed
|
|
65
|
+
- Research edge cases
|
|
66
|
+
- Document unknowns
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## 4. Generate RESEARCH.md
|
|
71
|
+
|
|
72
|
+
Create `.gsd/phases/{N}/RESEARCH.md`:
|
|
73
|
+
|
|
74
|
+
```markdown
|
|
75
|
+
---
|
|
76
|
+
phase: {N}
|
|
77
|
+
level: {1|2|3}
|
|
78
|
+
researched_at: {date}
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
# Phase {N} Research
|
|
82
|
+
|
|
83
|
+
## Questions Investigated
|
|
84
|
+
1. {question}
|
|
85
|
+
2. {question}
|
|
86
|
+
|
|
87
|
+
## Findings
|
|
88
|
+
|
|
89
|
+
### {Topic 1}
|
|
90
|
+
{What was learned}
|
|
91
|
+
|
|
92
|
+
**Sources:**
|
|
93
|
+
- {URL}
|
|
94
|
+
|
|
95
|
+
**Recommendation:** {what to do}
|
|
96
|
+
|
|
97
|
+
### {Topic 2}
|
|
98
|
+
...
|
|
99
|
+
|
|
100
|
+
## Decisions Made
|
|
101
|
+
| Decision | Choice | Rationale |
|
|
102
|
+
|----------|--------|-----------|
|
|
103
|
+
| {decision} | {choice} | {why} |
|
|
104
|
+
|
|
105
|
+
## Patterns to Follow
|
|
106
|
+
- {pattern 1}
|
|
107
|
+
- {pattern 2}
|
|
108
|
+
|
|
109
|
+
## Anti-Patterns to Avoid
|
|
110
|
+
- {anti-pattern}: {why}
|
|
111
|
+
|
|
112
|
+
## Dependencies Identified
|
|
113
|
+
| Package | Version | Purpose |
|
|
114
|
+
|---------|---------|---------|
|
|
115
|
+
| {pkg} | {ver} | {why} |
|
|
116
|
+
|
|
117
|
+
## Risks
|
|
118
|
+
- {risk}: {mitigation}
|
|
119
|
+
|
|
120
|
+
## Ready for Planning
|
|
121
|
+
- [x] Questions answered
|
|
122
|
+
- [x] Approach selected
|
|
123
|
+
- [x] Dependencies identified
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 5. Commit Research
|
|
129
|
+
|
|
130
|
+
```powershell
|
|
131
|
+
git add .gsd/phases/{N}/RESEARCH.md
|
|
132
|
+
git commit -m "docs(phase-{N}): research complete"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## 6. Offer Next Steps
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
141
|
+
GSD ► RESEARCH COMPLETE ✓
|
|
142
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
143
|
+
|
|
144
|
+
Phase {N}: {name}
|
|
145
|
+
Level: {level}
|
|
146
|
+
|
|
147
|
+
Key findings:
|
|
148
|
+
• {finding 1}
|
|
149
|
+
• {finding 2}
|
|
150
|
+
|
|
151
|
+
───────────────────────────────────────────────────────
|
|
152
|
+
|
|
153
|
+
▶ NEXT
|
|
154
|
+
|
|
155
|
+
/plan {N} — Create plans informed by research
|
|
156
|
+
|
|
157
|
+
───────────────────────────────────────────────────────
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
</process>
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Restore context from previous session
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /resume Workflow
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Start a new session with full context from where we left off.
|
|
9
|
+
</objective>
|
|
10
|
+
|
|
11
|
+
<process>
|
|
12
|
+
|
|
13
|
+
## 1. Load Saved State
|
|
14
|
+
|
|
15
|
+
Read `.gsd/STATE.md` completely.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 2. Display Context
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
23
|
+
GSD ► RESUMING SESSION
|
|
24
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
25
|
+
|
|
26
|
+
LAST POSITION
|
|
27
|
+
─────────────
|
|
28
|
+
Phase: {phase from STATE.md}
|
|
29
|
+
Task: {task from STATE.md}
|
|
30
|
+
Status: {status when paused}
|
|
31
|
+
|
|
32
|
+
───────────────────────────────────────────────────────
|
|
33
|
+
|
|
34
|
+
CONTEXT FROM LAST SESSION
|
|
35
|
+
─────────────────────────
|
|
36
|
+
{Context dump content from STATE.md}
|
|
37
|
+
|
|
38
|
+
───────────────────────────────────────────────────────
|
|
39
|
+
|
|
40
|
+
BLOCKERS
|
|
41
|
+
────────
|
|
42
|
+
{Blockers from STATE.md, or "None"}
|
|
43
|
+
|
|
44
|
+
───────────────────────────────────────────────────────
|
|
45
|
+
|
|
46
|
+
NEXT STEPS (from last session)
|
|
47
|
+
──────────────────────────────
|
|
48
|
+
1. {First priority}
|
|
49
|
+
2. {Second priority}
|
|
50
|
+
3. {Third priority}
|
|
51
|
+
|
|
52
|
+
───────────────────────────────────────────────────────
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 3. Load Recent Journal
|
|
58
|
+
|
|
59
|
+
Show last entry from `.gsd/JOURNAL.md`:
|
|
60
|
+
- What was accomplished
|
|
61
|
+
- Handoff notes
|
|
62
|
+
- Any issues encountered
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## 4. Check for Conflicts
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# Check for uncommitted changes
|
|
70
|
+
git status --porcelain
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**If changes found:**
|
|
74
|
+
```
|
|
75
|
+
⚠️ UNCOMMITTED CHANGES DETECTED
|
|
76
|
+
|
|
77
|
+
{list of modified files}
|
|
78
|
+
|
|
79
|
+
These may be from the previous session.
|
|
80
|
+
Review before proceeding.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 5. Update State
|
|
86
|
+
|
|
87
|
+
Mark session as active in `.gsd/STATE.md`:
|
|
88
|
+
```markdown
|
|
89
|
+
**Status**: Active (resumed {timestamp})
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## 6. Suggest Action
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
───────────────────────────────────────────────────────
|
|
98
|
+
|
|
99
|
+
▶ READY TO CONTINUE
|
|
100
|
+
|
|
101
|
+
Suggested action based on state:
|
|
102
|
+
|
|
103
|
+
{One of:}
|
|
104
|
+
• /execute {N} — Continue phase execution
|
|
105
|
+
• /verify {N} — Verify completed phase
|
|
106
|
+
• /plan {N} — Create plans for phase
|
|
107
|
+
• /progress — See full roadmap status
|
|
108
|
+
|
|
109
|
+
───────────────────────────────────────────────────────
|
|
110
|
+
|
|
111
|
+
💡 Fresh session = fresh perspective
|
|
112
|
+
|
|
113
|
+
You have all the context you need.
|
|
114
|
+
The previous struggles are documented.
|
|
115
|
+
Time to solve this with fresh eyes.
|
|
116
|
+
|
|
117
|
+
───────────────────────────────────────────────────────
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
</process>
|
|
121
|
+
|
|
122
|
+
<fresh_context_advantage>
|
|
123
|
+
A resumed session has advantages:
|
|
124
|
+
|
|
125
|
+
1. **No accumulated confusion** — You see the problem clearly
|
|
126
|
+
2. **Documented failures** — You know what NOT to try
|
|
127
|
+
3. **Hypothesis preserved** — Pick up where logic left off
|
|
128
|
+
4. **Full context budget** — 200k tokens of fresh capacity
|
|
129
|
+
|
|
130
|
+
Often the first thing a fresh context sees is the obvious solution that a tired context missed.
|
|
131
|
+
</fresh_context_advantage>
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Update GSD to the latest version from GitHub
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /update Workflow
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Update GSD for Antigravity to the latest version from GitHub.
|
|
9
|
+
</objective>
|
|
10
|
+
|
|
11
|
+
<process>
|
|
12
|
+
|
|
13
|
+
## 1. Check Current Version
|
|
14
|
+
|
|
15
|
+
**PowerShell:**
|
|
16
|
+
```powershell
|
|
17
|
+
if (Test-Path "CHANGELOG.md") {
|
|
18
|
+
$version = Select-String -Path "CHANGELOG.md" -Pattern "## \[(\d+\.\d+\.\d+)\]" |
|
|
19
|
+
Select-Object -First 1
|
|
20
|
+
Write-Output "Current version: $($version.Matches.Groups[1].Value)"
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**Bash:**
|
|
25
|
+
```bash
|
|
26
|
+
if [ -f "CHANGELOG.md" ]; then
|
|
27
|
+
version=$(grep -oP '## \[\K[0-9]+\.[0-9]+\.[0-9]+' CHANGELOG.md | head -1)
|
|
28
|
+
echo "Current version: $version"
|
|
29
|
+
fi
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 2. Fetch Latest from GitHub
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Clone latest to temp directory
|
|
38
|
+
git clone --depth 1 https://github.com/toonight/get-shit-done-for-antigravity.git .gsd-update-temp
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 3. Compare Versions
|
|
44
|
+
|
|
45
|
+
**PowerShell:**
|
|
46
|
+
```powershell
|
|
47
|
+
$remoteVersion = Select-String -Path ".gsd-update-temp/CHANGELOG.md" -Pattern "## \[(\d+\.\d+\.\d+)\]" |
|
|
48
|
+
Select-Object -First 1
|
|
49
|
+
|
|
50
|
+
Write-Output "Remote version: $($remoteVersion.Matches.Groups[1].Value)"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Bash:**
|
|
54
|
+
```bash
|
|
55
|
+
remote_version=$(grep -oP '## \[\K[0-9]+\.[0-9]+\.[0-9]+' .gsd-update-temp/CHANGELOG.md | head -1)
|
|
56
|
+
echo "Remote version: $remote_version"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**If same version:**
|
|
60
|
+
```
|
|
61
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
62
|
+
GSD ► ALREADY UP TO DATE ✓
|
|
63
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
64
|
+
|
|
65
|
+
Version: {version}
|
|
66
|
+
|
|
67
|
+
No updates available.
|
|
68
|
+
|
|
69
|
+
───────────────────────────────────────────────────────
|
|
70
|
+
```
|
|
71
|
+
Exit after cleanup.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## 4. Show Changes
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
79
|
+
GSD ► UPDATE AVAILABLE
|
|
80
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
81
|
+
|
|
82
|
+
Current: {current-version}
|
|
83
|
+
Latest: {remote-version}
|
|
84
|
+
|
|
85
|
+
Changes:
|
|
86
|
+
{Extract from CHANGELOG.md}
|
|
87
|
+
|
|
88
|
+
───────────────────────────────────────────────────────
|
|
89
|
+
|
|
90
|
+
Update now?
|
|
91
|
+
A) Yes — Apply updates
|
|
92
|
+
B) No — Cancel
|
|
93
|
+
|
|
94
|
+
───────────────────────────────────────────────────────
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 5. Apply Updates
|
|
100
|
+
|
|
101
|
+
**If user confirms:**
|
|
102
|
+
|
|
103
|
+
**PowerShell:**
|
|
104
|
+
```powershell
|
|
105
|
+
# Backup current
|
|
106
|
+
Copy-Item -Recurse ".agent" ".agent.backup"
|
|
107
|
+
Copy-Item -Recurse ".gsd/templates" ".gsd/templates.backup"
|
|
108
|
+
|
|
109
|
+
# Update workflows and skills (preserve user's .gsd docs)
|
|
110
|
+
Copy-Item -Recurse -Force ".gsd-update-temp/.agent/*" ".agent/"
|
|
111
|
+
|
|
112
|
+
# Update templates only
|
|
113
|
+
Copy-Item -Recurse -Force ".gsd-update-temp/.gsd/templates/*" ".gsd/templates/"
|
|
114
|
+
|
|
115
|
+
# Update GSD core files
|
|
116
|
+
Copy-Item -Force ".gsd-update-temp/.gsd/GSD-STYLE.md" ".gsd/"
|
|
117
|
+
Copy-Item -Force ".gsd-update-temp/.gsd/PROJECT_RULES.md" ".gsd/"
|
|
118
|
+
Copy-Item -Force ".gsd-update-temp/.gsd/model_capabilities.yaml" ".gsd/"
|
|
119
|
+
Copy-Item -Recurse -Force ".gsd-update-temp/.gsd/adapters" ".gsd/"
|
|
120
|
+
Copy-Item -Recurse -Force ".gsd-update-temp/.gsd/docs" ".gsd/"
|
|
121
|
+
Copy-Item -Recurse -Force ".gsd-update-temp/.gsd/scripts" ".gsd/"
|
|
122
|
+
|
|
123
|
+
# Update root files
|
|
124
|
+
Copy-Item -Force ".gsd-update-temp/CHANGELOG.md" "./"
|
|
125
|
+
Copy-Item -Force ".gsd-update-temp/VERSION" "./"
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
**Bash:**
|
|
129
|
+
```bash
|
|
130
|
+
# Backup current
|
|
131
|
+
cp -r .agent .agent.backup
|
|
132
|
+
cp -r .gsd/templates .gsd/templates.backup
|
|
133
|
+
|
|
134
|
+
# Update workflows and skills (preserve user's .gsd docs)
|
|
135
|
+
cp -r .gsd-update-temp/.agent/* .agent/
|
|
136
|
+
|
|
137
|
+
# Update templates only
|
|
138
|
+
cp -r .gsd-update-temp/.gsd/templates/* .gsd/templates/
|
|
139
|
+
|
|
140
|
+
# Update GSD core files
|
|
141
|
+
cp .gsd-update-temp/.gsd/GSD-STYLE.md .gsd/
|
|
142
|
+
cp .gsd-update-temp/.gsd/PROJECT_RULES.md .gsd/
|
|
143
|
+
cp .gsd-update-temp/.gsd/model_capabilities.yaml .gsd/
|
|
144
|
+
cp -r .gsd-update-temp/.gsd/adapters .gsd/
|
|
145
|
+
cp -r .gsd-update-temp/.gsd/docs .gsd/
|
|
146
|
+
cp -r .gsd-update-temp/.gsd/scripts .gsd/
|
|
147
|
+
|
|
148
|
+
# Update root files
|
|
149
|
+
cp .gsd-update-temp/CHANGELOG.md ./
|
|
150
|
+
cp .gsd-update-temp/VERSION ./
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## 6. Cleanup
|
|
156
|
+
|
|
157
|
+
**PowerShell:**
|
|
158
|
+
```powershell
|
|
159
|
+
Remove-Item -Recurse -Force ".gsd-update-temp"
|
|
160
|
+
Remove-Item -Recurse -Force ".agent.backup"
|
|
161
|
+
Remove-Item -Recurse -Force ".gsd/templates.backup"
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**Bash:**
|
|
165
|
+
```bash
|
|
166
|
+
rm -rf .gsd-update-temp
|
|
167
|
+
rm -rf .agent.backup
|
|
168
|
+
rm -rf .gsd/templates.backup
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 7. Confirm
|
|
174
|
+
|
|
175
|
+
```
|
|
176
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
177
|
+
GSD ► UPDATED ✓
|
|
178
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
179
|
+
|
|
180
|
+
Updated to version {remote-version}
|
|
181
|
+
|
|
182
|
+
───────────────────────────────────────────────────────
|
|
183
|
+
|
|
184
|
+
/whats-new — See what changed
|
|
185
|
+
|
|
186
|
+
───────────────────────────────────────────────────────
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
</process>
|
|
190
|
+
|
|
191
|
+
<preserved_files>
|
|
192
|
+
These user files are NEVER overwritten:
|
|
193
|
+
- .gsd/SPEC.md
|
|
194
|
+
- .gsd/ROADMAP.md
|
|
195
|
+
- .gsd/STATE.md
|
|
196
|
+
- .gsd/ARCHITECTURE.md
|
|
197
|
+
- .gsd/STACK.md
|
|
198
|
+
- .gsd/DECISIONS.md
|
|
199
|
+
- .gsd/JOURNAL.md
|
|
200
|
+
- .gsd/TODO.md
|
|
201
|
+
- .gsd/phases/*
|
|
202
|
+
- .gemini/GEMINI.md
|
|
203
|
+
</preserved_files>
|