Skip to content
Back to skills

Incident Hotfix

ASecurity

Mitigate a production incident or urgent regression first, then route to root-cause remediation and a postmortem.

  • 584 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
developmentgodebuggingdevopssecurity

Works with

  • mcp

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill incident-hotfix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Incident Hotfix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Incident Hotfix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-incident-hotfix/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-incident-hotfix)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: incident-hotfix
description: "Mitigate a production incident or urgent regression first, then route to root-cause remediation and a postmortem."
metadata:
  internal: true
  triggers:
    keywords:
    - incident hotfix
    - workflow
---
# Incident Hotfix Skill

> [!IMPORTANT]
> Mitigate a production incident or urgent regression first, then route to root-cause remediation and a postmortem.

Optional args: slug=<feature>, ticket=<id/url>, mode=interactive|autonomous|channel, channel=<id>, auto_continue=true|false, profile=business|hybrid|technical.

## Instructions

When the user asks to perform this workflow, execute the following steps:


# Incident Hotfix Workflow

Goal: Stop user-facing harm immediately, then hand off to root-cause discipline instead of debugging live.

## Steps

1. Triage:
   - Severity, blast radius, affected environments/markets, and whether the regression is a rollback candidate.
   - Load the prior deployment report and rollback path when present; absent a prior verified artifact, record that no rollback target exists instead of assuming one.
2. Mitigate first:
   - This workflow owns the mitigation choice and its authorization. Prefer rollback, feature flag disable, or config revert over a live code fix, and obtain the human approval grant bound to that fixed action set, target, artifact, and expiry.
   - Execute the granted mitigation through `common-devops-operations` (`operation=recover`): it runs preflight and the fixed grant, verifies restoration outward, and returns once here. A fixed restore of an identified prior verified artifact stays recovery; a fresh build is release work for `deploy-release`.
   - Confirm mitigation stopped user-facing harm before investigating root cause. Do not attempt a root-cause code fix under live production pressure.
3. Stabilize:
   - Monitor logs, metrics, errors, and core user flows until signals return to baseline; missing telemetry is not recovery.
   - Record mitigation timestamp, owner, and evidence.
4. Route to remediation:
   - Once stable, hand off to `dev-fix` for root-cause debugging under the normal Propose -> Approve -> Verify cycle.
   - Do not skip `dev-fix`'s root-cause-before-code requirement just because mitigation already shipped.
5. Route to learning:
   - After `verify-work` confirms the permanent fix, route to `retro-learn` for a postmortem.
   - The confirmed root cause becomes a permanent eval case in the skill or workflow that should have prevented it.

## Runtime Contract
- Use only for production incidents or urgent regressions with active user-facing harm; non-urgent bugs go directly to `dev-fix`.
- Load `common-decision-discipline` and apply its §8 continuation contract at entry and every handoff: the settled result selects the successor and specialized gates dominate.
- Required inputs: incident signal (alert, report, or error spike) plus a proposed mitigation path (rollback, flag, or config revert).
- Block the mutation — while continuing safe scoped analysis and escalation — when identity is unresolved, organizational authority or an unexpired approval grant is missing, the required MCP capability is absent or disconnected, the grant is expired or revoked, or host enforcement of the approved scope cannot be verified. Never invent an emergency exception, self-approve, broaden a role, or retry an uncertain write without reconciling state.
- Security-forensic and containment work retains `cyber-triage` authority and custody requirements.
- Route from the actual outcome: stable and ready for root-cause work -> `dev-fix`; blocked, unstable, or unresolved -> `recommended_next_workflow: null` with the pending action in `next_action`, never a default fix handoff.
- Preserve the prior evidenced lifecycle; an incident receipt is an operations result, not a release or rollback record, and it never advances or downgrades `feature_status`.
## Handoff Payload
- `slug`, `operator_profile` (carried, not re-inferred), severity, classified mitigation effect, mitigation applied, stabilization evidence, operations report, outcome report, `next_action`, next workflow.
## Blocking Questions
- Ask max 3 at a time with a recommended default and 2-3 options.

## Output Template

```md
# Incident Hotfix: [Name]

## Severity And Blast Radius

## Mitigation Applied
- Effect class: [recover | deploy_bearing]; authority: [owner/ref @ expiry]; target/artifact: [scope]

## Stabilization Evidence

| Signal | Before | After |
| --- | --- | --- |
| [signal] | [value] | [value] |

## Blocked Or Refused Actions
- [action] — [reason code]

## Root Cause Handoff

<!-- Emit the record below only for feature-linked work, replacing `feature_status` with the prior evidenced value; omit it when lifecycle is unknown. Choose routing from the actual outcome; a blocked or unstable incident uses `null` and records the pending action in `next_action`. -->

## Outcome Report
{schema_version: 1, run_id: "[run-id]", slug: "[slug]", workflow: incident-hotfix, feature_status: partially_implemented, started_at: "[timestamp]", completed_at: "[timestamp]", requirement_trace: {brd_objectives: [], requirements: [], acceptance_criteria: [], srs: []}, completed_evidence: [], missing_evidence: [], decision_needed: [], recommended_next_workflow: dev-fix, cost: {source: unavailable}, agent: {identity: "[agent-identity]", model: "[model]"}}

## Next Workflow
dev-fix | verify-work | retro-learn
- Blocked or unstable: `recommended_next_workflow: null`

## Cost Report
Call `get_session_cost(workflow="incident-hotfix")` before final handoff.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.