npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

skillusage

v0.1.0

Published

Skill / slash-command usage analytics for Claude Code and Codex, parsed from local on-disk data

Downloads

172

Readme

skillusage

Skill / slash-command usage analytics for Claude Code and Codex, parsed from your local on-disk data.

ccusage tells you what your agents cost. skillusage tells you what they do: which of your skills actually get used, how often, by you or by the agent itself.

npx skillusage
┌────┬───────────────────────────────────┬───────┬────────┬────────────┬────────────────────────────────┬────────────┐
│  # │ Skill                             │ Total │ Manual │       Auto │ Trend (30d)                    │ Last used  │
├────┼───────────────────────────────────┼───────┼────────┼────────────┼────────────────────────────────┼────────────┤
│  1 │ lovstudio-git-commit-with-context │   242 │    241 │          1 │            ▁▅ ▁▁▄  ▂▁▁▂▃▁▄▁▆█▃ │ 2026-06-11 │
│  2 │ frontend-design                   │   225 │     41 │ 184 (~149) │ ▂▃▂  ▁ ▁▄▃▆▆█▁▁ ▂▄▁▃▃▂▃▅ ▇▆▂▇▂ │ 2026-06-11 │
│  3 │ deep-research                     │    48 │      8 │    40 (~3) │   ▃▃ ▃ ▆  █        ▃  █▆█▃     │ 2026-06-08 │
└────┴───────────────────────────────────┴───────┴────────┴────────────┴────────────────────────────────┴────────────┘
  1444 invocations · 391 manual / 1053 auto · 192 skills · all time · source: all · 1298 files in 8.3s

Everything runs locally. Nothing is uploaded anywhere.

Usage

skillusage                    # all-time top skills across Claude Code + Codex
skillusage daily              # per-day counts with a sparkline trend
skillusage --days 30          # last 30 days only
skillusage --source claude    # claude | codex | all (default: all)
skillusage --limit 0          # show every skill
skillusage --strict           # drop heuristic SKILL.md-read signals
skillusage --json             # machine-readable output (daily + per-project breakdowns)
skillusage --include-subagents
skillusage --claude-dir /path/to/.claude --codex-dir /path/to/.codex

The --json output includes per-skill daily (local-timezone YYYY-MM-DD counts), projects (cwd counts), sources, and aliases maps, ready for dashboards.

How it works

Claude Code (~/.claude/projects/**/*.jsonl)

| Signal | Counted as | Notes | |---|---|---| | Skill tool call (tool_use with input.skill) | auto | agent-initiated | | <command-name> slash-command message | manual | user-typed; built-in commands (/clear, /model, ...) are filtered out | | Read/Bash hitting */skills/<name>/SKILL.md | auto (inferred) | heuristic; shown as (~n), exclude with --strict |

Codex (~/.codex/sessions, archived_sessions, history.jsonl)

| Signal | Counted as | Notes | |---|---|---| | $skill user input (history.jsonl + rollout user_message) | manual | both sources merged with a time-window dedup (Codex Desktop skips history.jsonl) | | <skill><name> injection in rollout | auto | unless it is the echo of a nearby manual $skill in the same session; resume/fork replays are deduplicated | | exec/shell call reading a SKILL.md | auto (inferred) | heuristic; shown as (~n), exclude with --strict |

Counting rules

  • Explicit signals dedupe on (session, skill, second).
  • Inferred signals (SKILL.md reads) count at most once per session and are suppressed when the same session already has an explicit invocation — agents read skill files in chunks, and chunks are not invocations.
  • Subagent sidechains are excluded by default (--include-subagents to keep them).
  • Names are normalized: duplicate namespace segments collapse (frontend-design:frontend-designfrontend-design) and install-dir version suffixes are stripped (debug-pro-1.0.0debug-pro). Raw names are kept in aliases.

Known limitations

  • Claude Code prunes old transcripts, so all-time counts are a lower bound.
  • Some older Codex sessions only contain the injection row; those count as auto even if they were user-typed.

Roadmap

  • More runtimes (OpenCode, Gemini CLI)
  • Per-project subcommand

Development

pnpm install
pnpm typecheck
pnpm build
node dist/index.mjs

Zero runtime dependencies — everything is bundled at build time with tsdown.

License

MIT © Lovstudio.ai