openrig-upgrade
O que ela faz
Esta skill orienta um agente de IA na atualização do OpenRig, verificando cada etapa antes de seguir. Ela serve para operadores que precisam atualizar sem perder postos de agentes em funcionamento.
Quando usar
- ✓Quando você está se preparando para atualizar a ferramenta de linha de comando ou o daemon do OpenRig.
- ✓Quando você precisa manter os postos de agentes ativos durante uma atualização.
- ✓Quando arquivos gerenciados de plugins ou skills precisam ser reconciliados sem perder alterações locais.
Link da skill
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Atualize o OpenRig nesta máquina mantendo meus postos de agentes ativos, e verifique cada etapa.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela conduz a atualização uma etapa por vez, observa o efeito de cada mudança e para quando algo inesperado acontece.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Existe uma atualização com um único comando?
Não. A skill diz que a atualização é deliberadamente uma sequência de etapas observadas.
Reiniciar o daemon derruba os agentes?
A skill explica que os postos geralmente sobrevivem a um reinício do daemon, mas o comando rig down os desmonta.
Ela vai sobrescrever meus arquivos locais?
A skill diz que reconcilia os arquivos gerenciados de plugins e skills sem sobrescrever o trabalho local.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 8,6 mil
- Posição no ranking
- #12409
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
agent-operated-software
8,6 milAjuda seu agente a projetar, construir ou depurar um app contínuo cujo backend em execução inclui agentes de IA, como um painel de controle de agentes em Markdown ou JSON.
agent-operated-workflows
8,6 milAjuda seu agente a decidir se um procedimento limitado deve ser executado por um agente de IA ou por código comum, e como retomá-lo a partir de evidências verificadas.
applying-a-permission-policy
8,6 milAjuda seu agente a configurar as permissões de comando que um agente de programação usa durante a montagem de uma equipe, para que comandos rotineiros peçam menos aprovações.
claude-compaction-restore
8,6 milAjuda um agente do Claude Code a reconstruir sua visão de trabalho depois que o contexto é compactado, usando um mapa de restauração salvo, a transcrição e os arquivos tocados.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.