skill-discovery

Find out what skills your AI coding agents have installed. One command, runs
on your own machine, no server or account needed.
Coding agents like Claude Code, Codex, Cursor, Copilot, Windsurf, Kiro,
Antigravity, and opencode act on skills (folders of persistent
instructions: SKILL.md plus references and scripts) and on standing
instruction files (rules, steering, custom instructions). Both change what
the agent does in every future session, and they accumulate from repos,
marketplaces, and pasted snippets long after you have forgotten where they
came from.
Why I built skill-discovery
Skills fix agent amnesia, and tools like
skill-extractor make them
cheap to create. That created the next problem: I could not tell you what was
installed on my own laptop. Research such as NVIDIA's
SkillSpector has documented real
malicious skill patterns in the wild, so "I probably know what's installed"
stopped being a good enough answer.
skill-discovery is the smallest useful response: a single command that walks
the known skill folders and instruction files on a machine and reports what
is actually there. Run it yourself out of curiosity, or across a fleet on a
schedule so your security team gets an inventory instead of a guess.
Quick start
pip install . # from a checkout; Python 3.9+, one dependency (PyYAML)
skill-discovery --dry-run
No paths, no config. With no arguments the tool scans where every supported
agent stores skills and instruction files (see the
support matrix) and walks your home directory to
auto discover the in repo (project level) skills committed inside your repos,
so both your global skills and your projects' skills are found with no path
given.
Output adapts to who's asking. At a terminal you get a readable summary:
findings first, then tables of skills and instruction files (name, agent,
where, description). Piped or redirected, you get the JSON report instead, so
skill-discovery --dry-run | jq … just works. Force either with --format human|json (or --json). -v adds each item's full path and the complete
list of locations checked; --fail-on findings makes it a CI gate.
--dry-run makes zero network calls: nothing leaves your machine, and it
shows exactly what a report would contain before you deploy anything.
Auto discovery is bounded (it prunes caches and build trees, reads directory
structure not file contents, and has a time budget), so it stays fast enough to
run on every launch. A few knobs:
--no-discover-projects turns it off (falls back to global skills only).
--discover-root <dir> (or the SKILL_DISCOVERY_ROOTS env var, os path
separated) adds a base for code that lives outside your home, e.g.
/workspace on a managed machine.
--project <dir> scans one specific repo; --path <dir> adds any other
folder, such as a mounted team share. Both run in addition to auto discovery
(they add locations, they don't replace it). To scan only what you name, pass
--no-discover-projects as well.
For each skill you get:
- Frontmatter parsing: name and description from
SKILL.md.
- Fingerprint: an order independent SHA-256 over the folder contents,
identical for the same skill on Windows, macOS, and Linux (paths and line
endings are normalized, so a CRLF checkout hashes the same as an LF one).
- Local detection: built in offline heuristic rules for documented
malicious skill patterns (environment dumps, hidden Office/zip payloads,
bytecode smuggling, scanner directed prompt injection, package registry
tampering). If NVIDIA SkillSpector
is installed (
uv tool install git+https://github.com/NVIDIA/skillspector.git),
it runs too. The report's scanner field always says which backend actually
ran (heuristics vs skillspector+heuristics).
- Sanitization findings: secrets and PII that would be redacted before any
upload, plus personal home directory paths worth knowing about.
Use it as a Claude Code plugin
This repo is also a Claude Code plugin
marketplace, so you can run the inventory without leaving your agent. Add the
marketplace and install the plugin:
/plugin marketplace add surenode-ai/skill-discovery
/plugin install skill-discovery@surenode
The plugin bundles this CLI, so no separate pip install is needed — it runs
the tool from the installed plugin using uv/pipx if present, otherwise plain
Python (3.9+). Once installed you can: