/vercel-pack:vercel-debug-bundlefrom vercel-pack
Collects a comprehensive Vercel debug bundle with deployment state, function logs, build output, and environment configuration for support tickets or team troubleshooting.
Ships in vercel-pack. 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.
Read when SKILL.md points to them.
Collect a comprehensive debug bundle containing deployment state, function logs, environment configuration, and build output for Vercel support escalation or team troubleshooting.
!vercel --version 2>/dev/null || echo 'Vercel CLI not installed'
!node --version 2>/dev/null || echo 'Node.js N/A'
jq for JSON processing (recommended)#!/usr/bin/env bash
set -euo pipefail
DEPLOY_URL="${1:-$(vercel ls --json 2>/dev/null | jq -r '.[0].url')}"
BUNDLE_DIR="vercel-debug-$(date +%Y%m%d-%H%M%S)"
mkdir -p "$BUNDLE_DIR"
echo "=== Collecting debug bundle for: $DEPLOY_URL ==="
# Deployment inspection
vercel inspect "$DEPLOY_URL" > "$BUNDLE_DIR/inspect.txt" 2>&1 || true
# Deployment details via API
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" \
"https://api.vercel.com/v13/deployments/$DEPLOY_URL" \
| jq '{uid, name, state, target, readyState, errorMessage, meta, regions}' \
> "$BUNDLE_DIR/deployment.json" 2>/dev/null || true
# Recent function logs (last 100 entries)
vercel logs "$DEPLOY_URL" --output=short --limit=100 \
> "$BUNDLE_DIR/function-logs.txt" 2>&1 || true
# Function logs via API with filtering
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" \
"https://api.vercel.com/v2/deployments/$DEPLOY_URL/events?limit=100&direction=backward" \
| jq '.[] | {timestamp: .created, type, text}' \
> "$BUNDLE_DIR/events.json" 2>/dev/null || true
# Build logs
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" \
"https://api.vercel.com/v13/deployments/$DEPLOY_URL" \
| jq '.build' > "$BUNDLE_DIR/build-info.json" 2>/dev/null || true
# List all functions in the deployment
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" \
"https://api.vercel.com/v13/deployments/$DEPLOY_URL" \
| jq '.routes, .functions' > "$BUNDLE_DIR/routes-functions.json" 2>/dev/null || true
# Environment variable names only (no values)
vercel env ls > "$BUNDLE_DIR/env-vars-list.txt" 2>&1 || true
# Project configuration (redacted)
if [ -f "vercel.json" ]; then
cp vercel.json "$BUNDLE_DIR/vercel.json"
fi
# Package versions
if [ -f "package.json" ]; then
jq '{name, version, dependencies, devDependencies, engines}' package.json \
> "$BUNDLE_DIR/package-summary.json" 2>/dev/null || true
fi
# Node.js and CLI versions
{
echo "node: $(node --version 2>/dev/null || echo 'N/A')"
echo "npm: $(npm --version 2>/dev/null || echo 'N/A')"
echo "vercel: $(vercel --version 2>/dev/null || echo 'N/A')"
echo "os: $(uname -a)"
echo "date: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
} > "$BUNDLE_DIR/environment.txt"
# Vercel platform status
curl -s "https://www.vercel-status.com/api/v2/summary.json" \
| jq '{status: .status.description, components: [.components[] | {name, status}]}' \
> "$BUNDLE_DIR/platform-status.json" 2>/dev/null || true
# Create archive — excludes secrets
tar czf "${BUNDLE_DIR}.tar.gz" "$BUNDLE_DIR"
echo "Debug bundle created: ${BUNDLE_DIR}.tar.gz"
echo "Contents:"
ls -la "$BUNDLE_DIR"/
| File | Contents |
|---|---|
inspect.txt | Deployment inspection output |
deployment.json | Deployment state, target, errors |
function-logs.txt | Recent function invocation logs |
events.json | Deployment event timeline |
build-info.json | Build configuration and output |
routes-functions.json | Route and function mapping |
env-vars-list.txt | Environment variable names (no values) |
vercel.json | Project configuration |
package-summary.json | Dependencies and versions |
environment.txt | System info (Node, CLI, OS) |
platform-status.json | Vercel platform status at time of capture |
Subject: [Project: my-app] FUNCTION_INVOCATION_TIMEOUT on /api/endpoint
Environment:
- Plan: Pro
- Framework: Next.js 14
- Region: iad1
- Node.js: 18.x
Issue:
[Describe the error, when it started, and the user impact]
Steps to Reproduce:
1. Deploy commit abc123
2. Send POST to /api/endpoint with body > 1MB
3. Function times out after 60s
Expected: 200 response within 5s
Actual: 504 after 60s
Deployment URL: https://my-app-xxx.vercel.app
Debug bundle: [attached]
vercel-debug-YYYYMMDD-HHMMSS.tar.gz archive| Error | Cause | Solution |
|---|---|---|
vercel inspect fails | Deployment deleted or token expired | Use API directly with curl |
jq: command not found | jq not installed | apt install jq or brew install jq |
| Empty function logs | Function not invoked or log retention expired | Check Observability tab in dashboard |
| VERCEL_TOKEN not set | Not authenticated for API calls | Export token or run vercel login |
For rate limit issues, see vercel-rate-limits.
What SKILL.md sets; muted values are Claude Code's defaults
30 skills in this plugin
/vercel-advanced-troubleshootingAdvanced debugging for hard-to-diagnose Vercel issues including cold starts, edge errors, and function tracing.
Use when standard troubleshooting fails, investigating intermittent failures,
or preparing evidence for Vercel support escalation.
Trigger with phrases like "vercel hard bug", "vercel mystery error",
"vercel intermittent failure", "difficult vercel issue", "vercel deep debug".
/vercel-architecture-variantsChoose and implement Vercel architecture blueprints for different scales and use cases.
Use when designing new Vercel projects, choosing between static, serverless, and edge architectures,
or planning how to structure a multi-project Vercel deployment.
Trigger with phrases like "vercel architecture", "vercel blueprint",
"how to structure vercel", "vercel monorepo", "vercel multi-project".
/vercel-ci-integrationConfigure Vercel CI/CD with GitHub Actions, preview deployments, and automated testing.
Use when setting up automated deployments, configuring preview bots,
or integrating Vercel into your CI pipeline.
Trigger with phrases like "vercel CI", "vercel GitHub Actions",
"vercel automated deploy", "CI vercel", "vercel pipeline".
/vercel-common-errorsDiagnose and fix common Vercel deployment and function errors.
Use when encountering Vercel errors, debugging failed deployments,
or troubleshooting serverless function issues.
Trigger with phrases like "vercel error", "fix vercel",
"vercel not working", "debug vercel", "vercel 500", "vercel build failed".
/vercel-cost-tuningOptimize Vercel costs through plan selection, function efficiency, and usage monitoring.
Use when analyzing Vercel billing, reducing function execution costs,
or implementing spend management and budget alerts.
Trigger with phrases like "vercel cost", "vercel billing",
"reduce vercel costs", "vercel pricing", "vercel expensive", "vercel budget".
/vercel-data-handlingImplement data handling, PII protection, and GDPR/CCPA compliance for Vercel deployments.
Use when handling sensitive data in serverless functions, implementing data redaction,
or ensuring privacy compliance on Vercel.
Trigger with phrases like "vercel data", "vercel PII",
"vercel GDPR", "vercel data retention", "vercel privacy", "vercel compliance".
npx claudepluginhub flight505/skill-forge --plugin vercel-packOther plugins' skills for the same job