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
This commit is contained in:
parent
a4587a3686
commit
1feb27b149
24 changed files with 74 additions and 94 deletions
47
INSTALL.sh
47
INSTALL.sh
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Installazione Agency Skills Suite
|
||||
# Script generico per Unix/Linux/Mac
|
||||
# Nota: Nessun symlink necessario - percorsi diretti nei SKILL.md
|
||||
|
||||
set -e
|
||||
|
||||
|
|
@ -23,36 +24,40 @@ mkdir -p "$(dirname "$TARGET")"
|
|||
echo "📦 Copia skills in $TARGET..."
|
||||
cp -r "$SOURCE" "$TARGET"
|
||||
|
||||
# Verifica/Crea symlink per tutte le skills
|
||||
echo "🔗 Configurazione symlink references..."
|
||||
# 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
|
||||
# Salta la cartella shared-references
|
||||
if [ "$skill_dir" = "agency-shared-references/" ]; then
|
||||
echo " ✓ $skill_dir (shared references, no symlink needed)"
|
||||
continue
|
||||
if [ -d "$skill_dir" ] && [ -f "$skill_dir/SKILL.md" ]; then
|
||||
SKILL_COUNT=$((SKILL_COUNT + 1))
|
||||
echo " ✓ $skill_dir"
|
||||
fi
|
||||
|
||||
# Rimuovi references esistenti (file o symlink)
|
||||
if [ -e "$skill_dir/references" ]; then
|
||||
rm -rf "$skill_dir/references"
|
||||
fi
|
||||
|
||||
# Crea symlink verso agency-shared-references/references
|
||||
ln -s ../agency-shared-references/references "$skill_dir/references"
|
||||
echo " ✓ $skill_dir → ../agency-shared-references/references"
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "✅ Installation complete!"
|
||||
echo ""
|
||||
echo "Skills installate in: $TARGET"
|
||||
echo "Totale skills: $SKILL_COUNT"
|
||||
echo "Totale references: $REF_COUNT"
|
||||
echo ""
|
||||
echo "Skills disponibili:"
|
||||
ls -1 "$TARGET" | grep -v references | sed 's/^/ - /'
|
||||
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>'"
|
||||
echo ""
|
||||
echo "Verifica symlink:"
|
||||
echo " cd $TARGET"
|
||||
echo " ls -la */references"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue