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

agent-skill-scan

v0.1.0-alpha.1

Published

Security scan for AI agent skills, MCP server configs, rules files, and hooks — prompt injection, secret exfiltration, hidden Unicode, dangerous shell patterns, hardcoded credentials. Read-only, zero dependencies.

Readme

agent-skill-scan

One command to security-scan the agent content your AI coding tools execute: skills, MCP server configs, rules files, and hooks.

npx agent-skill-scan

Read-only. Zero dependencies. Nothing leaves your machine.


Why

AI agents now run content you didn't write: marketplace skills, MCP servers, shared rules files, auto-firing hooks. That content is a supply chain — and it's being attacked:

  • A 2026 audit of ~4,000 marketplace agent skills found 36.8% with at least one security flaw and 1,467 malicious payloads (Snyk ToxicSkills).
  • An MCP server audit graded 71% of servers "F" — and zero "A".
  • Prompt injection is the #2 developer security concern of 2026.

Your agent will happily read SKILL.md. Did you?

What it detects

| Category | Checks | |----------|--------| | skills (.claude/skills, agents, commands, .cursor/commands) | Prompt-injection primitives ("ignore previous instructions", hidden-from-user directives, covert actions) · secret-exfiltration directives · env harvesting piped to the network · suspicious webhooks (Discord/Telegram/request bins/ngrok) · curl \| sh · reverse shells · SSH-key and keychain access · rm -rf ~ · persistence via cron/launchd · npm install hooks · base64/charcode/hex obfuscation · embedded live credentials | | mcp (.mcp.json, .cursor/mcp.json, .vscode/mcp.json, Claude Desktop, ~/.claude.json) | Hardcoded secrets in env blocks (masked in output) · dangerous command strings · unpinned npx/uvx server packages · remote servers over plain HTTP | | rules (CLAUDE.md, .cursorrules, .cursor/rules/, copilot-instructions, Windsurf/Cline/Continue) | Same injection/threat rules · invisible-Unicode smuggling (zero-width chars, bidi overrides, Unicode tag characters) | | hooks (.claude/settings.json) | Threat patterns in hook commands — hooks run automatically with your shell |

Unicode checks are script-aware: ZWJ/ZWNJ in emoji or Indic text never fire; the same characters hidden in ASCII instructions do.

Usage

npx agent-skill-scan                    # scan current project + user-home agent dirs
npx agent-skill-scan --no-user          # project only (CI)
npx agent-skill-scan --json             # machine-readable report
npx agent-skill-scan --only skills,mcp  # limit categories
npx agent-skill-scan --strict --min-score 80   # gate a pipeline

Also installed as skill-scan.

Exit codes

  • 0 — clean (low/medium findings don't fail without --strict)
  • 1 — critical or high findings (--strict: medium too; --min-score misses)
  • 2 — usage error

Severity → score

score = 100 − 25·critical − 10·high − 4·medium − 1·low (floor 0).

Sibling tools (AI dev hygiene suite)

Honest limits

Heuristic, not a sandbox: it catches known injection/exfil/obfuscation patterns, not novel ones. A clean scan lowers risk; it is not a guarantee. Pair it with reading what you install.

Development

npm install
npm test        # builds then runs node --test against generated temp fixtures

Malicious fixtures are generated at test time in temp dirs — nothing secret-shaped is tracked in git.

License

MIT