heal-skill
SKILL.md
/heal-skill — Automated Skill Maintenance
Purpose: Detect and auto-fix common skill hygiene issues across the skills/ directory.
YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.
Quick Start
/heal-skill # Check all skills (report only)
/heal-skill --fix # Auto-repair all fixable issues
/heal-skill skills/council # Check a specific skill
/heal-skill --fix skills/vibe # Fix a specific skill
What It Detects
Six checks, run in order:
| Code | Issue | Auto-fixable? |
|---|---|---|
MISSING_NAME |
No name: field in SKILL.md frontmatter |
Yes -- adds name from directory |
MISSING_DESC |
No description: field in SKILL.md frontmatter |
Yes -- adds placeholder |
NAME_MISMATCH |
Frontmatter name differs from directory name |
Yes -- updates to match directory |
UNLINKED_REF |
File in references/ not linked in SKILL.md | Yes -- converts bare backtick refs to markdown links |
EMPTY_DIR |
Skill directory exists but has no SKILL.md | Yes -- removes empty directory |
DEAD_REF |
SKILL.md references a non-existent references/ file | No -- warn only |
Execution Steps
Step 1: Run the heal script
# Check mode (default) -- report only, no changes
bash skills/heal-skill/scripts/heal.sh --check
# Fix mode -- auto-repair what it can
bash skills/heal-skill/scripts/heal.sh --fix
# Target a specific skill
bash skills/heal-skill/scripts/heal.sh --check skills/council
bash skills/heal-skill/scripts/heal.sh --fix skills/council
Step 2: Interpret results
- Exit 0: All clean, no findings.
- Exit 1: Findings reported. In
--fixmode, fixable issues were repaired; re-run--checkto confirm.
Step 3: Report to user
Show the output. If --fix was used, summarize what changed. If DEAD_REF findings remain, advise the user to remove or update the broken references manually.
Output Format
One line per finding:
[MISSING_NAME] skills/foo: No name field in frontmatter
[MISSING_DESC] skills/foo: No description field in frontmatter
[NAME_MISMATCH] skills/foo: Frontmatter name 'bar' != directory 'foo'
[UNLINKED_REF] skills/foo: refs/bar.md not linked in SKILL.md
[EMPTY_DIR] skills/foo: Directory exists but no SKILL.md
[DEAD_REF] skills/foo: SKILL.md links to non-existent refs/bar.md
Notes
- The script is idempotent -- running
--fixtwice produces the same result. DEAD_REFis warn-only in--fixmode because the correct resolution (delete reference, create file, or update link) requires human judgment.- When run without a path argument, scans all directories under
skills/.
Weekly Installs
33
Repository
boshu2/agentopsFirst Seen
3 days ago
Security Audits
Installed on
cursor33
mcpjam32
claude-code32
junie32
windsurf32
zencoder32