auto-setup
Auto-detect project type and configure quality gates, permissions, and hooks for a new codebase
Diagnose and fix context window problems.
> /plugin marketplace add rohitg00/pro-workflow > /plugin install pro-workflow@pro-workflow
How it fires
How this command gets triggered: by you, by Claude, or both.
/context-optimizerContext preview
What this command does when you run it.
Diagnose and fix context window problems.
Diagnose and fix context window problems.
1. **Check current usage:**
2. **Run optimization checks:**
**MCP audit:**
/mcp
**CLAUDE.md size:**
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:
{
"env": {
"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "50"
}
}5. **Report** current state and what was optimized.
| Action | Saves | When | |--------|-------|------| | `/compact` | 30-50% context | Task boundaries | | Disable unused MCPs | ~5% per MCP | Switching domains | | Subagent delegation | Keeps main clean | Heavy search/read tasks | | Fresh session via `/resume` | 100% reset | Unrelated work |
---
**Trigger:** Use when sessions feel slow, context is degraded, running out of budget, or before starting a long task.
Claude Code learns from your corrections: self-correcting memory that compounds over 50+ sessions. Context engineering, parallel worktrees, agent teams, and 17 battle-tested skills.
Repo: rohitg00/pro-workflow
Auto-detect project type and configure quality gates, permissions, and hooks for a new codebase
Smart context compaction with state preservation — saves critical state before compact and restores after
Track session costs, understand token spend, and get optimization tips