framework-translator/scripts/01_scan_files.sh
AgentePotente c40ddf4b59 Initial commit: framework-translator skill (LLM-native approach)
- SKILL.md: Istruzioni complete per LLM (Fasi 1-5)
- references/mapping_patterns.md: 13 pattern di trasformazione
- references/skill_template.md: Template standardizzato SKILL.md
- scripts/: 3 script meccanici bash (scan, structure, packaging)
- PIANO_SVILUPPO.md: Piano di sviluppo originale (documentazione)

Approccio: LLM-native con script minimali per operazioni meccaniche.
Token usage stimato: ~35-65K per framework.
Vantaggi: comprensione semantica, adattabilità, manutenzione semplice.
2026-03-07 10:14:37 +01:00

54 lines
1.4 KiB
Bash
Executable file

#!/bin/bash
# 01_scan_files.sh — Scansione file framework
# Solo meccanico: lista file markdown e struttura directory
set -e
FRAMEWORK_PATH="$1"
if [ -z "$FRAMEWORK_PATH" ]; then
echo "❌ Usage: $0 <framework-path>"
exit 1
fi
if [ ! -d "$FRAMEWORK_PATH" ]; then
echo "❌ Error: Directory not found: $FRAMEWORK_PATH"
exit 1
fi
echo "📂 Scansione framework: $FRAMEWORK_PATH"
echo "=============================================="
# Struttura directory
echo ""
echo "### STRUTTURA DIRECTORY"
echo ""
find "$FRAMEWORK_PATH" -type d | grep -v "/\." | sort | head -50
# File markdown
echo ""
echo "### FILE MARKDOWN ($(find "$FRAMEWORK_PATH" -name "*.md" | wc -l | tr -d ' ') totali)"
echo ""
find "$FRAMEWORK_PATH" -type f -name "*.md" | grep -v "/\." | sort
# Script
echo ""
echo "### SCRIPT ($(find "$FRAMEWORK_PATH" -type f \( -name "*.py" -o -name "*.sh" \) | wc -l | tr -d ' ') totali)"
echo ""
find "$FRAMEWORK_PATH" -type f \( -name "*.py" -o -name "*.sh" \) | grep -v "/\." | sort
# Cartelle chiave
echo ""
echo "### CARTELLE CHIAVE IDENTIFICATE"
echo ""
for pattern in agents agenti actors roles workflows flussi processes knowledge docs scripts tools prompts; do
found=$(find "$FRAMEWORK_PATH" -type d -iname "*$pattern*" | grep -v "/\." | head -3)
if [ -n "$found" ]; then
echo "$pattern: $found"
fi
done
echo ""
echo "=============================================="
echo "✅ Scansione completata"