greglas75/zuvo/incident

Claude Code and agent skill by greglas75/zuvo

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Incident response and postmortem generation from git/deploy context. When something breaks in production, this skill builds a timeline, identifies the probable cause, and generates a structured postmortem document. Flags: --since, --service, --sev, --revert, --comms, --dry-run.

Install

npx vskill@latest install greglas75/zuvo/incident

SKILL.md

The same SKILL.md was published earlier as greglas75/zuvo/incident.

zuvo:incident — Incident Response & Postmortem

A structured framework for production incident investigation. Builds a timeline from git history, CI/CD deploys, and error tracking, identifies suspect commits, assesses impact, recommends remediation, and generates a blameless postmortem document.

Scope: Production incidents where something is broken, degraded, or behaving unexpectedly. Investigation, root cause analysis, and postmortem generation. Out of scope: Actually applying fixes (use zuvo:debug or zuvo:build), code quality sweeps (zuvo:code-audit), performance investigation without an active incident (zuvo:performance-audit).

Argument Parsing

Parse $ARGUMENTS for these flags:

FlagEffect
[description]What happened (free text)
--since [time]When the incident started (ISO-8601, relative like 2h, or natural language like yesterday 3pm). Default: 24h ago
--service [name]Affected service, endpoint, or component
--sev [1-4]Override auto-detected severity (1=critical, 4=low)
--revertInclude revert recommendation with exact command
--commsGenerate communication templates (internal + customer-facing)
--dry-runAnalyze only, do not create postmortem file

Flags can be combined: zuvo:incident payments returning 500 --since 2h --service /api/payments --sev 1 --revert --comms


Environment Compatibility

Dispatch follows ../../shared/includes/execution-policy.md through env-compat. Reuse existing authorization within that policy; session restrictions take precedence. Run each required gate and report its actual independence or an unmet requirement.

Read ../../shared/includes/env-compat.md for agent dispatch patterns, path resolution, and progress tracking across all supported platforms.

CodeSift Integration

Read ../../shared/includes/codesift-setup.md for the full initialization sequence.

Key tools for incident response:

PhaseTaskCodeSift toolFallback
2Blast radius of suspect commitsimpact_analysis(repo, since="[suspect]")Grep for imports of changed files
2Callers of changed codetrace_call_chain(repo, symbol, direction="callers")Repeated Grep for function name
2Symbol-level changessearch_symbols(repo, "<symbol>", include_source=true, file_pattern="<changed files>")git diff --stat
2Compact change summarycodebase_retrieval(repo, queries=[{type:"text", query:"<term>"}])git log --oneline
3Understand affected functionget_context_bundle(repo, symbol_name)Read the entire file
AnyBatch 3+ lookupscodebase_retrieval(repo, queries=[...])Sequential Grep/Read

Mandatory File Loading

Before starting work, read each file below. Print the checklist with status.

CORE FILES LOADED:
1. ../../shared/includes/env-compat.md -- READ/MISSING
2. ../../shared/includes/codesift-setup.md -- READ/MISSING
3. ../../shared/includes/run-logger.md -- READ/MISSING
4. ../../shared/includes/retrospective.md -- READ/MISSING

If any CORE file is missing: Proceed in degraded mode. Note "DEGRADED -- [file] unavailable" in the output.


Safety Rules

This skill is READ-ONLY except for writing the postmortem document (Phase 5).

  • NEVER execute git revert, git reset, or any destructive git command
  • NEVER push to remote
  • NEVER modify production code, configuration, or infrastructure
  • NEVER restart services or trigger deploys
  • Suggest fixes and reverts with exact commands, but do NOT apply them
  • When --dry-run is set, do not create any files at all

Phase 0: Incident Triage

0.1 Parse Context

Extract from $ARGUMENTS:

  • What happened: The incident description (free text)
  • When: Parse --since or default to 24 hours ago. Convert to ISO-8601.
  • What service/endpoint: From --service or infer from the description
  • Severity override: From --sev if provided

