context-optimizer
Optimize token usage and context management. Use when sessions feel slow, context is degraded, or you're running out of budget.
Before you install
- Last update
- Files in folder
- 1
- Scripts
- No script files found
- SKILL.md size
- 3.4 KB (about 875 tokens of context each time it loads)
- License
- No license file
- Source on GitHub
- rohitg00/pro-workflow
Skills are plain text instructions the agent follows, sometimes with scripts. Check the source, prefer repositories with many installs and stars, and read any script it ships.
Install
npx skills add rohitg00/pro-workflow@context-optimizerRuns in a terminal with Node.js 18 or newer. Add -y to skip the prompts and -g to install for every project instead of this one.
Install for your agent
npx skills add rohitg00/pro-workflow@context-optimizer --agent claude-code -y- Project install writes to
.claude/skills/context-optimizer- Global install writes to
~/.claude/skills/context-optimizer
Start a new session afterwards so the agent picks the skill up. In Claude Code you can also call it directly with /context-optimizer.
What it does
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 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 Configuration Set proactive auto-compaction: MCP…
Excerpt from the skill's own SKILL.md. Read the full file on GitHub before installing: skills run with your agent's permissions.
Categories
Related skills
- token-efficiency
rohitg00/pro-workflow
Reduce token waste by 40-60% through anti-sycophancy rules, tool-call budgets, one-pass coding, task profiles, and read-before-write enforcement. Inspired by drona23/claude-token-efficient.
- pro-workflow
rohitg00/pro-workflow
Complete AI coding workflow system. Orchestration patterns, 18 hook events, 8 agents, cross-agent support, reference guides, and searchable learnings. Works with Claude Code, Cursor, and 32+ agents.
- wrap-up
rohitg00/pro-workflow
End-of-session ritual that audits changes, runs quality checks, captures learnings, and produces a session summary. Use when saying "wrap up", "done for the day", "finish coding", or ending a coding session.
- deslop
rohitg00/pro-workflow
Remove AI-generated code slop, unnecessary comments, and over-engineering from the current branch diff. Cleans up boilerplate, simplifies abstractions, strips defensive code, and in skill-file mode lints SKILL.md files for quality. Use when cleaning up code, simplifying, removing boilerplate, before committing, or when reviewing a skill before promoting it.
- learn-rule
rohitg00/pro-workflow
Capture a correction or lesson as a persistent learning rule with category, mistake, and correction. Stores, categorises, and retrieves rules for future sessions. Use after mistakes or when the user says "remember this", "don't forget", "note this", or "learn from this".
- session-handoff
rohitg00/pro-workflow
Generate a structured handoff document capturing current progress, open tasks, key decisions, and context needed to resume work. Use when ending a session, saying "continue later", "save progress", "session summary", or "pick up where I left off".