From 02aba4a728e26b4756d2932bafd890d663f6328a Mon Sep 17 00:00:00 2001 From: Anders Bell <268198004+xandersbell@users.noreply.github.com> Date: Sat, 18 Apr 2026 02:04:23 +0300 Subject: [PATCH] fix(skills): follow symlinks in iter_skill_index_files os.walk() by default does not follow symlinks, causing skills linked via symlinks to be invisible to the skill discovery system. Add followlinks=True so that symlinked skill directories are scanned. --- agent/skill_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/skill_utils.py b/agent/skill_utils.py index f7979122e..d4d94f7e2 100644 --- a/agent/skill_utils.py +++ b/agent/skill_utils.py @@ -435,7 +435,7 @@ def iter_skill_index_files(skills_dir: Path, filename: str): Excludes ``.git``, ``.github``, ``.hub`` directories. """ matches = [] - for root, dirs, files in os.walk(skills_dir): + for root, dirs, files in os.walk(skills_dir, followlinks=True): dirs[:] = [d for d in dirs if d not in EXCLUDED_SKILL_DIRS] if filename in files: matches.append(Path(root) / filename)