If the description is empty or insufficient, ask the user:

Describe what is happening. Include: the error message or symptom, which service or endpoint is affected, and approximately when it started.
0.2 Sentry Integration (if available)

Check if Sentry MCP tools are available. If so, run discovery first:

  1. Discovery: find_organizations() → find_projects(org) → select project matching --service or ask user
  2. list_issues -- pull recent issues sorted by first-seen, filtered to the timeframe and selected project
  3. For the top 3 relevant issues:
  • Stack traces
  • Affected users count
  • First-seen and last-seen timestamps
  • Event frequency (is it increasing?)
  1. list_events -- recent events for correlation with deploy timeline

If Sentry is not available or org/project mapping is ambiguous: Sentry: unavailable -- using git history only. Do NOT guess the project — proceed in telemetry-unavailable mode.

0.3 Determine Severity

Auto-classify severity based on signals. --sev overrides this.

SeverityCriteriaExamples
SEV-1 (CRITICAL)Service down, data loss, security breach, all users affected500 on all requests, DB corruption, auth bypass
SEV-2 (HIGH)Major feature broken, significant user impact, revenue affectedPayment processing failing, search returning no results
SEV-3 (MEDIUM)Partial degradation, workaround exists, subset of users affectedSlow responses on one endpoint, export feature broken
SEV-4 (LOW)Minor issue, cosmetic, low impact, no data lossUI glitch, wrong label, non-critical notification failure

Output:

INCIDENT TRIAGE
Description: [what happened]
Severity: SEV-[N] ([CRITICAL/HIGH/MEDIUM/LOW]) [AUTO / OVERRIDE]
Since: [ISO-8601 timestamp]
Service: [affected service/endpoint]
Sentry: [N issues found / unavailable]

Phase 1: Timeline Construction

Build a chronological timeline of events leading to and during the incident.

1.1 Recent Code Changes (NOT deploys)
bash
git log --since="[incident time - 24h]" --oneline --format="%h %ai %an %s"

For each commit, note: hash, timestamp, author, message, files changed. These are code changes, NOT deploys. A commit only becomes a deploy after it's confirmed through CI/CD or platform signals.

1.2 Actual Deploy History

Identify which commits were actually deployed to production. Use this source priority ladder:

  1. `memory/last-ship.json` (if exists) — Zuvo ship skill tracks deploys
  2. Release/deploy tags: git tag -l 'v*' --sort=-creatordate | head -10 or git tag -l 'deploy-*'
  3. Platform-specific deploy detection:
  • Check for gh CLI: which gh && gh auth status — if available:

``bash gh run list --limit 20 --json conclusion,createdAt,headBranch,name,status --jq '[.[] | select(.conclusion=="success")]' `` Filter by workflow name containing "deploy", "release", "cd", or "production". Do NOT treat all successful runs as deploys (build/test/lint workflows are not deploys).

  • If gh unavailable or unauthorized: note GH_AVAILABLE=false, skip gracefully
  • Vercel: check .vercel/project.json for deployment metadata
  • Other platforms: check for fly.toml, netlify.toml, render.yaml, railway.json
  1. Fallback: If no deploy signals found, use commits to main/master as proxy. Mark timeline as `[UNVERIFIED — commits used as deploy proxy]`.
1.2b Separate timeline tracks

Build TWO separate tracks:

  • Code changes: all commits in the window (from 1.1)
  • Confirmed deploys: only commits verified through CI/CD or platform (from 1.2)

Only confirmed deploys appear as Deploy: in the timeline. Undeployed commits appear as Commit: (they may not have reached production).

1.3 Sentry Correlation (if available)

If Sentry data was gathered in Phase 0:

  • Map first-seen timestamps of relevant issues to the deploy timeline
  • Identify which deploy likely introduced each error
  • Note error frequency trends (increasing, stable, decreasing)
