Incident Response

Incident response is a systematic approach to handling security breaches and incidents to minimize damage, reduce recovery time, and prevent future occurrences. Effective incident response includes pr

16 stars

Best use case

Incident Response is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Incident response is a systematic approach to handling security breaches and incidents to minimize damage, reduce recovery time, and prevent future occurrences. Effective incident response includes pr

Teams using Incident Response should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/incident-response/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/backend/incident-response/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/incident-response/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Incident Response Compares

Feature / AgentIncident ResponseStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Incident response is a systematic approach to handling security breaches and incidents to minimize damage, reduce recovery time, and prevent future occurrences. Effective incident response includes pr

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Incident Response

## Skill Profile
*(Select at least one profile to enable specific modules)*
- [ ] **DevOps**
- [x] **Backend**
- [ ] **Frontend**
- [ ] **AI-RAG**
- [ ] **Security Critical**

## Overview
Incident response is a systematic approach to handling security breaches and incidents to minimize damage, reduce recovery time, and prevent future occurrences. Effective incident response includes preparation, detection, containment, eradication, recovery, and lessons learned. This skill covers the complete incident response lifecycle, team roles, tools, communication strategies, and compliance requirements for organizations handling security incidents.

## Why This Matters
- **Faster Containment**: Reduce damage from hours to minutes with proper procedures
- **Evidence Preservation**: Enable root cause analysis and legal proceedings
- **Compliance**: Meet SOC2, ISO 27001, GDPR, PCI DSS requirements
- **Customer Trust**: Professional handling builds confidence during incidents
- **Cost Reduction**: Faster recovery equals less downtime cost and business impact

---

## Core Concepts & Rules

### 1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs

### 2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment


## Inputs / Outputs / Contracts
* **Inputs**:
  - Security alerts and notifications
  - System logs and monitoring data
  - Threat intelligence feeds
  - Incident reports from users or systems
  - Legal and compliance requirements
* **Entry Conditions**:
  - Incident response plan documented
  - Incident response team identified and trained
  - Security monitoring tools deployed (SIEM, IDS/IPS, WAF)
  - Communication channels established
* **Outputs**:
  - Incident reports (executive summary, technical details, root cause analysis)
  - Timeline of incident and response actions
  - Lessons learned and improvement recommendations
  - Updated incident response procedures
  - Evidence collected and preserved
* **Artifacts Required (Deliverables)**:
  - Incident report with executive summary and technical details
  - Root cause analysis document
  - Timeline of events and actions
  - Evidence collection log
  - Lessons learned document with action items
  - Updated incident response plan
* **Acceptance Evidence**:
  - Incident contained within SLA (based on severity)
  - Services restored and verified
  - Evidence properly preserved and documented
  - Stakeholders notified appropriately
  - Root cause identified and documented
  - Lessons learned documented and action items assigned
* **Success Criteria**:
  - Incident response time meets SLA targets
  - Services restored with integrity verified
  - Evidence preserved for investigation
  - Stakeholders communicated transparently
  - Lessons learned documented and improvements implemented

