agentleFS
localixailocalixai/tokendoctor/skills/audit/SKILL.md

audit

Skill71 starsChanged 3 days agoMITView on GitHub

Audit this Claude Code setup for settings that waste tokens or silently do nothing.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use delight, teach-impeccable and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HK-hubSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful. Use when the user asks to add polish, personality, animations, micro-interactions, delight, or make an interface feel fun or memorable.

    Also in 32 projects that use this

  • HK-hubSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 19 projects that use this

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 19 projects that use this

  • SkillPilotCHSkill

    level-up

    Eine Automatisierung pro Woche finden, scopen, shippen. Output landet als proposed-Eintrag in cadence.md mit konkreten Implementations-Schritten.

    Also in 12 projects that use this

  • ww-w-aiSkill

    pm-discovery

    PM Agent Team - Automated product discovery, strategy, and PRD generation. Runs PM analysis workflow to produce comprehensive PRD before PDCA Plan phase.

    Also in 3 projects that use this

  • +7 more from HK-hub

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run tokendoctor-audit --json (add --project <dir> when an argument was given).

    line 11
  2. Distinctive:

    Do not restate the whole detail text.

    line 16
  3. Very specific:

    If 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.

    line 44

“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Audit the Claude Code configuration for the current project (or $ARGUMENTS if given).

  1. Run 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.
  2. Present the findings grouped by severity: errors first (settings that are wrong or ignored), then warnings, then info. For each, give one or two sentences in plain words and the doc link. Do not restate the whole detail text.
  3. Be honest about limits: the audit checks configuration against documented behaviour. It does not measure savings, so state no percentages. Point to /usage (usage breakdown and recommendations) and /context (what is loaded now) for measuring.
  4. Say which findings have an automatic fix (those with a fixes list) and offer /tokendoctor fix <finding-id> for them. Never edit files from this skill.
  5. Review what Claude is told to do, not only how it is configured: read this project's memory (~/.claude/projects/<project path with / as ->/memory/, its MEMORY.md and the files it lists) and the instruction files (~/.claude/CLAUDE.md, ~/.claude/rules/, the project's CLAUDE.md and .claude/rules/). 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.
  6. Read the docs as they are today. The audit checked every settings key and 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.
  7. See what really loaded. Findings from a debug log (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.
  8. If 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.
  9. Build the usage dashboard: run 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).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.