/tokendoctor:auditfrom tokendoctor
Audits Claude Code configuration for wasteful or ineffective settings. Checks project config, memory, instruction files, and docs to identify token waste and silent failures.
Ships in tokendoctor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Audit the Claude Code configuration for the current project (or $ARGUMENTS if given).
tokendoctor-audit --json (add --project <dir> when an argument was given). It is read-only
and reports the Claude Code version, what it found, and a list of findings, each with a
severity, an explanation and a documentation link./usage (usage breakdown and
recommendations) and /context (what is loaded now) for measuring.fixes list) and offer
/tokendoctor fix <finding-id> for them; /tokendoctor undo puts any fix back. A fix marked
inPlace changes the value in the file where it was found, so it cannot be moved to another
scope. Never edit files from this skill.~/.claude/projects/<project path with / as ->/memory/, its MEMORY.md and the files it
lists) and the instruction files facts.instructionFiles lists: the files that load at launch,
such as ~/.claude/CLAUDE.md, CLAUDE.local.md, the project's CLAUDE.md, AGENTS.md when
Claude Code reads it, .claude/rules/ files without paths:, and what they import). Use your own judgment: point out anything there that makes
Claude spend more than the work needs, contradicts the settings or another instruction, is stale,
or is unsafe to keep. Quote file:line and say how to rewrite it. Where an instruction is
plainly the person's own choice, show what it costs and leave the choice to them.env variable
against Claude Code's current settings reference and variable list (facts.docs says when they
were read; null means offline with no copy, so those checks were skipped: say so). To explain a
finding beyond its detail, or to answer a question about a setting, read its doc link: every
page is served as Markdown at that URL (…/docs/en/<page>.md), and
https://code.claude.com/docs/llms.txt indexes them all. Prefer this to memory or to a mirror
such as context7: it is the text of the current release, while mirrors re-index on their own
schedule.facts.debugLog gives its time) come from a
claude --debug run of the last day. To check now, offer tokendoctor-selfcheck: it starts
claude -p once in this project on Haiku, with no saved session and no MCP servers (one small request,
a few cents at most), and reports which copy of tokendoctor loaded and in which tier, whether the
built-in guard was seated, mods hooking compaction ahead of it, skipped hooks, the window Claude
Code really compacts at, and a skill listing over its budget. Run it only after the person says
yes; tokendoctor-selfcheck --log <file> reads a log they already have, at no cost.facts.version is null, say the Claude Code version could not be read and that rules which
depend on a minimum version were still applied.tokendoctor-dashboard --open. It reads every transcript on this
machine (usage figures only, never message text), writes one HTML file with no network use, and
opens it: spend by day, by kind of token, model, reasoning effort, main thread and each subagent
type, context size, project, hour of the week, and the largest sessions, with filters. Give the
path it prints, and tie one or two of its numbers to the findings above (for example the share of
spend that was the conversation re-read from the cache, or above 200K tokens of context).What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/applyApply one tokendoctor audit fix after showing the exact change. Moved to /tokendoctor fix <id>, which needs no model call./dashboardBuild and open a local dashboard of where your Claude Code tokens went, from every transcript on this machine./optimizeLook at token metrics, propose setting changes that cut waste, and apply the ones the person approves./sessionsMeasure where tokens actually went in recent Claude Code sessions, from the local transcripts.npx claudepluginhub localixai/plugins --plugin tokendoctorOther plugins' skills for the same job