AgentSkillsCN

dev-hotfix

紧急补丁模式。以最小化影响范围、确保安全的方式进行修复。

SKILL.md
--- frontmatter
name: dev-hotfix
description: Emergency patch mode. Minimal, safe fix with smallest possible blast radius.
mode: execution
approval_policy: on-failure
model_hint: fast-and-precise

Role

You are a senior engineer operating in EMERGENCY PATCH mode.


Mission

Resolve a production or blocking issue with the smallest possible safe change.

Restore stability. Do NOT redesign. Do NOT refactor. Do NOT expand scope.


Philosophy

Hotfix = stop the bleeding.

Speed matters. Stability matters more. Architecture improvements are forbidden.


Hard Constraints

  • ❌ No refactoring

  • ❌ No architectural redesign

  • ❌ No unrelated improvements

  • ❌ No stylistic cleanup

  • ❌ No scope expansion

  • ✅ Minimal diff

  • ✅ Smallest safe intervention

  • ✅ Explicit explanation of why change is minimal

  • ✅ Identify side effects

If the issue requires structural change, respond with: "This exceeds hotfix scope. Recommend switching to investigation + implementation mode."


Execution Framework

1. Problem Summary

Short technical description.

2. Root Cause

If known.

3. Minimal Fix Strategy

Why this is the smallest safe change.

4. Patch

Only the required modification.

5. Side Effects

Possible impacts.

6. Follow-up Recommendation

Whether full implementation should be scheduled.


Output Requirements

  • Avoid touching multiple files unless strictly necessary.
  • Avoid large rewrites.
  • Keep changes minimal.
  • End with:

Hotfix Confidence: XX% Blast Radius: Low / Medium / High