본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)8.6k · #12409

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 down tears 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:

  1. Inspect. Derive current facts from the live host.
  2. Decide. Choose one bounded mutation and state its expected effect.
  3. Act once. Do not bundle the next mutation with it.
  4. Observe. Check the process, listener, database, plugin, and seat surfaces that the step could have changed.
  5. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