code-review
Review the changed lines of a single file in a pull request for bugs, correctness, error handling, security, and maintainability,…
Migrate Cloudflare Sandbox SDK codebases away from features deprecated in June 2026 (HTTP and WebSocket transports, desktop, exposePort, default sessions, and stream-specific file and command APIs).
$ npx -y skills add try-works/role-model --skill sandbox-2026-deprecation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sandbox-2026-deprecationContext preview
The summary Claude sees to decide when to auto-load this skill.
Migrate Cloudflare Sandbox SDK codebases away from features deprecated in June 2026 (HTTP and WebSocket transports, desktop, exposePort, default sessions, and stream-specific file and command APIs).
description: "Migrate Cloudflare Sandbox SDK codebases away from features deprecated in June 2026 (HTTP and WebSocket transports, desktop, exposePort, default sessions, and stream-specific file and command APIs)."
Use this skill when migrating a codebase that depends on the Cloudflare Sandbox SDK away from features deprecated in June 2026.
For the announcement, refer to the [changelog entry](https://developers.cloudflare.com/changelog/sandbox/2026-06-09-deprecating-sandbox-sdk-features/). For detailed documentation, refer to the [migration guide](https://developers.cloudflare.com/sandbox/guides/2026-deprecation/).
1. Update `@cloudflare/sandbox` and the sandbox container image before changing runtime configuration. 2. Search the codebase for deprecated configuration and APIs:
rg 'SANDBOX_TRANSPORT|transport:|exposePort\(|enableDefaultSession|execStream\(|readFileStream|writeFileStream'
3. Switch every sandbox to RPC transport with `SANDBOX_TRANSPORT=rpc` or `getSandbox(..., { transport: "rpc" })`. 4. Replace Sandbox SDK desktop APIs with Cloudflare Browser Run where browser automation is required. 5. Replace `exposePort()` with `sandbox.tunnels.get()`. Use quick tunnels for development and named tunnels for stable production hostnames. 6. Set `enableDefaultSession: false` on `getSandbox()`. 7. Replace workflows that depend on persisted shell state with explicit sessions from `sandbox.createSession()`. 8. Move stream-specific file and command logic to the base `readFile()`, `writeFile()`, and `exec()` APIs where streaming behavior is supported. 9. Deploy the Worker and smoke-test command execution, file operations, public URLs, and stateful session workflows.
| Deprecated feature | Replacement | | ---------------------------------------- | ---------------------------------------------------- | | HTTP or WebSocket transport | RPC transport | | Sandbox SDK desktop | Cloudflare Browser Run | | `exposePort()` | `sandbox.tunnels.get()` | | Default sessions | `enableDefaultSession: false` with explicit sessions | | Stream-specific command and file helpers | Base command and file APIs with streaming support |
role-model is an open protocol for capability-aware AI routing, plus a reference router that implements that protocol.
Review the changed lines of a single file in a pull request for bugs, correctness, error handling, security, and maintainability,…
Use when contributing to the Cloudflare Docs repository — writing or editing documentation pages, choosing content types or…
Review a pull request's title, description, and scope against the repository's PR conventions.
Analyzes a Dependabot PR to determine what actually changed in each bumped package and whether those changes affect this repo.…
Transform technical jargon into clear explanations using before/after comparisons, metaphors, and practical context
Creates and updates GitHub pull requests for cloudflare-docs changes. Load when asked to open, create, submit, update, or edit a…