greglas75/zuvo/incident
Claude Code and agent skill by greglas75/zuvo
- community
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/incidentSKILL.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:
| Flag | Effect | |
|---|---|---|
[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) | |
--revert | Include revert recommendation with exact command | |
--comms | Generate communication templates (internal + customer-facing) | |
--dry-run | Analyze 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:
| Phase | Task | CodeSift tool | Fallback | |
|---|---|---|---|---|
| 2 | Blast radius of suspect commits | impact_analysis(repo, since="[suspect]") | Grep for imports of changed files | |
| 2 | Callers of changed code | trace_call_chain(repo, symbol, direction="callers") | Repeated Grep for function name | |
| 2 | Symbol-level changes | search_symbols(repo, "<symbol>", include_source=true, file_pattern="<changed files>") | git diff --stat | |
| 2 | Compact change summary | codebase_retrieval(repo, queries=[{type:"text", query:"<term>"}]) | git log --oneline | |
| 3 | Understand affected function | get_context_bundle(repo, symbol_name) | Read the entire file | |
| Any | Batch 3+ lookups | codebase_retrieval(repo, queries=[...]) | Sequential Grep/Read |
Mandatory File Loading
Before starting work, read each file below. Print the checklist with status.
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-runis 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
--sinceor default to 24 hours ago. Convert to ISO-8601. - What service/endpoint: From
--serviceor infer from the description - Severity override: From
--sevif 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:
- Discovery:
find_organizations()→find_projects(org)→ select project matching--serviceor ask user list_issues-- pull recent issues sorted by first-seen, filtered to the timeframe and selected project- For the top 3 relevant issues:
- Stack traces
- Affected users count
- First-seen and last-seen timestamps
- Event frequency (is it increasing?)
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.
| Severity | Criteria | Examples | |
|---|---|---|---|
| SEV-1 (CRITICAL) | Service down, data loss, security breach, all users affected | 500 on all requests, DB corruption, auth bypass | |
| SEV-2 (HIGH) | Major feature broken, significant user impact, revenue affected | Payment processing failing, search returning no results | |
| SEV-3 (MEDIUM) | Partial degradation, workaround exists, subset of users affected | Slow responses on one endpoint, export feature broken | |
| SEV-4 (LOW) | Minor issue, cosmetic, low impact, no data loss | UI glitch, wrong label, non-critical notification failure |
Output:
Phase 1: Timeline Construction
Build a chronological timeline of events leading to and during the incident.
1.1 Recent Code Changes (NOT deploys)
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:
- `memory/last-ship.json` (if exists) — Zuvo ship skill tracks deploys
- Release/deploy tags:
git tag -l 'v*' --sort=-creatordate | head -10orgit tag -l 'deploy-*' - Platform-specific deploy detection:
- Check for
ghCLI: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
ghunavailable or unauthorized: noteGH_AVAILABLE=false, skip gracefully - Vercel: check
.vercel/project.jsonfor deployment metadata - Other platforms: check for
fly.toml,netlify.toml,render.yaml,railway.json
- 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:
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, andFIRST_ERROR_ATare 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_SHAis 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_SHAis 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:
- Read the diff:
``bash git show [commit] --stat git show [commit] -- [relevant files] ``
- 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
- Check overlap with affected service:
Does this commit touch the same files, endpoints, or code paths as the affected service/endpoint?
- CodeSift analysis (if available):
impact_analysis(repo, since="[suspect commit]")-- blast radiustrace_call_chain(repo, symbol, direction="callers")-- who calls the changed codesearch_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
- SKILL.md in the repositoryCheckingskills/incident/SKILL.md
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
[](https://verified-skill.com/skills/greglas75/zuvo/incident)