#!/bin/bash # Installazione Agency Skills Suite # Script generico per Unix/Linux/Mac # Nota: Nessun symlink necessario - percorsi diretti nei SKILL.md set -e SOURCE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" TARGET="$HOME/.openclaw/skills/agency-skills-suite" echo "🚀 Installing Agency Skills Suite..." echo "" # Rimuovi installazione precedente se esiste if [ -d "$TARGET" ]; then echo "⚠️ Rimozione installazione precedente..." rm -rf "$TARGET" fi # Crea directory target mkdir -p "$(dirname "$TARGET")" # Copia skills echo "📦 Copia skills in $TARGET..." cp -r "$SOURCE" "$TARGET" # Verifica struttura echo "🔍 Verifica struttura..." cd "$TARGET" # Verifica che agency-shared-references esista if [ ! -d "agency-shared-references/references" ]; then echo "❌ Errore: agency-shared-references/references non trovato" exit 1 fi # Conta i file reference REF_COUNT=$(ls -1 agency-shared-references/references/*.md 2>/dev/null | wc -l) echo " ✓ agency-shared-references/references/ ($REF_COUNT file)" # Verifica che tutte le skills esistano SKILL_COUNT=0 for skill_dir in agency-*/; do if [ -d "$skill_dir" ] && [ -f "$skill_dir/SKILL.md" ]; then SKILL_COUNT=$((SKILL_COUNT + 1)) echo " ✓ $skill_dir" fi done echo "" echo "✅ Installation complete!" echo "" echo "Skills installate in: $TARGET" echo "Totale skills: $SKILL_COUNT" echo "Totale references: $REF_COUNT" echo "" echo "Nota: Nessun symlink necessario. I SKILL.md usano percorsi diretti." echo "" echo "Verifica installazione:" echo " cd $TARGET" echo " ls agency-shared-references/references/" echo "" echo "Per usare una skill, riferisciti a lei come 'agency-skills-suite/'"