nap
Skill4 starsChanged 6 months agoApache-2.0View on GitHub
Context compactor — prunes old sagaflow runs, archives stale memory files, compacts MEMORY.md indexes, compresses aimee journals. Like Squad's `squad nap` but for our Claude Code setup.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- github/squadtheir own version, first seen Nov 8, 2026
- microsoft/github-vteam-industry-demostheir own version, first seen Oct 25, 2026
- github/gh-awtheir own version, first seen May 27, 2026
- Azure/apiops-clitheir own version, first seen Apr 27, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- github/gh-aw★ 5.6ksame name
- github/squad★ 3.4ksame name
- Azure/apiops-cli★ 32same name
- microsoft/github-vteam-industry-demos★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository57 other files it gives its agents.
- autopilotSkill
- build-python-librarySkill
- build-temporalSkill
- canon-design-reviewSkill
- canon-pr-reviewSkill
- canon-reviewSkill
- ccr-modelsSkill
- ccr-runSkill
- chartSkill
- ci-health-reportSkill
- code-quality-trendsSkill
- competitive-matrixSkill
- councilSkill
- create-skillSkill
- deep-debug-ensemble-v1Skill
- deep-debugSkill
- deep-designSkill
- deep-ideaSkill
- deep-planSkill
- deep-qa-ensemble-v1Skill
- deep-qaSkill
- deep-researchSkill
- dependency-auditSkill
- deploy-status-reportSkill
- develop-board-gameSkill
- diagramSkill
- docxSkill
- dora-lite-reportSkill
- find-skillSkill
- flaky-test-diagnoserSkill
- gap-finderSkill
- gen-crash-testSkill
- gen-smokeSkill
- goal-managerSkill
- init-github-repoSkill
- loop-until-doneSkill
- magic-fetchSkill
- ml-pipeline-reportSkill
- monitorSkill
- pipeline-health-reportSkill
- platform-friction-detectorSkill
- pptxSkill
- prod-readinessSkill
- prompt-clash-ensembleSkill
- prompt-clashSkill
- retrospectSkill
- slack-digestSkill
- slidesSkill
- specSkill
- sprint-retroSkill
- tableSkill
- team-temporalSkill
- timelineSkill
- update-stop-gateSkill
- user-activity-reportSkill
- vc-gauntletSkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
When invoked, run the nap script:
- Very specific: line 24
If the user says --dry-run or "dry run" or "what would it do": add --dry-run
- Very specific: line 25
If the user says --deep or "deep" or "aggressive": add --deep
- Very specific: line 26
If no flags specified: run with --dry-run first, show the report, then run for real
- Very specific: line 37
Run with --dry-run first unless the user explicitly said to just do it
- Very specific: line 39
If dry-run, ask once: "Run it for real?" — then execute without --dry-run
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
nap
Compact Claude Code context state to free disk and reduce token load.
Usage
When invoked, run the nap script:
python3 ~/code/npow-dotfiles/scripts/nap.py [flags]Flags from user args
- If the user says
--dry-runor "dry run" or "what would it do": add--dry-run - If the user says
--deepor "deep" or "aggressive": add--deep - If no flags specified: run with
--dry-runfirst, show the report, then run for real
What it does
- PRUNE — deletes sagaflow run dirs older than 7 days (3 with --deep)
- COMPACT — removes dead pointers from MEMORY.md index files
- ARCHIVE — moves memory files not touched in 30 days (14 with --deep) to
archive/subdirs - COMPRESS — archives old aimee journal entries (>7 days or >50KB; >3 days or >20KB with --deep)
Workflow
- Run with
--dry-runfirst unless the user explicitly said to just do it - Show the report output to the user
- If dry-run, ask once: "Run it for real?" — then execute without
--dry-run - Show the final report
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

