raffaelefarinaro/ciaobot/ciao-dev-install
Claude Code and agent skill by raffaelefarinaro/ciaobot
- community
Checking that the SKILL.md file is still in the repository.
Build the current develop checkout into an installed engine (wheel + PWA) and run it on this machine for testing, then watch logs for issues. Trigger on "install develop", "test the develop build", "install the current dev version", "build and install ciaobot", "install dev build", or asking to test new changes locally instead of via the release installer.
Install
npx vskill@latest install raffaelefarinaro/ciaobot/ciao-dev-installSKILL.md
The same SKILL.md was published earlier as raffaelefarinaro/ciaobot/ciao-dev-install.
Ciaobot develop install
Contributor/project skill — lives in the repo's workspaceskills/folder, notciao/stock/skills/. It is for people working on Ciaobot and is deliberately not packaged or shipped to end-user installs.ciao sync-skillsmirrors it into the runtime-discovered.claude/skills/catalog. Don't move it intociao/stock/.
Replaces the end-user one-liner (curl -fsSL .../install.sh | sh) with the same outcome built from the local `develop` checkout: the current ciao/ engine plus the current PWA, installed into this machine's own Python environment, serving the existing workspace and password. Then watch the engine logs and report anything broken.
There is no app bundle to assemble any more (#656) — the release is the engine, so this skill's whole job is: build the PWA, install the Python package, restart the service, watch the log. Expect a few minutes, dominated by the npm ci dependency install.
Before you start
- The checkout must be on
develop, clean, and up to date. - Toolchain must be present: Node 22 (
.nvmrc),uv, Python 3.12+, and a repo
.venv with pip install -e '.[test]' already run. If any is missing, install it before building.
- The installed engine is the one
com.ciao.server.plistmanages, and the
workspace and password live in that plist's workspace .env; both are preserved. Ask the user before installing if the steps would overwrite something unexpected, and always confirm the restart because it cuts off whatever the running engine is doing.
Steps
1. Preflight
Verify the toolchain:
1b. Check the running engine and active chats
The install restarts the engine, which cuts off anything running in it. Check before building:
From the JSON, note:
reachable— is the currently installed engine serving? **This says nothing
about whether your code is being served** — see python_path.
python_path— the interpreter the plist actually runs. If this is not your
checkout's .venv (a ~/.local/bin/ciao uv-tool release install is the usual culprit), the service is running a copy, so none of your edits are live and reachable: true tells you nothing useful. Say so before installing: this skill repoints the plist, which switches the daily-driver service over to develop. Back the old plist up (cp …/com.ciao.server.plist …plist.bak.devinstall) so the release install is one command away.
restart_blockers— a list of{chat_id, reasons}. **Non-empty means a
restart would interrupt chats** (working, or waiting on an open question/approval card); null means the engine could not be asked, which should be treated as blocked. Ask the user to let them finish (or confirm explicitly) before proceeding; the restart happens underneath them. ciao service restart and ciao service stop enforce the same gate with a --force escape hatch — never pass --force silently.
loaded/installed— sanity check that the engine you are about to replace
is the one com.ciao.server.plist manages.
If .venv/bin/ciao dies with bad interpreter: …/some-other-repo/.venv/bin/python, the console script was generated before this checkout was renamed or moved. Step 3's pip install -e regenerates it, but step 1b needs the CLI now, so fall back to the module entry point (python -m ciao does not work — ciao has no __main__):
Re-check right before the restart in step 4 too: a chat started during the long build is just as interruptible.
2. Build the PWA
Output goes to ciao/web/static/, which ships as package data inside the wheel. Build the PWA before the install, or the installed engine serves the previous build's assets.
3. Install the current checkout
A plain editable install of the checkout is the whole point: it is what makes ciao run the code you are editing. Confirm the import resolves to the checkout, not to some other copy on the machine — and run it from outside the checkout:
The cd is not optional. Run from the repo and a broken editable install still prints the right answer: '' is on sys.path, so the local ciao/ package shadows whatever the __editable__ finder points at. A finder left mapping to a renamed-away checkout (…/ciaobot-rel/ciao) imports clean from inside the repo and raises ModuleNotFoundError from everywhere else. Only the neutral-cwd run tells you whether the install is real.
On macOS, re-render the LaunchAgent against the existing workspace so it names the current interpreter and code (read the workspace from the installed plist):
ciao setup preserves the existing .env (its variables win over setup arguments), so the password and vault root survive the re-render.
Hosted service (`Ciaobot Server.app`). When the plist's ProgramArguments start with …/Ciaobot Server.app/Contents/MacOS/Ciaobot Server serve --python <interpreter>, ciao setup deliberately keeps that live hosted definition byte-for-byte (_existing_hosted_definition_serves in ciao/cli.py), so the command above exits 0 and changes nothing: the service keeps running the old interpreter. Point the hosted definition at this checkout instead; the restart in step 4 reloads it:
4. Restart the service
Gate on restart blockers first, then restart:
ciao service restart reloads an edited plist (bootout and bootstrap) when the loaded definition differs from the one on disk, and kickstarts otherwise. Confirm the switch took with ciao service status --json: loaded_python_path is the interpreter launchd is actually running and plist_matches_loaded must be true. (python_path is read from the plist file, so on its own it reports the new interpreter even while the old process is still serving.)
Two things bite here. status=$(…) is a zsh read-only variable and aborts the whole snippet, so use a neutral name; and backslash-escaping quotes inside a python3 -c '…' f-string does not survive the shell, so feed the script on stdin instead. raise SystemExit(msg) prints to stderr and exits non-zero, which is the gate you want.
Never pass --force silently; if the user explicitly asked to cut through, say so out loud in the report.
5. Watch for issues
The engine logs live in the workspace:
Watch for at least a minute. Issues to flag to the user:
- Engine crash loop — the engine exits shortly after starting, repeatedly
(launchd KeepAlive restarts it). Look for tracebacks in ciao.stderr.log, and count boots rather than trusting a single healthy-looking process:
``bash grep -c "Starting Ciaobot server" "$workspace/.runtime/server_debug.log" ``
One boot for this restart is the pass; the count climbing across a minute is the loop. ciao setup --load-launchd (step 3) bootstraps the plist, so the restart in step 4 legitimately produces two boots a few seconds apart — that is not a loop.
- Import errors at startup (
ModuleNotFoundError,ImportError) — usually
a pip install that ran before the PWA build, or an import resolving to a different ciao on the machine's sys.path.
- Port already in use / startup refused because another Ciaobot backend
owns the runtime root.
- PWA not reachable:
curl -s http://127.0.0.1:8443/should return HTML. If
the engine answers but the PWA shows the recovery page, the static bundle behind the running process is stale — re-run step 2 and restart again. Confirm you are serving this build by diffing the asset hash the served index.html names against the one on disk:
``bash grep -oE 'assets/index-[A-Za-z0-9_-]+\.js' ciao/web/static/index.html curl -s http://127.0.0.1:8443/ | grep -oE 'assets/index-[A-Za-z0-9_-]+\.js' ``
- Version mismatch — the served version should match the checkout:
.venv/bin/ciao --version vs Settings → General.
Sanity probes:
6. Report
Summarize: built commit (git rev-parse --short HEAD), install type (editable checkout), workspace preserved, engine and PWA status, and any log findings with their source line numbers.
Also report what changed underneath the user: if the plist was pointing at something other than this checkout, say plainly that the service moved from a release install to develop, and where the old plist backup is.
If the install succeeded but a backend error appears, create a GitHub issue for it (gh issue create --repo raffaelefarinaro/ciaobot ...) — but only for genuine defects. Check the by-design log lines in the traps above first, and prefer telling the user a finding is a workspace-config concern over filing noise against a working engine.
Notes and traps
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ciao-dev-install/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/raffaelefarinaro/ciaobot/ciao-dev-install)