[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7349RCCDA76C9956PW99XBS":3,"skill-same:01M7349RCCDA76C9956PW99XBS":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7349RCCDA76C9956PW99XBS","sandbox-sdk",null,"Build sandboxed applications for secure code execution. Load when building AI code execution, code interpreters, CI\u002FCD systems, interactive dev environments, or executing untrusted code. Covers Sandbox SDK lifecycle, commands, files, code interpreter, and preview URLs. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","LiamVisionary\u002Fhivemindos","LiamVisionary","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F102138294?v=4","01M73379NZZ99TT4ZS17XR3Q9D","01M73379PX6AKQNWN05VNSYRXW",13,"MIT","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Fhivemindos\u002Fblob\u002Fmain\u002Fskills\u002Fcloudflare\u002Fsandbox-sdk\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: sandbox-sdk\ndescription: Build sandboxed applications for secure code execution. Load when building AI code execution, code interpreters, CI\u002FCD systems, interactive dev environments, or executing untrusted code. Covers Sandbox SDK lifecycle, commands, files, code interpreter, and preview URLs. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.\n---\n\n# Cloudflare Sandbox SDK\n\nBuild secure, isolated code execution environments on Cloudflare Workers.\n\n## FIRST: Verify Installation\n\n```bash\nnpm install @cloudflare\u002Fsandbox\ndocker info  # Must succeed - Docker required for local dev\n```\n\n## Retrieval Sources\n\nYour knowledge of the Sandbox SDK may be outdated. **Prefer retrieval over pre-training** for any Sandbox SDK task.\n\n| Resource | URL |\n|----------|-----|\n| Docs | https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002F |\n| API Reference | https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fapi\u002F |\n| Examples | https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fsandbox-sdk\u002Ftree\u002Fmain\u002Fexamples |\n| Get Started | https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fget-started\u002F |\n\nWhen implementing features, fetch the relevant doc page or example first.\n\n## Required Configuration\n\n**wrangler.jsonc** (exact - do not modify structure):\n\n```jsonc\n{\n  \"containers\": [{\n    \"class_name\": \"Sandbox\",\n    \"image\": \".\u002FDockerfile\",\n    \"instance_type\": \"lite\",\n    \"max_instances\": 1\n  }],\n  \"durable_objects\": {\n    \"bindings\": [{ \"class_name\": \"Sandbox\", \"name\": \"Sandbox\" }]\n  },\n  \"migrations\": [{ \"new_sqlite_classes\": [\"Sandbox\"], \"tag\": \"v1\" }]\n}\n```\n\n**Worker entry** - must re-export Sandbox class:\n\n```typescript\nimport { getSandbox } from '@cloudflare\u002Fsandbox';\nexport { Sandbox } from '@cloudflare\u002Fsandbox';  \u002F\u002F Required export\n```\n\n## Quick Reference\n\n| Task | Method |\n|------|--------|\n| Get sandbox | `getSandbox(env.Sandbox, 'user-123')` |\n| Run command | `await sandbox.exec('python script.py')` |\n| Run code (interpreter) | `await sandbox.runCode(code, { language: 'python' })` |\n| Write file | `await sandbox.writeFile('\u002Fworkspace\u002Fapp.py', content)` |\n| Read file | `await sandbox.readFile('\u002Fworkspace\u002Fapp.py')` |\n| Create directory | `await sandbox.mkdir('\u002Fworkspace\u002Fsrc', { recursive: true })` |\n| List files | `await sandbox.listFiles('\u002Fworkspace')` |\n| Expose port | `await sandbox.exposePort(8080)` |\n| Destroy | `await sandbox.destroy()` |\n\n## Core Patterns\n\n### Execute Commands\n\n```typescript\nconst sandbox = getSandbox(env.Sandbox, 'user-123');\nconst result = await sandbox.exec('python --version');\n\u002F\u002F result: { stdout, stderr, exitCode, success }\n```\n\n### Code Interpreter (Recommended for AI)\n\nUse `runCode()` for executing LLM-generated code with rich outputs:\n\n```typescript\nconst ctx = await sandbox.createCodeContext({ language: 'python' });\n\nawait sandbox.runCode('import pandas as pd; data = [1,2,3]', { context: ctx });\nconst result = await sandbox.runCode('sum(data)', { context: ctx });\n\u002F\u002F result.results[0].text = \"6\"\n```\n\n**Languages**: `python`, `javascript`, `typescript`\n\nState persists within context. Create explicit contexts for production.\n\n### File Operations\n\n```typescript\nawait sandbox.mkdir('\u002Fworkspace\u002Fproject', { recursive: true });\nawait sandbox.writeFile('\u002Fworkspace\u002Fproject\u002Fmain.py', code);\nconst file = await sandbox.readFile('\u002Fworkspace\u002Fproject\u002Fmain.py');\nconst files = await sandbox.listFiles('\u002Fworkspace\u002Fproject');\n```\n\n## When to Use What\n\n| Need | Use | Why |\n|------|-----|-----|\n| Shell commands, scripts | `exec()` | Direct control, streaming |\n| LLM-generated code | `runCode()` | Rich outputs, state persistence |\n| Build\u002Ftest pipelines | `exec()` | Exit codes, stderr capture |\n| Data analysis | `runCode()` | Charts, tables, pandas |\n\n## Extending the Dockerfile\n\nBase image (`docker.io\u002Fcloudflare\u002Fsandbox:0.7.0`) includes Python 3.11, Node.js 20, and common tools.\n\nAdd dependencies by extending the Dockerfile:\n\n```dockerfile\nFROM docker.io\u002Fcloudflare\u002Fsandbox:0.7.0\n\n# Python packages\nRUN pip install requests beautifulsoup4\n\n# Node packages (global)\nRUN npm install -g typescript\n\n# System packages\nRUN apt-get update && apt-get install -y ffmpeg && rm -rf \u002Fvar\u002Flib\u002Fapt\u002Flists\u002F*\n\nEXPOSE 8080  # Required for local dev port exposure\n```\n\nKeep images lean - affects cold start time.\n\n## Preview URLs (Port Exposure)\n\nExpose HTTP services running in sandboxes:\n\n```typescript\nconst { url } = await sandbox.exposePort(8080);\n\u002F\u002F Returns preview URL for the service\n```\n\n**Production requirement**: Preview URLs need a custom domain with wildcard DNS (`*.yourdomain.com`). The `.workers.dev` domain does not support preview URL subdomains.\n\nSee: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fguides\u002Fexpose-services\u002F\n\n## OpenAI Agents SDK Integration\n\nThe SDK provides helpers for OpenAI Agents at `@cloudflare\u002Fsandbox\u002Fopenai`:\n\n```typescript\nimport { Shell, Editor } from '@cloudflare\u002Fsandbox\u002Fopenai';\n```\n\nSee `examples\u002Fopenai-agents` for complete integration pattern.\n\n## Sandbox Lifecycle\n\n- `getSandbox()` returns immediately - container starts lazily on first operation\n- Containers sleep after 10 minutes of inactivity (configurable via `sleepAfter`)\n- Use `destroy()` to immediately free resources\n- Same `sandboxId` always returns same sandbox instance\n\n## Anti-Patterns\n\n- **Don't use internal clients** (`CommandClient`, `FileClient`) - use `sandbox.*` methods\n- **Don't skip the Sandbox export** - Worker won't deploy without `export { Sandbox }`\n- **Don't hardcode sandbox IDs for multi-user** - use user\u002Fsession identifiers\n- **Don't forget cleanup** - call `destroy()` for temporary sandboxes\n\n## Detailed References\n\n- **[references\u002Fapi-quick-ref.md](references\u002Fapi-quick-ref.md)** - Full API with options and return types\n- **[references\u002Fexamples.md](references\u002Fexamples.md)** - Example index with use cases\n","# Cloudflare Sandbox SDK\n\nBuild secure, isolated code execution environments on Cloudflare Workers.\n\n## FIRST: Verify Installation\n\n```bash\nnpm install @cloudflare\u002Fsandbox\ndocker info  # Must succeed - Docker required for local dev\n```\n\n## Retrieval Sources\n\nYour knowledge of the Sandbox SDK may be outdated. **Prefer retrieval over pre-training** for any Sandbox SDK task.\n\n| Resource | URL |\n|----------|-----|\n| Docs | https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002F |\n| API Reference | https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fapi\u002F |\n| Examples | https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fsandbox-sdk\u002Ftree\u002Fmain\u002Fexamples |\n| Get Started | https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fget-started\u002F |\n\nWhen implementing features, fetch the relevant doc page or example first.\n\n## Required Configuration\n\n**wrangler.jsonc** (exact - do not modify structure):\n\n```jsonc\n{\n  \"containers\": [{\n    \"class_name\": \"Sandbox\",\n    \"image\": \".\u002FDockerfile\",\n    \"instance_type\": \"lite\",\n    \"max_instances\": 1\n  }],\n  \"durable_objects\": {\n    \"bindings\": [{ \"class_name\": \"Sandbox\", \"name\": \"Sandbox\" }]\n  },\n  \"migrations\": [{ \"new_sqlite_classes\": [\"Sandbox\"], \"tag\": \"v1\" }]\n}\n```\n\n**Worker entry** - must re-export Sandbox class:\n\n```typescript\nimport { getSandbox } from '@cloudflare\u002Fsandbox';\nexport { Sandbox } from '@cloudflare\u002Fsandbox';  \u002F\u002F Required export\n```\n\n## Quick Reference\n\n| Task | Method |\n|------|--------|\n| Get sandbox | `getSandbox(env.Sandbox, 'user-123')` |\n| Run command | `await sandbox.exec('python script.py')` |\n| Run code (interpreter) | `await sandbox.runCode(code, { language: 'python' })` |\n| Write file | `await sandbox.writeFile('\u002Fworkspace\u002Fapp.py', content)` |\n| Read file | `await sandbox.readFile('\u002Fworkspace\u002Fapp.py')` |\n| Create directory | `await sandbox.mkdir('\u002Fworkspace\u002Fsrc', { recursive: true })` |\n| List files | `await sandbox.listFiles('\u002Fworkspace')` |\n| Expose port | `await sandbox.exposePort(8080)` |\n| Destroy | `await sandbox.destroy()` |\n\n## Core Patterns\n\n### Execute Commands\n\n```typescript\nconst sandbox = getSandbox(env.Sandbox, 'user-123');\nconst result = await sandbox.exec('python --version');\n\u002F\u002F result: { stdout, stderr, exitCode, success }\n```\n\n### Code Interpreter (Recommended for AI)\n\nUse `runCode()` for executing LLM-generated code with rich outputs:\n\n```typescript\nconst ctx = await sandbox.createCodeContext({ language: 'python' });\n\nawait sandbox.runCode('import pandas as pd; data = [1,2,3]', { context: ctx });\nconst result = await sandbox.runCode('sum(data)', { context: ctx });\n\u002F\u002F result.results[0].text = \"6\"\n```\n\n**Languages**: `python`, `javascript`, `typescript`\n\nState persists within context. Create explicit contexts for production.\n\n### File Operations\n\n```typescript\nawait sandbox.mkdir('\u002Fworkspace\u002Fproject', { recursive: true });\nawait sandbox.writeFile('\u002Fworkspace\u002Fproject\u002Fmain.py', code);\nconst file = await sandbox.readFile('\u002Fworkspace\u002Fproject\u002Fmain.py');\nconst files = await sandbox.listFiles('\u002Fworkspace\u002Fproject');\n```\n\n## When to Use What\n\n| Need | Use | Why |\n|------|-----|-----|\n| Shell commands, scripts | `exec()` | Direct control, streaming |\n| LLM-generated code | `runCode()` | Rich outputs, state persistence |\n| Build\u002Ftest pipelines | `exec()` | Exit codes, stderr capture |\n| Data analysis | `runCode()` | Charts, tables, pandas |\n\n## Extending the Dockerfile\n\nBase image (`docker.io\u002Fcloudflare\u002Fsandbox:0.7.0`) includes Python 3.11, Node.js 20, and common tools.\n\nAdd dependencies by extending the Dockerfile:\n\n```dockerfile\nFROM docker.io\u002Fcloudflare\u002Fsandbox:0.7.0\n\n# Python packages\nRUN pip install requests beautifulsoup4\n\n# Node packages (global)\nRUN npm install -g typescript\n\n# System packages\nRUN apt-get update && apt-get install -y ffmpeg && rm -rf \u002Fvar\u002Flib\u002Fapt\u002Flists\u002F*\n\nEXPOSE 8080  # Required for local dev port exposure\n```\n\nKeep images lean - affects cold start time.\n\n## Preview URLs (Port Exposure)\n\nExpose HTTP services running in sandboxes:\n\n```typescript\nconst { url } = await sandbox.exposePort(8080);\n\u002F\u002F Returns preview URL for the service\n```\n\n**Production requirement**: Preview URLs need a custom domain with wildcard DNS (`*.yourdomain.com`). The `.workers.dev` domain does not support preview URL subdomains.\n\nSee: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fguides\u002Fexpose-services\u002F\n\n## OpenAI Agents SDK Integration\n\nThe SDK provides helpers for OpenAI Agents at `@cloudflare\u002Fsandbox\u002Fopenai`:\n\n```typescript\nimport { Shell, Editor } from '@cloudflare\u002Fsandbox\u002Fopenai';\n```\n\nSee `examples\u002Fopenai-agents` for complete integration pattern.\n\n## Sandbox Lifecycle\n\n- `getSandbox()` returns immediately - container starts lazily on first operation\n- Containers sleep after 10 minutes of inactivity (configurable via `sleepAfter`)\n- Use `destroy()` to immediately free resources\n- Same `sandboxId` always returns same sandbox instance\n\n## Anti-Patterns\n\n- **Don't use internal clients** (`CommandClient`, `FileClient`) - use `sandbox.*` methods\n- **Don't skip the Sandbox export** - Worker won't deploy without `export { Sandbox }`\n- **Don't hardcode sandbox IDs for multi-user** - use user\u002Fsession identifiers\n- **Don't forget cleanup** - call `destroy()` for temporary sandboxes\n\n## Detailed References\n\n- **[references\u002Fapi-quick-ref.md](references\u002Fapi-quick-ref.md)** - Full API with options and return types\n- **[references\u002Fexamples.md](references\u002Fexamples.md)** - Example index with use cases\n",{"name":5,"description":7},"main","f270c4ae4f9d09c4e5da9cfa8adab7e89ae1f53e","skills\u002Fcloudflare\u002Fsandbox-sdk",4,"https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Fhivemindos","https:\u002F\u002Fgithub.com\u002FLiamVisionary","2026-11-10 21:48:41",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add LiamVisionary\u002Fhivemindos --skill sandbox-sdk",{"tool":36,"command":37},"bunx","bunx skills add LiamVisionary\u002Fhivemindos --skill sandbox-sdk",{"tool":39,"command":40},"pnpm","pnpm dlx skills add LiamVisionary\u002Fhivemindos --skill sandbox-sdk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Fhivemindos\u002Fblob\u002Fmain\u002Fskills\u002Fcloudflare\u002Fsandbox-sdk\u002FSKILL.md",true,[44,50],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Fapi-quick-ref.md","REFERENCE","参考文档",3220,"https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Fhivemindos\u002Fblob\u002Fmain\u002Fskills\u002Fcloudflare\u002Fsandbox-sdk\u002Freferences\u002Fapi-quick-ref.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fexamples.md",1570,"https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Fhivemindos\u002Fblob\u002Fmain\u002Fskills\u002Fcloudflare\u002Fsandbox-sdk\u002Freferences\u002Fexamples.md",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M734AA85KQEXDQXQJ3T7769M","tailscale-generation-skill-authoring","This skill should be used when the user asks to \"create a Tailscale generation skill\", \"add a local generation skill\", \"document a generation endpoint\", \"add an image generation provider\", \"add a TTS provider\", \"add video generation\", \"add 3D generation\", or needs guidance on where HivemindOS Tailscale or local generation providers belong in the shared skills shelf.","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Fhivemindos\u002Fblob\u002Fmain\u002Fskills\u002Ftailscale-generation-skill-authoring\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M734A7VD69PRA0C0EV5EFY9T","localtts","This skill should be used when the user asks to \"generate local TTS\", \"use local text to speech\", \"use remote TTS over Tailscale\", \"make speech audio\", \"add a TTS provider\", \"use Qwen3-TTS\", or needs TTS endpoint setup through local or HivemindOS Tailscale routes.","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Fhivemindos\u002Fblob\u002Fmain\u002Fskills\u002Flocaltts\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M734A4K2Z0F74QZP7V7WBFRY","karpathy-guidelines","Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Fhivemindos\u002Fblob\u002Fmain\u002Fskills\u002Fkarpathy-guidelines\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M734A1HMVYVJX3YJGNQ6KF6C","comfyui-image-generation","This skill should be used when the user asks to \"generate images\", \"generate images with ComfyUI\", \"use local ComfyUI\", \"use remote ComfyUI\", \"use Z-Image\", \"add an image generation provider\", or needs image-generation endpoint setup through local or HivemindOS Tailscale routes.","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Fhivemindos\u002Fblob\u002Fmain\u002Fskills\u002Fcomfyui-image-generation\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M7349Y684Q676DNNHZPSC8W1","wrangler","Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Fhivemindos\u002Fblob\u002Fmain\u002Fskills\u002Fcloudflare\u002Fwrangler\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M7349V3WCBF835QP74SA9Q8C","workers-best-practices","Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Fhivemindos\u002Fblob\u002Fmain\u002Fskills\u002Fcloudflare\u002Fworkers-best-practices\u002FSKILL.md",[],[]]