agentleFS
markoblogomarkoblogo/abvx-agent-skills/skills/token-usage-audit/SKILL.md

token-usage-audit

Skill16 starsChanged 5 months agoMITView on GitHub

Audit where tokens are being wasted across startup context, shell output, repeated file reads, bloated agent docs, oversized summaries, and compaction loss. Use when token budget is tight, sessions are degrading, or an agent setup needs measurement-driven optimization.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not chase precision that costs more tokens than it saves.

    line 67
  2. Distinctive:

    Do not instrument everything if a clear dominant waste category is already visible.

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Token Usage Audit

Save tokens by measuring the waste categories before optimizing them.

Waste Categories

Audit these in order:

  1. startup-context weight;
  2. shell and tool-output noise;
  3. repeated file reads or re-analysis;
  4. oversized handoffs and summaries;
  5. stale skills, prompts, or always-loaded docs;
  6. compaction loss and re-derivation cost.

Audit Workflow

  1. Identify the current failure mode:
    • output overflow;
    • startup bloat;
    • long-session decay;
    • repeated repo rediscovery.
  2. Estimate which category dominates.
  3. Apply the narrowest corrective skill:
    • rtk-assisted-shell or shell-output-compaction;
    • graph-guided-code-reading;
    • token-efficient-execution;
    • lean-context-layout;
    • compaction-survival;
    • token-frugal-mode.
  4. Re-check after the intervention:
    • fewer broad reads;
    • shorter command output;
    • smaller startup docs;
    • cleaner resume state.
  5. Record what changed so the same waste is not rediscovered next session.

Practical Signals

  • top-level agent file is large and generic;
  • same README or module keeps getting reopened;
  • shell output dominates the conversation;
  • compaction causes “what were we doing?” recovery turns;
  • too many installed skills are irrelevant to current work;
  • long status updates cost more than the actual edit.

Deliverable

Report:

  • biggest waste category;
  • corrective skills used;
  • what was changed;
  • expected future savings.

Guardrails

  • Do not chase precision that costs more tokens than it saves.
  • Do not instrument everything if a clear dominant waste category is already visible.
  • Optimize the highest recurring cost first, not the most novel one.

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.