The machine now carries its own manual for AI hands

Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
Gabriel Brown
2026-08-25 10:09:38 -04:00
parent beed44dd87
commit 045a774847
16 changed files with 1321 additions and 30 deletions
+25
View File
@@ -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"