save in main

This commit is contained in:
Jun-te Kim 2026-05-05 17:28:02 +00:00
parent af8ea95a5b
commit 3e04fe14ae

View file

@ -98,8 +98,15 @@ echo "==> Installing skills globally (~/.claude)"
while IFS=$'\t' read -r SOURCE SKILLS; do
[[ -z "$SOURCE" ]] && continue
echo "==> $SOURCE :: $SKILLS"
# The skills CLI expects --skill repeated per name, not a comma-joined string.
SKILL_ARGS=()
IFS=',' read -ra _NAMES <<< "$SKILLS"
for n in "${_NAMES[@]}"; do
[[ -z "$n" ]] && continue
SKILL_ARGS+=(--skill "$n")
done
npx --yes skills@latest add "$SOURCE" \
--skill "$SKILLS" \
"${SKILL_ARGS[@]}" \
--agent "$AGENT_TARGET" \
--copy \
--global \