skill-usage-report

skill-usage-report is a skill for Claude Code from sonichi/sutando. It costs 0 tokens per session (1,166 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 Code

Written for Claude Code: PostToolUse hook event.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is SETTINGS="$(bash scripts/sutando-config.sh claude-sutando-config-dir)/settings.json".

Good fit Use it to inspect skill usage, identify skills that may be candidates for disabling, and provide usage data to the related reporting service.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

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 skill-usage-report

README.md
[![agentmods](https://agentmods.dev/badge/skills/sonichi/sutando/skill-usage-report/github.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/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 skill-usage-report

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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,166 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.01166
Opus 5.5 $0.00000 $0.00466
Sonnet 5.5 $0.00000 $0.00233
Haiku 4.5 $0.00000 $0.00117

Measured 1mo ago against content hash 941c48305ce8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 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. The shipped manifest declares the key empty, so the default is this install's DotSpace cloud (dotspace.default_cloud_origin()), never a fixed server; set a value there only to pin one.
    • 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 · 84 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. 1mo ago Changed · +2 lines 941c48305ce8
  2. 3mo 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 (413 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,166 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

skill-usage-report compared with skills from other repositories

skill-usage-report next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skill-usage-reportsonichi/sutandoSkill413todayMITA0Claude Code
gmailvellum-ai/vellum-assistantSkill1.5k6d agoMITA20Claude Code, Codex
app-buildervellum-ai/vellum-assistantSkill1.5k6d agoMITA162Claude Code, Codex
assistant-migrationvellum-ai/vellum-assistantSkill1.5k6d agoMITA90Claude Code, Codex
guardian-verify-setupvellum-ai/vellum-assistantSkill1.5k6d agoMITA26Claude Code, Codex
stripe-link-walletvellum-ai/vellum-assistantSkill1.5k6d agoMITA52Claude Code, Codex
vellum-memory-v2-migrationvellum-ai/vellum-assistantSkill1.5k6d agoMITA34Claude Code, Codex