Communityコーディング&開発github.com

クラウドイメージベイク

クラウドワーカーイメージをベイク(作成)、選択、検証、安全に廃棄するスキル。crbbox と設定ワンライナーを使用します。

クラウドイメージベイク とは?

このスキルは、OpenClaw クラウドワーカーのイメージをライフサイクル管理するための手順を提供します。具体的には、新しいツールをインストールしたベースイメージの作成(ベイク)、選択、検証(プローブ)、そして安全な廃棄をカバーします。プロバイダ認証情報を保存しない、設定ファイルを直接編集しない、オペレータの明示的な確認なしにイメージを削除しないなど、安全に運用するための重要なルールを厳守します。AWS、Hetzner、Firecracker の各バックエンドに対応しており、各バックエンド固有のスナップショット作成方法とイメージ管理の仕組みに従います。crabbox と openclaw の CLI ツールを組み合わせて、ベイク前の準備、設定の変更、動作確認、そして証明後のクリーンアップまでを一貫して実行できるよう設計されています。

対応~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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

クラウドワーカーイメージをベイクする

秘密の値を出力したり永続化したりしないでください。プロバイダ認証情報はストアに残したままにします。設定ファイルを直接編集しないでください。プロファイルの変更は openclaw config を通して行います。すべての実行は、検証結果が観測可能な状態で終了するか、検証できなかった理由を正確に説明して終了します。スナップショットは安価ですが、管理されていないスナップショットの増殖はそうではありません。オペレータの明確な確認なしにプロバイダイメージを削除しないでください。

収集

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 テンプレートをリビルドして再公開します。実行中のマイクロVMをスナップショットの代わりに使用しないでください。

検証済みの設定書き込みによってのみ、新しい選択肢をプロファイルに設定します。まず正確なキーを確認し、ドライランを行い、その後書き込みます(設定にイメージフィールドがあるバックエンドの例)。

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 パスをエンドツーエンドで確認します。クライアントからプロファイルに1つのセッションをディスパッチし(Cloud 宛先)、配置が active に到達することを確認します。いずれかの手順で失敗した場合、イメージ選択をロールバックし、正確なブロッカーを報告します。

報告

プロファイル、バックエンド、新しいイメージ ID と以前のイメージ ID、ツールのスモークテスト結果、ウォームアップ前後の時間、ロールバック状態を報告します。証明が成功した後にのみ、正確な削除対象を表示し、オペレータの明確な確認を得ます。その後、置き換えられたスナップショットのみを削除し(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.

関連スキル