skill_view resolves by directory name but skills_list displays frontmatter name — mismatch causes "not found"
Description
When a skill's directory name differs from its YAML frontmatter name, loading it with skill_view fails with "Skill not found" when using the name shown in skills_list.
Repro
# Skill stored at: ~/.hermes/skills/darwin/SKILL.md
# Frontmatter: name: darwin-skill
hermes skills list
# Shows: darwin-skill | Darwin Skill (达尔文.skill): ...
Then in-session:
skill_view('darwin-skill') # ❌ Skill 'darwin-skill' not found
skill_view('darwin') # ✅ works
Root cause
skills_list displays the frontmatter name field (darwin-skill)
skill_view resolves by directory name (darwin/)
- These two values can diverge (e.g.,
darwin-skill vs darwin), creating a confusing UX where the user copies the name from the list and it doesn't work
Expected behavior
skill_view should accept both the directory name and the frontmatter name, or skills_list should display the directory name (the canonical identifier).
Environment
- Hermes Agent latest
- macOS
- Skill: darwin-skill (directory
darwin/, frontmatter name: darwin-skill)
Labels
bug skills
skill_viewresolves by directory name butskills_listdisplays frontmattername— mismatch causes "not found"Description
When a skill's directory name differs from its YAML frontmatter
name, loading it withskill_viewfails with "Skill not found" when using the name shown inskills_list.Repro
Then in-session:
Root cause
skills_listdisplays the frontmatternamefield (darwin-skill)skill_viewresolves by directory name (darwin/)darwin-skillvsdarwin), creating a confusing UX where the user copies the name from the list and it doesn't workExpected behavior
skill_viewshould accept both the directory name and the frontmattername, orskills_listshould display the directory name (the canonical identifier).Environment
darwin/, frontmattername: darwin-skill)Labels
bugskills