Skill Usage Counter — Development skill for Claude Code
Measure which Claude Code/Codex skills you actually invoke.
How to install Skill Usage Counter
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open momenbasel/skill-usage-counter and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Skill Usage Counter does
Measure which Claude Code/Codex skills you actually invoke. Hook + backfill + report; privacy-safe.
Alternatives in Development
- Domxss — Confirm DOM XSS in a real headless browser — injects canary payloads into params + URL fragment and only repor 4.5k ★
- Job Application Agent — Privacy-first Codex skill for discovering, validating, completing, and tracking job applications 139 ★
- Claude Warmup — Manipulate Claude Code's 5-hour usage window into resetting when you actually need it 127 ★
README
skill-usage-counter
Find out which Claude Code / Codex **skills you actually use** - and which of the hundreds installed have never once been invoked - so you can trim the library that loads into every session's context.
Why
Every installed skill's name and description load into the model's context at session start. A large library is a per-session token tax. Claude Code has no built-in usage counter, and the injected skill list means grepping transcripts naively gives false positives. This tool matches the exact tool-call signature, so counts are real.
What it does
- Live hook - a
PostToolUsehook records eachSkillinvocation as it happens. - Backfill - parses existing transcripts to seed historical counts.
- Report - top used, and installed-but-never-invoked (archive candidates).
- Export - emits a usage file other audit tools can consume.
Privacy
Stores only: skill name, count, first/last timestamp, and a salted SHA-1 hash of the project path (so "used in N projects" works without revealing which). Never stores prompts, tool args, file paths, or usernames. The data file is git-ignored.
Install
git clone https://github.com//skill-usage-counter.git
cp skill-usage-counter/scripts/counter.py ~/.claude/hooks/skill-usage-counter.py
# add the PostToolUse snippet from examples/settings-hook-snippet.json to ~/.claude/settings.json
python3 ~/.claude/hooks/skill-usage-counter.py backfill
python3 ~/.claude/hooks/skill-usage-counter.py report
Usage
python3 scripts/counter.py backfill # seed from ~/.claude/projects
python3 scripts/counter.py report --top 30 # ranked usage + never-used list
python3 scripts/counter.py export # machine-readable usage json
Environment overrides: `SKILL_USAGE_FILE`, `SKILL_USAGE_PROJECTS`, `SKILL_USAGE_SKILLS_DIR`, `SKILL_USAGE_SALT`.
Tests
pytest -q tests/
License
MIT
Related Skills
Verify Hook
Verify that a Claude Code hook script actually works end to end. Argument: the hook script path (e.g. hooks/sc
Tandem Skill
Persistent pair-programming between Claude Code and the OpenAI Codex CLI: one Codex thread per project, protoc
Usage Kun
Privacy-first macOS menu bar and Windows x64 tray app to monitor Claude Code, Codex, and optional Gemini quota
Claude Usage Report
Claude Code stop hook: per-prompt usage report with token costs, context window, and rate limits
Ques Guidelines
Apply shared standards for impartiality, source quality, uncertainty, privacy, research integrity, reproducibi
Limit Lifeboat
Safe Claude Code and Codex account switching for Mac, with usage for every work and personal account.
Related Agents
Measure Response Time For Varying Prefix Match Lengths
import time from statistics import mean def time_compare(guess, iterations=1000): times = [] for _ in range(it
Performance Monitor
Monitor agent execution, track token usage, measure response quality, and optimize workflows
AI Evaluation Engineer
Measure AI quality honestly with datasets, metrics, and judges that survive scrutiny. Invoke for data-ai-team