#!/bin/bash # Orto Skills Suite v1.0 — Installation Script # For teams: Extract & install all 9 skills set -e echo "╔════════════════════════════════════════════════════════════════╗" echo "║ Orto Skills Suite v1.0 — Team Installation Script ║" echo "╚════════════════════════════════════════════════════════════════╝" echo "" # Determine installation directory if [ -z "$OPENCLAW_SKILLS_DIR" ]; then INSTALL_DIR="${HOME}/.openclaw/skills/orto-suite" else INSTALL_DIR="$OPENCLAW_SKILLS_DIR/orto-suite" fi echo "📂 Installation directory: $INSTALL_DIR" echo "" # Create directory if [ ! -d "$INSTALL_DIR" ]; then echo "📁 Creating directory..." mkdir -p "$INSTALL_DIR" else echo "⚠️ Directory already exists. Backing up existing..." mv "$INSTALL_DIR" "${INSTALL_DIR}.backup.$(date +%s)" mkdir -p "$INSTALL_DIR" fi # Find .skill files (in current dir or subdirs) SKILL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" DIST_DIR="$SKILL_DIR/build/dist" if [ ! -d "$DIST_DIR" ]; then echo "❌ Error: build/dist/ not found!" echo " Expected at: $DIST_DIR" exit 1 fi echo "📦 Installing 9 skills from: $DIST_DIR" echo "" # Extract all .skill files skill_count=0 for skill in "$DIST_DIR"/*.skill; do if [ -f "$skill" ]; then skill_name=$(basename "$skill" .skill) echo " ⬇️ Installing $skill_name..." unzip -q "$skill" -d "$INSTALL_DIR" ((skill_count++)) fi done echo "" echo "✅ Installation complete!" echo "" echo "📊 Results:" echo " • $skill_count skills installed" echo " • Location: $INSTALL_DIR" echo "" # Verify installation echo "🔍 Verifying installation..." skill_files=$(find "$INSTALL_DIR" -name "SKILL.md" | wc -l) echo " ✅ Found $skill_files SKILL.md files" echo "" # List installed skills echo "📋 Installed skills:" ls -1 "$INSTALL_DIR" | while read skill; do if [ -f "$INSTALL_DIR/$skill/SKILL.md" ]; then echo " ✓ $skill" fi done echo "" # Next steps echo "🚀 Next steps:" echo "" echo "1. Create your first garden:" echo " openclaw invoke $INSTALL_DIR/orto-init/SKILL.md \\" echo " --id orto_mytown_001 \\" echo " --name 'My Garden' \\" echo " --provincia Roma \\" echo " --regione Lazio \\" echo " --lat 41.8782 \\" echo " --lon 12.4922" echo "" echo "2. Run onboarding (collect profile):" echo " openclaw invoke $INSTALL_DIR/orto-onboarding/SKILL.md \\" echo " --orto-id orto_mytown_001" echo "" echo "3. Generate full plan:" echo " openclaw invoke $INSTALL_DIR/orto-orchestratore/SKILL.md \\" echo " --orto-id orto_mytown_001" echo "" echo "4. Check output:" echo " ~/.openclaw/workspace/Orti/orto_mytown_001/" echo "" echo "📖 For documentation, see:" echo " • README.md" echo " • INSTALLATION_GUIDE.md" echo " • INDEX.md" echo "" echo "🌱 Happy gardening!" echo ""