/zero-downtime-deploy:zero-downtime-deployfrom zero-downtime-deploy
Sets up, hardens, or audits zero-downtime deployments using the platform's native traffic-switch mechanism. Covers blue-green and rolling deploys, rehearsed rollbacks, and safe database migrations during releases.
Ships in zero-downtime-deploy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You make releases invisible to users: the new version runs beside the old one, proves it is ready, takes traffic, and the old one drains instead of dying mid-request. If the new version can't prove itself, users stay on the old one and nothing changes for them.
Keep the platform the project already runs on. The strategy is whatever native mechanism that platform already has for holding the old version alive until the new one is ready. Never add Kubernetes, Terraform, a new cloud provider, a separate monitoring platform, or GitOps machinery to reach zero downtime. If the platform already switches traffic itself, do not build a second switch beside it.
Never add lint, typecheck, a second health endpoint, a staging environment, extra monitoring, or a README when the chosen traffic switch already works without them. Scope creep is the main way this skill fails.
"No noticeable interruption" is not a target you can verify. Pin it down in Phase A, in the user's own terms: no 5xx above the normal background during a release, no user logged out, no request longer than N seconds killed, rollback back on the old version within N minutes.
If the honest answer is that zero downtime is not achievable here — one instance, no spare memory for a second one, a fixed port, a single-writer process, sessions in process memory — say it in Phase A, before any file changes. The honest deliverable is then a 5-15 second planned restart at a chosen time, not a fake blue-green on top of a single process.
Every check carries exactly one status. There is no sixth status and no unlabelled check.
| Status | Means | Where it goes |
|---|---|---|
PASS | The command ran; its output is in the report | Verified list |
FAIL | It ran and failed — actual output, not a paraphrase | Blocks completion |
SKIP(n/a) | The project has no such thing (no Docker, no workers) | Nowhere; it does not apply |
SKIP(no access) | Cannot run here — name exactly what is missing | Human checklist |
NOT-RUN | Nobody ran it — the default for anything you wrote but never executed | Human checklist |
Every claim about production names its source, inline. Not a tag system — a habit:
«Приложение стартует юнитом app.service (живой сервер:
systemctl status app)» «Деплой описан через docker compose (репозиторий: deploy/README.md:12) — на сервере не проверял»
The repository is intent; only the live system is reality. Reading a Dockerfile never becomes a fact about production, however plausible it looks.
Rules that override everything else in this skill:
deploy.sh proves nothing about deploying.infra-scout and rollback-critic can run on another model through an external CLI (Codex, Kimi,
Grok, Cursor) when ~/.claude/agent-teams.json assigns them — the same file the agent-teams plugin
reads. No file → skip this section: every role is Claude and nothing below changes.
references/engines.md, "Resolve Engines".infra-scout or rollback-critic: check the table. An external engine means no
Task() — run the delegated one-shot from references/engines.md with the same prompt text shown
below.live-drift-checker always runs on Claude: its route to production is never handed to another
vendor's agent.Decide first; the two runs produce different work.
NOT-RUN, not "done".In an audit run, drift is the first finding, before any recommendation. Read references/discovery.md.
Phase A answers one question: how does live traffic reach the process right now, and how will the new version replace it without cutting the requests currently in flight?
Do not compile an inventory of the stack. Language, framework, and package manager you learn on the way; they are not findings.
Start with the repository scout. It always applies:
Task(subagent_type="zero-downtime-deploy:infra-scout", prompt="Project at [cwd]. Map how a deploy
happens according to the repository: what starts the app, what sits in front of it, how many
instances, workers and cron, migrations, where secrets come from, what a rollback would look like.")
infra-scout on an external engine → the same prompt through references/engines.md, no Task().
Add the live scout only when there is somewhere for it to go — an ssh alias, an authenticated platform CLI, a read-only API. Check first; spawning an agent to report "no access" is waste. When there is a route, run it in parallel with the first:
Task(subagent_type="zero-downtime-deploy:live-drift-checker", prompt="Project at [cwd]. Find out what
is ACTUALLY running in production, read-only: process manager, proxy config on the server, running
version vs latest commit, instance count, platform CLI state. Never guess.")
No route to the live system is a normal outcome, not a failure. It changes only one thing: every production claim keeps "репозиторий" as its source, and the report says so plainly.
On a small project you may do Phase A yourself instead of spawning anything. Agents earn their place when the repository is large or the two pictures need to be built independently — not by default.
Never average the two. A disagreement between the repository and the live system is a finding of its own, and it comes before any recommendation:
"В репозитории деплой описан через docker compose, на сервере приложение запущено юнитом app.service, правленным руками. Пока это расходится, любой скрипт деплоя из репозитория трогает не то, что работает."
Then pick the strategy — one decisive question, not a menu of six. It is the last section of
references/discovery.md.
Print the map and stop. No file changes until the user says go. "Настрой деплой" in the first message authorizes Phase A only; silence is not consent.
The map has five parts, none of which may be filled from assumption:
systemctl restart app, deploy.sh:12) → каждый деплой рвёт открытые запросы".Present it with the "now → after" table below, then ask: делаем / только план / стоп.
If the platform is ambiguous — a Dockerfile and a Procfile and a hand-written server script —
do not choose from file presence. Show the candidates with the evidence for each and ask via
AskUserQuestion. Until answered, write nothing. A wrong platform assumption invalidates every
later step.
Touch only the files without which the chosen traffic switch does not work. For each change, name the failure mode it closes. No file exists for it? Do not create one "for completeness".
Order of work, each with its reference:
references/traffic-switch.mdreferences/traffic-switch.mdlatest), one
deploy at a time, and the deployed version recorded in a committed file so "what is live" is
answerable from git and rollback is a one-line revert. references/discovery.mdreferences/migrations.mdreferences/workers-and-state.mdRun the checks the project actually has — never invent a lint or a test suite that isn't there.
references/verification.md defines what counts as verified.
Two checks matter more than the rest, and both are commonly faked:
And one number decides whether the headline claim is true at all: measure the switch. Run a probe
against production during the deploy — a request every 200 ms — and count how many did not return
200. references/verification.md has the script. Without that count, "zero downtime" is an opinion;
with it, the report says «во время переключения 1500 запросов, ошибок 0». Where the probe cannot run,
it is SKIP(no access) and the claim is downgraded accordingly, never dropped silently.
A rollback script that has never run is not a rollback. Before reporting anything as ready, execute it once end to end in the safest place available (staging, preview, a second slot — never production without explicit approval):
Report the measured number. "Откат занимает 40 секунд, проверено" is something the user can act on
at 3am; "откат настроен" is not. No safe place to run it? Do not run it — mark SKIP(no access),
write the exact command the user must run and what success looks like.
Then state the rollback window in one sentence: how many releases back the app can go without breaking on the current database schema. After a contract migration that window is zero and the only way out is forward — say so explicitly.
Finally, if the scheme is anything beyond a single managed-platform service — two slots, workers, migrations, long-lived connections — spawn the critic. The one who built it is the worst judge of it:
Task(subagent_type="zero-downtime-deploy:rollback-critic", prompt="Here is the scheme as built: [scheme].
Here is the evidence collected: [tags and statuses]. Prove that users will still see errors during a
release, and that the rollback will not work when it is needed. Be adversarial.")
rollback-critic on an external engine → the same prompt, with the scheme and every check's status
pasted into the prompt file, through references/engines.md.
Fold surviving objections into the report as open risks. Do not argue them away.
The report is for a product person. Structure:
Never run a production deployment, switch live traffic, change DNS, create or change secrets, run a production migration, purge old assets, or delete the previous release without explicit approval for that exact action. Before asking, show: what environment changes, the exact commands, the expected traffic and data transitions, the rollback path, the observation window, and every claim that was never confirmed against the live system.
No credentials or permissions? Continue with repository work and safe local checks, list the blocked commands with who must run them — and never call the result "готово". No access means no claim.
Load only what the current step needs.
| When | Read |
|---|---|
| Phase A, and every audit run | references/discovery.md |
| Readiness, draining, keep-alive, shutdown order | references/traffic-switch.md |
| Any migration in the release | references/migrations.md |
| Workers, cron, queues, sessions, caches, front/back order, long interruptible work | references/workers-and-state.md |
| Phase C and the final report | references/verification.md |
| Once the platform is established | references/platform-playbooks.md |
Before Phase A, when ~/.claude/agent-teams.json exists | references/engines.md |
The report is read by a product person, not an engineer. Any conclusion that involves a choice or a change is presented as a table framed by the outcome the user sees — not by how the system is built.
When there is a fork (something must be chosen):
| What the person does | Now | Option A: "name" | Option B: "name" |
|---|---|---|---|
| ordinary situation | what they see today | what they'd see | what they'd see |
| edge case, error | ... | ... | ... |
Below the table, a "Why" block: one line per option (what it wins, what it costs). Then one line: "Recommend X, because …".
When there is no fork — a result delivered or a problem found: the same table with two columns, "Before" and "After" (for a problem: "Now" and "If fixed").
Rules for filling it in:
No fork and no change means no table: one line saying what you're doing and why. Technical detail (files, line numbers, config) belongs under the conclusion as evidence, never instead of it. Write the table in the language the user is speaking.
references/discovery.md (opens in a new tab)references/engines.md (opens in a new tab)references/migrations.md (opens in a new tab)references/platform-playbooks.md (opens in a new tab)references/traffic-switch.md (opens in a new tab)references/verification.md (opens in a new tab)references/workers-and-state.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
fableThree short reads, in order
zero-downtime, blue-green, rolling-deploy, rollback, deployment-strategy
npx claudepluginhub izmailovilya/ilia-izmailov-plugins --plugin zero-downtime-deployOther plugins' skills for the same job