shell
$ npx -y skills add rohitg00/pro-workflow --agent claude-codeShips with pro-workflow. Installing the plugin gets this command.
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/context-optimizer
Context preview
What this command does when you run it.
Diagnose and fix context window problems.
Stats
Stars2,638
Forks255
LanguageJavaScript
Command definition
context-optimizer.md
# /context-optimizer - Optimize Token Usage Diagnose and fix context window problems. ## Process 1. **Check current usage:** - If > 70% → compact now before quality degrades - If > 90% → compact immediately, you're in the "dumb zone" 2. **Run optimization checks:** **MCP audit:** ```bash /mcp ``` - Keep <10 MCPs enabled, <80 tools total - Disable what you're not actively using **CLAUDE.md size:** - Root CLAUDE.md should be < 60 lines, < 150 max - Move package-specific info to package-level files - Move personal preferences to CLAUDE.local.md 3. **Apply fixes based on findings:** | Problem | Fix | |---------|-----| | High context usage | `/compact` with focus on current task | | Too many MCPs | Disable unused servers | | Bloated CLAUDE.md | Split into modular files | | Heavy exploration in main session | Delegate to subagents | | Vague prompts causing broad searches | Scope prompts with paths and constraints | 4. **Set proactive auto-compaction** if not already configured: ```json { "env": {
