Deploy & Ops
Use when a deploy fails but the local build passes, or a deploy succeeds and the deployed site is wrong. Covers a build that is green locally and red in CI, a type error only the deploy sees, a missing or wrongly scoped environment variable, a file that was never committed, a lockfile or package-manager version mismatch, and a stale build cache. If a deploy log needs reading, use this skill.
1 file
Description
Use when a deploy fails but the local build passes, or a deploy succeeds and the deployed site is wrong. Covers a build that is green locally and red in CI, a type error only the deploy sees, a missing or wrongly scoped environment variable, a file that was never committed, a lockfile or package-manager version mismatch, and a stale build cache. If a deploy log needs reading, use this skill.
A red deploy on Vercel, a build that works with pnpm build locally but fails in CI, or production serving an older commit than you pushed.
Read the build log top to bottom. The first error is the real one; later errors are usually cascades.
Reproduce CI conditions locally: CI=1 pnpm install --frozen-lockfile. This surfaces lockfile drift and blocked dependency build scripts that a normal pnpm install hides.
Reproduce the type gate exactly as the deploy runs it. If the project gates on tsc --noEmit or the native preview, run that same command, not just next build.
Verify the committed tree, not the working tree. Agents leave unstaged files; a commit that imports an unstaged module passes locally and fails CI. Check with a temp worktree of HEAD:
git worktree add /tmp/verify HEAD && cd /tmp/verify && pnpm install && pnpm build
ERR_PNPM_IGNORED_BUILDS. The approval list is allowBuilds: in pnpm-workspace.yaml. The pnpm 10 onlyBuiltDependencies and pnpm 9 package.json#pnpm keys are silently ignored by pnpm 11..env.local but was never added to the Vercel project. Server code that reads it at build time fails the build; code that reads it at request time fails at runtime..next produce ENOENT on build manifest temp files. Never run two builds in the same checkout at once.next build succeeding does not mean the type gate passes. If the deploy runs a separate typecheck, an untyped file can still break it.git rev-parse origin/main.Added 2026-07-01. Back to the Skill Library.

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.