strategic-compact
Skill1 starsChanged 10 months agoMITView on GitHub
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
40 other projects use a version of this, 22 of them edited.
Adopted by
Most recently taken up by
- NTPhat0322/claude-skillsedited, first seen Sep 28, 2026
- templetongroup/radiantedited, first seen Sep 17, 2026
- arfar-x/agent-skillsedited, first seen Sep 7, 2026
- best-radar/bradar-everything-claude-codeword for word, first seen Sep 6, 2026
- tarrragon/claude-skillsedited, first seen Sep 1, 2026
- SamuelNDCE/claude-super-skill-libraryedited, first seen Aug 1, 2026
Used with
Projects with it also use kotlin-testing, ralphinho-rfc-pipeline and 9 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
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
FaisalAlqarniSkilldjango-verification
Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.
Also in 13 projects that use this
- +3 more from Infopibe
Other versions40 projects use a version of this.
Word for word · 11
- WorldFlowAI/everything-claude-code★ 4k100% same
- sangrokjung/claude-forge★ 847100% same
- hellangleZ/burn-in-cceverywhere-ralph★ 112100% same
- FaisalAlqarni/sp-ecc★ 9100% same
- xfstudio/skills★ 9100% same
- Lukasbrujula/claude-code-framework★ 4100% same
- XD3an/cc-plus★ 4100% same
- PatriotAgenticLLC/better_claude_skillz★ 3100% same
- steven715/cpp-claude-code★ 2100% same
- zkw15555506767-boop/claude-skills★ 1100% same
1 more not listed
Edited · 22
- xu-xiang/everything-claude-code-zh★ 2k12% same
- loulanyue/awesome-claude-notes★ 27232% same
- cloudnative-co/claude-code-starter-kit★ 15127% same
- tpavanipradeep/everything-claude-code★ 13442% same
- templetongroup/radiant★ 11317% same
- cohen-liel/hivemind★ 11042% same
- Jamkris/everything-gemini-code★ 8789% same
- codelably/harmony-claude-code★ 4318% same
- myths-labs/muse★ 3521% same
- DangQuangSE/team-development-skills★ 1932% same
12 more not listed
Wrote their own version · 7
- mhylle/claude-skills-collection★ 19same name
- jiten-singh-shahi/salesforce-claude-code★ 17same name
- YehudaFrankel/clankbrain★ 16same name
- peopleforrester/claude-dotfiles★ 3same name
- TeamSPWK/nova★ 2same name
- the-hugin/RSIm★ 2same name
- Matheuscara/claude-code★ 1same 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 repository12 other files it gives its agents.
- backend-patternsSkill
- coding-standardsSkill
- configure-eccSkill
- continuous-learningSkill
- continuous-learning-v2Skill
- eval-harnessSkill
- frontend-patternsSkill
- iterative-retrievalSkill
- project-guidelines-exampleSkill
- security-reviewSkill
- tdd-workflowSkill
- verification-loopSkill
The file
We split this skill into the rules it gives an agent
2 rules. 1 is common, 0 are distinctive, and 1 is very specific to this project.
1
Common
Most of the 25 edited versions we read keep these.
0
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
- Common: line 14
No awareness of logical task boundaries
- Very specific: line 32
Add to your ~/.claude/settings.json:
“Common” is measured: kept by at least 6 in 10 of the 25 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
Strategic Compact Skill
Suggests manual /compact at strategic points in your workflow rather than relying on arbitrary auto-compaction.
Why Strategic Compaction?
Auto-compaction triggers at arbitrary points:
- Often mid-task, losing important context
- No awareness of logical task boundaries
- Can interrupt complex multi-step operations
Strategic compaction at logical boundaries:
- After exploration, before execution - Compact research context, keep implementation plan
- After completing a milestone - Fresh start for next phase
- Before major context shifts - Clear exploration context before different task
How It Works
The suggest-compact.sh script runs on PreToolUse (Edit/Write) and:
- Tracks tool calls - Counts tool invocations in session
- Threshold detection - Suggests at configurable threshold (default: 50 calls)
- Periodic reminders - Reminds every 25 calls after threshold
Hook Setup
Add to your ~/.claude/settings.json:
{
"hooks": {
"PreToolUse": [{
"matcher": "tool == \"Edit\" || tool == \"Write\"",
"hooks": [{
"type": "command",
"command": "~/.claude/skills/strategic-compact/suggest-compact.sh"
}]
}]
}
}Configuration
Environment variables:
COMPACT_THRESHOLD- Tool calls before first suggestion (default: 50)
Best Practices
- Compact after planning - Once plan is finalized, compact to start fresh
- Compact after debugging - Clear error-resolution context before continuing
- Don't compact mid-implementation - Preserve context for related changes
- Read the suggestion - The hook tells you when, you decide if
Related
- The Longform Guide - Token optimization section
- Memory persistence hooks - For state that survives compaction
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.

