agentleFS
Rikinshah787Rikinshah787/agent-skills-production-skills/skills/vercel/SKILL.md

vercel

Skill2 starsChanged 4 months agoMITView on GitHub

Use to deploy frontend/full-stack apps (Next.js, Vite, etc.) with Git or the CLI, manage env vars, and control preview vs production deploys.

  • Reads credentials
  • Installs packages

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use slack and github.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    slack

    Emulated Slack API for local development and testing. Use when the user needs to interact with Slack API endpoints locally, test Slack integrations, emulate channels/messages/users/views, set up Slack OAuth flows, test incoming webhooks, or work with the Slack Web API without hitting the real Slack API. Triggers include "Slack API", "emulate Slack", "mock Slack", "test Slack OAuth", "Slack bot", "Slack views", "incoming webhook", "local Slack", or any task requiring a local Slack API.

    Also in 3 projects that use this

  • NVIDIASkill

    github

    Interact with GitHub using the gh CLI restricted to REST API only (no GraphQL). Use when the user wants to work with GitHub issues, pull requests, repos, releases, or Actions — especially in sandboxed environments where the GraphQL endpoint may be blocked. Trigger keywords - github, gh, pull request, PR, github issue, github actions, workflow, release, gh api.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use when: deploying Next.js, Vite, Astro, SvelteKit, or static sites.

    line 20
  2. Distinctive:

    Use when: you want a preview URL per pull request and instant rollbacks.

    line 21
  3. Very specific:

    Don't use for: always-on stateful servers or long-running background workers (use Railway/Render/Fly).

    line 22
  4. Distinctive:

    Import it at vercel.com → every push to a branch gets a preview.

    line 28

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Vercel — Skillship

The fastest way to ship frontend and full-stack apps. Connect a Git repo for push-to-deploy with automatic preview URLs, or deploy straight from the CLI.

🧭 When to use this skill

  • Use when: deploying Next.js, Vite, Astro, SvelteKit, or static sites.
  • Use when: you want a preview URL per pull request and instant rollbacks.
  • Don't use for: always-on stateful servers or long-running background workers (use Railway/Render/Fly).

⚡ Quickstart

Option A — Git (recommended)

  1. Push your repo to GitHub/GitLab/Bitbucket.
  2. Import it at vercel.com → every push to a branch gets a preview; the production branch gets production.

Option B — CLI

npm i -g vercel
vercel            # first run links/creates the project (first deploy is always production)
vercel            # subsequent runs create PREVIEW deployments
vercel --prod     # promote to production

Configure env vars

vercel env add MY_SECRET production      # add a secret to the production environment
vercel env pull .env.local               # pull env vars locally for dev
# NEXT_PUBLIC_* vars are exposed to the browser; everything else stays server-side

🧩 Common recipes

Recipe: Deploy from CI and capture the URL

url=$(vercel deploy --prod --token "$VERCEL_TOKEN")   # stdout is always the deployment URL
echo "Deployed to $url"

Recipe: Prebuild then deploy (skip remote build)

vercel build
vercel deploy --prebuilt --archive=tgz   # archive avoids file-count limits on big projects

Recipe: Choose function regions

vercel --regions sfo1

Recipe: Minimal vercel.json

{
  "rewrites": [{ "source": "/api/:path*", "destination": "/api/:path*" }],
  "headers": [{ "source": "/(.*)", "headers": [{ "key": "X-Frame-Options", "value": "DENY" }] }]
}

🚀 Ship to production

  • All secrets set in Project → Settings → Environment Variables (Production scope), not committed.
  • Only NEXT_PUBLIC_* (or framework equivalent) vars are exposed client-side.
  • Production branch configured; preview deploys used for PR review.
  • Custom domain added and DNS verified; --prod promotes the intended build.
  • Build works without --prebuilt (system env vars are missing at build time with --prebuilt).
  • Know your plan's function timeout/size limits; move heavy/long jobs off Vercel functions.

🔐 Security & secrets

  • Store secrets as Environment Variables scoped to the right environment; never hardcode in the repo.
  • CLI/CI tokens (VERCEL_TOKEN) are account-wide — keep them in CI secret storage, rotate if leaked.
  • Server-only secrets must NOT use the NEXT_PUBLIC_ prefix, or they leak into the client bundle.

🐛 Common errors & fixes

SymptomLikely causeFix
Env var undefined in the browserMissing NEXT_PUBLIC_ prefixPrefix client-exposed vars; re-deploy
Env var undefined at build with --prebuiltSystem/build env vars absent in prebuilt flowUse Git deploys or omit --prebuilt
Too many files / upload limitHuge projectvercel deploy --archive=tgz
Function timeoutLong-running work in a serverless functionOffload to a queue/worker or a different host
First deploy went to production unexpectedlyFirst deploy of a new project is always productionUse previews for later changes; --prod to promote

📚 Sources

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.