rig-lifecycle
できること
このスキルは、OpenRigのチームの一生を管理するコマンドを説明します。作成や停止から、再起動後の復元までを扱います。チームを既知の正常な状態に戻す必要がある運用者向けです。
使う場面
- ✓リグを起動、停止、復元、削除する必要があるとき。
- ✓再起動後にリグの状態を確認し、何を信頼してよいか迷っているとき。
- ✓リグのライフサイクルの場面をテストする設計をしているとき。
スキルのリンク
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/rig-lifecycle/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“マシンが再起動しました。私のリグを復元し、どの席が本当に健全で、どの席が健全に見えているだけかを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、ライフサイクルのコマンドと復元の結果を説明し、要約のビューを信じるのではなく、実際の状態を確認するようエージェントを導きます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Rig Lifecycle
The family of operations that create, start, stop, resume, restore, snapshot, release, unclaim, and destroy OpenRig-managed topologies. Includes the user story after reboot: "bring my work back without turning a clean recovery into a cleanup project."
If lifecycle is brittle, every higher-level primitive inherits that brittleness. Queue, workflow, seat continuity, cross-host operation, and RSI all assume that rigs and seats can be restored into known states.
Use this when
- Operating
rig up / down / restore / resume / snapshot / release / unclaim / destroy - Reading
rig psafter a reboot or recovery and deciding what to trust - Designing proof for a lifecycle scenario (clean start / warm resume / host reboot / provider auth loss / partial boot / operator recovery)
- Reasoning about restore-outcome semantics (
resumed/rebuilt/fresh/failed/attention_required) - Auditing whether a lifecycle proof is in-process bedrock vs requires real reboot evidence
Don't use this when
- The operation is single-command and deterministic — use
openrig-userskill for CLI surface - The work is operator-level configuration or troubleshooting of OpenRig itself — run
rig context get help - The work is rig spec authoring — use
openrig-architect
Failure modes (4)
- Auto-restore creates a partially restored rig that must be cleaned up before real recovery. Partial restore looks like recovery but isn't; cleanup-before-recovery becomes the actual workload.
rig psor lifecycle projections report a healthier state than the runtime actually has. Projections are summaries; the runtime is truth. Don't trust projections silently.- Provider auth is unavailable after reboot and the system treats that as implementation work instead of a human/environment decision. Auth issues are environmental; route to human.
- Resume succeeds for one runtime/provider but fails for another scenario that was never tested. Per-runtime parity assumptions break silently; matrix proof catches them.
Restore-honesty rule (load-bearing)
Failed resume is FAILED loudly. No automatic fresh fallback. Fresh
launch is explicit follow-up only. This is enforced architecturally
at the daemon level (per architecture.md §7 rule 15).
The locked restore-outcome vocabulary:
| Outcome | Meaning |
|---|---|
resumed |
Native runtime resumed the same conversation |
rebuilt |
New process assembled from artifacts (session_source: mode: rebuild) |
fresh |
New process with no prior continuity |
failed |
Restore attempted and failed; no automatic fallback |
attention_required |
Recoverable blocker (provider auth refused, etc.); needs operator action |
n-a |
Not applicable (terminal nodes, etc.) |
Codex auth-refusal returns attention_required (recoverable); Claude
looksLikeClaudeLoginPrompt returns failed/login_required (terminal).
Cross-runtime alignment is an open follow-up question.
Proof standard
Lifecycle proof should include real reboot or VM-reboot evidence, not only daemon-unit evidence. The minimum useful matrix covers:
| Scenario | What it proves |
|---|---|
| Clean start | Boot from spec into known state |
| Warm resume | rig down → rig up <name> resumes seats |
| Host reboot / tmux socket absence | Recovery from lost tmux connection |
| Provider auth loss | Codex/Claude auth refusal handled honestly |
| Partial boot / partial failure | Some seats up, some failed; honest reporting |
| Intentional operator recovery | Operator-initiated restore from snapshot |
Tier 1: in-process bedrock (daemon-unit evidence). Tier 2: real reboot or disposable Tart VM. Tier 1 alone is not lifecycle proof; it's bedrock.
Default policy is part of the primitive
Treat default policy as part of the primitive, not an afterthought. Lifecycle defaults that are too optimistic for the reliability level actually proven create silent harm:
auto-restoredefaults that mask failure modes- Implicit fresh-fallback that hides resume failure
- Permissive verification that doesn't distinguish honest success from "appeared to work"
Total-Host Restore Product Rail v2
The rail sequences restore truth into four rungs:
fully_restoredis a Rung 3 execution rollup- "fully back" is reserved for Rung 4 only
Naming discipline matters. "Fully restored" and "fully back" are different claims; don't conflate.
See also
openrig-userskill — CL
よくある質問
どのような復元の結果がありますか?
再開、再構築、新規、失敗、要確認の結果が挙げられています。
復旧後に状態表示を信頼できますか?
状態表示は実際より健全に見えることがあるため、実際の状態を確認すべきだとスキルは警告しています。
復元が途中で止まることはありますか?
はい。一部だけ復元されたリグは、注意すべき失敗のパターンとして挙げられています。
詳細
作者による元の説明
Use when reasoning about the rig lifecycle operations family (create / start / stop / resume / restore / snapshot / release / unclaim / destroy), reading or trusting `rig ps` / lifecycle projections after recovery, or designing proof for a lifecycle scenario. Covers the 4 failure modes (auto-restore creates partial rig; projections report healthier than reality; provider auth treated as impl work; resume succeeds for one runtime fails another) plus the restore-honesty rule (failed resume is FAILED loudly — no auto fresh fallback).
repo: mvschwarz/openrig
人気
- GitHubのスター
- 8.6k
- ランキング
- #12411
- ライセンス
- 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一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。