crabbox-worktree

Installation
SKILL.md

crabbox-worktree

When to use

You have a repo where the dev workflow eats laptop resources — bun install / pnpm install, Next.js dev server, tests, agent runs — and you want those running on a cheap cloud VM instead. You already use superset.sh git worktrees, and you want each worktree to attach to a remote crabbox VM automatically.

Not for: occasional one-shot remote commands. For those, crabbox run -- <cmd> directly is simpler than this skill.

What this skill describes

A four-script pattern in your repo's bin/ that hooks into superset.sh's .superset/config.json setup/teardown lifecycle:

Script When it runs Purpose
bin/crabbox-warm-shared.sh Manually, once Provisions ONE long-lived GCP VM, writes slug to <main-repo>/.crabbox-shared-slug
bin/crabbox-attach.sh superset setup hook Attaches the new worktree to the shared box (or warms a fresh one if no shared slug)
bin/crabbox-release.sh superset teardown hook Stops the lease IF it's a per-worktree box; leaves shared box alone
bin/crabbox-sweep.sh Manually or cron Lists orphaned leases not claimed by any worktree's .crabbox-slug
Installs
3
GitHub Stars
1
First Seen
Jul 29, 2026