Loading...
Loading...
Automated skill maintenance. Detects and fixes common skill issues: missing frontmatter, name mismatches, unlinked references, empty directories, dead references. Triggers: "heal-skill", "heal skill", "fix skills", "skill maintenance", "repair skills".
npx skill4agent add boshu2/agentops heal-skillPurpose: Detect and auto-fix common skill hygiene issues across the skills/ directory.
/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| Code | Issue | Auto-fixable? |
|---|---|---|
| No | Yes -- adds name from directory |
| No | Yes -- adds placeholder |
| Frontmatter | Yes -- updates to match directory |
| File in references/ not linked in SKILL.md | Yes -- converts bare backtick refs to markdown links |
| Skill directory exists but has no SKILL.md | Yes -- removes empty directory |
| SKILL.md references a non-existent references/ file | No -- warn only |
# 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--fix--check--fixDEAD_REF[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--fixDEAD_REF--fixskills/