context-compressor
Skill0 starsChanged 2 months agoMITView on GitHub
Write short summarization checkpoints (goal, decisions+reasons, state, open threads, memory keys) to survive context pressure. Use when a session is long, before compaction or risky multi-step runs, at task boundaries, or before handoff.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- openamer-max/max-scriptstheir own version, first seen Nov 29, 2026
- zedarvates/frugal-skillstheir own version, first seen Nov 8, 2026
- lihao-24/claude-skillstheir own version, first seen Oct 25, 2026
- fatih-developer/fth-skillstheir own version, first seen Oct 13, 2026
- toonight/get-shit-done-for-antigravitytheir own version, first seen Oct 8, 2026
- cyfung1031/skillstheir own version, first seen Jun 17, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- toonight/get-shit-done-for-antigravity★ 952same name
- fatih-developer/fth-skills★ 7same name
- cyfung1031/skills★ 2same name
- openamer-max/max-scripts★ 2same name
- zedarvates/frugal-skills★ 1same name
- lihao-24/claude-skills★ 0same name
- PengEjeen/claude_skills★ 0same 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 repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentkit-auditSkill
- chart-designSkill
- context-budgetSkill
- daily-standupSkill
- data-architectSkill
- data-eng-routerSkill
- data-quality-standardsSkill
- data-storytellingSkill
- debug-loopSkill
- doc-standardsSkill
- ext-archifySkill
- ext-awsSkill
- ext-azureSkill
- ext-cli-opsSkill
- ext-codegraphSkill
- ext-databricksSkill
- ext-diagramsSkill
- ext-gap-discoverySkill
- ext-gcpSkill
- ext-hallmarkSkill
- ext-meta-museSkill
- ext-reaSkill
- ext-security-auditSkill
- ext-seoSkill
- ext-slidesSkill
- ext-systems-designSkill
- ext-ui-uxSkill
- frontend-motion-3dSkill
- genai-engineeringSkill
- humanizerSkill
- mcp-security-reviewSkill
- meeting-to-actionsSkill
- memorySkill
- memory-syncSkill
- ml-lifecycleSkill
- orchestrateSkill
- pipeline-scaffoldSkill
- prompt-enhancerSkill
- pr-reviewSkill
- session-insightsSkill
- setup-guardianSkill
- skill-forgeSkill
- smart-navigatorSkill
- spec-writerSkill
- token-saverSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Before compaction (while you still have full context, not at the warning).
- Distinctive: line 25
Before a risky multi-step run (migrations, refactors, bulk edits).
- Distinctive: line 27
Before handing off (see Handoff format).
- Distinctive: line 41
Keep: decisions + reasons, file paths, identifiers (PR numbers, keys, order codes), error signatures, current state, open threads + next …
- Distinctive: line 52
Write it before context gets tight, not when the warning fires.
- Very specific: line 53
Use stable canonical keys: proj.<name>.checkpoint.
- Distinctive: line 71
No transcripts, no history, no speculation.
“Common” is measured: kept by at least 6 in 10 of the 3 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
Context Compressor
Checkpoints are resumption kits, not logs. A good one lets the next
session act without re-reading history. The blank template lives in
reference/template.md; scripts/checkpoint.py render prints it and
scripts/checkpoint.py lint <file> enforces it.
Procedure
- Render the blank:
python3 scripts/checkpoint.py render > checkpoint.md. - Fill each section from current state (see anatomy below); cite paths, don't paste content.
- Lint:
python3 scripts/checkpoint.py lint checkpoint.md; fix and repeat until clean (max 3 attempts, then report what still fails). - Save under
proj.<name>.checkpoint, replacing the previous one.
When to checkpoint
- Before compaction (while you still have full context, not at the warning).
- Before a risky multi-step run (migrations, refactors, bulk edits).
- At task boundaries.
- Before handing off (see Handoff format).
Checkpoint anatomy
Target: < 40 lines. Required sections (lint enforces these):
- Goal — one line: the outcome this workstream is driving toward.
- Decisions — bullets, each with its reason.
- State —
Done:list andIn flight:list, artifacts cited. - Open threads — unresolved items, each with a concrete
→ next:action. - Memory keys touched — canonical keys, what changed and why.
Keep vs. drop
Keep: decisions + reasons, file paths, identifiers (PR numbers, keys, order codes), error signatures, current state, open threads + next actions, constraints handed down. Drop: transcripts, dead-end explorations, raw tool output, repeated confirmations, resolved threads, speculation.
The test: if you can only resume by re-reading the transcript, the
checkpoint failed. See reference/keep-drop.md for the table.
Compaction hygiene
- Write it before context gets tight, not when the warning fires.
- Use stable canonical keys:
proj.<name>.checkpoint. One checkpoint per workstream. - Supersede, don't append. Rewriting one checkpoint replaces the old one; appending versions makes every future read pay for history.
- Lint it:
python3 scripts/checkpoint.py lint checkpoint.md. Limit 60 lines; aim for 40.
Handoff format
Compress a checkpoint into a subagent brief by dropping everything but:
Goal: <one line>
Constraints: <hard limits — what NOT to do>
State: <done / in flight, artifact paths only>
Next: <the single action the subagent should take first>No transcripts, no history, no speculation. The brief fits in a single task message; the subagent re-derives the rest from the repo.
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.

