Audit Claude Code context usage and get prioritized token-saving recommendations.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "context-budget" skill from askskill: 1. Download https://raw.githubusercontent.com/affaan-m/ECC/main/skills/context-budget/SKILL.md 2. Save it as ~/.claude/skills/context-budget/SKILL.md 3. Reload skills and tell me it's ready
Audit context usage in the current Claude Code session across agents, skills, rules, MCP servers, and CLAUDE.md. Summarize estimated tokens by component type and identify the biggest consumers.
A context budget report with estimated usage by component type and the main sources of bloat.
Based on the current setup, find redundant components, bloated descriptions, heavy agents, and excessive MCP tools, then prioritize optimization recommendations by expected token savings.
A prioritized optimization list describing each issue and the context space that could be reclaimed.
Estimate the total context overhead and remaining context headroom in the current Claude Code session, then judge whether it is suitable to add more skills or MCP servers.
An evaluation of remaining context headroom and whether there is room to add more components.
Developers or DevOps users can use it when sessions feel sluggish or output quality drops, auditing loaded components to find which agents, skills, rules, or MCP settings are causing context bloat.
When a team plans to add new skills, agents, or MCP servers, it can estimate current context headroom and help decide whether there is room to expand further.
If many skills, agents, or rules were recently added, it can identify duplicate content, bloated descriptions, and components better activated on demand to help streamline the setup.
The README describes how Context Budget analyzes token overhead across loaded Claude Code components, including agents, skills, rules, MCP servers, and CLAUDE.md files. It inventories files and configuration, estimates usage, classifies components by necessity, detects issues like bloated descriptions, redundant components, too many MCP tools, and verbose rules, then produces a context budget report with actionable optimization recommendations.
Analyze token overhead across every loaded component in a Claude Code session and surface actionable optimizations to reclaim context space.
/context-budget command (this skill backs it)Scan all component directories and estimate token consumption:
Agents (agents/*.md)
description frontmatter lengthSkills (skills/*/SKILL.md)
.agents/skills/ — skip identical copies to avoid double-countingRules (rules/**/*.md)
MCP Servers (.mcp.json or active MCP config)
gh, git, npm, supabase, vercel)CLAUDE.md (project + user-level)
Sort every component into a bucket:
| Bucket | Criteria | Action |
|---|---|---|
| Always needed | Referenced in CLAUDE.md, backs an active command, or matches current project type | Keep |
| Sometimes needed | Domain-specific (e.g. language patterns), not referenced in CLAUDE.md | Consider on-demand activation |
| Rarely needed | No command reference, overlapping content, or no obvious project match | Remove or lazy-load |
Identify the following problem patterns:
Produce the context budget report:
Context Budget Report
═══════════════════════════════════════
Total estimated overhead: ~XX,XXX tokens
Context model: Claude Sonnet (200K window)
Effective available context: ~XXX,XXX tokens (XX%)
Component Breakdown:
┌─────────────────┬────────┬───────────┐
│ Component │ Count │ Tokens │
├─────────────────┼────────┼───────────┤
│ Agents │ N │ ~X,XXX │
│ Skills │ N │ ~X,XXX │
│ Rules │ N │ ~X,XXX │
│ MCP tools │ N │ ~XX,XXX │
│ CLAUDE.md │ N │ ~X,XXX │
└─────────────────┴────────┴───────────┘
WARNING: Issues Found (N):
[ranked by token savings]
Top 3 Optimizations:
1. [action] → save ~X,XXX tokens
2. [action] → save ~X,XXX tokens
3. [action] → save ~X,XXX tokens
Potential savings: ~XX,XXX tokens (XX% of current overhead)
In verbose mode, additionally output per-file token counts, line-by-line breakdown of the heaviest files, specific redundant lines between overlapping components, and MCP tool list with per-tool schema size estimates.
Basic audit
User: /context-budget
Skill: Scans setup → 16 agents (12,400 tokens), 28 skills (6,200), 87 MCP tools (43,500), 2 CLAUDE.md (1,200)
Flags: 3 heavy agents, 14 MCP servers (3 CLI-replaceable)
Top saving: remove 3 MCP servers → -27,500 tokens (47% overhead reduction)
Verbose mode
…
It audits context window consumption in a Claude Code session across loaded components such as agents, skills, rules, MCP servers, and CLAUDE.md, then produces actionable token-saving recommendations.
According to the excerpt, it inventories component files and configuration, estimates token overhead, and flags issues such as oversized files, redundant content, too many MCP tools, and CLAUDE.md bloat.
It focuses on Claude Code context budget rather than system resources or runtime performance. The goal is to find which prompts, rules, and tool configurations consume context window space and prioritize optimizations.
Check live messages, recover recent codes, and verify the exact source inspected.
Create, configure, and refine Hookify rules and syntax patterns.
Review Solidity AMM, liquidity pool, and swap flow security risks.
Refine retrieved context iteratively to improve subagent understanding and output quality.
Conduct multi-source web research and produce cited, source-attributed reports.
Manage Uncloud clusters for deployment, ingress, scaling, and operations troubleshooting.
Helps Claude Code detect context drift, dedupe rereads, and analyze token usage.
Audit your environment and recommend the best Claude Code setup
Audit and observe Claude Code transcripts locally for governance at turn level.
Monitor Claude usage live, predict limits, and control costly AI coding actions.
Optimize Claude Code token usage to cut costs and improve development efficiency.
Audit designs against 19 professional rules and get actionable improvements.