Synthèse automatique
Procédure d'intervention pas à pas pour les incidents Vercel : triage rapide, rollback immédiat vers un déploiement sain et collecte de preuves.
Points forts
- Arbre de décision clair qui distingue panne de la plateforme Vercel et régression de déploiement
- Commandes CLI et appels API concrets et copiables pour le triage, le rollback et la vérification
- Rollback en moins de 30 secondes via vercel rollback ou l'API promote, y compris pour l'automatisation PagerDuty
- Étapes de collecte de preuves (logs de fonctions, métadonnées de déploiement, variables d'environnement) pendant que le contexte est frais
Limites
- Suppose un accès au dashboard Vercel, à la CLI et un VERCEL_TOKEN valide
- Le triage s'appuie sur l'API publique de vercel-status.com et ne couvre pas les incidents purement internes non publiés
- La partie post-mortem est bien plus légère que le triage et le rollback dans le contenu fourni
À utiliser dès qu'une panne ou une erreur de production semble liée à Vercel et qu'il faut décider vite entre attendre la plateforme ou rollback.
À éviter pour des incidents applicatifs sans lien avec Vercel, ou lorsque vous n'avez pas les droits de rollback et d'accès aux logs sur le projet.
Analyse de sécurité
PrudenceThe 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
Exemples
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.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/vercel-incident-runbook-mte1lhxs/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
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. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Environnement déclaré par l’auteur : Designed for Claude Code
Outils déclarés par l’auteur (à vérifier dans votre agent) : Read, Grep, Bash(vercel:*), Bash(curl:*)
Extrait original : 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
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
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 doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/vercel-incident-runbook-mte1lhxs'openskills read 'vercel-incident-runbook-mte1lhxs'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/vercel-incident-runbook-mte1lhxs/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Configurer un canal de discussion avec SecretRefs
DevOps
Configurez des canaux de discussion avec des commandes non interactives, les secrets étant uniquement des SecretRefs. Couvre les étapes de collecte, modification, réparation et vérification.
Enquêter sur les échecs CI de ClickHouse
DevOps
Investigue un échec CI de ClickHouse de bout en bout à partir d'une URL de PR ou de rapport S3. Récupère les tests échoués, classe flaky vs vraie régression, et cherche des issues/fixes existants.
Revue de PR Ansible
DevOps
Examine une PR Ansible selon le processus standardisé du projet, incluant la validation des changelogs, la couverture de tests et le suivi des commentaires.