sandbox-next
Agent skill fromfcakyon/claude-codex-settings
Build or maintain Cloudflare Sandbox apps on @cloudflare/sandbox@next (SDK 1.0 preview). Use sandbox-migrate-to-next when porting a stable app.
How to install sandbox-next
install sandbox-next
# install the claude-codex-settings pack with the skills CLI
npx skills add fcakyon/claude-codex-settings# or add only this skill to Claude Code: copy the folder
plugins/cloudflare-skills/skills/sandbox-next/
# into
~/.claude/skills/sandbox-next/ (all projects)
.claude/skills/sandbox-next/ (one project)
1# Sandbox SDK — `@next` (1.0 preview)23Isolated Linux environments on [Cloudflare Containers](https://developers.cloudflare.com/containers/index.md), driven from Workers.45**Prefer preview docs and installed `@next` types over memory.** APIs change; this skill is a gate, a contract, and a retrieval map—not a full manual.67We recommend **new projects** on this line. Apps still on the default package use **`sandbox-stable`**. Port only when asked, via **`sandbox-migrate-to-next`**.89## 1. Gate — confirm the package line1011Before writing code, inspect the app:1213| Check | Must match |14| ----- | ---------- |15| npm dependency | `@cloudflare/sandbox@next` (or another preview tag) |16| Container image | Same line (e.g. `cloudflare/sandbox:next`, `next-python`) |1718| If you find… | Action |19| ------------ | ------ |20| Default `@cloudflare/sandbox` (no `@next`) | **Stop.** Load **`sandbox-stable`**. Do not apply this skill’s APIs. |21| User wants to port stable → `@next` | **Stop.** Load **`sandbox-migrate-to-next`**. |22| Self-deployed **bridge** only | Bridge is **not** on the 1.0 preview line yet. Keep bridge on stable package + image. [Bridge (stable)](https://developers.cloudflare.com/sandbox/sdk/bridge/index.md) |2324Never mix an `@next` Worker package with a stable container image (or the reverse).2526Skills install: [Agent setup](https://developers.cloudflare.com/agent-setup/index.md) · [cloudflare/skills](https://github.com/cloudflare/skills)2728## 2. Contract — non-negotiables29…
Excerpt shown under the repository's Apache-2.0 license.
