Incident Template

Description

XSpoonAi Updated 17 repo stars

File contents

Description

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

Inputs

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

Outputs

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

Usage

Demo Mode

python scripts/main.py --demo

Generate Incident Template

echo '{"incident_type": "outage", "severity": "critical"}' | python3 scripts/main.py

Examples

Example 1: Critical Outage Template

$ 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:

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

XSpoonAi/spoon-awesome-skill commit efc4ff99e7

Frequently asked questions

npx get-skill add xspoonai/incident-template