#!/bin/bash set -euo pipefail DEXTO_DIR="${HOME}/.claude/dexto" SOURCE_DIR="/tmp/dexto-repo" COMMANDS_DIR="${HOME}/.claude/commands" SKILLS_DIR="${HOME}/.claude/skills" mkdir -p "$DEXTO_DIR" "$SKILLS_DIR/dexto-agents" "$SKILLS_DIR/dexto-tools" log() { echo "[$(date -u +"%Y-%m-%d %H:%M:%S UTC")] $*"; } log "Starting Dexto integration..." # Copy source if [[ -d "$SOURCE_DIR" ]]; then cp -r "$SOURCE_DIR"/* "${DEXTO_DIR}/" 2>/dev/null || true log "Source copied" fi # Create 12 agent commands for agent in database github pdf image-edit music research triage nano-banana podcast sora code explore; do name=$(echo $agent | sed 's/-/ /g' | sed -e 's/\b\(.\)/\u\1/g'); cat > "${COMMANDS_DIR}/dexto-${agent}.md" << CMD --- description: "Dexto ${name} Agent" --- Use Dexto ${name} Agent. **Task:** {{USER_MESSAGE}} CMD done log "Created 12 agent commands" # Create 5 tool skills for tool in filesystem playwright process todo plan; do cat > "${SKILLS_DIR}/dexto-tools/${tool}.md" << TOOL --- name: dexto-${tool} description: "Dexto ${tool} tools" --- # Dexto ${tool} Tools Use Dexto ${tool} capabilities. TOOL done log "Created 5 tool skills" # Master skill cat > "${SKILLS_DIR}/dexto-master.md" << MASTER --- name: dexto-master description: "Master Dexto integration - orchestrates all Dexto agents" --- # Dexto Master Integration Automatically selects appropriate Dexto agent: - /dexto-code - Development - /dexto-github - GitHub - /dexto-pdf - Documents - /dexto-image-edit - Images - /dexto-nano-banana - AI images - /dexto-sora - Videos - /dexto-music - Music - /dexto-podcast - Podcasts - And more... Usage: "Use Dexto to analyze this codebase" MASTER log "Created master skill" log "Dexto integration complete!" log "Commands: /dexto-code, /dexto-github, /dexto-pdf, etc."