strategic-compact
Skill1 starsChanged 9 months agoMITView on GitHub
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
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 53 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 53 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
Other versions66 projects use a version of this.
Word for word · 10
- FaisalAlqarni/sp-ecc★ 9100% same
- xfstudio/skills★ 9100% same
- immacualate/claude-forge★ 5100% same
- Lukasbrujula/claude-code-framework★ 4100% same
- XD3an/cc-plus★ 4100% same
- PatriotAgenticLLC/better_claude_skillz★ 3100% same
- zkw15555506767-boop/claude-skills★ 1100% same
- EvanZzhang/claude-configs★ 0100% same
- HABUBUSS/everything-claude-code★ 0100% same
- Samueladewole/claude-skills★ 0100% same
Edited · 47
- affaan-m/ECC★ 246k19% same
- loulanyue/awesome-claude-notes★ 27232% same
- cloudnative-co/claude-code-starter-kit★ 15327% same
- cohen-liel/hivemind★ 10842% same
- tpavanipradeep/everything-claude-code★ 10442% same
- mturac/everything-openai-codex★ 8941% same
- mit-network/everything-claude-code★ 7642% same
- GGGODLIN/gggodlin-cc-harness★ 7328% same
- Fmarzochi/EGC★ 6131% same
- ysyecust/everything-claude-code★ 4430% same
37 more not listed
Wrote their own version · 9
- xu-xiang/everything-claude-code-zh★ 1.9ksame name
- mhylle/claude-skills-collection★ 20same name
- YehudaFrankel/clankbrain★ 16same name
- jiten-singh-shahi/salesforce-claude-code★ 15same name
- peopleforrester/claude-dotfiles★ 3same name
- TeamSPWK/nova★ 2same name
- rhfl04-dfdf/jychoi_everything-claude-code-ko★ 1same name
- MANVENDRA-github/agentry★ 0same name
- RhythmMittal19/claude-config★ 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.
Used alongsideProjects with it also use everything-claude-code, 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.
InfopibeSkilleverything-claude-code
Also in 11 projects that use this
junimnjwSkillralphinho-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
royaluniondesign-sysSkillconfigure-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 9 projects that use this
royaluniondesign-sysSkillcontent-hash-cache-pattern
Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.
Also in 13 projects that use this
InfopibeSkillinvestor-materials
Create and update pitch decks, one-pagers, investor memos, accelerator applications, financial models, and fundraising materials. Use when the user needs investor-facing documents, projections, use-of-funds tables, milestone plans, or materials that must stay internally consistent across multiple fundraising assets.
Also in 32 projects that use this
tpavanipradeepSkillbun-runtime
Bun as runtime, package manager, bundler, and test runner. When to choose Bun vs Node, migration notes, and Vercel support.
Also in 24 projects that use this
- +1 more from Infopibe
In this repository32 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- rules/agents.mdAGENTS.md
- examples/CLAUDE.mdCLAUDE.md
- backend-patternsSkill
- clickhouse-ioSkill
- codemap-templateSkill
- coding-standardsSkill
- continuous-learningSkill
- continuous-learning-v2Skill
- django-patternsSkill
- django-securitySkill
- django-trophySkill
- django-verificationSkill
- eval-harnessSkill
- frontend-patternsSkill
- golang-patternsSkill
- golang-testingSkill
- iterative-retrievalSkill
- java-coding-standardsSkill
- jpa-patternsSkill
- postgres-patternsSkill
- progress-documentationSkill
- project-guidelines-exampleSkill
- python-patternsSkill
- python-testingSkill
- security-reviewSkill
- springboot-patternsSkill
- springboot-securitySkill
- springboot-trophySkill
- springboot-verificationSkill
- trophy-workflowSkill
- verification-loopSkill
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.

