← ClaudeAtlas

auto-setup-summonerlisted

Automatically guide user to initialize Summoner when summoner.yaml is missing
johnson-xue/summoner · ★ 1 · Code & Development · score 70
Install: claude install-skill johnson-xue/summoner
# Auto Setup Summoner Skill Automatically detect if Summoner is not initialized and guide user through setup. ## When This Triggers This skill is invoked automatically when: 1. SessionStart hook detects no summoner.yaml 2. User attempts /summoner:* command in an uninitialized project 3. User asks about Summoner warnings ## Behavior ### Detection Check if summoner.yaml exists in current directory: ```bash if [ ! -f "summoner.yaml" ]; then # Not initialized echo "Summoner is not initialized for this project." else # Initialized echo "Summoner is already initialized." fi ``` ### Auto-Guide Flow **Step 1: Detect State** ```bash PLUGIN_ROOT="$HOME/.claude/plugins/summoner" if [ ! -f "summoner.yaml" ]; then STATE="not_initialized" elif [ ! -f "$PLUGIN_ROOT/memory/$(grep 'name:' summoner.yaml | head -1 | awk '{print $2}' | tr -d '"').db" ]; then STATE="partial" else STATE="ready" fi ``` **Step 2: Present Options Based on State** **Case A: Not Initialized (no summoner.yaml)** ``` 🔮 Summoner Setup Required I notice Summoner isn't set up for this project yet. Would you like me to initialize it now? This will: ✓ Create summoner.yaml with skill mappings ✓ Initialize Memory database ✓ Take ~10 seconds [Options] 1. Yes, use quick defaults (recommended) 2. Yes, let me choose skills for each phase 3. No, I'll do it manually later Say "1", "2", or "3" ``` **Case B: Partial Setup (summoner.yaml exists but Memory DB missing)** ``` 🔮 Summo