upgrade-preflight
Что он делает
Этот скилл помогает операторам решить, безопасно ли обновление Lightdash на собственном сервере, и восстановиться после зависшей миграции. Он нужен командам, которые сами запускают сервер Lightdash и планируют его обновления.
Когда использовать
- ✓Когда вы планируете обновление Lightdash, развёрнутого на собственном сервере.
- ✓Когда нужно ответить, безопасно ли выполнять обновление Lightdash.
- ✓Когда миграция Lightdash завершилась ошибкой, зависла или застряла на блокировке.
Ссылка на скилл
https://github.com/lightdash/lightdash/blob/main/skills/upgrade-preflight/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Проверь, безопасно ли обновить наш Lightdash на собственном сервере до последней версии, и расскажи, что нашли проверки.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл объясняет, какие команды проверки обновления и предварительной проверки миграции запускать, как читать их коды завершения и вывод и что они не доказывают. Для полной процедуры он указывает на официальные страницы о безопасности обновления и руководство по эксплуатации.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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
Частые вопросы
Работает ли это для Lightdash Cloud?
Нет, в описании сказано, что обновления Cloud управляются за вас, поэтому это только для собственных серверов.
Может ли одна проверка заменить другую?
Нет, скилл объясняет, что две команды предварительной проверки отвечают на разные вопросы.
Где полные шаги?
Скилл ссылается на официальные страницы о безопасности обновления и руководство по эксплуатации с полной процедурой.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 6.2k
- Место в рейтинге
- #14407
- Лицензия
- —
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
breakup-pr
6.2kПомогает агенту разбить большой pull request на меньшие части, выстроенные цепочкой, которые можно проверять по одной.
lightdash-agent-slack-messaging
6.2kПомогает агенту писать короткие и понятные отчёты о работе для администраторов Lightdash, опираясь только на имеющиеся факты.
developing-in-lightdash
6.2kПомогает агенту читать, создавать и менять дашборды и графики Lightdash в виде JSON, включая настройки каждого типа графика.
filter-expressions
6.2kПомогает агенту писать правильные выражения фильтров для запросов метрик Lightdash, включая фильтры по своим метрикам.
Похожие скиллы
openclaw-update
394kПомогает агенту обновить уже работающий OpenClaw Gateway, выбрав способ обновления по тому, как он был установлен, и сохранив вашу сессию.
diagnose-gateway
394kПомогает агенту выяснить, почему ваш OpenClaw Gateway не работает, проверяя настройки, каналы и порты, но ничего не меняя.
crabbox-apps
394kПомогает агенту открыть и запустить приложение на временной облачной машине, а затем показать его вид на боковой панели чата.