
SKILL.md bundles, tool
schemas and companion scripts, and reports prompt injection, hidden command execution, credential
exfiltration and persistent backdoors. It is written in Rust, runs offline by default and does not use a
model to decide what is safe.
Quickstart
Run your first scan in under a minute, with no installation.
Add to your agent
Register Skill Doctor as an MCP server in Claude Code, Cursor or Windsurf.
Gate CI
Fail pull requests that add risky skills, and upload SARIF reports.
What it detects
The 11 threat classes, from SD-01 to SD-11.
Why skills need a scanner
Agent skills are natural-language instructions that an agent runs with real system access: shell tools, filesystem APIs and network sockets. They are usually installed from public repositories without code signing or sandboxing. A skill can carry:- Prompt injection hidden in Markdown headings, HTML comments or Unicode tag characters.
- Hidden command execution in companion scripts (
eval,exec, child processes). - Credential exfiltration that reads
.envfiles, cloud tokens or SSH keys and sends them out. - Persistent backdoors written into auto-loaded agent directories such as
.claude/or~/.bashrc.
How it works
Skill Doctor checks a skill in four layers. Only the first runs by default.Higher layers can only add findings. L2 and L3 may report more problems, but they can never
suppress, dismiss or downgrade a finding from L1.
Who it is for
- Engineers who ship agent skills or plugins and want a check before release.
- Registry and marketplace operators screening submitted skills.
- Security teams adding skill audits to CI/CD.
- Researchers studying agent threats and prompt injection defenses.
Project links
GitHub
Source, issues and discussions.
npm
@security.kalarislabs/skill-doctorcrates.io
skill-doctor
