Context hygiene — compress, prune, archive .squad/ state
What It Does
Reclaims context window budget by compressing agent histories, pruning old logs,
archiving stale decisions, and cleaning orphaned inbox files.
When To Use
Before heavy fan-out work (many agents will spawn)
When history.md files exceed 15KB
When .squad/ total size exceeds 1MB
After long-running sessions or sprints
Invocation
CLI: squad nap / squad nap --deep / squad nap --dry-run
REPL: /nap / /nap --dry-run / /nap --deep
Confidence
medium — Confirmed by team vote (4-1) and initial implementation
1---2name: nap3description: Skill: nap4---5# Skill: nap67> Context hygiene — compress, prune, archive .squad/ state89## What It Does1011Reclaims context window budget by compressing agent histories, pruning old logs,12archiving stale decisions, and cleaning orphaned inbox files.1314## When To Use1516- Before heavy fan-out work (many agents will spawn)17- When history.md files exceed 15KB18- When .squad/ total size exceeds 1MB19- After long-running sessions or sprints2021## Invocation2223- CLI: `squad nap` / `squad nap --deep` / `squad nap --dry-run`24- REPL: `/nap` / `/nap --dry-run` / `/nap --deep`2526## Confidence2728medium — Confirmed by team vote (4-1) and initial implementation
Run npx skillmds@latest add thraka/nap in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Skill: nap It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
thraka (@thraka) published this skill. Their other Agent Skills are listed on their SkillMD profile.