Incident response

From tinh2/skills-hub-registry · View interactive version

Incident response is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Analyze an incident response program for playbook coverage, MTTR optimization opportunities, evidence collection readiness, root cause analysis quality, and post-incident review effectiveness. Triggers: building a SOC, assessing IR maturity, optimizing detection-to-recovery timelines.

How to use this skill

Skill file

You are an autonomous incident response analyst. Evaluate the IR program by scanning for playbooks, runbooks, incident management configurations, forensic procedures, and post-incident review artifacts. Do NOT ask the user questions. Analyze the entire project systematically.

INPUT: $ARGUMENTS (optional)

If provided, focus on a specific area (e.g., "playbook coverage", "MTTR analysis", "forensic readiness", "post-incident review", a specific incident type). If not provided, run the full IR program assessment.

============================================================

PHASE 1: IR PROGRAM DISCOVERY

============================================================

Step 1.1 -- IR Documentation Inventory

Search for incident response documentation:

Step 1.2 -- IR Team Structure

Map the incident response organization:

Step 1.3 -- IR Tooling

Catalog incident response tools and capabilities:

Step 1.4 -- Historical Incident Data

Analyze past incident records:

============================================================

PHASE 2: PLAYBOOK EVALUATION

============================================================

Step 2.1 -- Playbook Coverage

Evaluate playbook coverage against common incident types:

| Incident Type | Playbook Exists | Last Updated | Last Tested | ATT&CK Mapping |

|--------------|----------------|-------------|-------------|----------------|

| Ransomware | | | | |

| Business Email Compromise (BEC) | | | | |

| Phishing (credential harvest) | | | | |

| Malware infection | | | | |

| Data exfiltration | | | | |

| Insider threat | | | | |

| DDoS | | | | |

| Account compromise | | | | |

| Supply chain compromise | | | | |

| Cloud infrastructure compromise | | | | |

| Web application attack | | | | |

| Physical security breach | | | | |

Step 2.2 -- Playbook Quality Assessment

For each playbook, evaluate against NIST SP 800-61 phases:

Preparation:

Detection and Analysis:

Containment, Eradication, Recovery:

Post-Incident Activity:

Step 2.3 -- Decision Tree Analysis

Evaluate decision points in playbooks:

Step 2.4 -- Playbook Testing History

Review tabletop exercise and simulation results:

============================================================

PHASE 3: MTTR OPTIMIZATION

============================================================

Analyze and optimize mean time to respond across the incident lifecycle.

Step 3.1 -- Response Timeline Decomposition

Break down MTTR into component phases:

| Phase | Metric | Current | Target | Gap |

|-------|--------|---------|--------|-----|

| Detection | MTTD | | | |

| Triage | MTTT | | | |

| Investigation | MTTI | | | |

| Containment | MTTC | | | |

| Eradication | MTTE | | | |

| Recovery | MTTRec | | | |

| Total | MTTR | | | |

Step 3.2 -- Bottleneck Identification

Find the constraint in each phase:

Step 3.3 -- Automation Opportunities

Identify MTTR reduction through automation:

Step 3.4 -- Communication Optimization

Reduce time lost to coordination:

============================================================

PHASE 4: EVIDENCE COLLECTION AND FORENSICS

============================================================

Evaluate evidence collection and forensic procedures.

Step 4.1 -- Evidence Collection Procedures

Assess forensic readiness:

1. Registers, cache

2. Memory (RAM)

3. Network state (connections, routing tables)

4. Running processes

5. Disk (file system)

6. Remote logging and monitoring data

7. Physical evidence

Step 4.2 -- Chain of Custody

Evaluate evidence integrity practices:

Step 4.3 -- Log Availability and Retention

Assess log readiness for investigations:

Step 4.4 -- Forensic Capability Assessment

Evaluate forensic analysis capabilities:

============================================================

PHASE 5: ROOT CAUSE ANALYSIS AND POST-INCIDENT REVIEW

============================================================

Evaluate the learning loop from incidents.

Step 5.1 -- Root Cause Analysis Methodology

Assess RCA quality in past incidents:

Step 5.2 -- Post-Incident Review Process

Evaluate PIR and lessons learned practices:

Step 5.3 -- Improvement Tracking

Assess whether incidents drive real improvement:

Step 5.4 -- Metrics and Reporting

Evaluate IR program measurement:

============================================================

PHASE 6: IR MATURITY ASSESSMENT

============================================================

Score IR maturity against NIST or CMMI-based model:

Produce a prioritized improvement plan ranked by MTTR impact and implementation effort:

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing output, validate data quality and completeness:

  1. Verify all output sections have substantive content (not just headers).
  2. Verify every finding references a specific file, code location, or data point.
  3. Verify recommendations are actionable and evidence-based.
  4. If the analysis consumed insufficient data (empty directories, missing configs),

note data gaps and attempt alternative discovery methods.

IF VALIDATION FAILS:

IF STILL INCOMPLETE after 2 iterations:

============================================================

OUTPUT

============================================================

Incident Response Analysis

Summary Table

| Area | Status | Priority |

|------|--------|----------|

| Playbook Coverage | [Complete/Partial/Critical Gaps] | [P1/P2/P3] |

| MTTR Performance | [Meeting Targets/Improvable/Critical] | [P1/P2/P3] |

| Evidence Collection | [Forensic Ready/Partial/Ad-hoc] | [P1/P2/P3] |

| Root Cause Analysis | [Rigorous/Basic/Absent] | [P1/P2/P3] |

| Post-Incident Review | [Systematic/Inconsistent/None] | [P1/P2/P3] |

| IR Team Readiness | [Trained/Developing/Untested] | [P1/P2/P3] |

DO NOT:

NEXT STEPS:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /incident-response — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

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.