agency-skills-suite/INSTALL.sh
AgentePotente 1feb27b149 Rimozione symlink: percorsi diretti verso agency-shared-references
- Eliminati tutti i symlink references/ dalle 14 skills
- Aggiornati tutti i riferimenti nei SKILL.md con percorsi completi
  (es. ../agency-shared-references/references/quality_bar.md)
- README.md aggiornato: nessuna configurazione symlink necessaria
- INSTALL.sh semplificato: solo copia e verifica, no symlink
- Struttura più semplice e compatibile con tutte le piattaforme
- Nessun file di configurazione o link simbolico richiesto
2026-03-11 00:19:22 +01:00

63 lines
1.7 KiB
Bash
Executable file

#!/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/<nome-skill>'"