К основному содержанию
скилл CX Codex

incident-response · microsoft — скилл для Claude Code: что делает и как установить

Скилл incident-response помогает дежурным инженерам и SRE расследовать инциденты в Azure: оценивать критичность, писать диагностические запросы и готовить отчёты о причинах сбоя.

MIT ★ 1 627 обновлён 2026-10-25

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add microsoft/hve-core --skill incident-response -a claude-code
Открыть на GitHub

Что делает incident-response

Скилл ведёт команду через четыре фазы инцидента: первичную сортировку, диагностику, локализацию проблемы и составление отчёта о первопричинах. На этапе триажа агент проверяет документацию репозитория, ранбуки в каталогах вроде runbooks/ или docs/incident-response/ и данные Azure Service Health, чтобы определить уровень серьёзности от 1 (критический) до 4 (низкий).

Для расследования скилл формирует запросы к таблицам Azure Monitor, включая AzureActivity, AppExceptions, AppRequests и AppDependencies. Готовые запросы фильтруются по затронутым ресурсам и окну сбоя, а поиск вариантов отката и обходных путей опирается на пайплайны и справочные материалы через инструменты MCP-серверов Azure и microsoft-docs.

Для выполнения запросов к телеметрии и проверки статуса сервисов в окружении должны быть подключены соответствующие инструменты Azure MCP. Скилл даёт только вспомогательные рекомендации, поэтому все шаги по откату и команды должны подтверждаться инженером вручную.

Какие задачи решает

  • определить уровень серьёзности сбоя сервисов Azure по ранбукам
  • составить KQL-запросы к таблицам Azure Monitor для поиска ошибок
  • сформировать план отката релиза и шаблоны оповещения пользователей
  • задокументировать первопричины инцидента по шаблону RCA

Примеры запросов агенту

  • Запусти триаж: incident-description="Ошибки 500 в сервисе checkout после деплоя" severity=2 phase=triage
  • Сгенерируй диагностические запросы: incident-description="Резкий рост задержек в App Service" phase=diagnose
  • Подготовь план локализации: incident-description="Сбой базы данных PostgreSQL в регионе westus" phase=mitigate

Как установить incident-response

1Через Skills CLI (Vercel)

npx skills add microsoft/hve-core --skill incident-response -a claude-code

2Вручную: положить файлы

~/.claude/skills/incident-response/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/incident-response/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы об incident-response

Как установить incident-response в Claude Code?

Выполните команду npx skills add microsoft/hve-core --skill incident-response -a claude-code. Файл навыка сохранится по пути ~/.claude/skills/incident-response/SKILL.md.

Что делает скилл incident-response?

Он структурирует процесс реагирования на инциденты в Azure. Ассистент собирает симптомы, подбирает фильтры для логов Log Analytics, находит инструкции по устранению сбоев и помогает оформить статус-апдейты.

Какие серверы MCP требуются для полной работы скилла?

Скилл использует инструменты сервера Azure MCP для чтения метрик и проверки здоровья сервисов, а также microsoft-docs для поиска официальных руководств по устранению неполадок.

Исходный текст

SKILL.md · MIT
---
name: incident-response
description: 'Run a structured Azure incident response workflow for triage, diagnosis, mitigation, and root cause analysis. Use when operations or security teams need guided incident handling for Azure service symptoms.'
argument-hint: 'incident-description=... [severity={1|2|3|4}] [phase={triage|diagnose|mitigate|rca}] [chat={true|false}]'
license: MIT
user-invocable: true
disable-model-invocation: true
---

# Incident Response Assistant

> [!CAUTION]
> This skill is an **assistive tool only** and does not replace professional incident management platforms, security tooling, or qualified human review.
> All generated triage assessments, diagnostic queries, mitigation recommendations, and root cause analysis documentation must be reviewed and validated by qualified operations and security professionals before use.
> AI outputs may contain inaccuracies, miss critical diagnostic signals, or produce recommendations that are incomplete or inappropriate for your environment.

