skill-safety-scanner

skill-safety-scanner is a skill for Claude Code, Codex from SkillsCatalog/registry. It costs 29 tokens per session (566 once invoked), scanned A, original, MIT.

A local security scanner for agent skills before they are published. It looks for exposed secrets, risky code patterns, and permissions such as network or file access.

In plain words
What is it for?
Use it to scan a skill directory, review detailed findings, and produce JSON results for continuous integration pipelines.
Why use it?
It helps reveal security risks before a skill is shared or submitted to a catalogue.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to scan a skill directory, review detailed findings, and produce JSON results for continuous integration pipelines.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skillscatalog/registry/skill-safety-scanner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SkillsCatalog/registry --skill skill-safety-scanner
Clone the repo
git clone --depth 1 https://github.com/SkillsCatalog/registry

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-safety-scanner

README.md
[![agentmods](https://agentmods.dev/badge/skills/skillscatalog/registry/skill-safety-scanner.svg)](https://agentmods.dev/skills/skillscatalog/registry/skill-safety-scanner)
Your own site
<a href="https://agentmods.dev/skills/skillscatalog/registry/skill-safety-scanner"><img src="https://agentmods.dev/badge/skills/skillscatalog/registry/skill-safety-scanner.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 566 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00566
Opus 5 $0.00015 $0.00283
Sonnet 5 $0.00006 $0.00113
Haiku 4.5 $0.00003 $0.00057

Measured 7d ago against content hash 8bc4b067e561, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

skill-safety-scanner scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/safety_scan.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

Code: subprocess.run(cmd, shell=True)
skills/skill-safety-scanner/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Instructions

Use this skill to run safety scans on any Agent Skill directory before publishing. The scanner detects:

  • Secrets - Hardcoded API keys, tokens, passwords, private keys
  • Dangerous Code - eval(), exec(), command injection, XSS patterns
  • Permissions - Required capabilities (filesystem, network, subprocess, etc.)

When to Use

  • Before submitting a skill for publication
  • To preview what the catalog safety scan will find
  • To identify and fix security issues early
  • As part of CI/CD pipelines

How to Use

Scan a skill directory:

Scan the skill at /path/to/my-skill for safety issues

Get detailed output:

python3 safety_scan.py /path/to/my-skill --verbose

Get JSON output for CI integration:

python3 safety_scan.py /path/to/my-skill --json

Output

Safety Scan Report
  Skill: my-skill
  Grade: B (85/100)

  Scores:
    Secrets: 100/100
    Dangerous Code: 70/100

  Permissions Detected:
    - filesystem
    - network

  Findings (1):
    [medium] Potential command injection
      File: scripts/main.py:42
      Code: subprocess.run(cmd, shell=True)

  Recommendation: Review the finding above before publishing.

Examples

Basic scan:

User: Scan my skill at ./document-tools for safety issues
Agent: Running safety scan on ./document-tools...

       Grade: A (95/100)
       No critical issues found.

Finding secrets:

User: Check ./my-api-client for security issues
Agent: Running safety scan...

       Grade: F (0/100)

       Findings:
         [critical] Hardcoded API key detected
           File: config.py:5
           Code: API_KEY = "sk-ant-..."

       You must remove this secret before publishing.

Limitations

  • Does not scan dependencies (use npm audit / pip-audit separately)
  • Pattern-based detection may have false positives
  • Cannot detect all security issues (not a replacement for security review)
  • Scans local files only (not GitHub URLs)

Dependencies

  • Python 3.9+
  • No external dependencies (uses Python stdlib)

Read the full file on GitHub · 109 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 109 lines · 29 tokens per session scan A 8bc4b067e561

Subscribe to this mod's changes

skill-safety-scanner is a skill published in the GitHub repository SkillsCatalog/registry (1 stars, last pushed 8mo ago), licensed MIT. It adds 29 tokens to every session and 566 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.