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

misfire

v0.1.3

Published

X-ray for your Claude Code / agent skill setup: find trigger collisions, token-budget drops, and simulate which skill fires for a prompt.

Downloads

611

Readme

misfire

Find out why your agent picks the wrong skill — before it does.

Not to be confused with skillscope (runtime observability — tells you which skills fired after the fact, via hooks). misfire is static analysis: it predicts collisions and mis-fires before you ever run a session, needs no hooks, no database, and works on skill packs you haven't installed yet. They're complementary.

You installed 40 skills. Your agent keeps grabbing the wrong one, or ignoring the right one entirely. Static linters check your frontmatter formatting; nobody tells you which skills collide or which get silently dropped when your descriptions blow the context budget. That's what misfire does.

npx misfire scan

Zero dependencies. One file. Node ≥ 18.

What it catches

💥 Collisions — pairs of skills whose descriptions are similar enough that the model can fire the wrong one. Shows the exact shared trigger phrases causing it, and suggests disambiguation fixes ("use for X, do NOT use for Y", disable-model-invocation: true).

📦 Budget drops — total token footprint of your skill descriptions vs. the context budget. When you're over, skills get silently dropped before the model ever sees them — misfire tells you which ones are at risk.

🔥 Trigger simulationmisfire fire "deploy my site" ranks which of your installed skills match a prompt, shows the matched terms, and warns on close calls. Know the mis-fire before it happens.

Usage

misfire scan                       # full report on ~/.claude/skills + ./.claude/skills
misfire scan ./my-plugin/skills    # any directory
misfire fire "make a slide deck"   # who fires for this prompt?
misfire budget --budget 12000      # token table with custom budget
misfire json                       # machine-readable, exits 1 on findings → CI gate

Add it to CI so a new skill can't land if it collides with an existing one:

- run: npx misfire json ./skills

Real output

💥 Collisions (similarity ≥ 0.35)
  algorithmic-art ↔ canvas-design  0.351
    shared phrases: create original · copying existing · artists work · avoid copyright

🔥 Trigger simulation for: make me a poster design with generative art
  canvas-design    ██████████ 0.336  matched: poster, design, art
  algorithmic-art  █████████  0.312  matched: generative, art
  ⚠ Close call — expect mis-fires.

How it works

TF-IDF cosine similarity over skill descriptions (the text the model actually uses to pick skills), shared-bigram extraction for explainability, and a chars/3.7 token estimator accurate to ~10% for English prose. No API calls, no telemetry, runs entirely local.

License

MIT

Beyond linting — governing the agents

misfire tells you which skills will mis-fire. Once your agents are running for real, you'll want to know which ones actually did — and stop the destructive ones before they happen. That's Red Tape: enforced handoffs, protected-path guardrails, and a full audit trail for your AI agent fleet. misfire keeps your skills clean; Red Tape keeps your agents accountable.