## Purpose and Role

Act as an incident response assistant helping site reliability engineering and operations teams respond to Azure incidents with AI-assisted guidance. Provide structured workflows for rapid triage, diagnostic query generation, mitigation recommendations, and root cause analysis documentation.

## Inputs

* `incident-description` (required): Description of the incident, symptoms, or affected services.
* `severity` (optional, default `3`): Incident severity level. Use `1` for Critical, `2` for High, `3` for Medium, and `4` for Low.
* `phase` (optional, default `triage`): Current response phase. Accepted values are `triage`, `diagnose`, `mitigate`, and `rca`.
* `chat` (optional, default `true`): Include conversation context.

## Required Steps

### Phase 1: Initial Triage

Perform rapid assessment to understand incident scope and severity.

#### Gather Essential Information

Collect these details:

* Current symptoms, error messages, and user reports.
* Incident timeline and first detection time.
* Affected services, resources, regions, and user segments.
* Recent deployments, configuration changes, and scaling events.

#### Severity Assessment

Determine incident severity by consulting these sources:

1. Codebase documentation. Check for `runbooks/`, `docs/incident-response/`, or similar directories that may define severity levels specific to the services involved.
2. Team runbooks. Look for severity matrices in the repository or linked documentation.
3. Azure Service Health. Use the Azure MCP server to check current service health status.
4. Impact scope. Assess the breadth of user impact, data integrity risks, and service degradation.

If no organization-specific severity definitions exist, use standard incident management practices based on user impact and service availability.

#### Initial Actions

* Confirm the incident is genuine, not a false positive from monitoring.
* Identify the incident commander and communication channels.
* Start incident timeline documentation.
* Notify stakeholders based on severity.

### Phase 2: Diagnostic Queries

Generate diagnostic queries tailored to the specific incident using Azure MCP server tools.

#### Building Diagnostic Queries

1. Review Azure MCP server capabilities. Use the Azure MCP server interface to understand available query tools and data sources.
2. Identify relevant data sources. Based on the incident symptoms, determine which Azure Monitor tables are relevant, such as `AzureActivity`, `AppExceptions`, `AppRequests`, `AppDependencies`, and custom logs.
3. Build targeted queries for:
   * The affected resources and resource groups.
   * The incident timeframe.
   * The specific symptoms being investigated.

#### Query Development Process

For each diagnostic area:

1. Determine the data source. Identify the Azure Monitor table that contains the relevant telemetry.
2. Define the time range. Identify when symptoms first appeared and include buffer time before and after.
3. Identify key fields. Select the columns or properties relevant to the specific incident.
4. Add appropriate filters. Filter to affected resources, error types, or user segments.
5. Choose visualization. Use time series for trends, tables for details, and aggregations for patterns.

#### Common Diagnostic Areas

Consider building queries for these areas as relevant to the incident:

* Resource health through Azure Activity Log events and state changes.
* Error analysis through application exceptions, failure rates, and error patterns.
* Change detection through recent deployments, configuration changes, and write operations.
* Performance metrics through latency, throughput, and resource utilization trends.
* Dependency health through external service calls, connection failures, and timeout patterns.

Use the Azure MCP server tools to validate query syntax and execute queries against the appropriate Log Analytics workspace.

### Phase 3: Mitigation Actions

Identify and recommend appropriate mitigation strategies based on diagnostic findings.

#### Discovering Mitigation Procedures

1. Check codebase documentation for:
   * `runbooks/` operational procedures.
   * `docs/` service-specific troubleshooting guides.
   * Readme files in affected service directories.
   * Linked wikis or external documentation references.
2. Use microsoft-docs MCP tools to query Azure documentation for:
   * Service-specific troubleshooting guides.
   * Known issues and workarounds.
   * Best practices for the affected Azure services.
   * Recovery procedures for specific failure modes.
