Command Palette

Search for a command to run...

Назад к скиллам
скилл № 38593

omd-setup

Setup and configure oh-my-droid (the ONLY command you need to learn)

БесплатноБез исполняемых скриптов
MeroZemoryот MeroZemory★ 30 звёзд на GitHub

Установить omd-setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

OMD Setup

This skill is a setup wizard. Ignore unrelated context (open files, pending code changes, git/commits, etc.).

When you need to ask the user anything, use the AskUser tool and ONLY ask the wizard questions below.

This is the only command you need to learn. After running this, everything else is automatic.

Graceful Interrupt Handling

IMPORTANT: This setup process saves progress after each step. If interrupted (Ctrl+C or connection loss), the setup can resume from where it left off.

State File Location

  • .omd/state/setup-state.json - Tracks completed steps

Resume Detection (Step 0)

Before starting any step, check for existing state:

# Check for existing setup state
STATE_FILE=".omd/state/setup-state.json"

# Cross-platform ISO date to epoch conversion
iso_to_epoch() {
  local iso_date="$1"
  local epoch=""
  # Try GNU date first (Linux)
  epoch=$(date -d "$iso_date" +%s 2>/dev/null)
  if [ $? -eq 0 ] && [ -n "$epoch" ]; then
    echo "$epoch"
    return 0
  fi
  # Try BSD/macOS date
  local clean_date=$(echo "$iso_date" | sed 's/[+-][0-9][0-9]:[0-9][0-9]$//' | sed 's/Z$//' | sed 's/T/ /')
  epoch=$(date -j -f "%Y-%m-%d %H:%M:%S" "$clean_date" +%s 2>/dev/null)
  if [ $? -eq 0 ] && [ -n "$epoch" ]; then
    echo "$epoch"
    return 0
  fi
  echo "0"
}

if [ -f "$STATE_FILE" ]; then
  # Check if state is stale (older than 24 hours)
  TIMESTAMP_RAW=$(jq -r '.timestamp // empty' "$STATE_FILE" 2>/dev/null)
  if [ -n "$TIMESTAMP_RAW" ]; then
    TIMESTAMP_EPOCH=$(iso_to_epoch "$TIMESTAMP_RAW")
    NOW_EPOCH=$(date +%s)
    STATE_AGE=$((NOW_EPOCH - TIMESTAMP_EPOCH))
  else
    STATE_AGE=999999  # Force fresh start if no timestamp
  fi
  if [ "$STATE_AGE" -gt 86400 ]; then
    echo "Previous setup state is more than 24 hours old. Starting fresh."
    rm -f "$STATE_FILE"
  else
    LAST_STEP=$(jq -r ".lastCompletedStep // 0" "$STATE_FILE" 2>/dev/null || echo "0")
    TIMESTAMP=$(jq -r .timestamp "$STATE_FILE" 2>/dev/null || echo "unknown")
    echo "Found previous setup session (Step $LAST_STEP completed at $TIMESTAMP)"
  fi
fi

If state exists, use AskUser to prompt exactly:

  1. [question] Found a previous setup session. What should I do? [topic] Resume [option] Resume from last step [option] Start fresh (clear saved state)

If user chooses "Start fresh":

rm -f ".omd/state/setup-state.json"
echo "Previous state cleared. Starting fresh setup."

Step 0.5: Always Ask Parallelism (Required)

MANDATORY: Regardless of whether the user resumes or starts fresh, you MUST ask for maxBackgroundTasks in this run.

If resuming, try to infer the scope from the state file:

# Optional: infer scope from state file
CONFIG_TYPE=$(jq -r '.configType // empty' ".omd/state/setup-state.json" 2>/dev/null || true)

Interpretation:

  • If CONFIG_TYPE starts with local → scope = Local (this project)
  • If CONFIG_TYPE starts with global → scope = Global (all projects)
  • Otherwise, ask Step 1 (scope) again.

Save Progress Helper

After completing each major step, save progress:

# Save setup progress (call after each step)
# Usage: save_setup_progress STEP_NUMBER
save_setup_progress() {
  mkdir -p .omd/state
  cat > ".omd/state/setup-state.json" << EOF
{
  "lastCompletedStep": $1,
  "timestamp": "$(date -Iseconds)",
  "configType": "${CONFIG_TYPE:-unknown}"
}
EOF
}

Clear State on Completion

After successful setup completion (Step 7/8), remove the state file:

rm -f ".omd/state/setup-state.json"
echo "Setup completed successfully. State cleared."

Usage Modes

This skill handles three scenarios:

  1. Initial Setup (no flags): First-time installation wizard
  2. Local Configuration (--local): Configure project-specific settings (.factory/FACTORY.md)
  3. Global Configuration (--global): Configure global settings (~/.factory/FACTORY.md)

Mode Detection

Check for flags in the user's invocation:

  • If --local flag present → Skip to Local Configuration (Step 2A)
  • If --global flag present → Skip to Global Configuration (Step 2B)
  • If no flags → Run Initial Setup wizard (Step 1)

IMPORTANT: Always run Step 1.1 (parallelism) even when --local or --global is used.

Step 1: Initial Setup Wizard (Default Behavior)

Note: If resuming and lastCompletedStep >= 1, skip to the appropriate step based on configType.

Immediately use AskUser to prompt exactly:

  1. [question] Where should I configure oh-my-droid? [topic] Scope [option] Local (this project) [option] Global (all projects)

Step 1.1: Configure Parallelism (maxBackgroundTasks)

IMPORTANT: Always run this step (even if maxBackgroundTasks is already set, and even when resuming).

Use AskUser to prompt:

  1. [question] How many background tasks should I allow in parallel? [topic] Parallelism [option] Keep current [option] 2 [option] 5 [option] 10 [option] 20

If the user chooses Keep current, skip updating

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл omd-setup?

Setup and configure oh-my-droid (the ONLY command you need to learn)

Как установить скилл omd-setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл omd-setup запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить omd-setup с