# Incident Template

> Description

- Skill: `xspoonai/incident-template` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add xspoonai/incident-template`
- Raw SKILL.md: https://api.skillmd.com/api/skills/xspoonai/incident-template/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: XSpoonAi (https://skillmd.com/u/xspoonai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/xspoonai/incident-template

---


## Description

Emit incident response templates with structured timeline sections. Provides templates for incident documentation, root cause analysis, and action items.

## Inputs

```json
{
  "incident_type": "outage|security|data-loss",
  "severity": "critical|high|medium"
}
```

## Outputs

```json
{
  "ok": true,
  "data": {
    "template": "Incident response markdown template"
  }
}
```

## Usage

### Demo Mode
```bash
python scripts/main.py --demo
```

### Generate Incident Template
```bash
echo '{"incident_type": "outage", "severity": "critical"}' | python3 scripts/main.py
```

## Examples

### Example 1: Critical Outage Template
```bash
$ echo '{"incident_type": "outage", "severity": "critical"}' | python3 scripts/main.py
{
  "ok": true,
  "data": {
    "template": "# Incident Report\n\n## Summary\n\n## Timeline\n\n## Impact\n\n## Root Cause\n\n## Action Items"
  }
}
```

## Error Handling

When an error occurs, the skill returns:

```json
{
  "ok": false,
  "error": "Error description",
  "details": {
    "incident_type": "Invalid incident type"
  }
}
```

