index-refreshlisted
Install: claude install-skill Maximumsoft-Co-LTD/claude-flightdeck
# /index-refresh — Index Discipline Companion
Keep the four slim index files in sync with their wide source files. Every skill that mutates the source file is responsible for calling this in the same commit.
## Token budget (MANDATORY)
- **Never full-Read a wide source file to rebuild the index.** Use Grep with targeted regex to pull the minimal data per row.
- **Each Grep call < 2k tokens.** Total skill invocation budget: ≤6k tokens.
- Full `Read` is only permitted on the index files themselves (they are small by contract).
## What to refresh
| # | Index file | Source file | Grep pattern | Fields |
|---|---|---|---|---|
| 1 | `docs/spec/sprints/sprint-S<N>-index.md` | `docs/spec/sprints/sprint-S<N>.md` | `^\| TG\|^\| S` (task rows) | `ID`, `Component`, `Status`, `Depends` |
| 2 | `docs/designs/sprint-S<N>/INDEX.md` | `docs/designs/sprint-S<N>/D*.md` | `^#\s+Design:\|^> \*\*Status\*\*\|^> \*\*Task Group\*\*` | `DXXX`, `Title`, `Status`, `TG#` |
| 3 | `docs/spec/backlog-index.md` | `docs/spec/backlog.md` | `^### Sprint \|^## 🚀` | `Sprint`, `Status`, `Pointer` |
| 4 | `docs/spec/sprints/INDEX.md` | `docs/spec/sprints/sprint-*.md` | `^> \*\*Status\*\*\|^# Sprint` | `Sprint`, `Status`, `Opened`, `Closed` |
## Staleness detection
A consumer skill does:
```bash
stat -f '%m' docs/spec/sprints/sprint-S<N>-index.md docs/spec/sprints/sprint-S<N>.md
```
If `mtime(index) < mtime(source)`:
- Warn: `"[warn] sprint-index stale — run /index-refresh"`
- Fall through to Grep the sour