Claude Skill

token-usage-audit

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.

LLM Mart · 0 points · 3 views 0 listing impressions 0 install-command copies
Download markoblogo-abvx-agent-skills-skills_token-usage-audit-37a7146.zip · 2 KB

Install

skills CLI npx skills add https://github.com/markoblogo/abvx-agent-skills/tree/main/skills/token-usage-audit
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install markoblogo-abvx-agent-skills@llmmart
Git git clone https://github.com/markoblogo/abvx-agent-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole markoblogo/abvx-agent-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

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 (abvx-agent-skills)
  • agents
    • openai.yaml 228 B
      Loading…
  • SKILL.md 2.1 KB
    ---
    name: token-usage-audit
    description: 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.
    license: MIT
    metadata:
      abvx_status: experimental
      abvx_origin: adapted
    ---
    
    # 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.
    
  • SKILL_CARD.md 1.3 KB
    Loading…

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.