fix: support symlinked skill directories in workspace#31
Merged
ErlichLiu merged 1 commit intoErlichLiu:mainfrom Feb 19, 2026
Merged
fix: support symlinked skill directories in workspace#31ErlichLiu merged 1 commit intoErlichLiu:mainfrom
ErlichLiu merged 1 commit intoErlichLiu:mainfrom
Conversation
`readdirSync` with `withFileTypes: true` returns `Dirent` objects where `isDirectory()` returns false for symlinks. This causes symlinked skill folders to be silently skipped during workspace skill scanning. Add `isSymbolicLink()` check with `statSync` to follow symlinks and correctly identify directories they point to. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Problem
getWorkspaceSkills()usesreaddirSync()with{ withFileTypes: true }and checksentry.isDirectory()to filter skill directories. However, Node.jsDirent.isDirectory()returnsfalsefor symbolic links, causing symlinked skill folders to be silently skipped.This prevents users from sharing skills across tools (e.g., Claude Code ↔ Proma) via symlinks.
Fix
Add an
isSymbolicLink()check withstatSync()to follow symlinks and correctly identify the directories they point to:Verification
Tested locally — symlinked skill directories are now correctly discovered and loaded.