From buddy-evolver
This skill should be used when the user asks to "security audit", "check security", "audit buddy", "check backup health", "verify backup", or "security check".
How this skill is triggered — by the user, by Claude, or both
Slash command
/buddy-evolver:audit-securityThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run a security audit of the Buddy Evolver installation. Check backup health, file permissions, and metadata integrity.
Run a security audit of the Buddy Evolver installation. Check backup health, file permissions, and metadata integrity.
SOUL_BACKUP="$HOME/.claude/backups/.claude.json.pre-customize"
META_FILE="$HOME/.claude/backups/buddy-patch-meta.json"
echo "=== Backup Files ==="
ls -la "$SOUL_BACKUP" 2>/dev/null || echo "Soul backup: NOT FOUND"
ls -la "$META_FILE" 2>/dev/null || echo "Metadata: NOT FOUND"
echo "=== Permissions ==="
stat -f "%Sp %N" "$HOME/.claude/backups/" 2>/dev/null || echo "Backup dir: NOT FOUND"
stat -f "%Sp %N" "$SOUL_BACKUP" 2>/dev/null || echo "Soul backup: NOT FOUND"
stat -f "%Sp %N" "$META_FILE" 2>/dev/null || echo "Metadata: NOT FOUND"
Check that backup dir is drwx------ (700) and files are -rw------- (600). Flag any world-readable files.
plutil -extract companion json -o - ~/.claude.json 2>/dev/null || echo "No companion data found"
if [ -f "$META_FILE" ]; then
python3 -c "
import json, sys
with open(sys.argv[1]) as f:
meta = json.load(f)
print(f' schema_version: {meta.get(\"schema_version\", \"MISSING\")}')
for key in ['species', 'rarity', 'shiny', 'emoji', 'name', 'personality', 'stats']:
if key in meta:
print(f' {key}: {meta[key]}')
" "$META_FILE"
fi
Display results as a security scorecard:
Security Audit Report
═════════════════════
Soul backup exists ✅ / ❌
Metadata file exists ✅ / ❌ / ⚠️ (not found)
Backup dir permissions (700) ✅ / ❌
Backup file permissions (600) ✅ / ❌
Companion data present ✅ / ❌
Metadata is valid JSON ✅ / ❌
Metadata schema_version == 2 ✅ / ❌
Overall: X/7 checks passed
If any checks failed, provide specific remediation advice:
npx claudepluginhub soul-craft/buddy-evolver --plugin buddy-evolverAudits Elle context system at ~/.claude/.context/core/ for staleness, contradictions, bloat, missing data, sync issues, and improvements. Use when responses feel generic, outdated, or after changes.
Runs a self-check on an AI Brain Starter vault to verify CLAUDE.md, Meta folder, skills, hooks, journal index, MCPs, and file formatting integrity. Use when something feels off, after a git pull, or when onboarding a vault.
Audits .claude/ config for cross-references, permissions, inventory drift, model tiers, docs freshness. Auto-fixes issues at high/medium/all severity levels or upgrades with verification and A/B testing.