strategic-compact
Skill4 starsChanged 5 days agoMITView on GitHub
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
68 other projects use a version of this, 49 of them edited; 1 new project in the last 4 weeks, against 1 the 4 before.
Adopted by
Steady: 1 new project took it in the last 4 weeks, 1× the 4 weeks before.thin data
Most recently taken up by
- Rojios/everything-claude-codeedited, first seen Nov 8, 2026
- pankaj-mahaur/Agent-Daemonedited, first seen Nov 6, 2026
- myths-labs/museedited, first seen Nov 6, 2026
- TsinHzl/claude-code-configedited, first seen Nov 1, 2026
- renepf/claude-skillsedited, first seen Oct 25, 2026
- davidanthonyn/claude-skillsedited, first seen Oct 20, 2026
Used with
Projects with it also use configure-ecc, 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.
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 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 11 projects that use this
InfopibeSkilleverything-claude-code
Also in 11 projects that use this
TironFoxSkillopenclaw-persona-forge
为 OpenClaw AI Agent 锻造完整的龙虾灵魂方案。根据用户偏好或随机抽卡, 输出身份定位、灵魂描述(SOUL.md)、角色化底线规则、名字和头像生图提示词。 如当前环境提供已审核的生图 skill,可自动生成统一风格头像图片。 当用户需要创建、设计或定制 OpenClaw 龙虾灵魂时使用。 不适用于:微调已有 SOUL.md、非 OpenClaw 平台的角色设计、纯工具型无性格 Agent。 触发词:龙虾灵魂、虾魂、OpenClaw 灵魂、养虾灵魂、龙虾角色、龙虾定位、 龙虾剧本杀角色、龙虾游戏角色、龙虾 NPC、龙虾性格、龙虾背景故事、 lobster soul、lobster character、抽卡、随机龙虾、龙虾 SOUL、gacha。
Also in 5 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 15 projects that use this
loulanyueSkillnuxt4-patterns
Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.
Also in 9 projects that use this
Other versions68 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
- PatriotAgenticLLC/better_claude_skillz★ 3100% same
- mstuder-slalom/everything-claude-code★ 1100% same
- zkw15555506767-boop/claude-skills★ 1100% same
- EvanZzhang/claude-configs★ 0100% same
- HABUBUSS/everything-claude-code★ 0100% same
- Samueladewole/claude-skills★ 0100% same
Edited · 49
- 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
39 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.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
- backend-patternsSkill
- canvas-designSkill
- coding-standardsSkill
- continuous-learningSkill
- find-skillsSkill
- frontend-patternsSkill
- mcp-builderSkill
- planning-with-filesSkill
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 54 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 54 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.

