Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Suggests manual /compact at logical task boundaries via a PreToolUse hook that counts tool calls.
Use this skill ↓55% 95%+41 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 12 of 22 without it.
After the initial compaction suggestion is triggered, at what recurring tool call interval will follow-up reminders appear if context is not compacted?
The output specifies every 25 tool calls for repeating reminders
3 of 3 safety checks passed
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:
{
"hooks": {
"PreToolUse": [{
"matcher": "tool == \"Edit\" || tool == \"Write\"",
"hooks": [{
"type": "command",
"command": "~/.claude/skills/strategic-compact/suggest-compact.sh"
}]
}]
}
}
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.