hardlink
hardlink.ts
bash/hardlink/hardlink.ts (also available as hardlink.sh and hardlink.js, see below) keeps path B linked to path A for every A <arrow> B pair listed in a markdown config file.
One source of truth (A), any number of other places (B) where it has to be visible: a shared script used by few
projects, a config living in the home directory, a library directory mounted in another directory.
The kind of link is always explicit, chosen by the arrow, never guessed. It is safe to run again and again: pairs already linked are skipped, and nothing is replaced when content would be lost.
The full and authoritative documentation is the help page - when this file and the help page differ, the help page wins:
NODE_OPTIONS= node bash/hardlink/hardlink.ts --help
Make sure the script is in the project
Source: the script is shipped with this skill, nothing to download. It lies next to this SKILL.md file
(below <skill-dir> = directory of this SKILL.md) in three versions with the same config format, options and messages: