/a-team:incident-responsefrom a-team
Guides production incident response through five phases: detect, contain, diagnose, resolve, post-mortem. Use when error rates spike, latency exceeds SLA, or services are unreachable.
Ships in a-team. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
CALM IS A SKILL. PANIC IS A CHOICE.
An incident is a system behaving unexpectedly. It is solved by evidence, not speed.
Fast wrong fixes extend incidents. Slow correct fixes end them.
Use this skill immediately when:
Assess impact — answer three questions:
Declare the incident:
#incident-YYYY-MM-DD-short-description| Severity | Definition |
|---|---|
| SEV-1 | Complete service outage or data loss. All hands. |
| SEV-2 | Critical feature broken, significant user impact. Team leads involved. |
| SEV-3 | Partial degradation, workaround exists. Engineering only. |
| SEV-4 | Minor issue, low user impact. Standard ticket. |
Do not investigate alone for SEV-1/SEV-2. Assign roles:
Stop the bleeding before diagnosing the wound.
Look for the fastest way to reduce impact — in this order:
Rollback — was there a recent deploy? Roll it back. Rollback is always faster than a hotfix.
git revert HEAD --no-edit && git push
# or
kubectl rollout undo deployment/api
Feature flag off — can the broken feature be disabled without affecting the whole service?
Circuit breaker / rate limit — if a downstream service is causing the issue, can you stop calling it temporarily?
Scale up — if it's a load issue, can you add capacity immediately?
Redirect traffic — failover to a secondary region or static error page
Containment does not require knowing the root cause. Act fast to reduce impact, then diagnose.
Work from evidence. No guessing.
Evidence sources in order of reliability:
Diagnostic commands:
# Recent deploys
git log --oneline -20
# Error spike in logs
grep ERROR app.log | grep "$(date +%Y-%m-%dT%H)" | wc -l
# Slow queries
psql -c "SELECT query, mean_exec_time FROM pg_stat_statements ORDER BY mean_exec_time DESC LIMIT 10;"
# Service health
kubectl get pods --all-namespaces | grep -v Running
kubectl describe pod <failing-pod>
kubectl logs <failing-pod> --previous
Form a single hypothesis: "The incident is caused by X because evidence Y shows Z." Test it minimally before acting on it.
Apply the fix with the minimum blast radius.
Fix principles:
After applying fix:
Declare resolved:
RESOLVED — [time]
Service restored. Root cause: [one sentence].
Follow-up actions tracked in post-mortem.
Every SEV-1 and SEV-2 gets a written post-mortem. Every SEV-3 gets at least a brief one.
Template: docs/postmortems/YYYY-MM-DD-short-title.md
# Post-Mortem: [Title]
**Date:** YYYY-MM-DD
**Severity:** SEV-N
**Duration:** Xh Ym (detected HH:MM → resolved HH:MM)
**Impact:** [who was affected and how]
## Timeline
| Time | Event |
|------|-------|
| HH:MM | First alert triggered |
| HH:MM | Engineer notified |
| HH:MM | Incident declared |
| HH:MM | Containment applied |
| HH:MM | Root cause identified |
| HH:MM | Fix deployed |
| HH:MM | Incident resolved |
## Root Cause
[One clear sentence. Not "the server crashed" — why did the server crash.]
## Contributing Factors
- [What made this possible / what made detection slow / what made recovery slow]
## What Went Well
- [Things that helped, even small ones]
## Action Items
| Action | Owner | Due |
|--------|-------|-----|
| Add alert for X | @person | YYYY-MM-DD |
| Fix root cause Y | @person | YYYY-MM-DD |
| Add runbook for Z | @person | YYYY-MM-DD |
Post-mortem rules:
Status page update (during incident):
[INVESTIGATING] We are investigating reports of [issue] affecting [scope].
Our team is actively working on a resolution. Next update in 30 minutes.
Resolution notice:
[RESOLVED] The issue affecting [scope] has been resolved as of [time].
Root cause was [brief explanation]. A full post-mortem will be published within 48 hours.
We apologise for the inconvenience.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rbraga01/a-team --plugin a-team20 skills in this plugin
/api-contract-firstHard gate before implementing any API endpoint or service interface. Requires a written, reviewed contract (OpenAPI 3.x, protobuf, or GraphQL schema) before any implementation code is written. Prevents breaking changes, misaligned clients, and undocumented behaviour./architecture-auditSystematic architecture review workflow. Use before major feature work on an unfamiliar or inherited codebase, before scaling milestones, or as a periodic health check. Maps the system as-built (not as-documented), dispatches parallel specialist reviews, and produces an evidence-backed findings report with severity verdicts./brainstormingUse BEFORE any creative work — creating features, building components, adding functionality. Explores user intent, requirements, and design before implementation. Hard-gated: no code until user approves the spec.Other plugins' skills for the same job