fix: skill_manage now finds skills from external_dirs - #4868
Closed
Mibayy wants to merge 1 commit into
Closed
Conversation
) _find_skill() only scanned SKILLS_DIR (~/.hermes/skills/) via rglob, missing skills from external_dirs configured in config.yaml. This caused "Skill not found" errors for patch/edit/delete operations on skills that were visible and loadable via _find_all_skills(). Mirror the dirs_to_scan pattern from _find_all_skills() in skills_tool.py: scan both SKILLS_DIR and get_external_skills_dirs(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
Thanks for the contribution, @Mibayy! This fix was independently implemented on main by a maintainer on the same day this PR was opened. Automated hermes-sweeper review.
Closing as implemented on main. The underlying issue #4759 is fully resolved. |
This was referenced Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #4759 —
skill_manageoperations (patch, edit, delete, write_file, remove_file) fail with "Skill not found" for skills loaded fromexternal_dirs.Root cause:
_find_skill()intools/skill_manager_tool.pyonly scannedSKILLS_DIR(~/.hermes/skills/) viarglob("SKILL.md"). Skills fromexternal_dirsconfigured inconfig.yamlwere invisible to it, even though_find_all_skills()(used for listing/viewing) correctly scanned them.Fix: Mirror the
dirs_to_scanpattern from_find_all_skills()— scan bothSKILLS_DIRandget_external_skills_dirs().Changes
tools/skill_manager_tool.py:_find_skill()now importsget_external_skills_dirsfromagent.skill_utilsand scans all configured directoriesTest plan
skills.external_dirsin config.yaml pointing to a skill directoryskill_manage(action='patch', name='skill-from-external-dir', ...)succeeds~/.hermes/skills/still found correctly🤖 Generated with Claude Code