# Nap

> Nap is an Agent Skill for agent building published in the CommunityToolkit/Aspire repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Context hygiene — compress, prune, archive .squad/ state

- Skill name: `nap`
- Category: [Agent Building](https://www.openparable.com/skill/agent-building/1)
- Source: https://github.com/CommunityToolkit/Aspire/blob/HEAD/examples/squad/CommunityToolkit.Aspire.Hosting.Squad.AppHost/dev-squad/.squad/templates/skills/nap/SKILL.md
- Repository: CommunityToolkit/Aspire (614 GitHub stars when collected)

## SKILL.md

# 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

---

Source: https://www.openparable.com/skill/agent-building/nap (OpenParable). Cite the canonical URL above.
