← knowledge.oriz.in

Junctions on Windows, symlinks on Unix

rule windowsjunctionsymlinklinkhard-rule

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.):

Why junctions over symlinks on Windows

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

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