sandbox-migrate-to-next
Skill by cloudflare
Migrates Cloudflare Sandbox apps from the stable @cloudflare/sandbox package to the SDK 1.0 preview (@next). It is for developers porting an existing Sandbox app step by step.
Install sandbox-migrate-to-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-migrate-to-next ~/.claude/skills/sandbox-migrate-to-nextRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install sandbox-migrate-to-next in Claude Code
git clone --depth 1 https://github.com/cloudflare/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/sandbox-migrate-to-next ~/.gemini/antigravity-cli/skills/sandbox-migrate-to-nextAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install sandbox-migrate-to-next in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through porting a Cloudflare Sandbox app from the stable @cloudflare/sandbox package to the @next line, the SDK 1.0 preview. It gives a replacement map from stable APIs to @next APIs, such as moving from buffered exec results to process handles, replacing terminal and session calls, and switching interpreter methods to withInterpreter. It also lists a ripgrep audit command to find removed APIs and a workflow of review, audit, clarify, upgrade and validate.
The skill covers the npm package, the Dockerfile base image (including a Python variant), and a production deploy with immediate container rollout. It links to the Cloudflare docs for each area and tells the assistant to follow those docs over memory. It is intended for developers with existing Sandbox apps who want to be ready for the 1.0 stable release. New projects are pointed to a separate sandbox-next skill.
Written from the project's SKILL.md and checked against it.
What it can do
- Replacement mapMaps stable Sandbox APIs, such as transport settings, sessions and execStream, to their @next equivalents.
- Codebase auditProvides a ripgrep command to find stable-only APIs such as SANDBOX_TRANSPORT and createSession.
- Command migrationShows how to move from string exec calls to argv handles with output, waits and kill.
- Terminal migrationShows how to replace sandbox.terminal with createTerminal and terminal.connect.
- Interpreter migrationShows how to wrap the Sandbox class with withInterpreter and use sandbox.interpreter.
- Git migrationShows how to run git clone through argv exec instead of gitCheckout.
- Package and image upgradeCovers installing @cloudflare/sandbox@next and using the matching cloudflare/sandbox:next image.
- Deploy cutoverDescribes a production deploy with wrangler deploy --containers-rollout=immediate on matching Worker and image.
- Validation checklistLists checks such as typecheck, smoke tests, error handling review and a final grep for removed APIs.
What you need
- An existing app using the stable @cloudflare/sandbox package
- npm to install @cloudflare/sandbox@next
- Docker to build the cloudflare/sandbox:next image
- Wrangler to deploy the Worker and container
Try asking
- Audit my repo for stable Cloudflare Sandbox APIs that need migrating to @next
- Port this sandbox.exec call to the @next argv and output pattern
- Show me how to move my terminal code to createTerminal and terminal.connect
Good to know
- Targets the SDK 1.0 preview (@next), not the stable release.
- Stable and @next control protocols are incompatible, so the production deploy must be immediate.
- Immediate rollout can stop in-flight processes, terminals and streams.
- A self-deployed bridge stays on the stable package.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/sandbox-migrate-to-next/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
references/skill-feedback.md3 KB
Alternatives to sandbox-migrate-to-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-migrate-to-next: common questions
Does this skill migrate a Cloudflare Sandbox app to the 1.0 preview?
Yes. It guides the port from the stable @cloudflare/sandbox package to @cloudflare/sandbox@next, the SDK 1.0 preview.
Should a new project use this skill?
No. The source says new projects should start on @next with the sandbox-next skill instead.
Will the migration cut over production automatically?
No. The source says not to force production cutover without the user agreeing, and the skill asks for that decision.
How do I install sandbox-migrate-to-next?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sandbox-migrate-to-next free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is sandbox-migrate-to-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-migrate-to-next?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
