The machine now carries its own manual for AI hands
Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
@@ -95,6 +95,31 @@ while read -r kind source destination; do
|
||||
log "Linked $source → $dst"
|
||||
linked=$(( linked + 1 ))
|
||||
;;
|
||||
linkdir)
|
||||
# A destination that has to hold more than this one source. The
|
||||
# only one today is ~/.claude/skills, which now carries Panama's
|
||||
# own shipped skills as well as these -- so the directory itself
|
||||
# cannot be a symlink, and each child is linked into it instead.
|
||||
#
|
||||
# Whatever link-skills put there is kept; only same-named entries
|
||||
# are displaced, which is how a personal skill deliberately
|
||||
# shadows a shipped one. This stage runs last for that reason.
|
||||
if [[ -L "$dst" ]]; then
|
||||
rm -f "$dst"
|
||||
elif [[ -e "$dst" && ! -d "$dst" ]]; then
|
||||
displace "$dst"
|
||||
fi
|
||||
mkdir -p "$dst"
|
||||
|
||||
for child in "$src"/*; do
|
||||
[[ -e "$child" ]] || continue
|
||||
child_name="$(basename "$child")"
|
||||
displace "$dst/$child_name"
|
||||
ln -s "$child" "$dst/$child_name"
|
||||
log "Linked $source/$child_name → $dst/$child_name"
|
||||
linked=$(( linked + 1 ))
|
||||
done
|
||||
;;
|
||||
copy)
|
||||
if [[ -e "$dst" ]]; then
|
||||
log "Keeping existing $dst"
|
||||
|
||||
Reference in New Issue
Block a user