Docker Sandboxes Env
Use this skill when authoring, planning, or running a declarative `sbxenv.yaml` file...
Install
npx skills add docker/skills --skill docker-sandboxes-env -g -a claude-code -y- Repository
- docker/skills609
- Category
- AI and agents
- Updated
- 5d ago
- License
- Apache-2.0
- Context cost
- Mediumabout 3,000 tokens
- Runs scripts
- No, instructions only
What it does
Use this skill when authoring, planning, or running a declarative `sbxenv.yaml` file for Docker Sandboxes (`sbx env create/run/plan/exec/rm`), even if the user just says they want to "check in a sandbox config", "make onboarding reproducible for a sandbox", "run a setup script before the agent starts", or "define arguments for a shared sandbox environment". Covers the sbxenv.yaml schema (schemaVersion, agent, kits, workspace/additionalWorkspaces, args, env, secrets, registries, bindings, mcp, ports, sandboxOptions), host `lifecycle:` commands (initialize/postCreate/preRemove) and their approval-plan model, multi-file merge (`-f`-style deep merge and the user-level `.sbxenv.yaml` base layer), and file-write-protection (`sandboxOptions.writableEnvFiles`).
Docker Sandboxes: Declarative sbxenv.yaml Environments
Overview
sbxenv.yaml (schemaVersion "1", EXPERIMENTAL) declaratively describes one
sandbox environment, agent, mixin kits, workspace mounts, environment
variables, secrets/registries/bindings to provision, MCP servers, ports, and
host-side lifecycle commands, so sbx env create|run|plan|exec|rm can stand
it up and tear it down reproducibly instead of a long flag invocation. This
skill owns that file format end to end. It delegates the sandbox lifecycle
semantics it wraps, the credential/network model it provisions into, and the
kit schema its kits: entries reference, to their own skills.
When to use this skill
Activate this skill when:
- The user wants a checked-in, reproducible definition of a sandbox
environment instead of a long
sbx create/sbx runcommand line. - The user wants host-side setup/teardown commands (cloning a repo, seeding fixtures, archiving state) tied to a sandbox's create/attach/remove lifecycle.
- The user wants to parameterize a shared environment file with named
arguments (
args:+--env-arg). - The user is debugging why
sbx env create/runis asking for approval, or why a file, kit, or secret it declares was skipped or flagged.
Do not use this skill when
Do not use this skill when:
- The task is the underlying
sbx create/run/rmflag-based workflow with nosbxenv.yamlfile involved, usedocker-sandboxes-lifecycle. - The task is choosing network policy or storing a secret/registry
credential independent of any environment file, use
docker-sandboxes-network-credentials(this skill'ssecrets:/registries:/bindings:blocks provision into that same store, but do not redefine its rules here). - The task is authoring the kit
spec.yamlakits:entry points at, usedocker-sandboxes-kits.

