doctor
Diagnose Open Carrusel setup problems (Node, Claude CLI, deps, data, port).
Bootstrap Open Carrusel — run setup, launch dev server, open browser.
How it fires
How this command gets triggered: by you, by Claude, or both.
/startContext preview
What this command does when you run it.
Bootstrap Open Carrusel — run setup, launch dev server, open browser.
description: Bootstrap Open Carrusel — run setup, launch dev server, open browser. argument-hint: [port] allowed-tools: Bash(node *), Bash(uname *), Bash(test *), Bash(lsof *), Bash(kill *), Bash(curl *), Bash(open *), Bash(xdg-open *), Bash(cmd.exe *), Bash(npm *), Bash(tail *), AskUserQuestion
You are bootstrapping Open Carrusel for the user. Be terse — short status updates only, no preamble.
User-supplied port (optional): $ARGUMENTS
1. **Verify Node ≥ 20.** Parse the version above. If MISSING or major version < 20, tell the user to install Node 20+ from https://nodejs.org and stop.
2. **Pick port.** Use `$ARGUMENTS` if non-empty, else 3000. Call this `<port>`.
3. **Run setup if needed.** If `node_modules` is NO **or** `Data seeded` is NO:
4. **Handle port collision.** If `<port>` is in use **and** the listening process is not the dev server you just started, ask via AskUserQuestion: "Port `<port>` is in use. Kill the existing process or pick a different port?" Options: Kill / Different port / Cancel.
5. **Launch dev server in background** (only if not already running on `<port>`): `PORT=<port> npm run dev > /tmp/open-carrusel-dev.log 2>&1 &` via Bash with `run_in_background: true`.
6. **Wait until ready.** Poll `curl -sf http://localhost:<port>` every 1s until 200 (60s cap). On timeout, run `tail -30 /tmp/open-carrusel-dev.log`, share the output, and stop.
7. **Open browser** based on Platform:
8. **Report ready** in two lines (no more): > Open Carrusel is running at http://localhost:`<port>`. > Logs: `tail -f /tmp/open-carrusel-dev.log` • Stop with `/stop`
Idempotency note: re-running `/start` on a healthy install is fast — the setup script skips already-installed deps and already-seeded data, and the port check skips the launch step if the server is already up.
AI-powered Instagram carousel builder. Chat with Claude to design slides; export as PNGs at exact Instagram dimensions. Type /start in Claude Code to bootstrap.
Repo: Hainrixz/open-carrusel
Diagnose Open Carrusel setup problems (Node, Claude CLI, deps, data, port).