本文へ移動
cccskills
無料GitHub で公開

sandbox-2026-deprecation

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).

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-modelスター 117(GitHub 117 + cccskills 0)
連携ツールCloudflare

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Sandbox SDK 2026 deprecation migration

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. For detailed documentation, refer to the migration guide.

Migration checklist

  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.

API replacements

Deprecated featureReplacement
HTTP or WebSocket transportRPC transport
Sandbox SDK desktopCloudflare Browser Run
exposePort()sandbox.tunnels.get()
Default sessionsenableDefaultSession: false with explicit sessions
Stream-specific command and file helpersBase command and file APIs with streaming support

Notes for agents

  • Do not remove exposePort() blindly if the Worker uses proxyToSandbox() to inject authentication or rewrite responses. Preserve that behavior before moving traffic to tunnels.
  • If code relies on cd carrying across separate exec() calls, create an explicit session with cwd instead.
  • Tunnels require RPC transport. Configure RPC before migrating public URLs.
  • Large or binary file streaming requires RPC transport.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF, DDoS), and infrastructure-as-code (Terraform, Pulumi). Use for any Cloudflare development task. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like "add email to my Worker" — this skill has critical config details.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

Guides Cloudflare One Zero Trust and SASE work across Access, Gateway, WARP, Tunnel, Cloudflare WAN, DLP, CASB, device posture, and identity. Use when designing, configuring, troubleshooting, or reviewing Cloudflare One deployments. Retrieval-first: use current Cloudflare docs/API schemas instead of embedded product docs.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

Plans migrations from Zscaler ZIA/ZPA, Palo Alto, legacy VPN, SWG, or SASE stacks to Cloudflare One. Use for migration assessments, policy mapping, rollout plans, and parity/gap analysis.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

Review the changed lines of a single file in a pull request for bugs, correctness, error handling, security, and maintainability, and return structured findings.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

try-works のスキルをすべて見る

このスキルの問題を報告する