openrig-upgrade
できること
このスキルは、OpenRigのアップグレードを通じて、各段階を確認しながら進めるエージェントを導きます。稼働中のエージェントの席を失わずにアップグレードしなければならない運用者向けです。
使う場面
- ✓OpenRigのコマンドラインツールまたはデーモンのアップグレードを準備しているとき。
- ✓アップグレードの間も、稼働中のエージェントの席を動かし続けなければならないとき。
- ✓管理されたプラグインやスキルのファイルを、ローカルの変更を失わずに照合する必要があるとき。
スキルのリンク
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このマシンのOpenRigをアップグレードしてください。稼働中のエージェントの席は動かし続け、各段階を確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、アップグレードを一度に一段階ずつ進め、各変更の効果を観察し、予期しないことが起きたら止まります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Upgrade OpenRig
An upgrade is an observed agent workflow, not a transaction hidden behind one command. Hosts differ, process state drifts, local plugin files accumulate, and the useful response to a failed step depends on what is still alive.
The agent owns the sequence. Stop after every mutation and observe the actual effect before choosing the next step. There is deliberately no end-to-end upgrade subcommand.
Safety model
Keep these planes separate:
- Seats normally live in tmux and can survive a daemon restart.
- The daemon, database, wrappers, and managed plugin projection are the control plane being changed.
rig downtears down seats. It is not part of a continuity-preserving upgrade.
Before acting, name the rigs and seats whose continuity matters. On a production host, use the host's normal operator ceremony. On a recovery-friendly build VM, the orchestrator may adopt a tested runtime directly, but still observes each step and stops on unexplained drift.
When recovery crosses an instance boundary
Before either lane changes runtime state, record one host-qualified executor and explicitly select the queue store that owns the recovery ruling. State whether the original owner continues, waits, or transfers; an open obligation in another store is not exclusive custody of this ruling. If the original store is down, retain its owner's disposition in the surviving ruling and communicate it to that owner before a competing executor acts.
A refused claim means reconcile ownership with the ruling owner before any further runtime action; it does not authorize continuing under a separate older row. A return names the full executor address and deliberately selected store. Read the resulting row there, including source, destination, body, and the original owner's disposition, before resuming. Receipt creation alone does not establish that a waiting lane received or accepted the transfer.
The loop
For every step:
- Inspect. Derive current facts from the live host.
- Decide. Choose one bounded mutation and state its expected effect.
- Act once. Do not bundle the next mutation with it.
- Observe. Check the process, listener, database, plugin, and seat surfaces that the step could have changed.
- Continue, adapt, or stop. A failed expectation is information for the agent, not permission for a blind retry.
Bounded helpers
Let SKILL_DIR be the directory containing this SKILL.md. These scripts emit
JSON and do not decide the upgrade sequence.
Inspect current facts
node "$SKILL_DIR/scripts/inspect-upgrade.mjs"
This asks the installed rig for its version, daemon status, node inventory,
and plugin inventory. A missing surface remains visible with a suggested next
probe. ready: false means the agent must resolve or consciously bound the gap;
it does not mean the script should mutate anything.
Back up SQLite
Take continuity snapshots first:
rig snapshot <rig-id>
node "$SKILL_DIR/scripts/backup-sqlite.mjs" \
--source "$OPENRIG_HOME/openrig.sqlite" \
--destination "/safe/path/openrig-before-upgrade.sqlite"
The helper refuses to overwrite a destination, uses SQLite's backup operation,
and verifies the backup with PRAGMA integrity_check. It does not stop the
daemon or restore a database.
Plan or apply safe managed-plugin refreshes
Plugin trees may contain skills as well as hooks and metadata. Compare the last packaged ancestor, the target package, and the live installed tree:
node "$SKILL_DIR/scripts/refresh-managed-plugin.mjs" \
--ancestor /path/to/previous/package/plugin \
--target /path/to/target/package/plugin \
--live "$OPENRIG_HOME/plugins/<plugin>"
Review the sorted decisions. To apply only refresh-safe and add-safe files:
node "$SKILL_DIR/scripts/refresh-managed-plugin.mjs" \
--ancestor /path/to/previous/package/plugin \
--target /path/to/target/package/plugin \
--live "$OPENRIG_HOME/plugins/<plugin>" \
--apply-safe
The helper never deletes a live file and never overwrites a local modification. Local deletions, live-only files, target removals, and ambiguous types are reported for the agent to resolve. Re-run the plan after any manual resolution.
Migrate a pre-0.5.9 instance layout
Version 0.5.9 puts context-usage telemetry in
$OPENRIG_HOME/state/context-usage, provider telemetry in
state/provider-usage, the addressable library under context/, and the
よくある質問
ワンコマンドのアップグレードはありますか?
いいえ。アップグレードは、観察しながら進める一連の段階であるとスキルは述べています。
デーモンを再起動するとエージェントは止まりますか?
通常、席はデーモンの再起動を生き延びるとスキルは説明しています。ただし、リグのdownはそれらを停止させます。
ローカルのファイルを上書きしますか?
いいえ。ローカルの作業を上書きせず、管理されたプラグインやスキルのファイルを照合するとスキルは述べています。
詳細
作者による元の説明
Use when an agent is preparing or performing an OpenRig CLI/daemon upgrade and must preserve live seats, verify each mutation, or reconcile managed plugin and skill files without overwriting local work.
repo: mvschwarz/openrig
人気
- GitHubのスター
- 8.6k
- ランキング
- #12409
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-operated-software
8.6kエージェントが、AIエージェントを稼働中のバックエンドに含む継続的なアプリを設計、構築、デバッグできるよう支援します。MarkdownやJSONのエージェント制御層を含みます。
agent-operated-workflows
8.6kエージェントが、限定された定型の手順をAIエージェントが動かすべきか通常のコードが動かすべきかを判断し、検証済みの証拠から再開する方法を決められるよう支援します。
applying-a-permission-policy
8.6kエージェントが、チームの設定時に使うコマンドの許可を設定し、通常のコマンドが承認の確認を何度も求めないよう支援します。
claude-compaction-restore
8.6kClaude Codeのエージェントが、コンテキストが圧縮された後に、保存された復元用のマップ、トランスクリプト、触れたファイルを使い、作業の全体像を組み直せるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。