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.
Files changed (114) hide show
  1. package/.agent/skills/codebase-mapper/SKILL.md +226 -0
  2. package/.agent/skills/context-compressor/SKILL.md +201 -0
  3. package/.agent/skills/context-fetch/SKILL.md +184 -0
  4. package/.agent/skills/context-health-monitor/SKILL.md +105 -0
  5. package/.agent/skills/debugger/SKILL.md +273 -0
  6. package/.agent/skills/empirical-validation/SKILL.md +97 -0
  7. package/.agent/skills/executor/SKILL.md +465 -0
  8. package/.agent/skills/plan-checker/SKILL.md +283 -0
  9. package/.agent/skills/planner/SKILL.md +485 -0
  10. package/.agent/skills/token-budget/SKILL.md +166 -0
  11. package/.agent/skills/verifier/SKILL.md +421 -0
  12. package/.agent/workflows/add-phase.md +96 -0
  13. package/.agent/workflows/add-todo.md +69 -0
  14. package/.agent/workflows/audit-milestone.md +107 -0
  15. package/.agent/workflows/check-todos.md +80 -0
  16. package/.agent/workflows/complete-milestone.md +135 -0
  17. package/.agent/workflows/debug.md +235 -0
  18. package/.agent/workflows/discuss-phase.md +103 -0
  19. package/.agent/workflows/execute.md +325 -0
  20. package/.agent/workflows/health.md +122 -0
  21. package/.agent/workflows/help.md +96 -0
  22. package/.agent/workflows/insert-phase.md +109 -0
  23. package/.agent/workflows/install.md +152 -0
  24. package/.agent/workflows/list-phase-assumptions.md +82 -0
  25. package/.agent/workflows/map.md +394 -0
  26. package/.agent/workflows/new-milestone.md +126 -0
  27. package/.agent/workflows/new-project.md +368 -0
  28. package/.agent/workflows/pause.md +176 -0
  29. package/.agent/workflows/plan-milestone-gaps.md +116 -0
  30. package/.agent/workflows/plan.md +380 -0
  31. package/.agent/workflows/progress.md +90 -0
  32. package/.agent/workflows/quick.md +128 -0
  33. package/.agent/workflows/remove-phase.md +139 -0
  34. package/.agent/workflows/research-phase.md +160 -0
  35. package/.agent/workflows/resume.md +131 -0
  36. package/.agent/workflows/update.md +203 -0
  37. package/.agent/workflows/verify.md +263 -0
  38. package/.agent/workflows/web-search.md +121 -0
  39. package/.agent/workflows/whats-new.md +80 -0
  40. package/.gemini/GEMINI.md +67 -0
  41. package/.gsd/DEBUG.md +26 -0
  42. package/.gsd/GSD-STYLE.md +272 -0
  43. package/.gsd/PROJECT_RULES.md +256 -0
  44. package/.gsd/ROADMAP.md +38 -0
  45. package/.gsd/SPEC.md +16 -0
  46. package/.gsd/STATE.md +10 -0
  47. package/.gsd/adapters/CLAUDE.md +77 -0
  48. package/.gsd/adapters/GEMINI.md +92 -0
  49. package/.gsd/adapters/GPT_OSS.md +130 -0
  50. package/.gsd/docs/model-selection-playbook.md +128 -0
  51. package/.gsd/docs/runbook.md +296 -0
  52. package/.gsd/docs/token-optimization-guide.md +207 -0
  53. package/.gsd/model_capabilities.yaml +108 -0
  54. package/.gsd/phases/1/1-PLAN.md +44 -0
  55. package/.gsd/phases/1/2-PLAN.md +54 -0
  56. package/.gsd/phases/1/3-PLAN.md +46 -0
  57. package/.gsd/phases/1/4-PLAN.md +39 -0
  58. package/.gsd/phases/2/2-1-SUMMARY.md +8 -0
  59. package/.gsd/phases/2/2-PLAN.md +47 -0
  60. package/.gsd/phases/3/3-1-SUMMARY.md +8 -0
  61. package/.gsd/phases/3/3-PLAN.md +43 -0
  62. package/.gsd/phases/4/4-1-PLAN.md +44 -0
  63. package/.gsd/phases/4/4-1-SUMMARY.md +8 -0
  64. package/.gsd/phases/4/4-2-PLAN.md +59 -0
  65. package/.gsd/phases/4/4-2-SUMMARY.md +8 -0
  66. package/.gsd/phases/4/4-3-PLAN.md +42 -0
  67. package/.gsd/phases/4/4-3-SUMMARY.md +8 -0
  68. package/.gsd/phases/4/VERIFICATION.md +8 -0
  69. package/.gsd/phases/5/1-SUMMARY.md +5 -0
  70. package/.gsd/phases/5/5-PLAN.md +47 -0
  71. package/.gsd/phases/5/RESEARCH.md +24 -0
  72. package/.gsd/phases/5/VERIFICATION.md +8 -0
  73. package/.gsd/phases/6/1-SUMMARY.md +6 -0
  74. package/.gsd/phases/6/6-PLAN.md +46 -0
  75. package/.gsd/phases/6/RESEARCH.md +33 -0
  76. package/.gsd/phases/6/VERIFICATION.md +7 -0
  77. package/.gsd/phases/7/1-SUMMARY.md +12 -0
  78. package/.gsd/phases/7/7-PLAN.md +78 -0
  79. package/.gsd/phases/7/VERIFICATION.md +7 -0
  80. package/.gsd/templates/DEBUG.md +123 -0
  81. package/.gsd/templates/PLAN.md +90 -0
  82. package/.gsd/templates/RESEARCH.md +75 -0
  83. package/.gsd/templates/SUMMARY.md +103 -0
  84. package/.gsd/templates/UAT.md +168 -0
  85. package/.gsd/templates/VERIFICATION.md +70 -0
  86. package/.gsd/templates/architecture.md +67 -0
  87. package/.gsd/templates/context.md +91 -0
  88. package/.gsd/templates/decisions.md +37 -0
  89. package/.gsd/templates/discovery.md +122 -0
  90. package/.gsd/templates/journal.md +46 -0
  91. package/.gsd/templates/milestone.md +91 -0
  92. package/.gsd/templates/phase-summary.md +52 -0
  93. package/.gsd/templates/project.md +124 -0
  94. package/.gsd/templates/requirements.md +92 -0
  95. package/.gsd/templates/roadmap.md +103 -0
  96. package/.gsd/templates/spec.md +51 -0
  97. package/.gsd/templates/sprint.md +57 -0
  98. package/.gsd/templates/stack.md +62 -0
  99. package/.gsd/templates/state.md +92 -0
  100. package/.gsd/templates/state_snapshot.md +132 -0
  101. package/.gsd/templates/todo.md +32 -0
  102. package/.gsd/templates/token_report.md +79 -0
  103. package/.gsd/templates/user-setup.md +116 -0
  104. package/.husky/commit-msg +1 -0
  105. package/.husky/pre-commit +1 -0
  106. package/LICENSE +21 -21
  107. package/README.MD +1280 -1230
  108. package/commitlint.config.js +3 -0
  109. package/dist/index.d.mts +1397 -908
  110. package/dist/index.d.ts +1397 -908
  111. package/dist/index.js +29 -28
  112. package/dist/index.mjs +29 -28
  113. package/package.json +11 -27
  114. 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>