skill-usage-report

skill-usage-report is a skill for Claude Code, Codex from sonichi/sutando. It costs 0 tokens per session (1,135 once invoked), scanned A, original, MIT.

A usage tracker for coding-agent skills that records when each skill is invoked and supports usage totals and last-used information.

In plain words
What is it for?
Use it to inspect skill usage, identify skills that may be candidates for disabling, and provide usage data to the related reporting service.
Why use it?
It makes skill activity visible without slowing down or blocking the skill being used. Logging is stored locally first and is designed to keep working if the cloud service is unavailable.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/sonichi/sutando/skill-usage-report
Any agent
npx skills add sonichi/sutando --skill skill-usage-report
Clone the repo
git clone --depth 1 https://github.com/sonichi/sutando

Made for: Claude Code, 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 skill-usage-report

README.md
[![agentmods](https://agentmods.dev/badge/skills/sonichi/sutando/skill-usage-report.svg)](https://agentmods.dev/skills/sonichi/sutando/skill-usage-report)
Your own site
<a href="https://agentmods.dev/skills/sonichi/sutando/skill-usage-report"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/skill-usage-report.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,135 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01135
Opus 5 $0.00000 $0.00567
Sonnet 5 $0.00000 $0.00227
Haiku 4.5 $0.00000 $0.00113

Measured 4d ago against content hash 846bb69e1ba7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

skill-usage-report 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 4d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (hooks/log-usage.py, scripts/report-usage.py, usage_lock.py), 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.

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/skill-usage-report/SKILL.md · 82 lines

How it starts

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

skill-usage-report

Engine half of the skill-usage telemetry loop (owner spec 2026-07-19: "show when the skill is last used, and how many times… recommend disable, or user would disable themself"). Cloud half: AU#93 (skill_usage rollup + POST /api/skills/usage + last-used in the assignments GET).

Two pieces, both offline-first and fail-open:

  1. hooks/log-usage.py — a PostToolUse hook on the Skill tool. Appends {"slug","ts"} to <workspace>/state/skill-usage-log.jsonl on every skill invocation. Never blocks, never fails the invocation. Registered in the core's settings.json with "async": true — this is a fire-and-forget usage logger, so it must run off the Skill critical path (async keeps interpreter startup + file I/O out of every skill invocation's latency):

    Resolve that settings file through the path helper rather than a literal home-relative path — the core config dir is configurable per clone, and on a packaged install it is not under $HOME at all:

    SETTINGS="$(bash scripts/sutando-config.sh claude-sutando-config-dir)/settings.json"
    
    {"PostToolUse": [{"matcher": "Skill", "hooks": [{"type": "command",
      "async": true,
      "command": "python3 '<repo>/skills/skill-usage-report/hooks/log-usage.py'"}]}]}
    
  2. scripts/report-usage.py — drains the log, aggregates per slug, and POSTs one batched report ({agentId, events:[{slug,count,lastUsedAt}]}).

    • agentId = $AGENT_MXID (the ag2space identity — same key the EquipPanel and assignments API use).
    • Bearer from vault key AG2_CLOUD_TOKEN.
    • Cloud origin is declared in manifest.json's config block (the config-only manifest convention — see skills/MANIFEST.md), not invented as an env-only setting. Resolution order is $AG2_CLOUD_ORIGIN override > manifest default > CLOUD_FALLBACK, so the manifest is the single place to change the default.
    • Rename-before-POST so events arriving mid-report are never lost; fold-back on failure so nothing is dropped. Always exits 0.

    Run on a gated sub-daily cron (crons.json):

    The cron needs AGENT_MXID in the environment. Read it from the channel env under the resolved core config dir — never a home-relative literal, which is wrong on any clone that configures the config dir elsewhere:

    {"name": "skill-usage-report", "cron": "*/30 * * * *",
     "prompt": "Run: bash scripts/cron-gate.sh skill-usage-report env $(grep AGENT_MXID \"$(bash scripts/sutando-config.sh claude-sutando-config-dir)/channels/ag2space/.env\" 2>/dev/null) python3 skills/skill-usage-report/scripts/report-usage.py — drains the local skill-usage log to AU (AU#93). Deferred when owner tasks are queued."}
    

Read the full file on GitHub · 82 lines

Files

What ships with it

4 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. 4d ago First seen · 82 lines · 0 tokens per session scan A 846bb69e1ba7

Subscribe to this mod's changes

skill-usage-report is a skill published in the GitHub repository sonichi/sutando (390 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,135 tokens. 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-08-30.

Related

Other skills, from other repositories

cc-hooks

Multi-agent hook system: author hooks once as rulesync-canonical hooks.json (HookDefinitionSchema), deploy via superskill install / superskill hook emit to Claude Code, Codex, OpenCode, Pi (pi-hooks), and Gemini CLI. Covers command, prompt, and http hooks, cross-platform event mapping, and safety invariants.

gobing-ai/superskill · 71 tokens

mode

Adopt the lead role for this session: plan work, delegate to executors via relay, review reports, never implement large work directly. Invoke with /relay:mode.

spacegrowth/claude-relay · 37 tokens

verify

Machine-check an executor's report against its staged reality — TL;DR block well-formed, claimed files actually staged, declared counts cross-checked — stamping MALFORMED / MISMATCH / INCONCLUSIVE / COUNTS-MATCH. Invoke with /relay:verify, or when asked "check that report", "did it really do what it says", "verify X's…

spacegrowth/claude-relay · 83 tokens

auto

Flip this lead session's autonomous posture: proceed by default on routine in-plan steps instead of asking, or go back to waiting. Invoke with /relay:auto, or when asked to "go autonomous", "stop asking me every time", "just proceed", "turn auto off", "what posture am I in".

spacegrowth/claude-relay · 65 tokens

collaborating-with-gemini

Delegates coding tasks to Gemini CLI for prototyping, debugging, and code review. Use when needing algorithm implementation, bug analysis, or code quality feedback. Supports multi-turn sessions via SESSIONID.

haoyu-haoyu/Multi-AI-Workflow · 47 tokens

handoff

Hand this lead session off to a fresh successor. Invoke with /relay:handoff, or when asked to "hand off", "hand this off to a new session", "start a successor lead".

spacegrowth/claude-relay · 44 tokens