Commit 0b768e3
committed
fix: Add GitHub Spec Kit scripts installer for Gear 4 compatibility
PROBLEM:
Gear 4 (Gap Analysis) tries to run /speckit.analyze but fails with
"Script not found" error. This is because:
- Gear 3 creates .specify/scripts/ directory but leaves it empty
- /speckit.analyze requires scripts/bash/check-prerequisites.sh
- /speckit.implement requires scripts/bash/check-prerequisites.sh
- /speckit.plan requires scripts/bash/setup-plan.sh
- GitHub Spec Kit commands expect these scripts to exist
SOLUTION:
Created scripts/install-speckit-scripts.sh that downloads GitHub Spec Kit
prerequisite scripts and installs them to .specify/scripts/bash/
SCRIPTS INSTALLED (5):
- check-prerequisites.sh - Used by analyze/implement/plan/tasks
- setup-plan.sh - Used by plan command
- create-new-feature.sh - Used by specify command
- update-agent-context.sh - Used by plan command
- common.sh - Shared utilities
UPDATED SKILLS:
1. Gear 3 (create-specs/SKILL.md):
- Added Step 1: Install GitHub Spec Kit Scripts
- Downloads scripts before creating specs
- Provides fallback download if installer missing
- Clear explanation of why scripts are needed
2. Gear 4 (gap-analysis/SKILL.md):
- Added script verification check
- Offers to download if missing
- Provides Step 2a (with scripts) vs Step 2b (manual fallback)
- Graceful degradation if scripts unavailable
WORKFLOW:
Before: Gear 3 → Gear 4 → /speckit.analyze fails ❌
After: Gear 3 → install scripts → Gear 4 → /speckit.analyze works ✅
FALLBACK:
If scripts can't be installed, Gear 4 does manual gap analysis:
- Iterate through specs
- Extract status markers
- Count clarifications
- Generate basic gap report
This ensures Gear 4 never hard-fails - either uses Spec Kit automation
or falls back to manual analysis.
Fixes: Gear 4 confusion where /speckit.analyze fails with missing scripts1 parent 8469a4c commit 0b768e3
File tree
3 files changed
+178
-14
lines changed- scripts
- skills
- create-specs
- gap-analysis
3 files changed
+178
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
150 | 182 | | |
151 | 183 | | |
152 | 184 | | |
| |||
177 | 209 | | |
178 | 210 | | |
179 | 211 | | |
180 | | - | |
| 212 | + | |
181 | 213 | | |
182 | 214 | | |
183 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
164 | 210 | | |
165 | 211 | | |
166 | 212 | | |
| |||
175 | 221 | | |
176 | 222 | | |
177 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
178 | 250 | | |
179 | 251 | | |
180 | 252 | | |
181 | 253 | | |
182 | | - | |
| 254 | + | |
183 | 255 | | |
184 | | - | |
| 256 | + | |
185 | 257 | | |
186 | | - | |
187 | | - | |
188 | | - | |
| 258 | + | |
189 | 259 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 260 | + | |
196 | 261 | | |
197 | 262 | | |
198 | 263 | | |
| |||
0 commit comments