3. Review deployment history. Check Azure DevOps, GitHub Actions, or other pipeline definitions for:
   * Recent deployments that may need rollback.
   * Previous known-good versions.
   * Rollback procedures documented in pipeline configuration.

#### Mitigation Approach

For each potential mitigation:

1. Assess risk. Identify what could go wrong with the mitigation.
2. Identify verification steps. Define how the team will know the mitigation worked.
3. Document a rollback plan. Define how to undo the mitigation if it makes things worse.
4. Communicate. Ensure stakeholders know what action is being taken.

#### Communication Templates

Internal status update:

```text
[INCIDENT] Severity {n} - {Service Name}
Status: Investigating / Mitigating / Resolved
Impact: {description of user impact}
Current Action: {what team is doing}
Next Update: {time}
```

Customer communication:

```text
We are aware of an issue affecting {service}.
Our team is actively investigating and working to restore normal operations.
We will provide updates as more information becomes available.
```

### Phase 4: Root Cause Analysis

Prepare thorough post-incident documentation using the organization's root cause analysis template.

#### Root Cause Analysis Documentation

Use the RCA template at `docs/templates/rca-template.md` if available in this repository, extension, or plugin context. If the template is not found, structure the root cause analysis using industry best practices including [Google's SRE Postmortem format](https://sre.google/sre-book/example-postmortem/): Summary, Impact, Root Causes, Trigger, Detection, Resolution, Action Items, Lessons Learned, and Timeline.

Follow these practices:

* Start documentation immediately when the incident is declared. Do not rely on memory.
* Update documentation continuously throughout the incident response.
* Be blameless. Focus on systems and processes, not individuals.
* Continue from existing documents. If invoked again with cleared context, check for and continue from any existing incident document.

#### Five Whys Analysis

Work backwards from the symptom to the root cause:

1. Why did the service fail? Use the answer to guide the next question.
2. Why did that happen? Continue drilling down.
3. Why was that the case? Identify systemic issues.
4. Why was this not prevented? Find gaps in controls.
5. Why was this not detected earlier? Improve monitoring.

## Azure Documentation

Use the microsoft-docs MCP tools to access relevant Azure documentation during incident response. Key documentation areas include:

* Azure Monitor and Log Analytics.
* Azure Resource Health and Service Health.
* Application Insights.
* Service-specific troubleshooting guides.

Query documentation dynamically based on the services and symptoms involved in the incident rather than relying on static links.

## Stop Rules

* Ask clarifying questions when `incident-description` lacks affected services, symptoms, timeframe, or impact information needed for the selected `phase`.
* Stop before recommending a risky mitigation when diagnostic evidence is insufficient to justify it.
* Stop before presenting generated triage, diagnostics, mitigations, or root cause analysis documentation as final without qualified human review.

## Success Criteria

* The current `phase` is identified and the matching workflow steps are applied.
* Severity is assessed from organization-specific documentation when available, otherwise from standard incident management practices.
* Diagnostic queries are tailored to the affected resources, timeframe, symptoms, and relevant Azure Monitor data sources.
* Mitigation recommendations include risk, verification, rollback, and communication considerations.
* Root cause analysis documentation follows the available repository template or the stated fallback structure.

© microsoft · MIT · microsoft/hve-core

Похожие скиллы

Все скиллы по теме «Облака: AWS, Azure, GCP» →

Сначала — incident-response от других авторов.

incident-response официальный anthropics Скилл incident-response ведёт инцидент от обнаружения до разбора: оценка серьёзности, статус-апдейты, хронология и blameless-постмортем. CX Codex +1 6 100установок incident-response Alireza Rezvani Скилл incident-response классифицирует сработавшую тревогу по 14 типам инцидентов, отсеивает ложные и подсказывает, кого звать и что фиксировать. CX Codex +1 634установок incident-response devops-skills Скилл incident-response помогает реагировать на взломы и инциденты безопасности по регламенту из шести фаз: от фиксации доказательств до устранения уязвимостей. CX Codex +1 455установок incident-response spencerpauly Скилл incident-response для Claude Code задаёт порядок разбора аварий в продакшене: от классификации сбоя и быстрого восстановления до оповещений и отчёта без поиска виноватых. CX Codex +1 420установок incident-response rampstackco Скилл incident-response ведёт активный production-инцидент от обнаружения до закрытия: помогает оценить влияние, выбрать меры и распределить роли. CX Codex +1 277установок ai-sre-incident-response devops-skills Скилл ai-sre-incident-response для Claude Code, Codex, Cursor и других платформ: выстраивает SRE-процессы для инцидентов в AI-системах — падения модели, деградация качества, взрывной рост расходов, нарушения безопасности. CX Codex +1 365установок sre-incident-response paulip114 Скилл sre-incident-response для Claude Code структурирует действия команды при авариях на проде по практикам Google IMAG. Он задаёт роли, шаблоны сводок и алгоритм быстрой локализации сбоев. CX Codex +1 ★ 67звёзд репо devops-incident-responder VoltAgent Community Субагент devops-incident-responder помогает устранять сбои на проде, искать первопричины неполадок и готовить постмортемы. Пригодится дежурным инженерам во время аварий. CX Codex 206установок azure-monitor-audit devops-skills Скилл azure-monitor-audit настраивает аудит подписки Azure через Monitor, Log Analytics и журнал действий. Помогает собирать логи для SOC 2, HIPAA, PCI DSS и ISO 27001. CX Codex +1 349установок incident-response-forensics securityskills Скилл incident-response-forensics для сбора и анализа цифровых улик при расследовании инцидентов безопасности. Помогает зафиксировать доказательства без их повреждения, собрать летучие данные и построить временную шкалу атаки. CX Codex +1 254установок azure-monitor MicrosoftDocs Скилл для платформ Claude Code, Codex, Cursor и GitHub Copilot с экспертными знаниями по Azure Monitor. CX Codex +1 373установок

Из того же набора148

Весь набор →
typescript-doc-comments Правило typescript-doc-comments для написания документирующих комментариев в TypeScript по стандарту TSDoc. Помогает описать поведение и ограничения функций, типов и компонентов так, чтобы вызывающий код не ошибся. CX Codex +1 ★ 1 627звёзд репо engagement-reporting Скилл engagement-reporting формирует еженедельные отчёты о ходе проекта с опорой на первоисточники и создаёт черновики писем в Outlook. CX Codex +1 ★ 1 627звёзд репо hve-builder Скилл hve-builder помогает создавать и дорабатывать промпты, инструкции, агентов и другие скиллы. Он также проводит проверку качества или механическую валидацию без изменения файлов. CX Codex +1 ★ 1 627звёзд репо bash Правило задаёт единые конвенции для Bash-скриптов: strict mode, структуру с main(), форматирование, обработку ошибок и copyright-заголовки Microsoft. CX Codex +1 ★ 1 627звёзд репо terraform Задаёт соглашения для Terraform-кода: структуру файлов, именование ресурсов и переменных, работу с модулями и выражениями. Применяется к .tf и .tfvars. CX Codex +1 ★ 1 627звёзд репо adr-byo-template Правило adr-byo-template задаёт контракт для собственных шаблонов ADR: как резолвится конфиг проекта и что должен объявить шаблон, чтобы ADR Creator его принял. CX Codex +1 ★ 1 627звёзд репо pptx Задаёт структуру каталогов, форматы YAML и правила верстки для сборки презентаций PowerPoint с помощью агентов и python-pptx. CX Codex +1 ★ 1 627звёзд репо coaching-patterns Правило coaching-patterns задаёт исследовательский стиль вопросов для планирующих агентов. Оно помогает сначала разобраться в системе и её контексте, а затем переходить к классификации и анализу. CX Codex +1 ★ 1 627звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой