sandbox-next
Skill by cloudflare
Guides an AI assistant to build or maintain Cloudflare Sandbox apps on the @cloudflare/sandbox@next 1.0 preview. It is aimed at new projects, and apps on the stable package are routed to other skills.
Install sandbox-next
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cloudflare/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/sandbox-next ~/.claude/skills/sandbox-nextRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cloudflare/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/sandbox-next ~/.gemini/antigravity-cli/skills/sandbox-nextAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The sandbox-next skill tells an assistant how to build Cloudflare Sandbox apps on the @cloudflare/sandbox@next package, which the source describes as the SDK 1.0 preview. Sandboxes are isolated Linux environments that run on Cloudflare Containers and are driven from Workers. Before writing code, the skill checks that the npm dependency and container image are on the same preview line. If they are not, it stops or points to other skills.
The skill sets out API rules. For example, exec takes an argv list and returns a handle, shell syntax needs an explicit shell, and each launch is independent. It also maps tasks to official preview docs and says to prefer those docs and installed types over memory. The source recommends the preview for new projects. Apps on the default stable package should use sandbox-stable, and porting should use sandbox-migrate-to-next.
Written from the project's SKILL.md and checked against it.
What it can do
- Package line gateChecks that the npm dependency and container image both use the @next preview line.
- exec and process handlesExplains that exec(argv) returns a handle and results are collected with handle methods.
- Readiness and killCovers waitForPort(), waitForLog(), waitForExit() and kill(signal?) for process control.
- Interactive terminalsDescribes interactive use through createTerminal and connect, since process handles have no stdin.
- Environment and lifecycleGives rules for cwd, env, setEnvVars, and how sandbox IDs relate to containers.
- Docs retrieval mapLinks the assistant to preview docs for files, storage, ports, tunnels, backups and errors.
- Migration routingSends stable-package apps to sandbox-stable and porting requests to sandbox-migrate-to-next.
- Pre-ship checklistLists checks for matching lockfile and Dockerfile lines, typechecking and keeping secrets out of sandbox env.
What you need
- npm package @cloudflare/sandbox@next
- Cloudflare Containers
- Container image cloudflare/sandbox:next or next-python
- Cloudflare Workers
Try asking
- Set up a new Cloudflare Sandbox Worker that runs a Python script and returns stdout.
- Start a background process in my sandbox and wait until a port is open.
- Add an interactive terminal to my sandbox app using createTerminal and connect.
Good to know
- Targets the 1.0 preview line, so APIs may change.
- The self-deployed bridge is not on the 1.0 preview line yet.
- Never mix an @next Worker package with a stable container image.
- Local wait timeouts cancel the wait only, not the process.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/sandbox-next/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/api-quick-ref.md2 KB -
references/examples.md526 B -
references/skill-feedback.md3 KB
Alternatives to sandbox-next
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
sandbox-next: common questions
Which package version does this skill target?
It targets @cloudflare/sandbox@next, which the source describes as the SDK 1.0 preview. The source recommends it for new projects.
What should I do if my app uses the stable package?
The skill says to load sandbox-stable for apps on the default package. Porting a stable app to @next is handled by sandbox-migrate-to-next, and only when the user asks.
Does sandbox.exec return the finished command result?
No. exec takes an argv list and resolves when the process starts, returning a handle. Results are collected with methods such as output() and waitForExit().
How do I install sandbox-next?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sandbox-next free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is sandbox-next safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to sandbox-next?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