## Skill Composition
* **Depends on**: [vulnerability-management](file://24-security-practices/vulnerability-management/), [security-audit](file://24-security-practices/security-audit/), [secrets-management](file://24-security-practices/secrets-management/)
* **Compatible with**: [secure-coding](file://24-security-practices/secure-coding/), [penetration-testing](file://24-security-practices/penetration-testing/), [monitoring-observability](file://14-monitoring-observability/)
* **Conflicts with**: None
* **Related Skills**: [owasp-top-10](file://24-security-practices/owasp-top-10/), [compliance-governance](file://12-compliance-governance/)

---

## Quick Start
#

## Assumptions / Constraints / Non-goals

* **Assumptions**:
  - Development environment is properly configured
  - Required dependencies are available
  - Team has basic understanding of domain
* **Constraints**:
  - Must follow existing codebase conventions
  - Time and resource limitations
  - Compatibility requirements
* **Non-goals**:
  - This skill does not cover edge cases outside scope
  - Not a replacement for formal training


## Compatibility & Prerequisites

* **Supported Versions**:
  - Python 3.8+
  - Node.js 16+
  - Modern browsers (Chrome, Firefox, Safari, Edge)
* **Required AI Tools**:
  - Code editor (VS Code recommended)
  - Testing framework appropriate for language
  - Version control (Git)
* **Dependencies**:
  - Language-specific package manager
  - Build tools
  - Testing libraries
* **Environment Setup**:
  - `.env.example` keys: `API_KEY`, `DATABASE_URL` (no values)


## Test Scenario Matrix (QA Strategy)

| Type | Focus Area | Required Scenarios / Mocks |
| :--- | :--- | :--- |
| **Unit** | Core Logic | Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
| **Integration** | DB / API | All external API calls or database connections must be mocked during unit tests |
| **E2E** | User Journey | Critical user flows to test |
| **Performance** | Latency / Load | Benchmark requirements |
| **Security** | Vuln / Auth | SAST/DAST or dependency audit |
| **Frontend** | UX / A11y | Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |


## Technical Guardrails & Security Threat Model

### 1. Security & Privacy (Threat Model)
* **Top Threats**: Injection attacks, authentication bypass, data exposure
- [ ] **Data Handling**: Sanitize all user inputs to prevent Injection attacks. Never log raw PII
- [ ] **Secrets Management**: No hardcoded API keys. Use Env Vars/Secrets Manager
- [ ] **Authorization**: Validate user permissions before state changes

### 2. Performance & Resources
- [ ] **Execution Efficiency**: Consider time complexity for algorithms
- [ ] **Memory Management**: Use streams/pagination for large data
- [ ] **Resource Cleanup**: Close DB connections/file handlers in finally blocks

### 3. Architecture & Scalability
- [ ] **Design Pattern**: Follow SOLID principles, use Dependency Injection
- [ ] **Modularity**: Decouple logic from UI/Frameworks

### 4. Observability & Reliability
- [ ] **Logging Standards**: Structured JSON, include trace IDs `request_id`
- [ ] **Metrics**: Track `error_rate`, `latency`, `queue_depth`
- [ ] **Error Handling**: Standardized error codes, no bare except
- [ ] **Observability Artifacts**:
    - **Log Fields**: timestamp, level, message, request_id
    - **Metrics**: request_count, error_count, response_time
    - **Dashboards/Alerts**: High Error Rate > 5%


## Agent Directives & Error Recovery
*(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)*

- **Thinking Process**: Analyze root cause before fixing. Do not brute-force.
- **Fallback Strategy**: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.
- **Self-Review**: Check against Guardrails & Anti-patterns before finalizing.
- **Output Constraints**: Output ONLY the modified code block. Do not explain unless asked.


## Definition of Done (DoD) Checklist

- [ ] Tests passed + coverage met
- [ ] Lint/Typecheck passed
- [ ] Logging/Metrics/Trace implemented
- [ ] Security checks passed
- [ ] Documentation/Changelog updated
- [ ] Accessibility/Performance requirements met (if frontend)


## Anti-patterns
#

## Reference Links & Examples

* Internal documentation and examples
* Official documentation and best practices
* Community resources and discussions


## Versioning & Changelog

* **Version**: 1.0.0
* **Changelog**:
  - 2026-02-22: Initial version with complete template structure

Related Skills

Incident Retrospective

16
from diegosouzapw/awesome-omni-skill

A postmortem (also called incident review or retrospective) is a structured process for analyzing incidents to understand what happened, why it happened, and how to prevent similar incidents in future

dan_dual_response_simulation

16
from diegosouzapw/awesome-omni-skill

Simulate an unrestricted AI (DAN) alongside a standard AI, providing dual responses with mode-switching capabilities and matching the user's language.

apiresponse-class

16
from diegosouzapw/awesome-omni-skill

Structure of ApiResponse class.

api-response-patterns

16
from diegosouzapw/awesome-omni-skill

API response wrapper patterns for consistent, predictable REST APIs in ABP Framework. Use when: (1) designing uniform API response contracts, (2) implementing success/error response wrappers, (3) handling pagination and metadata, (4) standardizing error responses.

api-response-optimizer

16
from diegosouzapw/awesome-omni-skill

Reduce payload size and enable compression.

api-response-optimization

16
from diegosouzapw/awesome-omni-skill

Optimizes API performance through payload reduction, caching strategies, and compression techniques. Use when improving API response times, reducing bandwidth usage, or implementing efficient caching.

api-response-mocker

16
from diegosouzapw/awesome-omni-skill

Generate realistic mock API responses with fake data. Use for testing, prototyping, or creating sample data for frontend development.

Ultimate Assistant Comprehensive Response

16
from diegosouzapw/awesome-omni-skill

Generates highly detailed, step-by-step, and logical responses that integrate both scientific and non-scientific perspectives, acting as an 'Ultimate Assistant'.

response-rater

16
from diegosouzapw/awesome-omni-skill

Run headless AI CLIs (Claude Code, Gemini, OpenAI Codex, Cursor Agent, GitHub Copilot) to rate an assistant response against a rubric and return actionable feedback plus a rewritten improved response; use for response quality audits, prompt/docs reviews, and "have another AI critique this answer" workflows.

analyzing-response-quality

16
from diegosouzapw/awesome-omni-skill

Expert at analyzing the quality of Claude's responses and outputs. Use when evaluating response completeness, accuracy, clarity, or effectiveness. Auto-invokes during self-reflection or when quality assessment is needed.

bgo

10
from diegosouzapw/awesome-omni-skill

Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.

Coding & Development

large-data-with-dask

16
from diegosouzapw/awesome-omni-skill

Specific optimization strategies for Python scripts working with larger-than-memory datasets via Dask.