Skip to content

Commit f0e856b

Browse files
fix: handle symlinks when scanning user/project skill directories
Previously collectSkillsFromRoots only checked isDirectory(), which returns false for symbolic links on some platforms (particularly Windows). This caused symlinked skills in ~/.claude/skills/ to be silently skipped in the settings UI. The plugin scanning path already had the correct isDirectory() || isSymbolicLink() guard — this aligns the user/project scanning to match.
1 parent fd16175 commit f0e856b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/api/skills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ async function collectSkillsFromRoots(
224224
}
225225

226226
for (const entry of entries) {
227-
if (!entry.isDirectory() || entry.name.startsWith('.') || seenNames.has(entry.name)) {
227+
if ((!entry.isDirectory() && !entry.isSymbolicLink()) || entry.name.startsWith('.') || seenNames.has(entry.name)) {
228228
continue
229229
}
230230

0 commit comments

Comments
 (0)