type: rule
status: active
timestamp: 2026-06-29
tags: [windows, junction, symlink, link, hard-rule]

Junctions on Windows, symlinks on Unix

Use directory junctions on Windows (mklink /J), symlinks on Unix (ln -s). No Developer Mode needed

Junctions on Windows, symlinks on Unix

Rule

When creating filesystem links to shared content (e.g. agent-skills monorepo into ~/.claude/skills, ~/.aider-desk/skills, etc.):

PropertyJunction (/J)Symlink (/D)
Needs admin / Developer Mode?NoYes
Transparent to every tool?YesYes (mostly)
Survives across processes?YesYes
Cross-volume?No (same drive only)Yes
Network paths?NoYes

For local same-drive content (which is every skill/config in this fleet), junctions win because they need no privilege elevation. Symlinks require Developer Mode or admin, and break when the user runs the script from a non-elevated shell.

Anti-patterns

When to break the rule

Both edge cases are rare in this fleet (everything lives on C:).

Cross-refs


Edit on GitHub · Back to index