skills-guard
v0.2.1
Published
Skills Guard CLI - Command Line Tool for Agent Skills Security Scanning
Downloads
24
Maintainers
Readme
skills-guard
Skills Guard CLI - Security Detection Command-Line Tool for Anthropic Agent Skills
Installation
# Global install
npm install -g skills-guard
# Or use npx
npx skills-guard scan ./my-skillCommands
Scan Skill
sg scan <path> [options]
# Examples
sg scan ./my-skill
sg scan ./my-skill/SKILL.md
sg scan ./my-skill -f json -o report.json
sg scan ./my-skill --min-score 70Options:
-f, --format <format>- Output format (json|text|markdown)-o, --output <file>- Output to file--min-score <score>- Minimum passing score--exclude <rules>- Excluded rule IDs--layers <layers>- Detection layers (0,1,2,3,4)--no-scripts- Skip scripts/ directory scanning-q, --quiet- Minimal output
Format Validation
sg validate <path>
# Examples
sg validate ./my-skillTool Risk Check
sg check-tools <tools...>
# Examples
sg check-tools "Bash(*)" Read Write WebFetch
sg check-tools Bash\(git:\*\) ReadList Rules
sg rules [options]
# Examples
sg rules
sg rules -c injection # Filter by category
sg rules -s high # Filter by severity
sg rules --json # JSON formatExplain Rule
sg explain <ruleId>
# Examples
sg explain INJ001
sg explain SEC003Quick Scan
# Read from stdin
cat SKILL.md | sg quick
echo "---\nname: test\n---" | sg quick -f jsonOutput Example
╔═══════════════════════════════════════════════════════════╗
║ 🛡️ Skills Guard - Agent Skills Security Detection ║
╚═══════════════════════════════════════════════════════════╝
🔍 Scan Target: ./my-skill
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Scan Results Overview
────────────────────────────────────────────────────────────
Security Score: 70/100 🟡 Low Risk
Scan Duration: 5ms
Skill Name: my-skill
📋 Issue Statistics
────────────────────────────────────────────────────────────
🔴 High: 0 🟠 Medium: 2 🟡 Low: 1 ℹ️ Info: 0
Total: 3 issuesLicense
MIT
