agentleFS
686f6c61686f6c61/alfred-dev/skills/incident-response/SKILL.md

incident-response

Skill116 starsChanged 4 months agoMITView on GitHub

Protocolo de respuesta ante incidentes en produccion: triaje, mitigacion, causa raiz y postmortem. Usar ante caidas, errores criticos, incidentes de seguridad o degradacion de servicio.

59 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use dora-metrics, cli-development and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • caiaffaSkill

    dora-metrics

    Measure and improve engineering delivery performance using the four DORA metrics — deployment frequency, lead time for changes, change failure rate, and time to restore. Use to assess delivery health and find the next bottleneck.

    Also in 3 projects that use this

  • nimadorostkarSkill

    cli-development

    Use when building command-line tools. Covers argument design, exit codes, streams and piping, progress output, configuration precedence, and behavior that respects the shell.

    Also in 3 projects that use this

  • jessefmooreSkill

    exploit-development

    PoC development, payload crafting, shellcode generation, ROP chains, heap exploitation, bypass techniques for modern mitigations (ASLR, DEP, CFI, stack canaries)

    Also in 3 projects that use this

  • witi-projectsSkill

    react-native-patterns

    Build mobile apps with React Native and Expo — navigation, platform-specific code, performance, and native modules. Use when the user says "/react-native-patterns", "react native patterns", or asks about react native patterns.

    Also in 3 projects that use this

  • mmondoraSkill

    data-modeling

    Schema design, multi-tenant data isolation, and migration management. Firestore and PostgreSQL patterns, RLS, UUID v7 conventions. Use when designing database schemas, writing migrations, or implementing multi-tenant data access.

    Also in 4 projects that use this

  • Robotti-ioSkill

    secure-code-review

    Repeatable process for an application security code review that produces prioritized findings and fix guidance.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 50 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Artefacto: commit de mitigacion con test de regresion.

    line 36

“Common” is measured: kept by at least 6 in 10 of the 50 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Respuesta ante incidentes

El usuario ha reportado o detectado un incidente en produccion. Sigue este protocolo paso a paso para gestionar la respuesta de forma estructurada, desde el triaje inicial hasta el postmortem final.

Resumen

Los incidentes en produccion requieren una respuesta rapida pero ordenada. La tentacion es saltar directamente al codigo, pero sin un triaje previo se pierde tiempo en diagnosticos erroneos. Este protocolo exige documentar cada paso y registrar las lecciones aprendidas para reducir recurrencias.

Proceso

Fase 1: Triaje (qa-engineer)

Usa la herramienta Agent para lanzar al agente qa-engineer con la siguiente mision:

  1. Clasificar la severidad del incidente (P0 critico, P1 alto, P2 medio, P3 bajo).
  2. Identificar el impacto: usuarios afectados, funcionalidad comprometida, datos en riesgo.
  3. Recopilar evidencia: logs, trazas, capturas, mensajes de error.
  4. Definir si hay workaround inmediato.

Artefacto: informe de triaje con severidad, impacto y evidencia.

Fase 2: Mitigacion (senior-dev)

Si el triaje indica P0 o P1, ejecutar mitigacion inmediata:

  1. Aplicar workaround si existe (rollback, feature flag, redirect de trafico).
  2. Si no hay workaround, desarrollar hotfix minimo con test de regresion.
  3. Desplegar la mitigacion y verificar que el impacto se reduce.

Artefacto: commit de mitigacion con test de regresion.

Fase 3: Analisis de causa raiz (senior-dev + security-officer)

Una vez mitigado el impacto, investigar la causa raiz:

  1. Trazar la cadena de eventos desde el trigger hasta el fallo.
  2. Identificar la causa raiz (no el sintoma).
  3. Si el incidente tiene componente de seguridad, el security-officer audita la cadena.
  4. Registrar la causa raiz como decision en la memoria del proyecto.

Artefacto: documento de RCA (Root Cause Analysis).

Fase 4: Postmortem

Generar un informe postmortem completo:

  1. Cronologia del incidente (cuando se detecto, cuando se mitigo, cuando se resolvio).
  2. Causa raiz confirmada.
  3. Acciones correctivas con responsable y fecha limite.
  4. Acciones preventivas para evitar recurrencia.
  5. Lecciones aprendidas.

Artefacto: documento postmortem en formato Markdown.

Formato del postmortem

# Postmortem: [titulo del incidente]

**Fecha:** YYYY-MM-DD
**Severidad:** P0/P1/P2/P3
**Duracion:** X horas/minutos
**Impacto:** [descripcion del impacto]

## Cronologia
- HH:MM - [evento]
- HH:MM - [evento]

## Causa raiz
[Explicacion detallada]

## Acciones correctivas
- [ ] [accion] - Responsable: [nombre] - Fecha: YYYY-MM-DD

## Acciones preventivas
- [ ] [accion] - Responsable: [nombre] - Fecha: YYYY-MM-DD

## Lecciones aprendidas
1. [leccion]

Criterios de exito

  • El incidente tiene una severidad asignada con criterios objetivos.
  • La mitigacion se aplica antes de investigar la causa raiz (primero apagar el fuego).
  • Existe un documento de RCA que identifica la causa raiz real, no solo el sintoma.
  • El postmortem esta completo con cronologia, acciones correctivas y preventivas.
  • Las lecciones aprendidas quedan registradas en la memoria del proyecto.
  • Las acciones correctivas tienen responsable y fecha limite asignados.

Que NO hacer

  • No saltar el triaje para ir directamente al codigo. Sin un triaje previo se pierde tiempo en hipotesis equivocadas y se corre el riesgo de aplicar cambios que empeoren la situacion. El triaje estructura la respuesta y prioriza correctamente.
  • No cerrar el incidente sin postmortem. Un incidente sin postmortem es una oportunidad perdida de aprendizaje. Aunque el fix sea trivial, documentar que fallo y por que evita recurrencias y genera conocimiento institucional.
  • No culpar personas en el postmortem. El postmortem se enfoca en procesos y sistemas, no en individuos. La pregunta correcta es "que fallo en el sistema que permitio este error" y no "quien cometio el error". Un postmortem punitivo destruye la confianza y desincentiva la transparencia.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.