Agent Context Budget Doctor — Diagnose and Fix Why Your Agent Is Slow, Expensive, or Forgetful
Diagnose and fix context-window problems in your agent setup. Inventories everything that loads — memory files, skills, MCP tool definitions, hooks — estimates where the budget goes, maps your symptoms to causes, and prescribes concrete trims, restructures, and session habits, rewriting the files where that's the fix.
- Inventory total startup token usage across memory files and MCP tools.
- Identify why an agent loses track of the plan after session compaction.
- Rewrite bloated memory files to prioritize active project rules.
$14
· or 70 creditsSecure checkout via Stripe
Included in download
- Inventory total startup token usage across memory files and MCP tools.
- Identify why an agent loses track of the plan after session compaction.
- file_read, file_write automation included
- Ready for AGENTS.md
PubsProToolkit builds rigor-first skills for AI agents — they write your docs and content properly, then adversarially r…
Media gallery
See it in action
You say
Audit my CLAUDE.md and list of active MCP servers. The agent is getting expensive and forgets the project roadmap after about 10 messages.
Your agent does
Analysis shows your 'startup rent' consumes 18k tokens. The 'aws-sdk' MCP server contributes 12k tokens via 40 unused tool definitions.
Prescription:
- Move the 4-page roadmap from CLAUDE.md to roadmap.md; load it only when updating status.
- Disable the 'aws-sdk' server for this repo.
Agent Context Budget Doctor — Diagnose and Fix Why Your Agent Is Slow, Expensive, or Forgetful
Diagnose and fix context-window problems in your agent setup. Inventories everything that loads — memory files, skills, MCP tool definitions, hooks — estimates where the budget goes, maps your symptoms to causes, and prescribes concrete trims, restructures, and session habits, rewriting the files where that's the fix.
$14
· or 70 creditsSecure checkout via Stripe
Also available in a bundle
Included in download
- Inventory total startup token usage across memory files and MCP tools.
- Identify why an agent loses track of the plan after session compaction.
- file_read, file_write automation included
- Ready for AGENTS.md
- Instant install
Media gallery
See it in action
You say
Audit my CLAUDE.md and list of active MCP servers. The agent is getting expensive and forgets the project roadmap after about 10 messages.
Your agent does
Analysis shows your 'startup rent' consumes 18k tokens. The 'aws-sdk' MCP server contributes 12k tokens via 40 unused tool definitions.
Prescription:
- Move the 4-page roadmap from CLAUDE.md to roadmap.md; load it only when updating status.
- Disable the 'aws-sdk' server for this repo.
About This Skill
An agent's context window is a fixed budget, and most setups spend it like they haven't looked at the bill: a memory file that grew by accretion, a dozen always-loaded skills, MCP servers whose tool definitions cost tens of thousands of tokens before the first request, hooks that log every event — and then the actual work arrives to find the room half full. The symptoms are familiar: instructions ignored mid-session, quality that degrades as the conversation grows, surprise costs, and compaction that eats the plan. Agent Context Budget Doctor treats it like a clinician. Give it your CLAUDE.md or AGENTS.md, your skill list, MCP config, and hooks, plus the symptoms, and it produces a token-budget breakdown with the hogs flagged, a diagnosis mapping each symptom to its cause, and prescriptions ordered by payoff — including the rewritten memory file when trimming is the fix, a durable-state pattern that makes compaction a non-event, and the relapse-prevention habits that keep the setup lean. The download includes three reference files: the context-budget worksheet, the symptom-to-diagnosis guide, and the trimming playbook. It audits what you provide; it does not execute your agent or measure live sessions, and token figures are estimates. Works with Claude Code, Cursor, Codex CLI, Gemini CLI, and any SKILL.md agent.
Use Cases
- Inventory total startup token usage across memory files and MCP tools.
- Identify why an agent loses track of the plan after session compaction.
- Rewrite bloated memory files to prioritize active project rules.
- Reduce recurring session costs by pruning unused tool definitions.
Known Limitations
Token figures are estimates derived from the files and config you provide, not exact billing metrics — real usage varies by model, tokenizer, and how a session unfolds. This skill audits what you give it; it does not execute your agent, attach to a running session, or measure live token spend, so its diagnosis is only as complete as the files and symptoms you supply. Compaction behavior and startup costs differ across harnesses (Claude Code, Cursor, and others), so some prescriptions may need adapting to your setup. The rewritten files and trims are recommendations to review and test — always confirm nothing essential was removed before relying on them. It reflects context-engineering practices as understood at the time of authoring and does not update itself or monitor changes to any platform.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/agent-context-budget-doctor-diagnose-and-fix-why-your-agent-is-slow-expensive-or-forgetful -o /tmp/agent-context-budget-doctor-diagnose-and-fix-why-your-agent-is-slow-expensive-or-forgetful.zip && unzip -o /tmp/agent-context-budget-doctor-diagnose-and-fix-why-your-agent-is-slow-expensive-or-forgetful.zip -d ~/.claude/skills && rm /tmp/agent-context-budget-doctor-diagnose-and-fix-why-your-agent-is-slow-expensive-or-forgetful.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Early access skill
Be the first to review this skill.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
File Scopes
This skill reads the config and files you provide — CLAUDE.md/AGENTS.md, skill list, MCP config, hooks — plus its own bundled reference templates, and writes a diagnosis report and rewritten/optimized files. It does not run shell commands, open a browser, make network calls, or read environment variables, it connects to no external hosts, and it does not attach to or measure a live agent session (token figures are estimates from the files you supply).
Tags
Audits the config and files you provide (CLAUDE.md/AGENTS.md, skill list, MCP config, hooks) and writes a diagnosis plus rewritten files. Runs in any SKILL.md-compatible agent (Claude Code, Cursor, Codex CLI, Gemini CLI). No runtime, API key, or install required, and it does not attach to or measure a live session — token figures are estimates from the files you supply.
Creator
PubsProToolkit builds rigor-first skills for AI agents — they write your docs and content properly, then adversarially review them to catch what's wrong before it ships. The result: cleaner output and a hard quality gate in one toolkit. Built by a CMPP-certified, PhD medical writer who brings regulated-industry standards to developer docs, content, compliance, and research integrity.
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills

inline-comment
Best way to steer your agents, effortlessly.
skill-router-2
Automatically detect, load, and stack the perfect skills combo for any user request.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.

Cinematic Landing Page Builder
Turn any business URL into a high-end animated landing page with 4K AI assets and GSAP animations via Cloudflare.