| 1 | # Skill: nap |
| 2 | |
| 3 | > Context hygiene — compress, prune, archive .squad/ state |
| 4 | |
| 5 | ## What It Does |
| 6 | |
| 7 | Reclaims context window budget by compressing agent histories, pruning old logs, |
| 8 | archiving stale decisions, and cleaning orphaned inbox files. |
| 9 | |
| 10 | ## When To Use |
| 11 | |
| 12 | - Before heavy fan-out work (many agents will spawn) |
| 13 | - When history.md files exceed 15KB |
| 14 | - When .squad/ total size exceeds 1MB |
| 15 | - After long-running sessions or sprints |
| 16 | |
| 17 | ## Invocation |
| 18 | |
| 19 | - CLI: `squad nap` / `squad nap --deep` / `squad nap --dry-run` |
| 20 | - REPL: `/nap` / `/nap --dry-run` / `/nap --deep` |
| 21 | |
| 22 | ## Confidence |
| 23 | |
| 24 | medium — Confirmed by team vote (4-1) and initial implementation |