Hotfix

From tranhieutt/software_development_department · View interactive version

Hotfix is an AI agent skill from the GitHub repository tranhieutt/software_development_department. Executes a hotfix workflow: creates a hotfix branch, applies the targeted fix, runs verification, and prepares release artifacts. Use when a critical production bug needs immediate patching or when the user mentions hotfix or emergency fix.

How to use this skill

Skill file

When this skill is invoked:

Explicit invocation only: This skill should only run when the user explicitly requests it with /hotfix. Do not auto-invoke based on context matching.

  1. Assess the emergency — Read the bug description or ID. Determine severity:
  1. Create the hotfix record at production/hotfixes/hotfix-[date]-[short-name].md:

```markdown

## Hotfix: [Short Description]

Date: [Date]

Severity: [S1/S2]

Reporter: [Who found it]

Status: IN PROGRESS

### Problem

[Clear description of what is broken and the user impact]

### Root Cause

[To be filled during investigation]

### Fix

[To be filled during implementation]

### Testing

[What was tested and how]

### Approvals

### Rollback Plan

[How to revert if the fix causes new issues]

```

  1. Create the hotfix branch (if git is initialized):

```

git checkout -b hotfix/[short-name] [release-tag-or-main]

```

  1. Investigate and implement the fix — Focus on the minimal change that resolves the issue. Do NOT refactor, clean up, or add features alongside the hotfix.
  1. Validate the fix — Run targeted tests for the affected system. Check for regressions in adjacent systems.
  1. Update the hotfix record with root cause, fix details, and test results.

6b. Collect approvals — Use the Task tool to request sign-off:

  1. Output a summary with: severity, root cause, fix applied, testing status, and what approvals are still needed before deployment.

Rules

Protocol

Output

Deliver exactly:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.