zad-wake
БесплатноБез исполняемых скриптовНе проверенWake a sleeping PR preview (prN) on ZAD and wait until it is up. Use before a smoketest, Playwright check or check-deployment against a preview, when a…
от NederlandseDigitaleDienst★ 30 звёзд на GitHubОб этом скилле
ZAD wake
A sleeping preview answers with a wake page or a 503, so a smoketest against
it fails for reasons unrelated to the change under test. When previews sleep,
for how long, and what the status fields mean is in
docs/src/content/docs/operations/deployment.md, under
"Sleeping previews".
When to use it
- Before any smoketest, Playwright run or
check-deploymenton aprNpreview. Wake it first, every time: waking an awake preview is a no-op. - When a preview URL shows a wake page or returns a 503.
- When
check-deploymentfinds empty logs for every component of a preview that did deploy.
Wake the preview
Pass the deployment name (pr plus the PR number):
script/zad-wake.sh pr1704
The script reads ZAD_API_KEY (the project key, the variable zad-cli uses),
and falls back to RIG_API_KEY. Load it from .env first if it is not in the
environment. It posts a wake request, then polls the status until ZAD reports
the preview awake, for at most 10 minutes (WAIT_SECONDS changes that).
Exit 0 means the preview is awake, or that sleep-mode does not apply to that
deployment. Exit 1 means the preview is not awake yet, the API refused or
could not be reached, or the status response made no sense. The message says
which, with the HTTP code and the response body. Exit 2 is a usage error, such
as a missing key or a missing jq.
After exit 0, give the first request of the smoketest a retry or two. ZAD reports a preview awake once its pods run, and an application can still be busy starting behind them.
Without the script
zad-cli has no sleep-mode command, so the script calls the Operations Manager API with curl. Done by hand:
BASE=https://operations-manager.rig.prd1.gn2.quattro.rijksapps.nl
curl -sS -X POST -H "X-API-Key: $ZAD_API_KEY" "$BASE/api/sleep-mode/regel-k4c/pr1704/wake"
curl -sS -H "X-API-Key: $ZAD_API_KEY" "$BASE/api/sleep-mode/regel-k4c/pr1704/status"
In the status response, read sleep_state, not state; the docs page explains
why. The script stops waiting on sleep_state: awake or on
state: ready.
A 404 means the deployment does not exist; zad deployment list shows the
previews there are.
What not to do
- Do not put an API key in a command you show, a commit or a PR comment.
- Do not redeploy a preview to wake it. A push to the PR does redeploy it and wakes it too, but it costs a full build for something one API call does.
Установить zad-wake в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadFAQ
Что делает скилл zad-wake?
Wake a sleeping PR preview (prN) on ZAD and wait until it is up. Use before a smoketest, Playwright check or check-deployment against a preview, when a preview URL returns a wake page or a 503, or when check-deployment sees no running pods.
Как установить скилл zad-wake?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл zad-wake запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic