setuplisted
Install: claude install-skill bozkurtonur3-lgtm/magi-workflow
# /magi:setup — onboarding wizard
You are the coordinator. Walk the user through configuring this plugin so the
multi-CLI orchestration works on their machine. Be interactive and helpful —
this is the user's first impression of the workflow.
## 0. Resolve paths
```bash
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-}"
[[ -z "$PLUGIN_ROOT" ]] && PLUGIN_ROOT="$(cd "$(dirname "$BASH_SOURCE[0]")/../.." 2>/dev/null && pwd)"
USER_CONFIG="$HOME/.config/magi-workflow/config.json"
DEFAULT_CONFIG="$PLUGIN_ROOT/config/default.json"
```
Verify `$PLUGIN_ROOT/scripts/shared/preflight.sh` exists. If not, the plugin is
installed incorrectly — tell the user and stop.
## 1. Subcommand handling
Inspect the arguments passed to the slash command:
- **`--reset`**: delete `$USER_CONFIG` (after confirming with user), then run
the full wizard.
- **`--recheck`**: skip the wizard. Run preflight only. If the user has no
config yet, fall through to the full wizard.
- **(no flag)**: if `$USER_CONFIG` already exists, ask the user whether to
re-run the wizard (it will overwrite). If they decline, run preflight to
show current state and exit.
## 2. Run preflight
```bash
"$PLUGIN_ROOT/scripts/shared/preflight.sh"
```
Parse the JSON. The shape is:
```jsonc
{
"config_path": "...",
"reviewers": [
{"cli": "claude", "model": "opus", "status": "ok|skip|fail", "reason": "...", "version": "..."},
...
],
"summary": {"ok": N, "skip": M, "fail": K, "total": T}
}
```
Display a friendly table to th