openrig-upgrade
하는 일
이 스킬은 AI 에이전트가 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
자주 묻는 질문
명령 하나로 하는 업그레이드가 있나요?
아닙니다. 스킬은 업그레이드가 의도적으로 관찰되는 여러 단계의 순서라고 설명합니다.
데몬을 재시작하면 에이전트가 멈추나요?
스킬은 보통 데몬을 재시작해도 좌석은 유지되지만, rig 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 에이전트가 포함된 앱을 설계하고 만들고 디버깅하도록 돕습니다.
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에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.