/toolbelt:context-budgetfrom toolbelt
Audits Claude Code context window consumption across custom agents, skills, MCP servers, and CLAUDE.md rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations.
Ships in toolbelt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyze token overhead across every loaded component in a Claude Code session and surface actionable optimizations to reclaim context space. This is a manual audit performed live in the session — there is no background job or log file backing it; every count below comes from reading the actual files under ~/.claude (and any project-level .claude/) at scan time.
Scan all component directories and estimate token consumption:
Custom agents (~/.claude/agents/*.md, plus any project .claude/agents/*.md)
description frontmatter lengthSkills (~/.claude/skills/*/SKILL.md, plus project .claude/skills/*/SKILL.md)
description triggers) — these compete for the same activation and inflate the skill-list context togetherCLAUDE.md rules (project + user-level, e.g. ~/.claude/CLAUDE.md and any project CLAUDE.md chain)
MCP Servers (.mcp.json, or servers registered in ~/.claude.json under a project's mcpServers)
gh, git, npm, etc.)Plugins (~/.claude/plugins/installed_plugins.json and their skills//agents/ contents)
Sort every component into a bucket:
| Bucket | Criteria | Action |
|---|---|---|
| Always needed | Referenced in CLAUDE.md, backs an active workflow, or matches current project type | Keep |
| Sometimes needed | Domain-specific, not referenced in CLAUDE.md | Consider on-demand activation / narrower trigger description |
| Rarely needed | No clear trigger match, overlapping content, or no obvious project fit | Remove or hand off to config-gc |
Identify the following problem patterns:
Produce the context budget report:
Context Budget Report
═══════════════════════════════════════
Total estimated overhead: ~XX,XXX tokens
Context model: Claude (current session model's window)
Effective available context: ~XXX,XXX tokens (XX%)
Component Breakdown:
┌─────────────────┬────────┬───────────┐
│ Component │ Count │ Tokens │
├─────────────────┼────────┼───────────┤
│ Custom agents │ N │ ~X,XXX │
│ Skills │ N │ ~X,XXX │
│ MCP tools │ N │ ~XX,XXX │
│ CLAUDE.md │ N │ ~X,XXX │
└─────────────────┴────────┴───────────┘
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 the MCP tool list with per-tool schema size estimates.
Basic audit
User: audit my context budget
Skill: Scans setup → 5 custom agents (2,100 tokens), 12 skills (5,800), N MCP tools, 1 CLAUDE.md (400)
Flags: any heavy agent (>200 lines), any MCP server wrapping a CLI tool already usable via Bash
Top saving: [specific component] → -X,XXX tokens
Pre-expansion check
User: I want to add 5 more MCP servers, do I have room?
Skill: Current overhead X% → adding 5 servers (~N tools) would add ~X,000 tokens → pushes to Y% overhead
Recommendation: [specific trim] first to stay under a healthy margin
words × 1.3 for prose, chars / 4 for code-heavy filesThe same method applies to a Codex CLI setup: swap ~/.claude/agents/ for any Codex sub-agent definitions, ~/.claude/skills/ for ~/.codex/skills/*/SKILL.md (note Codex skills also carry an agents/openai.yaml — count it too, it's small but not free), and CLAUDE.md for AGENTS.md / ~/.codex/config.toml. Codex doesn't expose an MCP-tool-count table the same way Claude Code does — approximate by listing configured MCP servers in config.toml and counting their advertised tools if known.
config-gc — once this skill identifies a rarely-needed or redundant component, config-gc is the confirm-each-deletion workflow to actually remove it.skill-stocktake — audits skill quality (is this skill any good); context-budget audits skill cost (how many tokens does it cost every session). Run both — a skill can pass one and fail the other.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jh3779/agent-toolbelt-public --plugin toolbelt40 skills in this plugin
/agent-self-evaluationUse after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions./architecture-audit프로젝트의 설계(데이터/스키마 생명주기, API·인터페이스 계약, 상태 머신, 실패·경계 처리, 결합도·확장성, 신뢰 경계)가 얼마나 견고한지 근거와 함께 감사하는 스킬. structure-audit(파일·계층 조직)과 다르다 — 이 스킬은 "어디에 있는가"가 아니라 "이 모델링이 맞는가"를 본다. 코드 수정 없이 조사·보고만 한다. Triggers - "설계 감사", "아키텍처 감사", "설계 검토", "이 스키마 설계 괜찮은지", "API 계약 검토", "이 상태 머신 맞게 짰는지", "design audit", "architecture review", "schema design review"/article-writingWrite articles, guides, blog posts, tutorials, newsletter issues, and other long-form content in a distinctive voice derived from supplied examples or brand guidance. Use when the user wants polished written content longer than a paragraph, especially when voice consistency, structure, and credibility matter.Other plugins' skills for the same job