Strategic compact
Ultimate Claude Code configuration — 9 agents, 19 skills, 13 templates. Researched from 850+ repos.
npx -y skills add RhythmMittal19/claude-config --skill strategic-compactAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Intelligent context compaction advisor. Use when context exceeds 50% or when switching between major tasks. Guides when and how to compact for maximum context preservation.
SKILL.md
1.5 KB, 296 tokens by cl100k_base, as published. Nobody here has run it
Strategic Compact Skill
When This Activates
You should consider compaction when:
- Context usage exceeds 50% (check /cost)
- Switching between unrelated tasks
- After completing a major milestone
- Before starting a complex new investigation
Decision Tree
At 50% context:
- If current task is nearly done → finish first, then compact
- If starting new task → compact NOW with summary of completed work
- If in middle of debugging → save current hypotheses, then compact
At 70% context:
- MANDATORY compact. No exceptions.
- Before compacting, dump current state to a TODO or scratchpad file
At 85%+ context:
- /clear and restart. Compaction at this point loses too much.
- Use session handoff file for continuity
Compact Instructions Template
When running /compact, use this format:
/compact Preserve: [list key files modified], [current task and progress], [decisions made], [test commands used], [any error messages being investigated]. Discard: [exploration tangents], [rejected approaches], [file contents already committed].
Recovery After Compact
After compaction, immediately:
- Re-read the 2-3 most important files for current task
- Check git status to see what was changed
- Run tests to confirm current state
- Resume from where compaction happened