token-usage-audit

token-usage-audit is a skill for Codex from markoblogo/abvx-agent-skills. It costs 56 tokens per session (454 once invoked), scanned A, original, MIT.

A review of how an AI coding session spends its token budget, including startup context, command output, repeated file reads, and summaries.

In plain words
What is it for?
It helps measure context waste, find the largest sources of excess output, and verify that an agent setup uses fewer tokens.
Why use it?
It identifies why sessions become expensive, slow, or forgetful when too much context is loaded or repeated.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit It helps measure context waste, find the largest sources of excess output, and verify that an agent setup uses fewer tokens.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/markoblogo/abvx-agent-skills/token-usage-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add markoblogo/abvx-agent-skills --skill token-usage-audit
Clone the repo
git clone --depth 1 https://github.com/markoblogo/abvx-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for token-usage-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/token-usage-audit/github.svg)](https://agentmods.dev/skills/markoblogo/abvx-agent-skills/token-usage-audit)
Your own site
<a href="https://agentmods.dev/skills/markoblogo/abvx-agent-skills/token-usage-audit"><img src="https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/token-usage-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for token-usage-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/markoblogo/abvx-agent-skills/token-usage-audit"><img src="https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/token-usage-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 454 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.00454
Opus 5 $0.00028 $0.00227
Sonnet 5 $0.00011 $0.00091
Haiku 4.5 $0.00006 $0.00045

Measured 9d ago against content hash 717af1025b2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

token-usage-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/token-usage-audit/SKILL.md · 70 lines

What it actually says

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

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 70 lines · 56 tokens per session scan A 717af1025b2b

Subscribe to this mod's changes

token-usage-audit is a skill published in the GitHub repository markoblogo/abvx-agent-skills (16 stars, last pushed yesterday), licensed MIT. It adds 56 tokens to every session and 454 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.