mayurpise/draft/incident-response
Claude Code and agent skill by mayurpise/draft
- community
Checking that the SKILL.md file is still in the repository.
Incident management lifecycle — triage, communicate, mitigate, postmortem. Three modes — new (start incident), update (status update), postmortem (blameless RCA report).
Install
npx vskill@latest install mayurpise/draft/incident-responseSKILL.md
The same SKILL.md was published earlier as mayurpise/draft/incident-response.
Incident Response
You are managing an incident through its full lifecycle using structured incident management practices.
Red Flags — STOP if you're
- Fixing before communicating (stakeholders must know first)
- Skipping severity classification
- Writing a postmortem with blame (blameless only)
- Closing an incident without prevention items
- Ignoring rollback as a mitigation option
Communicate first. Fix second. Learn always.
Pre-Check
- Check for Draft context:
This skill works standalone — incidents don't wait for project setup.
- If available, follow the base procedure in
core/shared/draft-context-loading.md.
Step 1: Parse Arguments
/draft:incident-response new <description>— Start new incident/draft:incident-response update <status>— Post status update/draft:incident-response postmortem— Generate postmortem report/draft:incident-response(no args) — Interactive: ask which mode
NEW Mode — Start Incident
Step 2: Triage
Classify severity:
| Level | Response Time | Who | Examples | |
|---|---|---|---|---|
| SEV1 | Immediate, all-hands | Entire team | Data loss, complete outage, security breach | |
| SEV2 | 15 minutes | On-call + team lead | Major feature broken, significant degradation | |
| SEV3 | 1 hour | On-call | Minor feature broken, workaround exists | |
| SEV4 | Next business day | Assigned engineer | Cosmetic issue, minor inconvenience |
Assess:
- What is broken? (from description or Jira ticket)
- Who is affected? (from
draft/product.mduser types if available) - What is the blast radius? (from
draft/.ai-context.mdservice topology if available) - Is data at risk? (escalate to SEV1 if yes)
Step 3: Communicate
Generate initial status update:
Step 4: Gather Evidence
- If Jira ticket linked: pull details via MCP (
get_issue,get_issue_description,get_issue_comments) - Extract URLs and log paths from ticket
- Use
curl/wgetto fetch dashboards or error pages mentioned - Use
sshto access remote log paths if mentioned - If GitHub MCP available: check recent deployments (
last 24h) - Record all evidence in incident timeline
Step 5: Mitigate
Following core/agents/ops.md production-safety mindset:
- Can we rollback? If yes and severity ≥ SEV2: recommend rollback first, investigate after
- Can we hotfix? If rollback not possible: identify minimal fix
- Can we mitigate? Feature flag, config change, traffic routing
- Need to escalate? If none of above work, escalate severity
Document all actions taken with timestamps.
Step 6: Save Incident File
Save to: draft/incidents/incident-<timestamp>.md or draft/tracks/<id>/incident.md
UPDATE Mode
- Read existing incident file
- Add new timeline entry with timestamp
- Update status field if changed
- Update severity if changed (with justification)
- Generate formatted status update for stakeholders
POSTMORTEM Mode
Step 2: Gather Timeline
- Read incident file for timeline and evidence
git logfor related commits during incident window- If Jira MCP: pull ticket history and transitions
- If GitHub MCP: pull changes submitted during/after incident
Step 3: Root Cause Analysis
Reference core/agents/rca.md methodology:
- 5 Whys Analysis:
- Why did {symptom} happen? → Because {cause 1}
- Why {cause 1}? → Because {cause 2}
- Continue until root cause reached (typically 3-5 levels)
- Root Cause Classification:
- Logic error | Race condition | Data corruption | Configuration error
- Dependency failure | Capacity exceeded | Security exploit | Human error
- Detection Lag: When was the bug introduced vs when was it detected?
- SLO Impact: Which SLOs were affected and by how much?
- HLD Claims vs Reality (): If the affected service has a
hld.md(searchdraft/tracks/*/hld.mdfor §Detailed Design components matching the failing module), compare incident behavior against HLD claims:
- Did §Resiliency claims (graceful degradation, circuit breakers, timeout handling) actually hold during the incident?
- Did §Multi-tenancy claims (tenant isolation, predictable performance) hold? Did one tenant impact another?
- Did §Upgrade claims (backward compat, dependent service order) hold? Did an upgrade trigger this?
- Did §Scale claims hold under the load that triggered the incident?
- Did §Observability claims hold — were the listed key metrics sufficient for detection?
- Cite the specific HLD §section using section text (
draft/tracks/<id>/hld.md §Resiliency) for each gap — avoid markdown anchor slugs since renderers (GitHub, mkdocs, Hugo) generate different slugs for nested headings. These citations feed the §Action Items as "amend HLD §X — claim was {claim} but reality showed {reality}."
Step 4: Generate Postmortem
MANDATORY: Include YAML frontmatter with git metadata. Follow core/shared/git-report-metadata.md.
Save to: draft/incidents/postmortem-<timestamp>.md with symlink postmortem-latest.md Or track-scoped: draft/tracks/<id>/postmortem.md
Step 5: Jira Sync
Follow core/shared/jira-sync.md:
- Attach postmortem to Jira ticket
- Post comment: "[draft] Postmortem complete. Root cause: {1-line summary}. {N} action items."
⚠️ Test Writing Guardrail: If postmortem identifies missing tests, ASK: "Want me to create regression test tasks? [Y/n]"
Cross-Skill Dispatch
- Triggered by:
/draft:new-trackwhen incident keywords detected in description - Postmortem feeds into:
/draft:regression(find the breaking commit),/draft:learn(update guardrails) - Can create: Bug track via
/draft:new-trackfor the fix
Error Handling
If no incident file found (update/postmortem mode): List available incidents, ask which one If no Jira ticket: Proceed without sync, note: "Link a Jira ticket for automatic sync"
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/incident-response/SKILL.md
Popularity
- Repository stars
- 40
- Repository forks
- 4
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mayurpise/draft/incident-response)