Incident Template

Description

XSpoonAi efc4ff9 3 files · 16.2 KB Updated

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/tree/main/enterprise-skills/incident-template commit efc4ff99e7

Frequently asked questions

npx skillmds@latest add xspoonai/incident-template