omd-setup
Setup and configure oh-my-droid (the ONLY command you need to learn)
от 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:
- [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_TYPEstarts withlocal→ scope =Local (this project) - If
CONFIG_TYPEstarts withglobal→ 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:
- Initial Setup (no flags): First-time installation wizard
- Local Configuration (
--local): Configure project-specific settings (.factory/FACTORY.md) - Global Configuration (
--global): Configure global settings (~/.factory/FACTORY.md)
Mode Detection
Check for flags in the user's invocation:
- If
--localflag present → Skip to Local Configuration (Step 2A) - If
--globalflag 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:
- [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:
- [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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
patterns
AnthropicFind patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
copilot-cli-quickstart
GitHubUse this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
vardoger-analyze
GitHubUse when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
policy-lookup
AnthropicFind and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…