SkillsCloudflare & infrastructure › Sandbox SDK
sandbox-sdk

Sandbox SDK

Cloudflare’s way to run code safely in an isolated box — for things like a code interpreter or executing untrusted code. Niche for us, but relevant if a future connector ever needs to run generated scripts on demand.

Claude Code only
How to use it
Describe a sandboxed-execution feature and Claude sets up the container config, the lifecycle (create → run → destroy), file read/write, and preview URLs, against the current Sandbox docs. Claude Code only: it requires Docker + a real local environment.
How to invoke / keep it on
Describe a secure code-execution task in Claude Code to auto-load it. It also flags up front that you need Docker installed.
20 powerful examples for Melinda Maria
Copy, tweak, make them yours. Just describe the task — Claude loads the skill automatically.
01"Explain whether the Sandbox SDK would be the right tool if we wanted a connector that safely runs a customer-supplied data transformation — with the tradeoffs in plain English."
02"Scaffold a minimal sandboxed Python runner on Workers so I can prototype a one-off data-cleanup tool for an ApparelMagic export."
03"Show me the exact wrangler.jsonc container config the Sandbox SDK needs, checked against the current docs."
04"Walk me through the create / run-code / destroy lifecycle so I understand the cost and cleanup before I build anything."
05"Explain how to read and write files inside a sandbox so a tool could accept a CSV, clean it, and hand back the result."
06"Help me set resource and time limits on a sandbox so a runaway script can’t rack up cost."
07"Show me how a sandbox gives back a preview URL so I could let someone view a generated report safely."
08"Compare the Sandbox SDK to just running code in a normal Worker, and tell me when the isolation is actually worth it for us."
09"Prototype a sandbox that runs a small pricing-calculation script on numbers pulled from Shopify, with the execution isolated."
10"Explain, in plain English, why running untrusted code in a sandbox is safer than running it directly in a connector."
11"Help me capture and surface the sandbox’s stdout/stderr so I can see why a script failed."
12"Walk me through cleaning up a sandbox reliably even if the code inside it crashes, so we don’t leak containers."
13"Show me how to pass input data into a sandbox and get structured output back, using a small NuORDER export as the example."
14"Explain the Docker prerequisite and what I need installed locally before I can even try the Sandbox SDK."
15"Help me decide if a “run my Python on this file” internal tool for the ops team is a good fit for the Sandbox SDK or overkill."
16"Prototype a sandbox that converts an uploaded image batch (e.g. Canto assets) and returns a zip, with isolation on."
17"Show me how to time-box a long-running transformation so a big ShipBob export doesn’t hang the sandbox forever."
18"Explain how billing works for sandbox runtime so I can estimate the cost of an occasional data-cleanup tool."
19"Help me add basic input validation before code hits the sandbox so we’re not executing obviously malformed scripts."
20"Draft a short plain-English explainer for the team on what a “sandbox” is and the one or two cases where Melinda Maria might actually want one."
← Back to Cloudflare & infrastructure
Powered by our people. Amplified by AI. Ready-to-run playbooks for every team.