agent-teams
Coordinate multiple Claude Code sessions as a team — lead + teammates with shared task lists, mailbox messaging, and file-lock claiming. Patterns for team…
Optimize token usage and context management. Use when sessions feel slow, context is degraded, or you're running out of budget.
$ npx -y skills add rohitg00/pro-workflow --skill context-optimizer --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/context-optimizerContext preview
The summary Claude sees to decide when to auto-load this skill.
Optimize token usage and context management. Use when sessions feel slow, context is degraded, or you're running out of budget.
name: context-optimizer description: Optimize token usage and context management. Use when sessions feel slow, context is degraded, or you're running out of budget. user-invocable: true
Manage your context window and token budget effectively.
1. Run `/context` to check current usage 2. If > 70% → compact now before it degrades 3. If > 90% → you're in the "dumb zone", compact immediately
| Action | Saves | When | |--------|-------|------| | `/compact` | 30-50% context | At task boundaries | | Disable unused MCPs | ~5% per MCP | When switching domains | | Use subagents for exploration | Keeps main context clean | Heavy search/read tasks | | Fresh session via `/resume` | 100% reset | When starting unrelated work |
Set proactive auto-compaction:
{
"env": {
"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "50"
}
}Keep <10 MCPs enabled, <80 tools total. Each MCP adds overhead to every request.
/mcp # List active servers # Disable what you're not using
Heavy operations that generate lots of output should go to subagents:
The main session stays clean while subagents handle the volume.
| Phase | Target Usage | Action If Over | |-------|-------------|----------------| | Planning | < 20% | Keep plans concise | | Implementation | < 60% | Compact between files | | Testing | < 80% | Delegate to subagent | | Review | < 90% | Start fresh session |
Switch response style based on context:
Signs:
Fix: 1. Manual `/compact` 2. If still bad: new session with `/resume` 3. For recurring issues: reduce CLAUDE.md size, disable MCPs
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
Coordinate multiple Claude Code sessions as a team — lead + teammates with shared task lists, mailbox messaging, and file-lock claiming. Patterns for team…
Auto-configure quality gates, hooks, and settings for a new project. Detects project type and sets up appropriate tooling. Use when onboarding a new codebase.
Decompose large-scale changes into independent units and spawn parallel agents in isolated worktrees. Use for migrations, refactors, codemods, and any change…
Capture a user-reported defect as a durable GitHub issue written in the project's own domain language. Explores the codebase in parallel for context but never…
Smart context compaction with state preservation. Saves critical files, task progress, and working state before compaction, restores after. Use before manual…
Master the four operations of context engineering — Write, Select, Compress, Isolate. Manage token budgets, compaction strategies, and context partitioning to…