1.4 Build Timeline

Assemble all data into a chronological timeline:

TIMELINE
------------------------------------------------------
[T-24h] Commit: abc1234 "feat: add payment retry" (author)
[T-20h] Deploy: abc1234 confirmed via deploy pipeline (branch: main)
[T-18h] Commit: def5678 "fix: update rate limiter" (author)
[T-4h] Deploy: def5678 confirmed via deploy pipeline (branch: main)
[T-2h] First error reported (Sentry issue #1234 / user report)
[T-1h] Error rate increasing (Sentry: 50 events/hr -> 200 events/hr)
[T-0] Incident declared
------------------------------------------------------
[VERIFIED / UNVERIFIED — commits used as deploy proxy]

Use relative timestamps (T-Nh) anchored to the incident declaration time. Include absolute timestamps in parentheses when available.


Phase 2: Root Cause Analysis

2.1 Identify Suspect Commits

Define explicit variables for the suspect window:

  • `LAST_GOOD_SHA`: SHA of the last confirmed-working deploy (from deploy history in Phase 1)
  • `LAST_GOOD_AT`: Timestamp of that deploy
  • `FIRST_ERROR_AT`: Timestamp of first error signal (Sentry first-seen, user report, health check failure)

Determine `LAST_DEPLOYED_SHA`: From the confirmed deploys in Phase 1.2, find the last deploy SHA whose timestamp is <= FIRST_ERROR_AT. This is the upper bound of the suspect window — only deployed code can cause production incidents.

Determine suspect window:

  • If LAST_GOOD_SHA, LAST_DEPLOYED_SHA, and FIRST_ERROR_AT are all known:

``bash git log --format="%H %ai %an %s" LAST_GOOD_SHA..LAST_DEPLOYED_SHA ` This captures only commits that were (a) after the last known good state AND (b) actually deployed. Commits after LAST_DEPLOYED_SHA` are excluded — they were not on production when the incident started.

  • If LAST_DEPLOYED_SHA is unknown (no confirmed deploys — unverified timeline):

Use commits to main/master before FIRST_ERROR_AT as a proxy: ``bash git log --format="%H %ai %an %s" --until="FIRST_ERROR_AT" -20 ` Mark as [WINDOW: estimated — no confirmed deploy chain]`.

  • If LAST_GOOD_SHA is also unknown:

Use the 20 most recent commits before FIRST_ERROR_AT. Mark as [WINDOW: estimated — no baseline].

Never use `HEAD` as the upper bound. HEAD may contain undeployed commits — including them would blame code that was never on production.

2.2 Analyze Each Suspect

For each suspect commit:

  1. Read the diff:

``bash git show [commit] --stat git show [commit] -- [relevant files] ``

  1. Classify risk area:
  • AUTH: authentication, authorization, access control, tokens, sessions
  • PAYMENT: billing, payment processing, money calculations, subscriptions
  • DATA: database schema, migrations, data transformations, ORM changes
  • API: endpoint contracts, request/response shapes, middleware, routing
  • CONFIG: environment variables, feature flags, deployment config
  • INFRA: networking, caching, rate limiting, connection pools
  • LOGIC: business logic, state management, calculation changes
  1. Check overlap with affected service:

Does this commit touch the same files, endpoints, or code paths as the affected service/endpoint?

  1. CodeSift analysis (if available):
  • impact_analysis(repo, since="[suspect commit]") -- blast radius
  • trace_call_chain(repo, symbol, direction="callers") -- who calls the changed code
  • search_symbols(repo, "<changed symbol>", include_source=true) -- verify symbol state
2.3 Correlate and Rank

Score each suspect commit on three dimensions:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
8
7-day trend score
11

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/greglas75/zuvo/incident/badge)](https://verified-skill.com/skills/greglas75/zuvo/incident)

Something wrong with this skill or its page? Tell us.