From 3e8fd4d5029774b72fb1e19000affb9fdcdf83ae Mon Sep 17 00:00:00 2001 From: Magnus Hedemark Date: Fri, 29 May 2026 22:56:56 -0400 Subject: [PATCH] fix(bundle-builder): register generated sub-skills with skill_manage After writing bundle files, iterate through each sub-skill and register it using skill_manage(action='create', ...) so Hermes can discover it via skill_view() and skills_list(). Sub-skills get a '/' prefix to avoid naming collisions across bundles. Closes #50 --- .../skills/bundle-builder/SKILL.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/bundles/workflow-architect/skills/bundle-builder/SKILL.md b/bundles/workflow-architect/skills/bundle-builder/SKILL.md index a1d2f20..9f05193 100644 --- a/bundles/workflow-architect/skills/bundle-builder/SKILL.md +++ b/bundles/workflow-architect/skills/bundle-builder/SKILL.md @@ -240,6 +240,26 @@ Present the decision to the user: add much value here because [reason]. [If yes: I'll add one to the bundle.]" ``` +8. **Register sub-skills** — For each generated sub-skill `.md` file in + `skills/`, register it so Hermes can discover it via `skill_view()` and + `skills_list()`: + + ``` + For each sub-skill file `skills/.md`: + Read the file content + skill_manage( + action='create', + name='/', + content=file_content + ) + ``` + + This makes each sub-skill loadable as `skill_view('/')`. + The bundle name prefix prevents naming collisions with other skills. + + If `skill_manage` is not available in the agent's toolset, note this for + the user and suggest they run the registration manually. + ## Cleanup After writing all files: