Logo Emergency Hotfix Deployment Procedure

Emergency Hotfix Deployment Procedure

Cộng đồng
selvarajmurugesan90
emergency-hotfix-deployment-procedure

Defines the out-of-cadence process for shipping a production hotfix outside the normal release train — which checks are genuinely safe to bypass versus never, the minimum required verification before an emergency deploy, required sign-off, and the rollback plan that must exist before the hotfix goes out. Use when the user asks to "ship an emergency hotfix," "deploy outside the normal release process," "bypass the release train for a critical fix," "what's the minimum we can skip for a production emergency," or "we need to patch prod right now."

Tổng quan

Nhà phát hànhselvarajmurugesan90
Kho mãops-engineering-skills
Tên kỹ năngemergency-hotfix-deployment-procedure
Sao
44
Bản fork
18
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được selvarajmurugesan90 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Emergency Hotfix Deployment Procedure trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/devops/skills/emergency-hotfix-deployment-procedure
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/selvarajmurugesan90/ops-engineering-skills.git /tmp/ops-engineering-skills
mkdir -p .claude/skills
cp -r /tmp/ops-engineering-skills/plugins/devops/skills/emergency-hotfix-deployment-procedure .claude/skills/emergency-hotfix-deployment-procedure
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Emergency Hotfix Deployment Procedure trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Emergency Hotfix Deployment Procedure ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Emergency Hotfix Deployment Procedure với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Emergency Hotfix Deployment Procedure

Purpose

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.

When to use

  • A production incident requires a code change deployed before the next scheduled release window (active data loss, a security vulnerability under active exploitation, a total or near-total service outage).
  • Deciding, under time pressure, which of the normal release process's steps are safe to skip for this specific change versus which must never be skipped regardless of urgency.
  • Defining (in advance, not mid-incident) an organization's emergency change procedure, including who can authorize bypassing normal gates.
  • After an emergency hotfix ships, reconciling it back into the normal release/versioning history so it isn't lost or silently diverges from the next planned release.

Prerequisites & environment

  • A pre-agreed emergency-change policy defined before an incident happens — deciding what's safe to skip while an outage is live and everyone is under pressure produces worse decisions than deciding it calmly in advance.
  • A named incident commander or equivalent authority (see incident-response-and-on-call-management) empowered to authorize an out-of-cadence deploy — an emergency deploy should never be a unilateral individual decision with no accountable approver, even under time pressure.
  • A working, tested rollback mechanism for the target service (previous known-good artifact/image tag, a 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.
  • CI/CD tooling that supports a distinct, explicitly-labeled "hotfix" path (a separate branch protection rule set, a manual-approval override that still logs who approved it) rather than an ad hoc git push --force to production infra.

Step-by-step guidance

  1. 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.

  2. 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:

    bash
    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.

  3. 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:

    • Safe to skip, with justification, for a genuine emergency: full regression suite (run the narrowly-scoped tests covering the fixed area instead), non-blocking linters/style checks, non-critical manual QA sign-off steps, the full multi-day staged canary rollout schedule (compressed to a shorter but still real canary window, not zero).
    • Never skip, regardless of urgency:

      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.

      • A test that specifically exercises the bug being fixed (write one if it doesn't exist — a hotfix with no test proving it fixes the stated problem is unverified by definition).
      • A security/secret scan on the diff, even a fast targeted one.
      • Named human approval from an accountable role (incident commander or designated release approver), even if verbal/Slack-recorded under time pressure — never a fully automated, unapproved deploy straight to production.
      • A verified, ready-to-execute rollback path.
  4. 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:

    yaml
    # 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.

  5. 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.

  6. 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.

  7. 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.

Best practices

  • Decide the "always skip / never skip" list before an incident happens, in a written, agreed policy — not through in-the-moment judgment calls made by whoever happens to be paged.
  • Require a named, accountable approver for every emergency deploy, even if the approval itself happens fast (a recorded Slack message or a pipeline environment approval) — "everyone agreed in the incident channel" without one clearly accountable approver is not a real approval trail.
  • Branch the hotfix from the exact production commit/tag, never from main, so nothing unrelated ships alongside the fix.
  • Treat "no rollback path ready" as a blocking condition for the emergency deploy itself, not an acceptable risk to accept under pressure.
  • Reconcile every hotfix back into the mainline release history immediately — an unreconciled hotfix branch is a silent source of future merge conflicts and version drift.
  • Keep the emergency path in the same pipeline tooling as the normal path (a different approval rule, not a different, undocumented manual process) so it's auditable and doesn't atrophy from disuse.

Common pitfalls

  • 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.

Worked example

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.

  1. Severity confirmed by the incident commander as Sev-1 (active customer financial impact) per the org's incident severity policy — the emergency procedure applies.
  2. Branch from production: 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.
  3. Minimum required checks, per the pre-agreed policy:
    • Skipped: full E2E regression suite (12 minutes), non-blocking style linter.
    • Not skipped: a new targeted test reproducing the double-charge race condition (written first, confirmed failing on the buggy code, passing after the fix); a fast Semgrep/secret scan on the 30-line diff; named sign-off from the incident commander, recorded in the incident channel and in the pipeline's environment-approval log.
  4. Deploy through the existing blue/green deployment group with the normal 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.
  5. Verify: the specific race-condition test passes in the pipeline, and a manual check of the double-charge metric confirms it drops to zero within minutes of the new version taking traffic.
  6. Reconcile: 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.
  7. Postmortem: run within 48 hours per blameless-postmortem-and-root-cause-analysis, including a specific review item on whether the emergency procedure's skip list was followed correctly (it was) and whether the 5-minute soak window was long enough in hindsight (flagged as a follow-up to reconsider).

Cross-references

Câu hỏi thường gặp

Kỹ năng AI Emergency Hotfix Deployment Procedure làm được gì?

Defines the out-of-cadence process for shipping a production hotfix outside the normal release train — which checks are genuinely safe to bypass versus never, the minimum required verification before an emergency deploy, required sign-off, and the rollback plan that must exist before the hotfix goes out. Use when the user asks to "ship an emergency hotfix," "deploy outside the normal release process," "bypass the release train for a critical fix," "what's the minimum we can skip for a production emergency," or "we need to patch prod right now."

Vì sao nên dùng Emergency Hotfix Deployment Procedure trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Emergency Hotfix Deployment Procedure là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Emergency Hotfix Deployment Procedure trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/devops/skills/emergency-hotfix-deployment-procedure. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Emergency Hotfix Deployment Procedure?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Emergency Hotfix Deployment Procedure với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Emergency Hotfix Deployment Procedure với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Emergency Hotfix Deployment Procedure có miễn phí không?

Có. Kỹ năng này được selvarajmurugesan90 phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