Skip to content

Commit 926c8db

Browse files
Brooooooklynclaude
andcommitted
fix(cli): pass 'dir' type to symlinkSync for Windows compatibility
On Windows, symlinkSync without a type argument auto-detects by stat-ing the target relative to process.cwd(), not the link's parent directory. This causes directory symlinks to be created as file type, breaking skill linking. Passing 'dir' explicitly fixes this (ignored on macOS/Linux). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 40d4a8d commit 926c8db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/utils/skills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function linkSkills(
9898
}
9999

100100
try {
101-
symlinkSync(relativeTarget, linkPath);
101+
symlinkSync(relativeTarget, linkPath, 'dir');
102102
} catch (err: unknown) {
103103
prompts.log.warn(` ${skill.name} — failed to create symlink: ${(err as Error).message}`);
104104
continue;

0 commit comments

Comments
 (0)