strategic-compact
Skill16 starsChanged 8 months agoMITView on GitHub
Trigger: "should I compact?" or "compact now?" or "context getting long" or when session is large Description: Evaluates whether context should be compacted and guides through safe compaction that preserves all memory. Prevents the context-limit mid-task problem. Allowed Tools: Read, Bash Suggest compacting when ANY of these are true: - Context usage reaches 40% — hard trigger, don't wait for slowdown - Session has 60+ back-and-forth messages - User asks about something already resolved earlier in session - Responses feel…
40 other projects use a version of this.
Adopted by
Most recently taken up by
- NTPhat0322/claude-skillstheir own version, first seen Sep 28, 2026
- templetongroup/radianttheir own version, first seen Sep 17, 2026
- arfar-x/agent-skillstheir own version, first seen Sep 7, 2026
- best-radar/bradar-everything-claude-codetheir own version, first seen Sep 6, 2026
- tarrragon/claude-skillstheir own version, first seen Sep 1, 2026
- SamuelNDCE/claude-super-skill-librarytheir own version, first seen Aug 1, 2026
Used with
Projects with it also use kotlin-testing, ralphinho-rfc-pipeline and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
tpavanipradeepSkillkotlin-testing
Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.
Also in 6 projects that use this
InfopibeSkillralphinho-rfc-pipeline
RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.
Also in 10 projects that use this
mryeastcodeSkillnuxt4-patterns
Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.
Also in 5 projects that use this
saxon-ySkillconfigure-ecc
Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
Also in 12 projects that use this
InfopibeSkillcontent-hash-cache-pattern
Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.
Also in 11 projects that use this
mryeastcodeSkillsanta-method
Multi-agent adversarial verification with convergence loop. Two independent review agents must both pass before output ships.
Also in 6 projects that use this
- +3 more from Infopibe
Other versions40 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 40
- WorldFlowAI/everything-claude-code★ 4ksame name
- xu-xiang/everything-claude-code-zh★ 2ksame name
- sangrokjung/claude-forge★ 847same name
- loulanyue/awesome-claude-notes★ 272same name
- cloudnative-co/claude-code-starter-kit★ 151same name
- tpavanipradeep/everything-claude-code★ 134same name
- templetongroup/radiant★ 113same name
- hellangleZ/burn-in-cceverywhere-ralph★ 112same name
- cohen-liel/hivemind★ 110same name
- Jamkris/everything-gemini-code★ 87same name
30 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 repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- security-checkSkill
- environment-checkSkill
- run-verificationSkill
- refactorSkill
- actSkill
- debug-sessionSkill
- generate-guardsSkill
- check-anthropicSkill
- code-reviewerSkill
- code-reviewSkill
- debug-sessionSkill
- end-sessionSkill
- evolve-checkSkill
- evolveSkill
- fix-bugSkill
- forgetSkill
- frontend-designSkill
- guardSkill
- kit-healthSkill
- learnSkill
- map-codebaseSkill
- modeSkill
- parallel-prototypesSkill
- planSkill
- powershell-safeSkill
- product-riskSkill
- progress-reportSkill
- prototype-hypothesisSkill
- recallSkill
- refactoring-uiSkill
- scan-codebaseSkill
- scan-conventionsSkill
- search-firstSkill
- search-memorySkill
- shadow-codeSkill
- skill-creatorSkill
- smart-resumeSkill
- start-sessionSkill
- tourSkill
- ux-heuristicsSkill
- verification-loopSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 36 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Allowed Tools: Read, Bash
- Distinctive: line 23
Before saving memory to your storage system
- Very specific: line 24
Before running /learn to capture session patterns
- Very specific: line 32
Run /learn to extract lessons to .claude/memory/lessons.md
- Distinctive: line 43
Verify memory loaded by checking that project status was mentioned in first response
- Distinctive: line 44
If memory didn't auto-load: run your session start command manually
- Distinctive: line 52
After compact, full project context available within 1-2 messages
“Common” is measured: kept by at least 6 in 10 of the 36 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
Skill: strategic-compact
Trigger: "should I compact?" or "compact now?" or "context getting long" or when session is large
Description: Evaluates whether context should be compacted and guides through safe compaction that preserves all memory. Prevents the context-limit mid-task problem.
Allowed Tools: Read, Bash
When to Suggest Compaction
Suggest compacting when ANY of these are true:
- Context usage reaches 40% — hard trigger, don't wait for slowdown
- Session has 60+ back-and-forth messages
- User asks about something already resolved earlier in session
- Responses feel slow or repetitive
- A major task just completed naturally (good break point)
- Context limit warning appears
Never compact:
- Mid-task — always finish current task first
- Before saving memory to your storage system
- Before running
/learnto capture session patterns
Steps
Before Compacting:
- Capture session patterns:
- Run
/learnto extract lessons to.claude/memory/lessons.md - Confirm entries were written
- Run
- Save/push memory to your storage system (GitHub, local, etc.)
- Update STATUS.md or equivalent with current progress so it loads on resume
- Confirm with user: "Memory saved. Safe to compact — session will resume with full context."
After Compacting:
- SessionStart hook should auto-load memory (if configured)
- Verify memory loaded by checking that project status was mentioned in first response
- If memory didn't auto-load: run your session start command manually
Notes
- Compaction is safe when memory system is properly set up — that's what it's for
- The PreCompact hook handles state preservation automatically if configured
- After compact, full project context available within 1-2 messages
- Better to compact proactively than to hit context limit mid-task
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.

