diff --git a/setup.sh b/setup.sh index 593eb76..2f67ce8 100755 --- a/setup.sh +++ b/setup.sh @@ -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 \