Skill: nap
> Context hygiene — compress, prune, archive .squad/ state
Best use case
Skill: nap is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
> Context hygiene — compress, prune, archive .squad/ state
Teams using Skill: nap should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/nap/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Skill: nap Compares
| Feature / Agent | Skill: nap | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
> Context hygiene — compress, prune, archive .squad/ state
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Skill: nap > 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
Related Skills
My Skill
No description provided.
rework-rate
Measure and interpret PR rework rate — the emerging 5th DORA metric
project-conventions
Core conventions and patterns for this codebase
tiered-memory
Three-tier agent memory model (hot/cold/wiki) for 20-55% context reduction per spawn
test-discipline
Update tests when changing APIs — no exceptions
Skill: Retro Enforcement
## Purpose
reflect
Learning capture system that extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes. Use after user corrections ("no", "wrong"), praise ("perfect", "exactly"), or when discovering edge cases. Complements .squad/agents/{agent}/history.md and .squad/decisions.md.
notification-routing
Route agent notifications to specific channels by type — prevent alert fatigue from single-channel flooding
iterative-retrieval
Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation. Use when spawning sub-agents to complete scoped work.
error-recovery
Standard recovery patterns for all squad agents. When something fails, adapt — don't just report the failure.
docs-standards
Microsoft Style Guide + Squad-specific documentation patterns
{skill-name}
{what this skill teaches agents}