/devops-skills:emergency-hotfix-deployment-procedurefrom devops-skills
Defines the out-of-cadence process for shipping a production hotfix outside the normal release train: which checks can be bypassed, minimum verification, required sign-off, and mandatory rollback plan.
Ships in devops-skills. 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.
None: SKILL.md is the whole skill.
A normal release train exists to batch changes safely through staged gates — but a live production incident (data corruption, a security exploit being actively used, a total outage) sometimes can't wait for the next scheduled release, and pressure to "just ship it now" is exactly when corners get cut in ways that turn one incident into two. This skill defines a deliberate, pre-agreed emergency-hotfix procedure: a narrow, explicit set of checks that may be skipped under time pressure, the minimum verification that must never be skipped, and a mandatory rollback plan — so an out-of-cadence deploy is still a controlled action, not an improvised one.
git revert-based GitOps rollback, or
a database migration's down-path) that can be executed as fast as the
hotfix itself — see
environment-promotion-strategy
and
gitops-workflow.git push --force
to production infra.Confirm the situation actually warrants bypassing the normal process before invoking it. An emergency hotfix procedure exists for genuine production emergencies (active data loss, active security exploitation, full/major outage) — not for "we want this feature out before the next release" or "QA is taking too long." Confirm severity with the incident commander first; see incident-response-and-on-call-management for severity definitions.
Branch from the exact commit currently running in production, not
from the latest main/develop, which may already contain unrelated,
unreleased changes that would ship along with the fix:
git fetch --tags
git checkout -b hotfix/checkout-null-pointer v2.14.3 # the tag/SHA currently in prod
This keeps the hotfix's blast radius to exactly the one fix, not
"whatever else happened to be on main" — a core discipline shared
with standard hotfix-branching conventions in trunk-based/Git-flow
models.
Define, in the emergency policy ahead of time, exactly which checks may be skipped and which never can be — do not decide this live, under pressure, on a case-by-case basis:
Warning: Bypassing a security scan, skipping the fix's own targeted test coverage, or deploying with no rollback path prepared are not legitimate time-savers — they turn one incident into the risk of a second, and are the specific failure mode this procedure exists to prevent.
Deploy through the pipeline's emergency path, not around the
pipeline entirely. Most CI/CD platforms support an explicit
override that still logs who approved and what was skipped, rather
than a manual scp/SSH deploy that leaves no audit trail:
# GitHub Actions: environment protection rule that allows a designated
# "incident-commander" team to bypass the standard required reviewers
# for this one environment, with the bypass itself audit-logged.
environment:
name: production-hotfix
# reviewers: [release-approvers] # normally required
# Emergency policy: incident-commander team may approve directly;
# every such approval is logged in the environment's deployment history.
Even under emergency policy, prefer reduced gates over no gates — a single named human approval recorded in the pipeline's own history is very different from an unrecorded manual deploy.
Deploy with the fastest safe rollback mechanism available for this service — a canary/blue-green cutover if already in place (see blue-green-canary-deployments), or at minimum a one-command revert to the previous known-good artifact tag. Watch the same health signals a normal deploy would watch, just compressed in time, not skipped.
Immediately reconcile the hotfix back into the normal release
history once the incident is resolved — merge the hotfix branch
into main/develop (not just production), re-run the full test
suite and any skipped checks against the merged result, and make sure
the next scheduled release includes (or doesn't conflict with) the
hotfix. See
release-versioning-and-changelog-automation
for tagging the hotfix into the version history correctly rather than
letting it silently diverge.
Run a blameless postmortem on the incident that required the hotfix, and separately review whether the emergency procedure itself was followed correctly — see blameless-postmortem-and-root-cause-analysis. A hotfix that skipped a check that turned out to matter is itself a finding worth tracking, not something to quietly let pass because the incident is over.
main, so nothing unrelated ships alongside the fix.Symptom: Under incident pressure, someone deploys directly to production via SSH/manual artifact copy, bypassing the pipeline entirely "to save time." Fix:
Warning: this is a destructive shortcut — it leaves no audit trail of what was deployed, by whom, or with what verification, and frequently turns out to be slower than the pipeline's own emergency path once mistakes are accounted for. Use the pipeline's designated emergency-approval path (step 4) even when it feels slower in the moment.
Symptom: The hotfix fixes the immediate incident but is never
merged back into main, and the next regular release accidentally
reverts the fix because it was branched from an older commit.
Fix: Reconcile the hotfix into mainline immediately after the
incident (step 6), and verify the next release build actually still
contains the fix before it ships.
Symptom: An emergency deploy ships with no rollback plan because "we're confident this fix is right," and when it introduces a new problem, the team has no fast way back to the last known-good state, turning a contained incident into an extended one. Fix: Treat a verified rollback path as a non-negotiable prerequisite for the emergency deploy itself (step 3/5), never an optional nicety skipped under pressure.
Symptom: The security scan is skipped "just this once" for a hotfix, and the fix itself introduces a new vulnerability that isn't caught until the next scheduled scan days later. Fix: Security/secret scanning is on the never-skip list regardless of urgency (step 3) — a fast, narrowly-scoped scan of just the diff still takes seconds to minutes, not hours, and is not a legitimate place to cut time.
Symptom: There is no pre-agreed emergency policy, so every incident becomes an ad hoc argument about what can be skipped, wasting time that should go to fixing the actual problem. Fix: Write and socialize the emergency-change policy in advance (step 3) — decide the always-skip/never-skip list and the approval authority before the next incident, not during it.
Scenario: A checkout service is actively double-charging customers in production due to a race condition merged in the last release; the next scheduled release is four days away.
git checkout -b hotfix/checkout-double-charge v2.14.3
(the exact tag currently deployed), not from main, which already
has three unrelated feature PRs merged since the last release.ValidateService health check still in place (just a shorter
soak window — 5 minutes instead of the usual 30) and the standard
automatic-rollback-on-alarm configuration left enabled, not disabled.hotfix/checkout-double-charge is merged into main
within the hour, the full regression suite that was skipped runs
against the merged result and passes, and the next scheduled release
four days later includes this fix already merged rather than
reverting it.What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/artifact-and-dependency-managementManages build artifacts and third-party dependencies through a private registry/proxy with lockfiles, version pinning, retention policies, and automated update workflows. Use when the user asks to "set up an artifact repository," "configure a package registry proxy/mirror," "pin/lock dependency versions," "clean up old artifacts," "handle a dependency update / Dependabot-Renovate PR," or "avoid a left-pad-style supply-chain incident."
/blue-green-canary-deploymentsDesigns and executes progressive delivery strategies — blue-green cutover, canary rollout, and traffic-shifted releases — with automated health checks and rollback triggers, typically on Kubernetes. Use when the user asks to "reduce deployment risk," "set up canary/blue-green deployments," "do a zero-downtime release," "gradually shift traffic to a new version," or "automatically roll back a bad deploy."
/ci-access-and-credential-lifecycle-managementManages the lifecycle of one-off/temporary repo and environment access grants and CI service-account credentials — granting time-boxed access for a specific task, revoking it reliably when the task ends, and rotating CI service-account tokens/keys before they expire or become stale. Use when the user asks to "give a contractor temporary repo access," "grant one-off access to the production environment," "rotate our CI service account token/API key," "find and revoke stale CI credentials," or "our CI token is about to expire, what do we do."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin devops-skillsOther plugins' skills for the same job