by obielin
Security scanner for AI agent skills. Flags known prompt-injection, data-exfiltration and malicious-payload patterns before you install
# Add to your Claude Code skills
git clone https://github.com/obielin/skillshieldskillshield is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by obielin. Security scanner for AI agent skills. Flags known prompt-injection, data-exfiltration and malicious-payload patterns before you install. It has 240 GitHub stars.
skillshield's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/obielin/skillshield" and add it to your Claude Code skills directory (see the Installation section above).
skillshield is primarily written in Python. It is open-source under obielin on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh skillshield against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Security scanner for AI agent skills and MCP servers. It looks for known prompt-injection, data-exfiltration and malicious-payload patterns in a skill or in a saved MCP tool listing before you install it.
An MCP server publishes the tools an agent may call, and the agent reads every tool's name, description and input schema. A poisoned description is an instruction the agent obeys, so SkillShield reads a saved tool listing the same way it reads a skill. It never starts a server or connects to one: it reads what you saved to a file.
SkillShield is a first line of defence, not a complete one: see Limitations and the roadmap.
Contributors welcome. Pick an issue and comment /assign to claim it: good first issues · help wanted · detection gaps · roadmap
pip install skillshield
skillshield scan skills/
In a pull request, the GitHub Action flags the line itself:
Try it on a live pull request in skillshield-demo.
An agent skill is a file of instructions or code that an AI agent loads and follows. A malicious skill can tell the agent to ignore its instructions, read your files and send them to someone else.
skillshield checks skill files for these patterns with 24 rules. It runs locally and needs no network access.
pip install skillshield
This installs the skillshield command and the skillshield Python package.
This project was called skillguard until version 1.1.0. The PyPI package was always skillshield, so pip install skillshield is unchanged. Until 2.0.0:
skillguard command still works, and prints a note that it is now skillshield;import skillguard and from skillguard.rules import ... still work, and raise a DeprecationWarning.Rule IDs (SG-001 to SG-012) have not changed. SARIF output now names the tool skillshield, so GitHub code scanning may list existing alerts again under the new tool name.
The skillguard package on PyPI, and skill-guard, are other people's projects, not this one.
skillshield scan SKILL.md # scan one file
skillshield scan ./skills/ # scan a directory
skillshield scan --installed # scan skills already installed for local agents
skillshield scan - < SKILL.md # scan stdin
skillshield check "some text to scan" # scan text given on the command line
skillshield accept docs/ --reason "..." # accept the findings in docs/ after review
skillshield rules # list all rules
skillshield lock ./skills/ # record a hash of every file in each skill
skillshield --version
Options for skillshield scan:
| Option | Values | Default | What it does |
|---|---|---|---|
--installed |
off | Discover and scan skill folders already installed for common coding agents instead of passing a target path. | |
--format |
text, json, sarif |
text |
Output format. |
--min-severity |
critical, high, medium, low, info |
info |
Only report findings at this severity or above. |
--verbose, -v |
off | Show matched snippets in text output. It also prints Scanning ... progress lines to stderr, so JSON and SARIF output on stdout stay valid. |
|
--ignore-file |
a path | none | Accept the findings listed in this file, such as .skillshield-ignore. See Accepting a reviewed finding. |
--no-ignore-file |
off | Do not read any ignore file. | |
--show-accepted |
off | List each accepted finding with its reason. |
skillshield check uses all rules and always shows matched snippets.
Set NO_COLOR to any non-empty value, or pass --no-color to scan or check, to disable coloured terminal output. Redirected output stays plain; an empty NO_COLOR value leaves terminal colours enabled.
skillshield lock writes skillshield.lock (or the path given with --output): a SHA-256 hash of every file in each skill, and the risk level each skill had when it was locked. A skill is a directory with a SKILL.md. Directories skipped during scanning are left out, except compiled Python, and symbolic links are recorded by their target without being followed. The file has sorted keys and paths relative to itself, so locking the same skills again gives the same bytes and the file diffs cleanly in git.
skillshield rules --format json lists every rule's id, name, severity, tags, description and remediation as a JSON array. --format text preserves the default rules listing.
Some findings are expected: documentation that quotes an attack as an example, or a package index your team runs. Once you have reviewed one, accept it in a .skillshield-ignore file at the root of your repository, with the reason, and pass it with --ignore-file .skillshield-ignore. Accepted findings no longer count towards the risk level or the exit code, but they are never hidden: the report says how many were accepted, --show-accepted lists them, and SARIF output keeps them marked as suppressed with the reason.
# rule or fingerprint path glob reason (required)
SG-013 setup/** Our internal package mirror
fp:3f9a1c0e7b2d4a55 - Reviewed 2026-11-21: installer pins a hash
fp: and 16 hex characters).- for any path. * matches within one folder and ** across folders.A rule entry accepts findings up to HIGH. A CRITICAL finding can only be accepted by its own fingerprint, so a broad entry can never hide a new critical finding.
A fingerprint is tied to the rule, the file and the text that matched. Moving the text up or down the file keeps it accepted; changing the matched text brings the finding back for review. To accept every current finding in a folder by fingerprint:
skillshield accept docs/ --reason "Attack phrases quoted as examples, reviewed 21 Nov 2026"
skillshield scan . --ignore-file .skillshield-ignore
On the command line, SkillShield only reads the file you name with --ignore-file. It never picks one up by itself, so a skill you downloaded cannot accept its own findings, even when you scan it from inside its own folder, and an ignore file is not used for GitHub URL scans or --installed. The GitHub Action and python -m skillshield.ci read .skillshield-ignore from the repository root by default, because the workflow that runs them belongs to the repository; any change to that file shows in the pull request that makes it. An entry that accepted nothing in a scan prints a warning, so old entries get cleaned up.
The safest moment to check a skill is before it is on your computer. Point scan at a GitHub URL and SkillShield downloads the repository (GitHub's archive zip) into a temporary f