Agent skill · Workflow & Productivity

strategic-compact

Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.

vibeevalgithub.com/vibeevalGitHub ↗
claude-codeships scriptsMIT
Install
npx skills add vibeeval/vibecosystem --skill strategic-compact --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 2 KB
Bundled scripts: yes
Path: skills/strategic-compact/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 521
Language: C#

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Why Strategic Compaction?
  2. How It Works
  3. Hook Setup
  4. Configuration
  5. Best Practices
  6. Related
Ships with 1 file
  • suggest-compact.sh
More from vibecosystem
All skills →
About this skill
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.

Keep going