compact
Skill64 starsChanged 2 months agoMITView on GitHub
Flush important session context to daily log (manual memory flush). Does NOT invoke native /compact. Triggers on /compact, /agent:compact, /flush, "guarda memoria", "flush".
12 other projects use a version of this.
Adopted by
Most recently taken up by
- pickleshell/next-level-agenttheir own version, first seen Nov 8, 2026
- Kali-Decoder/Midnight-Skillstheir own version, first seen Oct 27, 2026
- neoforge-dev/forgetheir own version, first seen Oct 13, 2026
- krkn-s/ai-workspacetheir own version, first seen Oct 13, 2026
- opelpleple/meta-skillstheir own version, first seen Oct 11, 2026
- PrimeIntellect-ai/prime-agenttheir own version, first seen Oct 8, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- PrimeIntellect-ai/prime-agent★ 23ksame name
- Kali-Decoder/Midnight-Skills★ 18same name
- pickleshell/next-level-agent★ 7same name
- atharh/career-corpus-kit★ 4same name
- madebypx/PXOS★ 3same name
- ChasePassion/skills★ 1same name
- krkn-s/ai-workspace★ 1same name
- Thingscorp/skills★ 1same name
- tusharpamnani/Midnight-Skills★ 1same name
- chanhyeok-made/ccx★ 0same name
2 more not listed
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 repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- aboutSkill
- channelsSkill
- createSkill
- cronsSkill
- doctorSkill
- heartbeatSkill
- helpSkill
- importSkill
- liveSkill
- messagingSkill
- newSkill
- scopeSkill
- serviceSkill
- settingsSkill
- skill-managerSkill
- statusSkill
- updateSkill
- usageSkill
- voiceSkill
- whoamiSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 75
If nothing substantive to save, say so: "Nothing important to save right now" (or in user's language).
“Common” is measured: kept by at least 6 in 10 of the 11 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
/compact — Manual memory flush
Save the important parts of the current conversation to memory/YYYY-MM-DD.md. This is a manual version of what the PreCompact hook does automatically.
Important — architectural honesty
- On CLI: The native
/compactcompacts Claude Code's context. A skill CANNOT invoke it. If you run/compactin the REPL, the native one runs (and the PreCompact hook fires to save memory automatically). This skill is only useful if you want a MANUAL flush WITHOUT triggering actual compaction. - On messaging channels (WhatsApp, Telegram, etc.): There is NO native compact. Each message is its own turn. This skill just saves the recent exchange to memory — useful as an explicit "save this" checkpoint.
This skill does NOT say "now run /compact" (that would cause a loop if the user pastes it again). It just saves and confirms.
Steps
- Detect surface.
- Scan the current session for things worth remembering:
- Decisions made
- Facts the user shared
- Tasks discussed
- Problems solved
Append to daily log:
DATE=$(date +%Y-%m-%d) TIME=$(date +%H:%M)## Manual flush (<TIME>) ### Decisions - ... ### Facts learned - ... ### Open items - ...- Respond briefly per surface:
CLI
✅ Flush complete → memory/<DATE>.md
If you want Claude Code to also compact the context, run the native /compact.
(The PreCompact hook already saves memory automatically when that happens.)✅ *Saved* → memory/<DATE>.mdTelegram
✅ **Saved** → memory/<DATE>.mdIMPORTANT: Respond in the user's language. If the user writes in Spanish, translate these templates to Spanish on the fly. Do the same for any other language. The templates above are English defaults — adapt them.
- Do NOT say "now run /compact" — that causes a loop. The user decides if they want to run the native command.
Important
- APPEND-only.
- If nothing substantive to save, say so: "Nothing important to save right now" (or in user's language).
- The native
/compactin CLI is the real compaction. This skill is just the memory-save part, usable independently. - This is the agent-aware memory-flush equivalent.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

