vercel-deploy-check
Skill3 starsChanged 4 months agoMITView on GitHub
Pre-deploy gate and post-deploy verification for Vercel — env vars set, build passes locally, no secrets shipped to the client, then live status, key routes, and console errors checked after. Use when the user says "deploy this", "is it safe to ship", "push to production", "the deploy broke", or "check the live site". Don't use for scanning the repo for leaked keys in git history — use env-secrets-hygiene.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- UreckChan/Skillstheir own version, first seen Jul 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- UreckChan/Skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository74 other files it gives its agents.
- agent-eval-harnessSkill
- context-budget-managerSkill
- incident-rollbackSkill
- memory-hygieneSkill
- model-cost-optimizerSkill
- prompt-debuggerSkill
- skill-author-coachSkill
- third-party-skill-vetterSkill
- api-endpoint-testerSkill
- bug-triage-protocolSkill
- changelog-release-notesSkill
- docs-readme-writerSkill
- env-secrets-hygieneSkill
- github-pr-reviewSkill
- git-ship-flowSkill
- lovable-brief-writerSkill
- supabase-migration-writerSkill
- cold-outreach-sequencerSkill
- competitor-pricing-scanSkill
- contract-redline-scanSkill
- customer-support-inboxSkill
- invoice-runnerSkill
- kpi-dashboard-weeklySkill
- lead-research-dossierSkill
- payment-reconciliationSkill
- pipeline-trackerSkill
- proposal-builderSkill
- stripe-payment-linkSkill
- testimonial-harvesterSkill
- weekly-revenue-reportSkill
- brand-voice-guardianSkill
- case-study-builderSkill
- content-repurposerSkill
- deep-research-briefSkill
- email-nurture-sequenceSkill
- landing-page-copywriterSkill
- linkedin-content-packSkill
- newsletter-assemblerSkill
- seo-blog-writerSkill
- social-listening-reportSkill
- x-thread-builderSkill
- youtube-script-writerSkill
- budget-guardrailsSkill
- ceo-operating-doctrineSkill
- delegation-protocolSkill
- editor-personaSkill
- heartbeat-standupSkill
- hiring-briefSkill
- ops-agent-personaSkill
- researcher-personaSkill
- sales-agent-personaSkill
- support-agent-personaSkill
- weekly-retroSkill
- writer-personaSkill
- calendar-conciergeSkill
- decision-journalSkill
- email-triageSkill
- file-organizerSkill
- habit-trackerSkill
- inbox-zero-sprintSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Before any production deploy, especially the first one for a project.
- Distinctive: line 20
After a deploy, to verify the live site instead of assuming.
- Distinctive: line 21
When a deploy "succeeded" but the site is broken (white screen, 500s, missing env).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vercel Deploy Check
The gate between "works on my machine" and "live for real users." Runs a fixed pre-flight (build, env, client-bundle secrets) before anything ships, and a fixed post-flight (status codes, key routes, console errors) after — because a deploy isn't done when Vercel says "Ready", it's done when the pages actually work.
When to Use
- Before any production deploy, especially the first one for a project.
- After a deploy, to verify the live site instead of assuming.
- When a deploy "succeeded" but the site is broken (white screen, 500s, missing env).
- Not for: auditing git history for leaked keys — use
env-secrets-hygiene. Not for deep API testing — useapi-endpoint-tester.
Quick Reference
| Action | Command / Call |
| Local prod build | npm run build (must exit 0 — this is the gate) |
| List env vars needed | grep -rhoE "process\.env\.[A-Z0-9_]+" src/ app/ lib/ 2>/dev/null | sort -u |
| List env vars set on Vercel | vercel env ls |
| Secrets in client bundle? | grep -rlE "(sk_live|sk_test|service_role|-----BEGIN)" .next/static/ 2>/dev/null (any hit = stop) |
| Deploy to preview | vercel (safe default — never straight to prod) |
| Promote to production | vercel --prod (gate behind confirm) |
| Check a live route | curl -s -o /dev/null -w "%{http_code} %{time_total}s" https://site.com/route |
| Instant rollback | vercel rollback (or Promote a previous deployment in the dashboard) |
Procedure
Pre-deploy
- Precheck —
command -v vercel node npm;vercel whoamiconfirms auth.git statusclean and pushed (deploys should be reproducible from a commit). - Build locally —
npm run build. Exit code 0 or stop; a build that fails locally fails on Vercel, just slower. Fix errors here, not in the deploy loop. - Env parity — diff the vars the code reads (grep in table) against
vercel env lsfor the target environment (Production vs Preview are separate!). Every missing var gets added:vercel env add NAME production. RememberNEXT_PUBLIC_*/VITE_*vars are baked in at build time — changing them later requires a redeploy. - Client-secret scan — after the local build, run the bundle grep from the table. Only publishable/anon keys belong in client code;
service_role,sk_live, private keys never. Any hit: stop, move the usage server-side (API route/server component), rebuild, rescan. If the key was ever committed, runenv-secrets-hygiene. - Preview first —
vercel→ preview URL. Click through the core flow once on preview. Success: the thing the app exists to do works there. - Confirm, then production — production deploys are user-facing; show the user what's shipping (branch, commit, env changes) and get an explicit yes before
vercel --prod.
Post-deploy
- Status sweep — curl the key routes (home, main app page, one API route, auth page): expect 200s (or intended redirects), and note times; >3s on a simple page is a finding.
- Browser check — open the prod URL, open devtools console: zero red errors is the bar. Test the core flow once as a real user, logged in and logged out.
- Deliver — report via the template. If anything fails:
vercel rollbackrestores the previous deployment in seconds — roll back first, debug second (bug-triage-protocol).
Output Template
## Deploy Check — <project> @ <commit>
Pre-flight
Build: ✅ exit 0 Env parity: ✅ (added: STRIPE_SECRET_KEY)
Client bundle secrets: ✅ none Preview flow: ✅ <what was tested>
Production: ✅ deployed <url> (confirmed by user)
Post-flight
/ → 200 0.4s
/dashboard → 200 0.9s
/api/health → 200 0.2s
Console errors: 0
Core flow live: ✅ <flow> works logged-in and logged-out
Rollback if needed: vercel rollbackPitfalls
- "Ready" but white screen — build succeeded, runtime env var missing (works locally via
.env.local). Recovery: check Vercel runtime logs forundefinedenv reads,vercel env addthe missing var to Production, redeploy; then add that var to the parity list permanently. - Env var set in Preview, not Production — preview works, prod breaks. Recovery:
vercel env lsand read the environment column, not just the name; mirror deliberately. - Secret in the client bundle — a server key referenced in a client component ships to every visitor. Recovery: treat as leaked — rotate the key now (
env-secrets-hygiene), move usage server-side, rebuild, rescan, redeploy. NEXT_PUBLIC_var changed but site unchanged — build-time vars don't update on edit. Recovery: trigger a fresh deploy after changing any public var.- Deploying uncommitted local state — prod runs code that exists nowhere in git. Recovery: always deploy from a clean, pushed commit; if it already happened, commit the working tree immediately so prod is reproducible.
Verification
- Local
npm run buildexited 0 before any deploy - Env vars code needs ⊆ env vars set for Production (grep vs
vercel env ls) - Client-bundle secret grep came back empty
- Preview verified before production; user explicitly confirmed the prod deploy
- All key routes return expected status codes on the live URL
- Browser console clean on the live core flow
- Rollback command included in the report
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

