diff --git a/src/commands/skillsInstall.ts b/src/commands/skillsInstall.ts index bdc080e..416fd06 100644 --- a/src/commands/skillsInstall.ts +++ b/src/commands/skillsInstall.ts @@ -60,7 +60,12 @@ export function linkSkillEntries( } try { - fs.symlinkSync(source, target); + // On Windows, directory symlinks require elevated privileges or Developer Mode. + // Junctions work for directories without special permissions. + const isDir = fs.statSync(source).isDirectory(); + const type = + process.platform === 'win32' && isDir ? 'junction' : undefined; + fs.symlinkSync(source, target, type); links.push({name: entry, status: 'linked'}); } catch (error) { links.push({