upgrade-preflight
O que ela faz
Esta skill ajuda operadores a decidir se uma atualização do Lightdash self-hosted é segura e a se recuperar de uma migração travada. É para equipes que mantêm o próprio servidor do Lightdash e planejam suas atualizações.
Quando usar
- ✓Quando você está planejando uma atualização de uma instância self-hosted do Lightdash.
- ✓Quando você precisa responder se uma atualização do Lightdash é segura para rodar.
- ✓Quando uma migração do Lightdash falhou, travou ou está presa em um lock.
Link da skill
https://github.com/lightdash/lightdash/blob/main/skills/upgrade-preflight/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
“Verifique se atualizar nosso Lightdash self-hosted para a versão mais recente é seguro e me diga o que as verificações encontraram.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill explica quais comandos de verificação de atualização e de pré-verificação de migração rodar, como interpretar seus códigos de saída e sua saída, e o que eles não provam. Ela indica aos operadores as páginas oficiais de segurança de atualização e de runbook para o procedimento completo.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Upgrade preflight
Decide whether a self-hosted Lightdash upgrade is safe to run, and report the answer accurately.
Scope
Use this when helping an operator upgrade a self-hosted instance: choosing a target version, planning a window, gating a pipeline, or recovering a migration that failed or hung.
Don't use this for Lightdash Cloud (upgrades are managed), dbt or semantic-layer work, or developing Lightdash itself.
The human-facing references are upgrade safety (what the signals mean) and the upgrade runbook (execution sequences, per-platform invocation, recovery, rollback). This skill is the agent-facing layer: what to run, what to branch on, and what not to conclude. Link the operator to those pages rather than paraphrasing them.
Vocabulary
One term per concept, matching the docs: a span is a from-version to a to-version; verdict is upgrade-check's answer about a span; a check is one item the preflight reports; decision is the preflight's overall answer; the lease is the row a migrating node holds while it works.
Two layers, in this order
Two commands. They answer different questions and neither substitutes for the other.
lightdash upgrade-check |
migrate preflight |
|
|---|---|---|
| Question | Is this span safe in principle? | Will this database take it right now? |
| Where | Anywhere — the @lightdash/cli, no login, no database |
Inside the image, with database env credentials |
| Reads | The public release-safety index on GitHub | The live database + the artifact baked into the image |
| Invocation | lightdash upgrade-check --from 1.130.0 --to 1.138.0 [--json] |
pnpm -F backend migrate-production preflight [--json] [--strict] [--force] |
Run upgrade-check first. It is the decision layer: it can tell the operator not to attempt the span at all, or that they must stop at an intermediate release, before anyone touches the instance. migrate preflight is the execution layer and cannot see the span — it knows only the image it runs in and the ledger in front of it. A preflight decision of proceed never licenses a span whose verdict was not true.
Gate on exit codes and JSON
Both commands print human text by default and a machine payload under --json. Branch on the exit code, then read named fields — not the rendered text. The words RED, UNSAFE and abort all appear in the prose of runs that are fine, and the human renderer is not a contract.
Exit codes are binary in both commands: 0 success, 1 everything else — an unsafe verdict, an aborted decision, or an error such as an unreachable index or a rejected flag. There is no severity ladder in the exit code; the severity lives in the payload. A non-zero exit means "stop and read the payload", never "this specific thing went wrong".
upgrade-check — branch on safe (boolean). It is true only when verdict is true, requiredStops is empty, and the from-version is not below minPreviousVersion.
verdictis tri-state:true,false, or"unknown"."unknown"is not a pass — a release in the span is unindexed or indexed as unknown, so the command fails closed. Report it as "cannot verify this span", never as "clear" or "probably fine". This is the output most likely to be mis-summarised into an all-clear.requiredStopsnon-empty means the span must be split into several upgrades, not that it is forbidden.- A rollback span is rejected with an error rather than a verdict; rollback guidance is in the runbook.
migrate preflight — branch on decision: proceed, proceed-with-warnings, abort, or force-proceed. Equivalently, gate on summary.red and summary.yellow.
severityis the class of a check, not its result.postgres-versionis always a red-class check; on a healthy server it reports{"severity": "red", "outcome": "pass"}and renders as[RED PASS]. Onlyseverity: "red"withoutcome: "fail"is
Perguntas frequentes
Funciona para o Lightdash Cloud?
Não, a descrição diz que as atualizações do Cloud são gerenciadas para você, então isto é só para instâncias self-hosted.
Uma verificação substitui a outra?
Não, a skill explica que as duas pré-verificações respondem a perguntas diferentes.
Onde estão os passos completos?
A skill aponta para as páginas oficiais de segurança de atualização e de runbook para o procedimento completo.
Detalhes
Descrição original do autor
Checks whether a self-hosted Lightdash upgrade is safe to run, and reads the tooling's answer without over-reading it. Use when upgrading a self-hosted instance, planning a maintenance window, answering "is this upgrade safe", or recovering a failed, hung, parked or lock-stuck migration — covers `lightdash upgrade-check` and `migrate preflight`, how to gate on their exit codes and JSON, and the readings that look calm but mean "could not check".
repo: lightdash/lightdash
Popularidade
- Estrelas no GitHub
- 6,2 mil
- Posição no ranking
- #14407
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
breakup-pr
6,2 milAjuda seu agente a dividir um pull request grande em fatias menores e empilhadas, que podem ser revisadas e mescladas uma de cada vez.
lightdash-agent-slack-messaging
6,2 milAjuda seu agente a escrever relatórios de manutenção e de atividade claros e amigáveis para administradores do Lightdash, baseados apenas nas evidências disponíveis.
developing-in-lightdash
6,2 milAjuda seu agente a ler, criar e editar dashboards e gráficos do Lightdash como JSON, incluindo as configurações de cada tipo de gráfico.
filter-expressions
6,2 milAjuda seu agente a escrever expressões de filtro corretas para consultas de métricas do Lightdash, incluindo filtros em métricas personalizadas.
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.