شعار Emergency Hotfix Deployment Procedure

Emergency Hotfix Deployment Procedure

المجتمع
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."

نظرة عامة

الناشرselvarajmurugesan90
المستودعops-engineering-skills
اسم المهارةemergency-hotfix-deployment-procedure
النجوم
44
التفريعات
18
الملفات المرفقة
تعليمات فقط
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها selvarajmurugesan90 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Emergency Hotfix Deployment Procedure في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/devops/skills/emergency-hotfix-deployment-procedure
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Emergency Hotfix Deployment Procedure في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Emergency Hotfix Deployment Procedure تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Emergency Hotfix Deployment Procedure بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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."

لماذا تستخدم Emergency Hotfix Deployment Procedure على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Emergency Hotfix Deployment Procedure عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Emergency Hotfix Deployment Procedure في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/devops/skills/emergency-hotfix-deployment-procedure. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Emergency Hotfix Deployment Procedure؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Emergency Hotfix Deployment Procedure؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Emergency Hotfix Deployment Procedure معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Emergency Hotfix Deployment Procedure مجانية؟

نعم. نشرها selvarajmurugesan90 على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