strategic-compact
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
npx skills add vibeeval/vibecosystem --skill strategic-compact --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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: 1. **Tracks tool calls** - Counts tool invocations in session 2. **Threshold detection** - Suggests at configurable threshold (default: 50 calls) 3. **Periodic reminders** - Reminds every 25 calls after threshold ## Hook Setup 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" }] }] } } ``` ## Configurati
- Why Strategic Compaction?
- How It Works
- Hook Setup
- Configuration
- Best Practices
- Related
What does the strategic-compact skill do?
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
How do I install it?
Run `npx skills add vibeeval/vibecosystem --skill strategic-compact --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From vibeeval/vibecosystem, a repository with 521 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
