Community编程与开发github.com

云工作器镜像烘焙

通过 crabbox 和配置单行命令来烘焙、选择、验证并安全淘汰云工作器镜像。

云工作器镜像烘焙 是什么?

该技能提供了一套系统性工作流程,用于为 OpenClaw Cloud Workers 烘焙、选择、验证并安全淘汰云工作器镜像。它通过与 crabbox 和 openclaw config 的深度集成,确保所有操作均遵循安全最佳实践:绝不打印或持久化秘密值,配置更改通过 openclaw config 进行,且每次运行结束时都会输出可观测的验证结果或明确的失败原因解释。技能支持多种云后端(如 AWS、Hetzner、Firecracker),并根据各平台特性采取了差异化的快照策略(如 AWS 的 promote 机制、Hetzner 的 hcloud 命令、Firecracker 的模板管线)。工作流包含 Gather(收集当前状态)、Mutate(租赁实例并安装工具链)、Repair(诊断并修复配置问题)、Prove(验证新镜像有效性并与基线对比)、Report(生成报告并安全删除旧快照)五个阶段,可配合 Cursor、Claude Code、Codex 等 AI 助手使用。它特别强调 operator 的硬确认步骤,以防止误删云资源,同时要求报告 rollback 状态,确保流程出错时可快速回滚。该技能适用于需要管理 Cloud Worker 镜像生命周期的 DevOps 工程师或自动化运维场景。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/custodian-skills/cloud-image-bake

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

烘焙云工作器镜像

绝不打印或持久化秘密值;提供商凭据保留在各自的存储中。绝不要手动编辑磁盘上的配置文件——配置文件更改必须通过 openclaw config 进行。每次运行结束时都必须输出可观测的验证结果,或准确解释为何无法验证。快照很便宜,但不受管理的快照蔓延则不然。绝不在没有 operator 硬确认的情况下删除提供商镜像。

收集

openclaw config get cloudWorkers --json
crabbox config show --json
crabbox doctor --provider <backend> --json
crabbox checkpoint list --json

记录当前的提供商、类、镜像选择、设置命令以及被替换的镜像 ID。确认请求的工具链和无秘密的烘焙源。

变更

从当前配置文件租赁实例,安装并冒烟测试工具链:

crabbox warmup --provider <backend> --class <class> --keep --timing-json
crabbox run --provider <backend> --id <lease> --no-sync -- bash -lc '<install commands> && <tool> --version'

按后端创建快照:

  • AWS:crabbox checkpoint create --provider aws --id <lease> --mode native --strategy image --wait,检查后使用 crabbox image promote <ami-id> 并指定匹配的作用域。AWS 镜像选择由 promote 目录管理。
  • Hetzner:hcloud image create --type snapshot --server <server-id> --description <name>;目前 Hetzner 没有 crabbox create/promote 生命周期,因此需要显式记录快照 ID。
  • Firecracker:通过宿主的模板管线重建并重新发布 rootfs 模板;不要使用快照运行中的 microVM 作为替代。

仅通过经过验证的配置写入操作将配置文件指向新的选择——先确认确切的键,然后进行 dry-run,最后写入(以设置中包含 image 字段的后端为例):

openclaw config schema --json | jq '.properties.cloudWorkers'
openclaw config set cloudWorkers.profiles.<profile>.settings.<imageKey> "<image-id>" --dry-run
openclaw config set cloudWorkers.profiles.<profile>.settings.<imageKey> "<image-id>"

打包的 crabbox 配置文件当前没有 image 设置键——AWS 选择位于 crabbox image promote 中;绝不要凭空创建配置字段。保留旧镜像直到验证通过。

修复

openclaw doctor --lint
crabbox doctor --provider <backend> --json

doctor --lint 可能因发现问题而退出并返回 1:阅读报告,然后继续其余检查。普通的 doctor 和 doctor --non-interactive 可能会写入配置/状态;在获得批准前不要使用它们进行诊断。仅获得明确批准后应用 openclaw doctor --fix --non-interactive,然后重新读取配置文件和提供商清单。

验证

从新镜像租赁一次实例,确认烘焙的工具链存在且快速:

crabbox warmup --provider <backend> --class <class> --timing-json
crabbox run --provider <backend> --id <lease> --no-sync -- bash -lc '<tool> --version'
crabbox stop --provider <backend> --id <lease>

记录预热总时间并与烘焙前的计时进行对比。然后端到端确认 OpenClaw 路径:从客户端(Cloud 目标)向该配置文件发送一个会话,验证部署是否达到 active 状态。如果任何步骤失败,回滚镜像选择并报告确切的阻塞因素。

报告

报告配置文件、后端、新镜像 ID 和旧镜像 ID、工具链冒烟测试结果、定时预热的前后对比以及回滚状态。仅当验证成功后,显示确切删除目标并获取 operator 硬确认,然后仅删除那些被替换的快照(crabbox image delete <id> 或 hcloud image delete <id>),并确认已删除。如果没有确认,则保持原样并报告清理待处理。

更多参考:https://docs.openclaw.ai/gateway/cloud-workers

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相关技能