efficiency-audit

efficiency-audit is a skill for Claude Code from arozumenko/sdlc-skills. It costs 95 tokens per session (7,634 once invoked), scanned B, original, MIT.

A report that measures the token use, cost, time, and tool or skill activity of AI coding-agent sessions. Tokens are the text units used to process requests and responses.

In plain words
What is it for?
Use it to audit session spending, compare costs before and after a change, break usage down by role or test case, and generate an HTML cost report from supported CLI records.
Why use it?
It shows what work consumed resources, which roles or sessions used the most, and how usage changed over time or between setups.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

Part of the sdlc-skills plugin — 53 skills shipped together

Good fit Use it to audit session spending, compare costs before and after a change, break usage down by role or test case, and generate an HTML cost report from supported CLI records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arozumenko/sdlc-skills/efficiency-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 arozumenko/sdlc-skills --skill efficiency-audit
Clone the repo
git clone --depth 1 https://github.com/arozumenko/sdlc-skills

Made for: Claude Code.

Or install sdlc-skills, the plugin that ships this one along with the rest of its 53 skills.

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 efficiency-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/arozumenko/sdlc-skills/efficiency-audit/github.svg)](https://agentmods.dev/skills/arozumenko/sdlc-skills/efficiency-audit)
Your own site
<a href="https://agentmods.dev/skills/arozumenko/sdlc-skills/efficiency-audit"><img src="https://agentmods.dev/badge/skills/arozumenko/sdlc-skills/efficiency-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 efficiency-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/arozumenko/sdlc-skills/efficiency-audit"><img src="https://agentmods.dev/badge/skills/arozumenko/sdlc-skills/efficiency-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,634 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00095 $0.07634
Opus 5 $0.00048 $0.03817
Sonnet 5 $0.00019 $0.01527
Haiku 4.5 $0.00010 $0.00763

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

Security

Grade B, and why

efficiency-audit scanned grade B with 1 finding 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.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/build-report-html.mjs, scripts/build-report-html.test.mjs, scripts/copilot-usage.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Tells the agent never to refusemediumAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

| The user wants the rollup's questions answered | They often don't. `--json` gives you the per-unit ledger — role, model, tokens, branch, timestamps, tool calls — and any question you can answer by grouping it is fair g

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

bundles/test-automation/skills/efficiency-audit/SKILL.md · 494 lines

How it starts

The opening of the file, as written. The whole thing — 494 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Efficiency Audit

Hosts & data sources

  • Claude Code — reads transcripts under $CLAUDE_CONFIG_DIR/projects (else ~/.claude/projects, ~/.config/claude/projects) and prices every dollar with ccusage (auto-run via npx ccusage@latest).
  • GitHub Copilot CLI--host copilot reads ~/.copilot/session-state/*/events.jsonl (also $COPILOT_HOME and a repo-local ./.copilot; all existing roots are searched), needs no ccusage, and takes cost from Copilot's own billed figure (session.shutdown.totalNanoAiu, AI credits at $0.01 each). Parent-session roles come from the subagent.selected event (CLI ≥1.0.63; older streams report role-less sessions), loaded skills from skill.invoked. Sessions predating GitHub's 2026-06-01 usage-based billing carry no credit figure and report tokens with cost n/a. This store is CLI-only — VS Code Copilot sidebar sessions live in VS Code's own workspaceStorage and are covered by the tokenomics skill's ledger, not by this audit.
  • build-report-html.mjs renders either host's --json snapshot as one self-contained HTML page. --resolved-from works on both hosts and needs no workflow: it reads the pipeline's .agents/automation/<slug>/report.json, whether written by the batch workflow or by the lead at close (including after rebuilding an interrupted run).

Answer "what did this cost, and who spent it" for AI coding-agent work — down to the individual sub-agent — with ccusage as the single source of every dollar. This skill never prices tokens itself: no pricing table, no estimate. What it adds on top of ccusage is the join ccusage can't do alone — attaching each metered dollar to the role / session / day / project that spent it. (The markdown report shows totals, by-role, and by-day; the per-project breakdown, byProject, is in the --json output only.)

Alongside cost, it reports activity metrics read from the same transcripts, per role and per unit: tool calls (total + errored, with a success rate), skills loaded (count + names), tokens (with cache-hit rate + output share), time (active-minutes + wall-clock span), and sub-agents dispatched (count + names, via the Agent tool). Counts are in the markdown; full per-unit names/detail are in the --json ledger (skills, dispatched, toolCalls, toolErrors, models, agentMinutes, wallClockMin, startedAt, endedAt).

Read the full file on GitHub · 494 lines

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 · 494 lines · 95 tokens per session scan B 9b0614b9a556

Subscribe to this mod's changes

efficiency-audit is a skill published in the GitHub repository arozumenko/sdlc-skills (20 stars, last pushed 5d ago), licensed MIT. It adds 95 tokens to every session and 7,634 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens