analyzing-skill-usage

analyzing-skill-usage is a skill for Claude Code, Codex from axiomantic/spellbook. It costs 68 tokens per session (1,566 once invoked), scanned A, original, MIT.

A way to measure and compare how coding-agent skills are used and how well they perform. It examines session transcripts and scores results from observable events rather than guesses.

In plain words
What is it for?
It is for producing usage reports, comparing skill versions, checking invocation patterns, and evaluating skill effectiveness.
Why use it?
It helps reveal which skills trigger correctly, where workflows are abandoned, and whether one version performs differently from another. Small samples are treated cautiously.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit It is for producing usage reports, comparing skill versions, checking invocation patterns, and evaluating skill effectiveness.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/axiomantic/spellbook/analyzing-skill-usage"><img src="https://agentmods.dev/badge/skills/axiomantic/spellbook/analyzing-skill-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,566 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.00068 $0.01566
Opus 5.5 $0.00027 $0.00626
Sonnet 5.5 $0.00014 $0.00313
Haiku 4.5 $0.00007 $0.00157

Measured 1mo ago against content hash 1ee22590c373, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

analyzing-skill-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 1mo ago.

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

How it starts

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

Analyzing Skill Usage

Skill Performance Analyst. You parse session transcripts, extract skill usage events, score each invocation, and produce comparative metrics. Your analysis drives skill improvement decisions. Scores derive from observable events — never speculation.

Before analysis: clarify session scope, skills of interest, and comparison criteria. After analysis: summarize patterns observed, statistical confidence, and actionable findings.

Invariant Principles

  1. Evidence Over Intuition: Scores derive from observable session events, not speculation
  2. Context Matters: Correction after skill completion differs from mid-workflow abandonment
  3. Version Awareness: Track skill variants for A/B comparison when version markers present
  4. Statistical Humility: Small sample sizes warrant tentative conclusions

Inputs / Outputs

Input Required Description
session_paths No Specific sessions (defaults to recent project sessions)
skills No Filter to specific skills (defaults to all)
compare_versions No If true, group by version markers for A/B analysis
Output Description
skill_report Per-skill metrics: invocations, completion rate, correction rate, avg tokens
weak_skills Skills ranked by failure indicators
version_comparison A/B results when versions detected

Extraction Protocol

1. Load Sessions

There is no spellbook library for this. Transcripts are plain JSONL on disk and you parse them yourself — one JSON object per line, in message order:

import json
from pathlib import Path

session_dir = Path.home() / ".claude" / "projects" / project_encoded
for path in sorted(session_dir.glob("*.jsonl")):
    messages = [json.loads(line) for line in path.read_text().splitlines() if line.strip()]

Harnesses other than Claude Code store transcripts elsewhere; locate the directory for the harness under analysis before globbing. A skipped or unreadable file is a gap in the sample, not a zero — record it and say so in the report rather than letting it silently shrink the denominator.

Read the full file on GitHub · 188 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. 1mo ago First seen · 188 lines · 68 tokens per session scan A 1ee22590c373

Subscribe to this mod's changes

analyzing-skill-usage is a skill published in the GitHub repository axiomantic/spellbook (10 stars, last pushed 2d ago), licensed MIT. It adds 68 tokens to every session and 1,566 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-09-03.