用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Consensys/c0 --skill update-opencode-sandbox命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Run and improve the c0 agent evaluation loop using the local and remote Cloudflare MCP harness, versioned history notes, and current Cloudflare product updates. Use when evaluating agent quality, harness behavior, retrieval quality, model/tool performance, or when the user asks to benchmark, score, improve, or retest the agent workflow.
Derive Cloudflare worker env types from Alchemy resource Env types instead of hand-writing env shapes. Use when editing worker bindings, adding or removing env vars in packages/infra, touching cloudflare-env.d.ts or env.d.ts files, importing from cloudflare:workers, or fixing env typing in API or web apps.
Use when changing c0 deployment configuration, runtime-editable global settings, auth providers, AI providers, MCP Context Forge, discovered registries, secret references, or open-source deployment configuration.
基于 SOC 职业分类
正在显示 SKILL.md
| name | update-opencode-sandbox |
| description | Update OpenCode And Sandbox |
| disable-model-invocation | true |
Update the OpenCode integration and Cloudflare Sandbox stack, validate the result end to end, and keep this command current if the workflow changes.
nub for all Node dependency changes.@cloudflare/containers changes, keep the root patchedDependencies entry and the matching patches/@cloudflare__containers@<version>.patch aligned with the installed version. As of 0.3.0, the local no-body Response patch is still required.package.jsonapps/api/package.jsonpatches/@cloudflare__containers@*.patchpackages/sandbox/Dockerfilenub.lockpackages/api/src/server/background/sandbox/providers/cloudflare-provider.tstests/integration/opencode-config-refresh.test.tstests/e2e/opencode-workflow.test.tspackages/api/src/server/background/sandbox/providers/cloudflare-provider.ts to match the current SDK instead of preserving old call shapes.nub exec tsc --noEmit -p tsconfig.json (from repo root; uses root tsconfig.json)nub run --filter @c0/background-api typecheck and report that result separately so the upgraded surface is still verified.McpServer types from two @modelcontextprotocol/sdk versions, align on a single version: root package.json → overrides["@modelcontextprotocol/sdk"] matching apps/api, then nub install and re-run tsc.nub exec vitest run tests/e2e/opencode-workflow.test.ts (or nub run test:e2e from root, which sets RUN_E2E=1)INTERNAL_CALLBACK_SECRET so the test can generate its own internal bearer token, or pass INTERNAL_TOKEN explicitly. Requests also need an acting x-user-id; the default local seeded user is user-session-run unless overridden.nub exec vitest run tests/integration/opencode-config-refresh.test.ts for OpenCode config wiring without a live Worker.docker build -t sandbox-check ./packages/sandbox to confirm the image still pulls cloudflare/sandbox:<version>-opencode and the derived image builds successfully. OpenCode is baked into the -opencode base image now; this repo's Dockerfile should only add repo-specific runtime dependencies such as provider packages./sessions/:id/events for both token and execution_complete. A repo-less session is enough to verify the OpenCode workflow; repo-backed sessions additionally require a linked GitHub identity for the acting user.1337 is free first (on macOS, lsof -i :1337 may show the service name menandmice-dns for that port).curl https://opencode.ai/install1337.cursor/commands/update-opencode-sandbox.md before you finish.