Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 10% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -45% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -58% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -68% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -42% | 0% |
Suggests manual /compact at strategic points in your workflow rather than relying on arbitrary auto-compaction.
Auto-compaction triggers at arbitrary points:
Strategic compaction at logical boundaries:
The suggest-compact.sh script runs on PreToolUse (Edit/Write) and:
Add to your ~/.claude/settings.json:
json{ "hooks": { "PreToolUse": [{ "matcher": "tool == \"Edit\" || tool == \"Write\"", "hooks": [{ "type": "command", "command": "~/.claude/skills/strategic-compact/suggest-compact.sh" }] }] } }
Environment variables:
COMPACT_THRESHOLD - Tool calls before first suggestion (default: 50)Other measured skills in the registry, with their headline benchmark lift.