/harness:crabbox-setupfrom harness
Scaffold the crabbox ecosystem (.crabbox.yaml, setup.sh, cbx.sh, playwright config) into a repo, targeting YOUR VPS via static SSH instead of Daytona. Asks for the box details (host, ssh user/alias) on first use. Use when builds/tests/e2e should run on a persistent cloud box.
Ships in harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Port of the Daytona-based crabbox skill to a persistent static-SSH box (any
VPS — Hetzner, AWS, etc.). Same scaffolded files, same cbx.sh interface — so
the sibling harness skills (verifier-setup, new-loop, anything that calls
bash cbx.sh …) compose unchanged. What's different:
| Daytona | Static box |
|---|---|
Snapshot + devbox/Dockerfile | One-time assets/host-prep.sh — tools persist |
| 60s exec cap → bg+poll hacks | No cap — cbx.sh up runs setup synchronously |
| docker-in-docker, pin 27.0.3 | Rootless docker (runner user's own daemon) — no pin |
Box destroyed on down | Box persists; down stops this repo's processes only |
| Preview URLs unavailable | cbx.sh tunnel via a plain ssh alias |
Safety model (do not weaken): the runner user has no sudo and no access to the root Docker daemon. Its rootless dockerd, files, and processes all live under its own home dir, so nothing else on the box is reachable. Never scaffold anything that needs root on the box; surface the need to the user instead.
You are SCAFFOLDING files into the target repo. Templates live in assets/
(next to this skill); copy them in and ADAPT (every one has # EDIT: markers).
This skill ships with NO box baked in, and YOU do the setup — the user answers questions once; every later run re-checks and repairs instead of re-asking.
0a. Load or ask the config (once). If ~/.config/crabbox/config.yaml has a
static.host, use it and skip the questions. Otherwise ask the user for:
ssh-import-id will authorize)crabbox) and ssh alias (default crabbox) — only ask
if they want non-defaults.0b. Laptop CLI. crabbox --version — if missing, install the matching
binary from github.com/openclaw/crabbox releases into ~/.local/bin
(checksum-verify against checksums.txt).
0c. Probe the box. ssh -o BatchMode=yes <runner>@<host> 'node --version; docker info -f ok; command -v playwright-cli' — if all pass, the box is
prepped: skip to 0e.
0d. Prep the box (first time only). Root access is needed once — ask the
user how they reach root (root password, an existing sudo user, or their cloud
console). Then copy assets/host-prep.sh to the box and run it as root with
the GitHub username as its argument. It is idempotent and does ALL of:
runner user creation (no sudo, no docker group) + key import from
github.com/<user>.keys + sshd AllowUsers handling + git/rsync/tar +
rootless docker (docker-ce-rootless-extras, linger, systemd --user service) +
Google Chrome + mise with node/pnpm + @playwright/cli. Re-run it any time —
it only creates what's missing.
0e. Wire the laptop (idempotent). Without clobbering existing entries:
~/.ssh/config:
Host <alias> / HostName <host> / User <runner> / IdentityFile ~/.ssh/id_ed25519 / IdentitiesOnly yes~/.config/crabbox/config.yaml (box identity MUST live here, not in
the repo yaml — crabbox refuses repo-configured SSH hosts so a cloned repo
can't point your key at a stranger's box):
provider: ssh
target: linux
static: { host: <BOX_IP>, user: <runner>, port: "22", workRoot: /home/<runner>/work }
ssh: { key: ~/.ssh/id_ed25519 }
0f. Verify end-to-end before touching the repo: crabbox doctor --provider ssh, then ssh <alias> 'docker run --rm hello-world'. Fail loudly with what's
missing — never scaffold a repo against an unverified box.
If scripts/dev-local.sh exists, read it: it already encodes services, ports,
infra deps, start commands. setup.sh should mirror it. Otherwise discover:
package manager, dev cmd + port, backing services, secret var names.
.crabbox.yamlCopy assets/crabbox.yaml → repo root as .crabbox.yaml. Set sync.exclude
(deps/build dirs + **/.env*) and env.allow (exact secret var names —
forwarded over SSH from the local shell, never synced, never in git). No host
or key goes in this file (see Step 0).
setup.sh (boots the stack on the box AND locally)Copy assets/setup.sh; adapt the EDIT block (install/dev/migrate cmds, port,
services). Pick an APP_PORT unique per project — the box is shared and two
repos on the same port collide. Idempotent (check-before-act), so bash setup.sh
also works locally. Ends with STACK READY. Containers must start with
docker compose -p "$REPO" so cbx.sh down can clean this project only.
cbx.sh + browser configCopy assets/cbx.sh; fill its EDIT block (BOX_HOST, SSH_ALIAS, APP_PORT,
TUNNEL_PORTS). Interface (identical to the Daytona version):
bash cbx.sh up <name> # sync + setup.sh → STACK READY
bash cbx.sh logs <name> # tail setup/dev logs
bash cbx.sh tunnel <name> & # localhost → box (see it in YOUR browser)
bash cbx.sh pw <name> -- <args> # playwright-cli IN the box (drives the app)
bash cbx.sh get <name> <remote> <local> # pull screenshot/video off the box
bash cbx.sh down <name> # stop THIS repo's dev server + containers
If browser e2e: copy assets/cli.config.json → .playwright/cli.config.json
(chrome channel + --no-sandbox; keep it tracked).
Add: evidence, .crabbox, .cbx-*.id, .cbx-*.sandbox, .playwright-cli.
Then commit — crabbox only skips re-uploading when the tree matches HEAD
(clean tree ≈ 1s sync; dirty ≈ 15–20s).
bash cbx.sh up demo # → ✓ STACK READY
bash cbx.sh pw demo -- open http://localhost:<APP_PORT> # smoke
bash cbx.sh get demo /tmp/<artifact> evidence/<artifact> # pull proof
bash cbx.sh down demo
Parallel loops = multiple repos side by side on the box, each in its own
workdir ~/work/static_<host-with-dashes>/<repo>/ with its own APP_PORT and
compose project. Same-repo parallel variants need distinct directory names
(git worktrees with different folder names get separate workdirs).
cbx.sh also exports CRABBOX_STATIC_HOST as explicit approval.cbx.sh tunnel.down ≠ wipe. Files persist for fast re-sync. Reclaim ONE repo:
ssh <alias> 'rm -rf ~/work/static_<host-with-dashes>/<repo>'. Never delete
~/work wholesale — other projects live there.DOCKER_HOST
(host-prep exports it in the runner's .bashrc).AllowUsers: if the box restricts SSH users, the runner user must be
added (host-prep handles it) — otherwise key auth fails with no useful error.ssh.key in the user config so no wrong keys are ever offered; consider
raising the sshd jail's maxretry.apparmor_restrict_unprivileged_userns=1)
is handled by docker-ce-rootless-extras' shipped profile — install via apt,
don't hand-roll.warning: egress remote client cleanup failed … exit status 255
after a run is cosmetic; the run's own exit code is what counts.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ehsanulhaquesiam/claude-skills --plugin harness10 skills in this plugin
/agent-context-auditAudit a repo's agent context — CLAUDE.md files, codebase docs, skills, and tool/MCP designs — against Anthropic's Claude 5 context-engineering guidance ("unhobbling": Anthropic cut ~80% of Claude Code's system prompt with no eval loss). Finds overconstraint, conflicting instructions, redundancy, stale facts, and missing "unknown knowns"; produces a scored findings report with concrete rewrites, then applies approved fixes. Use when someone says "audit my CLAUDE.md", "context audit", "unhobble this repo", "review our agent docs/skills/tools", or after upgrading to Claude 5-generation models.
/dev-local-setupScaffold a one-command `dev-local` launcher for ANY codebase. Investigates the repo to find its services, ports, and infra dependencies, then generates a single `scripts/dev-local.sh` (up/down/status/logs/restart) that runs every dev server in one tmux session, plus a short skill doc describing it. Use when someone says "set up dev-local", "make a one-command dev launcher", "I want one script to start this repo", "scaffold dev-local for this project".
/e2e-setupSet up an end-to-end test suite in any repo, following practices that make e2e a reliable per-PR gate: real flows over bypass, layered assertions, a reusable auth/session helper, video+trace evidence, and a compounding suite. Use when a repo has no e2e (or weak e2e) and you want system-level tests — "set up e2e", "add end-to-end tests", "scaffold a test gate".
Other plugins' skills for the same job