/labby:implement-in-microsandboxfrom labby
Implements repository tasks inside a persistent Microsandbox microVM with strict boundaries: separate dev/staging/production, preserve evidence, and publish exact Git commits only through authorized paths.
Ships in labby. 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; scripts run unread.
Use this workflow for an explicitly authorized implementation task. It is a repository-independent process, not a new Labby deployment service. Execution requires a running Labby connection and a usable Microsandbox host. This skill never installs or updates the host runtime, rewrites gateway configuration, or implicitly authorizes publication, merging, production changes, or messaging.
Retrieve the original task and last execution evidence. Record the objective, acceptance criteria, repository owner/name, source ref, exclusions, and the operations authorized for this run. Search the current Labby catalog for the needed skills and tools. Inspect their exact live schemas before calling them. Prefer Code Mode for dependent calls and compact result processing. Use codemode.batch for independent gateway operations, not Promise.all.
Read repository and nearest directory instructions. Determine current source, branch, dirty state, toolchain, test commands, configuration, startup path, health endpoint, ports, storage, and real-service dependencies. Research current official documentation where behavior is version-dependent. Record sources, versions, checksums, decisions, counterexamples, and unresolved questions in RESEARCH.md. Do not infer implementation from an earlier assistant's summary.
Before implementation, prove all of the following:
Do not treat an adapter error as a broken runtime. Diagnose both independently. An explicit native-CLI route may be selected only after checking the installed version and current help and proving it preserves the intended sandbox policy. Record the adapter failure separately. Do not silently downgrade security, change backend, install a runtime, or claim the failed MCP operation passed.
Discover or create a task-owned microVM with an immutable image digest. Record its exact name, runtime version, full configuration, labels, and retention. Create the workspace directory before configuring it as the default workdir. Clone the dispatched repository inside the microVM. Preserve existing branches; create a task branch from the verified base SHA. Keep the workspace between implementation waves. Check capacity before large dependency/build operations.
Use a project-specific, locked development image. The included Ubuntu ARM64 package lock and bootstrap script are a tested reference, not a universal project toolchain. They pin the complete observed package set and fail if a version cannot be obtained. They do not promise an archived package mirror or bit-for-bit rebuilds. For long-lived reproducibility, publish the prepared image by digest and preserve package sources/provenance. Do not silently substitute latest versions or install compilers in staging when a verified release artifact is available.
Under docs/tasks//, or the repository's mandated equivalent, maintain:
Store raw command receipts separately from derived reports. Each receipt needs target, command/schema, timestamp, exit status, source SHA, and output location. Exclude secrets, not useful hostnames, paths, tool names, or diagnostics. Preserve append-only external release evidence instead of rewriting the source commit to insert its own SHA. A JSON claim is not proof that its command ran.
Write a failing behavior/regression test first. Implement the smallest coherent change, rerun focused tests, then inspect the diff and failure paths. Repeat for subsequent waves. Verify cancellation, bounded timeouts, error handling, retry/backoff, idempotency, resource cleanup, and observability when relevant. Do not add generic machinery that the requested behavior does not need.
Independent research and read-only checks may run in parallel. Sequence shared workspace edits, migrations, dependent tool calls, Git operations, and promotion. Use bounded batches and inspect partial effects before retrying a failed call.
Checkpoint only after recording the workspace/configuration. Stop the sandbox when required by the installed snapshot contract. Record and verify the exact returned snapshot digest. Do not assume name/path/digest lookup is equivalent. Resume and re-inspect the original development sandbox. Checkpoints are recovery inputs, not releases: they do not prove configuration or running-process state was retained, and they must not be the staging promotion artifact.
Run focused tests, repository-required gates, documentation/link/configuration checks, and appropriate real-service smoke tests. Capture failures and fix them. Review changes against requirements, architecture, security boundaries, and existing patterns. Use allowed review tools only. A self-review is not an independent review; report which happened. Never fabricate a green CI result.
Inspect the exact diff, commit only task-owned changes, and verify a clean tree. Use one of two explicitly recorded publication modes:
On the validated msb 0.7.3 CLI, protected secrets use host environment references such as --secret [email protected]. Inline NAME=VALUE is rejected. Inspect current help rather than copying older skill examples.
Create a PR only when authorized. Include scope, tests, review, known failures, links to evidence, and production impact. Leave it unmerged unless merging was explicitly requested. Reconcile changed upstream code rather than force-pushing or dropping another contributor's work.
Build from the clean, published source SHA using locked inputs. Record the artifact SHA-256, runtime image digest, build command, and toolchain. Copy only the verified release/configuration into a newly named staging microVM. Do not promote the development snapshot or mount the development checkout.
Declare CPU, memory, working directory, command, port mapping, labels, secrets by name, and retention. For a request to leave staging running, use persistent state and explicitly record no maximum-duration or idle-expiry cutoff. Inspect the actual resulting configuration; requested settings are not evidence.
verify_handoff.py implements a deliberately narrow reference gate: no host mounts or environment values, loopback HTTP, immutable image/source/artifact identity, explicit retention, and test/doc receipts. Use the manifest contract. Extending that policy requires an explicit review, not removing failing checks.
Run the verifier against the artifact before launch. Then, from the host outside the staging VM, run it with --probe. The health response must identify the exact sandbox, staging environment, commit, and artifact digest; it must not redirect. Also exercise actual application behavior, negative paths, logs, and configured real dependencies. Test restart/recovery when it is part of acceptance criteria. On the validated native msb 0.7.3 runtime, starting a stopped VM does not restart its saved workload command. Recovery therefore has two explicit steps: start the VM, then inspect whether the intended service is absent and relaunch its recorded command through the current sandbox_exec_start tool. Keep the returned exec-session identifier and verify external readiness again. Do not duplicate an existing process after a transient HTTP failure, and do not claim automatic service recovery from a successful VM start.
Retain staging and verify it remains healthy at handoff. Do not delete it during cleanup, and do not modify production to make staging work.
The included fixture server demonstrates only this workflow's transport and provenance checks. Its success never validates Labby's Rust server, MCP gateway, UI, or another application's behavior.
Report the commit/PR, exact dev and staging identities, access scope, test and review evidence, runtime configuration, artifact hash, current health, retained state, and unresolved blockers. Distinguish attempted, locally passed, published, CI-passed, staged, and production-deployed. Link the complete record. Send a completion notification through Gotify only when the task authorized it; do not send a completion claim while required gates are still blocked.
Run from this skill directory:
python3 -m unittest discover -s tests -v
The fixture verifier uses Python 3.11 or later and no third-party dependencies. See the handoff contract for executable usage.
agents/openai.yaml (opens in a new tab)references/handoff-contract.md (opens in a new tab)references/ubuntu-arm64.packages.lock (opens in a new tab)scripts/bootstrap_ubuntu.sh (opens in a new tab)scripts/fixture_server.py (opens in a new tab)scripts/verify_handoff.py (opens in a new tab)tests/test_verify_handoff.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
labby@dendrite is listed by dinglebear-ai/dendrite — review the source before installing
npx claudepluginhub dinglebear-ai/dendrite --plugin labby4 skills in this plugin
/using-codemodeUse when discovering and calling upstream MCP tools, prompts, resources, or skills through Labby Code Mode; batching gateway calls; receiving and acknowledging response notifications; or diagnosing Code Mode scope, schema, and execution errors. For saved reusable workflows, use using-snippets./using-labbyUse when operating an installed Labby through its CLI, MCP, HTTP API, or web UI; updating it, checking health and logs, managing gateway upstreams and configuration, or exporting and restoring durable state. For live Code Mode calls use using-codemode; for saved snippets use using-snippets./using-snippetsUse when discovering, running, creating, editing, promoting, validating, testing, explaining, or removing Labby Code Mode snippets; or when turning a successful Code Mode execution into a reusable workflow.Other plugins' skills for the same job