01-usage

01-usage is a skill for Claude Code from ai-driven-dev/framework. It costs 69 tokens per session (451 once invoked), scanned A, original, MIT.

Answer what a period or one piece of work consumed in tokens, per day, model, task, ticket, session, repository or person, from the local measurement. Use when the user asks how many tokens were spent, where the effort went, or what a task or ticket consumed. Not for turning measurement on or off.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Install with agentmods
npx agentmods add skills/ai-driven-dev/framework/01-usage
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 ai-driven-dev/framework --skill 01-usage
Clone the repo
git clone --depth 1 https://github.com/ai-driven-dev/framework

Made for: Claude Code.

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 01-usage

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-driven-dev/framework/01-usage/github.svg)](https://agentmods.dev/skills/ai-driven-dev/framework/01-usage)
Your own site
<a href="https://agentmods.dev/skills/ai-driven-dev/framework/01-usage"><img src="https://agentmods.dev/badge/skills/ai-driven-dev/framework/01-usage/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 01-usage

Your own site · 80×15
<a href="https://agentmods.dev/skills/ai-driven-dev/framework/01-usage"><img src="https://agentmods.dev/badge/skills/ai-driven-dev/framework/01-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 451 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 unknown 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.00069 $0.00451
Opus 5.5 $0.00028 $0.00180
Sonnet 5.5 $0.00014 $0.00090
Haiku 4.5 $0.00007 $0.00045

Measured today against content hash 8df78039b022, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

01-usage 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 today.

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.

plugins/aidd-telemetry/skills/01-usage/SKILL.md · 36 lines

What it actually says

Usage

flowchart TD
  question([question]) --> probe{"aidd answers telemetry?"}
  probe -->|"no"| absent([say it is missing, answer nothing])
  probe -->|"yes"| frame
  frame -->|"no axis fits"| refuse([say what the report cannot split by])
  frame --> answer
  answer -->|"refused or unknown version"| stop([say so])
  answer --> told([figures, with what is unknown])

Actions

Run the flow above. Read only the next action file.

Action Does
frame map the question to a period, one axis and the filters it fixes, and name the command
answer run it, read the JSON, and state the figures with what is unknown

Transversal rules

  • Probe first. Run aidd telemetry --help before any action. When aidd is not found, or the command exits non-zero, stop and say plainly that aidd is missing or too old to report, name @ai-driven-dev/cli as what to install or update, and state that no figure is available. Never answer from memory, from the session, or from anything but the report.
  • Every figure comes from aidd telemetry report --json. Never add, subtract, average, convert or estimate a number, and never turn tokens into money: the report holds counts only.
  • Keep input, output, cache read and cache write apart. A total is the report's own total, not a sum made here.
  • An unknown is unknown, never zero. Say so whenever the report shows one.
  • Read only. Nothing here declares a task, turns measurement on, or changes any file.
Files

What ships with it

3 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. today First seen · 36 lines · 69 tokens per session scan A 8df78039b022

Subscribe to this mod's changes

01-usage is a skill published in the GitHub repository ai-driven-dev/framework (519 stars, last pushed today), licensed MIT. It adds 69 tokens to every session and 451 once invoked, about $0.0003 per session on Opus 5.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-10-17.

Related

Other skills, from other repositories

reward-design

A guide to defining the scores that an AI agent receives during trial-and-error training. It covers checks based on rules, human preferences, or another model, and distinguishes rewarding the final result from rewarding the steps taken.

bojieli/ai-agent-book · 131 tokens

kv-cache-design

A guide to arranging an AI agent's conversation so previously processed text can be reused. A KV cache stores intermediate results for earlier tokens, while a prompt cache reuses a stable beginning across requests.

bojieli/ai-agent-book · 91 tokens

agent-evolution

A guide to making an AI agent improve from its past runs. It covers how to judge results, extract reusable lessons, and decide whether to store them as knowledge, instructions, code, or model training.

bojieli/ai-agent-book · 126 tokens

knowledge-org

A guide to organising large bodies of knowledge so an AI system can navigate relationships, summaries, and layers instead of searching only flat text chunks. It covers tree indexes, knowledge graphs, file-like structures, incremental updates, and long-term memory layouts.

bojieli/ai-agent-book · 96 tokens

post-training-strategy

A guide to choosing and planning ways to improve an AI model after its initial training. It explains when to add knowledge, teach a response format, use trial-and-error training, or use a smaller model to learn from a larger one.

bojieli/ai-agent-book · 159 tokens

bad-case-to-dpo

A guide to turning failed production agent runs into training and evaluation data. It explains how to find the first mistake, create preference examples for DPO (Direct Preference Optimization), and check that a fix does not damage other tasks.

bojieli/ai-agent-book · 168 tokens