Works with the AI tools you already use
Agent Context Budget Doctor
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
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.
Details
How to install
Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
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).
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.
Also available in a bundle
Frequently Asked Questions
Browse More Skills

OpenAPI and Request Collection Builder
Turn your API's route and handler code into a spec-compliant OpenAPI 3.1 document and a ready-to-import request collection — paths, referenced schemas, auth, error responses, examples, and a variable-driven collection with the base URL and token wired up. Derived from your code, not invented.
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.
synthesizing-institutional-knowledge
Builds the organizational memory schema your AI agent needs to answer why — capturing decision provenance, causal chains, and event context that embedding-based retrieval permanently discards.
readme-generator
Generates a complete, polished README.md by scanning your actual project structure, dependencies, and code.