Automated summary
Step-by-step incident response for Vercel: rapid triage, immediate rollback to a known-good deployment, and evidence collection.
Strengths
- Clear decision tree separating Vercel platform incidents from deployment regressions
- Concrete, copy-pasteable CLI and API commands for triage, rollback, and verification
- Sub-30-second rollback via vercel rollback or the promote API, including PagerDuty automation
- Evidence-collection steps (function logs, deployment metadata, env vars) captured while the incident is fresh
Limitations
- Assumes Vercel dashboard and CLI access plus a valid VERCEL_TOKEN
- Triage relies on the public vercel-status.com API, so unpublished internal incidents are not covered
- The postmortem portion is much thinner than the triage and rollback guidance in the provided content
Use it when a production outage or error spike looks Vercel-related and you must quickly decide between waiting on the platform or rolling back.
Avoid it for application-level incidents unrelated to Vercel, or when you lack rollback rights and log access on the project.
Security analysis
CautionThe skill is a straightforward incident-response runbook. Its network calls are limited to the official Vercel status API and Vercel REST API, authenticated with a token the operator supplies, and the CLI commands (rollback, logs, env ls) are the intended operations of the tool. The main risk is operational rather than malicious: commands like `vercel rollback` and the promote endpoint immediately change production traffic, and log/env dumps land on disk in plaintext. Nothing here suggests exfiltration, obfuscated payloads, or destructive actions beyond normal SRE practice, so it warrants caution rather than a risky rating.
- •Uses Bash(curl:*) and Bash(vercel:*) to hit the live Vercel API with $VERCEL_TOKEN; token is only sent to api.vercel.com (its own service), which is appropriate for the task
- •Executes state-changing production commands (`vercel rollback`, deploy promote API) with no confirmation step — correct for an incident runbook but high blast radius if run without intent
- •Writes incident artifacts to local disk (`mkdir incident-YYYYMMDD`, `function-logs.txt`, `env-vars.txt`) — benign, but log/env dumps could contain sensitive data if committed or shared
- •No obfuscation, no curl|sh piping to a shell, no credential exfiltration to third parties, no destructive filesystem commands, no attempts to disable safety controls
Examples
Vercel production is down — run the incident triage: check vercel-status.com, inspect the current prod deployment and recent deploys, then tell me if we should roll back.A deploy went out 10 minutes ago and errors spiked. Roll production back to the last known-good Vercel deployment and verify the health endpoint.The incident is resolved — pull the Vercel function logs and deployment metadata from the broken deploy and set up an incident folder for the postmortem.name: vercel-incident-runbook description: 'Vercel incident response procedures with triage, instant rollback, and postmortem.
Use when responding to Vercel-related outages, investigating production errors,
or running post-incident reviews for deployment failures.
Trigger with phrases like "vercel incident", "vercel outage",
"vercel down", "vercel on-call", "vercel emergency", "vercel broken".
' allowed-tools: Read, Grep, Bash(vercel:), Bash(curl:) version: 1.18.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
- saas
- vercel
- incident-response
- runbook compatibility: Designed for Claude Code
Vercel Incident Runbook
Overview
Step-by-step incident response for Vercel deployment failures, function errors, and platform outages. Covers rapid triage, instant rollback, communication templates, and postmortem procedures.
Prerequisites
- Access to Vercel dashboard and CLI
- Access to Vercel status page (vercel-status.com)
- Communication channels (Slack, PagerDuty) configured
- Log drain or runtime log access
Instructions
Step 1: Rapid Triage (First 5 Minutes)
# 1. Check if it's a Vercel platform issue
curl -s "https://www.vercel-status.com/api/v2/summary.json" \
| jq '.status.description, [.components[] | select(.status != "operational") | {name, status}]'
# 2. Check current production deployment status
vercel ls --prod
vercel inspect $(vercel ls --prod --json | jq -r '.[0].url')
# 3. Check recent deployments — did a deploy just happen?
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" \
"https://api.vercel.com/v6/deployments?target=production&limit=5&projectId=prj_xxx" \
| jq '.deployments[] | {uid, state, createdAt: (.createdAt/1000 | todate), url}'
# 4. Check function logs for errors
vercel logs $(vercel ls --prod --json | jq -r '.[0].url') --level=error --limit=20
Step 2: Decision Tree
Is vercel-status.com showing an incident?
├── YES → Vercel platform issue
│ ├── Subscribe to updates on status page
│ ├── Post internal status: "Vercel platform incident — monitoring"
│ └── No action needed from us — wait for Vercel resolution
│
└── NO → Issue is in our deployment
├── Did a deployment happen in the last 30 minutes?
│ ├── YES → Likely deployment regression
│ │ └── ROLLBACK immediately (Step 3)
│ └── NO → Application-level issue
│ ├── Check function logs for new errors
│ ├── Check external dependency status (DB, APIs)
│ └── Investigate and hotfix (Step 4)
│
└── Is the issue region-specific?
├── YES → Check function regions, possible edge issue
└── NO → Global issue, check code and env vars
Step 3: Instant Rollback (< 30 Seconds)
# Option A: Rollback to previous production deployment (fastest)
vercel rollback
# This instantly swaps production traffic — no rebuild needed
# Option B: Rollback to a specific known-good deployment
vercel rollback dpl_xxxxxxxxxxxx
# Option C: Via API (for automation/PagerDuty integration)
curl -X POST "https://api.vercel.com/v9/projects/my-app/promote" \
-H "Authorization: Bearer $VERCEL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"deploymentId": "dpl_known_good_id"}'
# Verify rollback succeeded
vercel ls --prod
curl -s https://yourdomain.com/api/health | jq .
Step 4: Investigate Root Cause
# Collect evidence while it's fresh
mkdir incident-$(date +%Y%m%d)
cd incident-$(date +%Y%m%d)
# Function logs around the incident time
vercel logs https://yourdomain.com --limit=200 > function-logs.txt
# Deployment diff — what changed?
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" \
"https://api.vercel.com/v13/deployments/dpl_broken" \
| jq '.meta' > broken-deployment-meta.json
# Compare env vars between working and broken deployments
vercel env ls > env-vars.txt
# Check git diff between last good and broken commit
git log --oneline -10
git diff dpl_good_commit..dpl_broken_commit -- api/ src/
Step 5: Enable Maintenance Page (If Needed)
// vercel.json — temporary maintenance mode via rewrite
{
"rewrites": [
{
"source": "/((?!_next|api/health).*)",
"destination": "/maintenance.html"
}
]
}
<!-- public/maintenance.html -->
<!DOCTYPE html>
<html>
<head><title>Maintenance</title></head>
<body>
<h1>We'll be right back</h1>
<p>We're performing scheduled maintenance. Please check back shortly.</p>
</body>
</html>
Step 6: Communication Templates
Internal — Slack (Incident Start)
:rotating_light: INCIDENT: [Project Name] production issue detected
Status: Investigating
Impact: [Description of user impact]
Start time: [UTC timestamp]
On-call: @[engineer]
Thread: replies here
Internal — Slack (Mitigation)
:white_check_mark: MITIGATED: [Project Name]
Action: Rolled back to deployment dpl_xxx
Impact duration: [X minutes]
Root cause: [Brief description]
Postmortem: [link] scheduled for [date]
External — Status Page
Title: Degraded performance on [service]
Body: We are investigating reports of [issue]. Some users may experience
[impact]. Our team is actively working on a resolution.
Update: The issue has been resolved. [Brief root cause].
Step 7: Postmortem Template
# Incident Postmortem: [Title]
## Summary
- Duration: [start] to [end] ([X minutes])
- Impact: [users/requests affected]
- Severity: [P1/P2/P3]
## Timeline (UTC)
- HH:MM — [event]
- HH:MM — Alert fired
- HH:MM — On-call acknowledged
- HH:MM — Root cause identified
- HH:MM — Rollback executed
- HH:MM — Service restored
## Root Cause
[What broke and why]
## Resolution
[What was done to fix it]
## Action Items
- [ ] [Preventive action] — Owner: @xxx — Due: [date]
- [ ] [Detection improvement] — Owner: @xxx — Due: [date]
- [ ] [Process improvement] — Owner: @xxx — Due: [date]
Incident Severity Levels
| Severity | Definition | Response Time | Rollback? | |----------|-----------|---------------|-----------| | P1 | Production down, all users affected | < 5 min | Immediate | | P2 | Degraded, some users affected | < 15 min | If not fixable in 30 min | | P3 | Minor issue, workaround exists | < 1 hour | No | | P4 | Cosmetic or non-urgent | Next business day | No |
Output
- Incident categorized and triaged within 5 minutes
- Instant rollback executed if deployment regression detected
- Communication sent to internal and external stakeholders
- Postmortem scheduled with action items
Error Handling
| Scenario | Action |
|----------|--------|
| Vercel status page shows incident | Monitor, communicate, no deployment changes |
| vercel rollback fails | Use API promotion: POST to /v9/projects/.../promote |
| Rollback deployment also broken | Deploy from a known-good git tag |
| Cannot access Vercel dashboard | Use CLI with saved VERCEL_TOKEN |
| Log retention expired | Check external log drain provider |
Examples
Contain a deployment regression during an incident
Declare the severity and incident lead, capture the affected deployment ID and baseline error rate, then use Vercel’s instant rollback to the previously verified deployment. Validate recovery with synthetic requests from the monitoring system before announcing restoration. Do not change unrelated configuration while containment is active; preserve logs and the rollback receipt for the post-incident review, then schedule remediation as a separately reviewed change.
Resources
Next Steps
For data handling and compliance, see vercel-data-handling.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/vercel-incident-runbook-mte1lhxs/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/vercel-incident-runbook-mte1lhxs' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/vercel-incident-runbook-mte1lhxs/download' --output '.skill-downloads/vercel-incident-runbook-mte1lhxs/SKILL.md.part' && mv '.skill-downloads/vercel-incident-runbook-mte1lhxs/SKILL.md.part' '.skill-downloads/vercel-incident-runbook-mte1lhxs/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Environment declared by the author: Designed for Claude Code
Tools declared by the author (check availability in your agent): Read, Grep, Bash(vercel:*), Bash(curl:*)
Original excerpt: Prerequisites
- Access to Vercel dashboard and CLI
- Access to Vercel status page (vercel-status.com)
- Communication channels (Slack, PagerDuty) configured
- Log drain or runtime log access
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/vercel-incident-runbook-mte1lhxs/SKILL.md' && test -s '.skill-downloads/vercel-incident-runbook-mte1lhxs/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/vercel-incident-runbook' && cp -R '.skill-downloads/vercel-incident-runbook-mte1lhxs' '.claude/skills/vercel-incident-runbook'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/vercel-incident-runbook-mte1lhxs'openskills read 'vercel-incident-runbook-mte1lhxs'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/vercel-incident-runbook-mte1lhxs/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Configure a Chat Channel with SecretRefs
DevOps
Set up chat channels using non-interactive commands, with secrets only as SecretRefs. Covers gather, mutate, repair, and prove steps for reliable delivery.
Investigate ClickHouse CI Failures
DevOps
Investigate a ClickHouse CI failure end-to-end from a PR or S3 report URL. Fetches failed tests, classifies flaky vs real regression, and checks for existing issues/fixes.
Ansible PR Review
DevOps
Reviews an Ansible PR following the project's standardized process, including changelog checks, test coverage validation, and feedback tracking.