strategic-compact
Optimizes Claude Code context by suggesting strategic /compact commands based on tool usage and workflow phases.
Install
npx skills add https://github.com/affaan-m/everything-claude-code --skill strategic-compactStats
| Total installs | 1,781 |
| Weekly installs | 1.8K |
| GitHub stars | 112.5K |
| First seen | Jan 22, 2026 |
| Source | @affaan-m/everything-claude-code |
Summary
- Suggests /compact at configurable thresholds (default: 50 tool calls) via PreToolUse hooks on Edit and Write operations
- Provides a decision guide for when to compact across common phase transitions (research to planning, debugging to next feature, etc.)
- Clarifies what persists through compaction (CLAUDE.md, TodoWrite, memory files, git state) versus what's lost (intermediate reasoning, file contents, conversation history)
- Includes token optimization patterns for lazy-loading skills, monitoring context consumption, and detecting duplicate instructions across rules and skill files
Tags
Related skills
| Skill | Installs | vs strategic-compact |
|---|---|---|
| ast-grep | 2,096 | +315 |
| office-automation | 1,967 | +186 |
| karpathy-guidelines | 2,016 | +235 |
| code-simplifier | 1,640 | -141 |
| pua | 1,973 | +192 |
FAQ
- How many installs does strategic-compact have?
- strategic-compact has 1,781 total installs and 1.8K installs this week.
- Where is strategic-compact hosted?
- strategic-compact is published by @affaan-m/everything-claude-code at https://github.com/affaan-m/everything-claude-code.
- How many GitHub stars does strategic-compact have?
- strategic-compact has 112.5K GitHub stars.
- When was strategic-compact first indexed?
- OrangeBot.AI first indexed strategic-compact on Jan 22, 2026.
- How do I install strategic-compact?
- Run: npx skills add https://github.com/affaan-m/everything-claude-code --skill strategic-compact