AgentSkillsCN

vercel-debug

使用Vercel CLI调查Vercel部署错误。当用户分享Vercel部署错误、构建失败或需要调试的部署URL时使用。

SKILL.md
--- frontmatter
name: vercel-debug
description: Investigate Vercel deployment errors using Vercel CLI. Use when user shares a Vercel deployment error, build failure, or deployment URL that needs debugging.

Vercel Deployment Debugging

Workflow

1. Check authentication

bash
vercel whoami

If error "No credentials found", prompt user to run vercel login in their terminal (interactive).

2. List recent deployments

bash
vercel list <project-name> --scope <team-name>

Find the failing deployment URL (status: Error or Building).

3. Get build logs

bash
vercel inspect <deployment-url> --logs --scope <team-name>

Add --wait to wait for in-progress builds:

bash
vercel inspect <deployment-url> --logs --scope <team-name> --wait

4. Common errors

ErrorCauseFix
Mixed Routing Propertiesroutes and rewrites mixed in vercel.jsonUse only rewrites (new format)
Cannot find modulePackage not built before dependentAdd to build command or use turbo
Build Command > 256 charsCommand too longUse pnpm build with turbo/nx

5. Get deployment info (without logs)

bash
vercel inspect <deployment-url> --scope <team-name>