Loading...
Loading...
Security auditor for Claude Code skills and agent definitions. Scans a skill or agent directory for prompt injection, data exfiltration, privilege escalation, memory poisoning, obfuscation, malicious persistence, and 12 other threat categories (18 total). Returns a graded verdict (OK / WARNING / CRITICAL) with detailed findings. Use this skill whenever you need to audit, review, or validate the safety of a skill, an agent definition, a system prompt, or any set of instruction files before installing or trusting them. Also use it when the user mentions security scanning, threat detection, prompt injection checking, or wants to verify that a skill is safe. Triggers on: /maton, "audit this skill", "is this skill safe", "check for injection", "scan for threats", "review this agent", "security check".
npx skill4agent add erom/claude-skill-maton matonscripts/scanner//matonhttps://github.comREPO_URL="<url>"
HASH=$(echo -n "$REPO_URL" | md5 | cut -c1-8)
SCAN_DIR="/tmp/maton-scan-${HASH}"
git clone --depth 1 "$REPO_URL" "$SCAN_DIR" 2>&1scripts/.claude/skills/.gemini/skills/MATON_DIR=$(find . -path "*/skills/maton/scripts/scanner/__main__.py" -print -quit 2>/dev/null | sed 's|/scripts/scanner/__main__.py||')
if [ -z "$MATON_DIR" ]; then
MATON_DIR=$(find "$HOME" -maxdepth 5 -path "*/skills/maton/scripts/scanner/__main__.py" -print -quit 2>/dev/null | sed 's|/scripts/scanner/__main__.py||')
fi
PYTHONPATH="$MATON_DIR/scripts" python3 -m scanner "<path-to-scan>" --format json 2>&1
echo "EXIT_CODE=$?"<path-to-scan>SCAN_DIRREFERENCE.mdverdict"OK""WARNING""CRITICAL"summaryfindings[]severitycategoryrule_idfilelinematchdescriptionmatchdescription## Maton — Security Audit
**Source**: `<source>`
**Date**: `<scan_date>`
**Scanner verdict**: <badge>OKWARNINGCRITICAL| Severity | Count |
|---|---|
| CRITICAL | N |
| WARNING | N |
| INFO | N |
| Rule | File | Line | Description |
|---|---|---|---|
| PI-001 | skill.md | 42 | Direct prompt injection detected |
### Contextual Verdict: <OK | WARNING | CRITICAL>
<One-paragraph justification summarizing which findings are real threats,
which are false positives, and why.>OKWARNINGCRITICALOKOKtrashrmtrash "<SCAN_DIR>"REFERENCE.md