Install
openclaw skills install skill-auditor-plusSecurity, performance, and quality auditing for AgentSkills. Use when reviewing skills before installation, auditing during development, checking installed s...
openclaw skills install skill-auditor-plusTransform skill development from "hope it works" to "confidently secure and optimized". This skill provides automated auditing for AgentSkills across three dimensions: security, performance, and quality.
Automatically scans for:
rm -rf), system commands (eval, exec), code executionSeverity levels:
Analyzes skill efficiency:
Key metrics:
Checks best practices compliance:
# Clone or download the skill
cd skill-auditor-plus
# Run security audit
python3 scripts/security_audit.py /path/to/skill-to-audit
# Run performance audit
python3 scripts/performance_audit.py /path/to/skill-to-audit
# After making changes, audit your skill
python3 scripts/security_audit.py /path/to/your-skill
python3 scripts/performance_audit.py /path/to/your-skill
# Fix issues, then re-audit
# Iterate until no high/medium severity issues remain
# Audit all skills in a directory
for skill in /path/to/skills/*; do
echo "Auditing $skill"
python3 scripts/security_audit.py "$skill"
python3 scripts/performance_audit.py "$skill"
done
{
"total_issues": 5,
"high_severity": 1,
"medium_severity": 2,
"low_severity": 2,
"issues": [
{
"category": "credential_leaks",
"severity": "high",
"file": "scripts/api_client.py",
"line": 15,
"pattern": "api_key\\s*=\\s*[\"'][\\w-]+[\"']",
"matched_text": "api_key = \"sk-1234567890\"",
"context": "api_key = \"sk-1234567890\""
}
]
}
What to do:
{
"skill_md_stats": {
"frontmatter_tokens": 85,
"body_tokens": 7500,
"total_tokens": 7585,
"line_count": 520
},
"issues": [
{
"severity": "high",
"category": "body_too_long",
"message": "Body is too long (7500 tokens, should be < 5000)",
"suggestion": "Split content into references/ files and link from SKILL.md"
}
]
}
What to do:
See best-practices.md for comprehensive guidelines on:
Edit scripts/security_audit.py to add custom patterns:
DANGEROUS_PATTERNS = {
'custom_risk': [
r'your_custom_regex_pattern',
],
}
Edit scripts/performance_audit.py to adjust thresholds:
if stats['body_tokens'] > 5000: # Change this value
issues.append({...})
Add to your CI pipeline:
# .github/workflows/skill-audit.yml
name: Skill Audit
on: [push, pull_request]
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Security Audit
run: |
python3 skill-auditor-plus/scripts/security_audit.py .
- name: Performance Audit
run: |
python3 skill-auditor-plus/scripts/performance_audit.py .
Install required dependencies:
pip install pyyaml # if needed
If the scanner flags safe code:
This is normal for complex skills. Split content into references/:
Found a bug or want to add features? This skill is open source. Contributions welcome!
MIT License - See LICENSE file for details