rohitg00 avatar

Context Optimizer

This is the manual you need when Claude starts feeling slow or forgetting things mid-session. It covers the basics (run /compact at 70% context usage, delegate heavy output to subagents) and the less obvious stuff (each MCP adds overhead to every request, keep it under 10 total). The token efficiency section is especially good: no sycophantic openers, code first, and switching response styles based on whether you're coding versus running agent pipelines. The 40-60% output savings from cutting fluff alone makes it worth reading. If you've ever hit the "dumb zone" at 90% context or burned through budget faster than expected, the quick diagnosis table and task profiles will save you real money.

skills.sh installs
196
GitHub stars
2.9K
last updated
Jun 8, 2026

Install

$ npx -y skills add rohitg00/pro-workflow --skill context-optimizer --agent claude-code

Installs into .claude/skills of the current project.

Files

Context Optimizer

Manage your context window and token budget effectively.

Quick Diagnosis

  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

Optimization Strategies

Immediate

ActionSavesWhen
/compact30-50% contextAt task boundaries
Disable unused MCPs~5% per MCPWhen switching domains
Use subagents for explorationKeeps main context cleanHeavy search/read tasks
Fresh session via /resume100% resetWhen starting unrelated work

Configuration

Set proactive auto-compaction:

{
  "env": {
    "CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "50"
  }
}

MCP Audit

Keep <10 MCPs enabled, <80 tools total. Each MCP adds overhead to every request.

/mcp          # List active servers
# Disable what you're not using

Prompt Engineering for Token Efficiency

Sponsors

Details

Repository
github.com/rohitg00/pro-workflow
Category
Automation & Workflows
First seen
Jun 11, 2026

More from rohitg00/pro-workflow

All 35
1rohitg00 avatarlearn-rulerohitg00/pro-workflowCapture a correction or lesson as a persistent learning rule with category, mistake, and correction. Stores, categorises, and retrieves rules for future session194skills.sh installs
2rohitg00 avatarsession-handoffrohitg00/pro-workflowGenerate a structured handoff document capturing current progress, open tasks, key decisions, and context needed to resume work. Use when ending a session, sayi191skills.sh installs
3rohitg00 avatarcompact-guardrohitg00/pro-workflowSmart context compaction with state preservation. Saves critical files, task progress, and working state before compaction, restores after. Use before manual co189skills.sh installs
4martinholovsky avatarkanidm-expertmartinholovsky/claude-skills-generatorExpert in Kanidm modern identity management system specializing in user/group management, OAuth2/OIDC, LDAP, RADIUS, SSH key management, WebAuthn, and MFA. Deep188skills.sh installs
5rohitg00 avatarinsightsrohitg00/pro-workflowShow session analytics, learning patterns, correction trends, heatmaps, and productivity metrics. Computes stats from project memory and session history. Use wh186skills.sh installs
6cloudai-x avatardesigning-apiscloudai-x/claude-workflow-v2Designs REST and GraphQL APIs including endpoints, error handling, versioning, and documentation. Use when creating new APIs, designing endpoints, reviewing API184skills.sh installs