initlisted
Install: claude install-skill 7xuanlu/origin
# /init
Self-healing setup. Goal: 30 seconds, two user actions max (install plugin,
type /init). Default backend is local memory — no local model, no API key, no
prompts. Local model and Anthropic key are opt-in upgrades documented in
`/help`.
## Steps
Run in order. Stop and report at the first failure that needs human
attention. Otherwise, push through automatically.
### 1. Daemon health probe
```
Bash: curl -fsS -m 1 http://127.0.0.1:7878/api/health
```
- 200 OK → skip to step 4.
- Anything else → step 2.
### 2. Bootstrap (auto-install if missing)
Detect whether the `origin` CLI is on PATH:
```
Bash: command -v origin >/dev/null 2>&1 && echo present || echo absent
```
If `absent`, run the installer (no human prompts):
```
Bash: curl -fsSL https://raw.githubusercontent.com/7xuanlu/origin/v0.7.0/install.sh | bash
```
Then add it to PATH for the current session and configure local memory
non-interactively:
```
Bash: export PATH="$HOME/.origin/bin:$PATH" && origin setup --basic && origin install
```
If `present` (CLI exists, daemon down), just install + start:
```
Bash: origin setup --basic 2>/dev/null || true; origin install
```
`origin setup --basic` is idempotent — safe to re-run. `origin install`
writes the launchd plist and starts the daemon.
### 3. Re-probe daemon health
```
Bash: for i in 1 2 3 4 5; do curl -fsS -m 1 http://127.0.0.1:7878/api/health && break; sleep 1; done
```
If the daemon still isn't reachable after ~5s, surface the error and stop.
L