bahayonghang

skill-audit

Analyze Claude Code skills for compliance and token efficiency. Use when reviewing skills.

bahayonghang 17 Actualitzat fa 8 mesos

Recursos

2
GitHub

Instal·la

npx skillscat add bahayonghang/my-claude-code-settings/skill-audit

Instal·la des del registre de SkillsCat.

SKILL.md

Audit the skill at $ARGUMENTS.

Steps

  1. If $ARGUMENTS empty or no SKILL.md found, report error.
  2. Run: python "$SKILL_DIR/scripts/analyze_skill.py" "$ARGUMENTS"
  3. Read $SKILL_DIR/resources/CHECKLIST.md and $SKILL_DIR/resources/PATTERNS.md.
  4. Cross-reference JSON with CHECKLIST and PATTERNS.
  5. If parent directory has sibling skills, run: python "$SKILL_DIR/scripts/detect_overlap.py" "<parent>" --target "<name>"
  6. Present: Critical → Recommended → Optional, each with before/after fix.
  7. Output optimized SKILL.md resolving Critical and Recommended issues.

Output

Issues by severity, token budget table (Before/After/Δ), overlap report (if any), optimized SKILL.md.

Rules

  • Official frontmatter fields only.
  • Body < 300 tokens, imperative voice, no educational content.
  • Preserve intent. Move reference content to resources/.