Agent skill

Vercel Local Dev Loop

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Configure Vercel local development with vercel dev, environment variables, and hot reload.

MITAuto-check: notesBackend & APIs

Install Vercel Local Dev Loop

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-local-dev-loop -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace vercel-local-dev-loop --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/vercel-local-dev-loop .claude/skills/vercel-local-dev-loop && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
vercel-local-dev-loop
GitHub stars
2.8k
Token cost
~1.5k tokens
SKILL.md length
374 words
Files
4 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Configure Vercel local development with vercel dev, environment variables, and hot reload.

  • Works in 6 steps: Pull Environment Variables → Start Local Dev Server → Test Serverless Functions Locally → …
  • Setting up a development environment
  • SKILL.md covers Overview, Prerequisites, Instructions and .env File Hierarchy, plus 5 more sections
  • Calls vercel, curl and npx; needs API_SECRET

What it does

Vercel Local Dev Loop is an agent skill from jeremylongshore/tons-of-skills-marketplace. Configure Vercel local development with vercel dev, environment variables, and hot reload. Use when setting up a development environment, testing serverless functions locally, or establishing a fast iteration cycle with Vercel. Trigger with phrases like "vercel dev setup", "vercel local development", "vercel dev environment", "develop with vercel locally".

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/errors.md`, `references/examples.md` and `references/implementation.md`). Compatibility notes: Designed for Claude Code

It sits in Backend & APIs, covering Serverless and Secrets management. It works with Vercel and npm. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Setting up a development environment
  • Testing serverless functions locally
  • Establishing a fast iteration cycle with Vercel
  • With phrases like vercel dev setup

Example prompts

  • “vercel dev setup”
  • “vercel local development”
  • “vercel dev environment”
  • “/vercel-local-dev-loop”

Requirements

  • Node.js
  • A credential in API_SECRET
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(vercel:*), Bash(npm:*), Bash(npx:*), Grep

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Pull Environment Variables
  2. Start Local Dev Server
  3. Test Serverless Functions Locally
  4. Framework-Specific Dev Servers
  5. Local Environment Variable Management
  6. Testing with Vitest

What it can do on your machine

Read from SKILL.md and the folder at commit 23ea8d4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(vercel:*)
    • Bash(npm:*)
    • Bash(npx:*)
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • vercel
    • curl
    • npx
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • vercel.com
    • vitest.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • API_SECRET

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Vercel Local Dev Loop loads about 1.5k tokens when it runs, and up to ~2.1k if it reads all its reference files. Until then it costs about 95 tokens; SKILL.md has 374 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~95
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:44
    # Pull env vars from Vercel to local .env files
  • NoteMentions a .env fileSKILL.md:45
    vercel env pull .env.development.local
  • NoteMentions a .env fileSKILL.md:47
    # This creates .env.development.local with all Development-scoped vars:
  • NoteMentions a .env fileSKILL.md:76
    - Environment variables loaded from `.env*.local` files
  • NoteMentions a .env fileSKILL.md:130
    vercel env pull .env.development.local
  • NoteMentions a .env fileSKILL.md:168
    ## `.env` File Hierarchy
  • NoteMentions a .env fileSKILL.md:174
    | `.env` | All | Commit |
  • NoteMentions a .env fileSKILL.md:175
    | `.env.local` | All (local only) | Ignore |
  • NoteMentions a .env fileSKILL.md:176
    | `.env.development` | Development | Commit |
  • NoteMentions a .env fileSKILL.md:177
    | `.env.development.local` | Development (local only) | Ignore |

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit 23ea8d4, republished under its MIT licence (© jeremylongshore). 374 words, ~1,534 tokens.

Download SKILL.mdSave it as .claude/skills/vercel-local-dev-loop/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
vercel-local-dev-loop
description
Configure Vercel local development with vercel dev, environment variables, and hot reload. Use when setting up a development environment, testing serverless functions locally, or establishing a fast iteration cycle with Vercel. Trigger with phrases like "vercel dev setup", "vercel local development", "vercel dev environment", "develop with vercel locally".
allowed-tools
Read, Write, Edit, Bash(vercel:*), Bash(npm:*), Bash(npx:*), Grep
compatibility
Designed for Claude Code
version
1.18.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, vercel, development, testing, workflow

Vercel Local Dev Loop

Overview

Run Vercel serverless functions and API routes locally using vercel dev. Covers environment variable management, hot reload, local testing patterns, and framework-specific dev servers.

Prerequisites

  • Completed vercel-install-auth setup
  • Project linked via vercel link
  • Node.js 18+ with npm/pnpm

Instructions

Step 1: Pull Environment Variables
bash
# Pull env vars from Vercel to local .env files
vercel env pull .env.development.local

# This creates .env.development.local with all Development-scoped vars:
# VERCEL="1"
# VERCEL_ENV="development"
# DATABASE_URL="postgres://..."
# API_SECRET="sk-..."
Step 2: Start Local Dev Server
bash
# vercel dev starts a local server that emulates the Vercel platform
vercel dev

# Output:
# Vercel CLI 39.x.x — dev command
# > Ready on http://localhost:3000

# With a specific port
vercel dev --listen 8080

# With debug logging
vercel dev --debug

vercel dev provides:

  • Serverless function emulation at /api/* routes
  • Automatic TypeScript compilation
  • vercel.json rewrites, redirects, and headers applied locally
  • Environment variables loaded from .env*.local files
  • Framework detection (Next.js, Nuxt, SvelteKit, etc.)
Step 3: Test Serverless Functions Locally
bash
# Test your API route
curl http://localhost:3000/api/hello
# {"message":"Hello from Vercel Serverless Function!"}

# Test with POST body
curl -X POST http://localhost:3000/api/users \
  -H "Content-Type: application/json" \
  -d '{"name":"test","email":"test@example.com"}'

# Test with query parameters
curl "http://localhost:3000/api/search?q=vercel&limit=10"
Step 4: Framework-Specific Dev Servers

For frameworks with their own dev server, use those instead of vercel dev:

bash
# Next.js — built-in Vercel compatibility
npx next dev
# API routes at pages/api/* or app/api/* work identically

# Nuxt
npx nuxi dev

# SvelteKit
npm run dev

# Astro
npx astro dev

The framework dev servers handle API routes natively. Use vercel dev only for plain serverless function projects without a framework.

Step 5: Local Environment Variable Management
bash
# Add a new env var for development only
vercel env add MY_VAR development
# Prompts for value, stores encrypted on Vercel

# List all env vars
vercel env ls

# Remove an env var
vercel env rm MY_VAR development

# Pull updated vars after changes
vercel env pull .env.development.local
Step 6: Testing with Vitest
typescript
// api/__tests__/hello.test.ts
import { describe, it, expect, vi } from 'vitest';

// Mock the Vercel request/response
function createMockReq(overrides = {}) {
  return { method: 'GET', query: {}, body: null, ...overrides };
}

function createMockRes() {
  const res: any = {};
  res.status = vi.fn().mockReturnValue(res);
  res.json = vi.fn().mockReturnValue(res);
  res.send = vi.fn().mockReturnValue(res);
  return res;
}

describe('GET /api/hello', () => {
  it('returns 200 with message', async () => {
    const handler = (await import('../hello')).default;
    const req = createMockReq();
    const res = createMockRes();

    handler(req, res);

    expect(res.status).toHaveBeenCalledWith(200);
    expect(res.json).toHaveBeenCalledWith(
      expect.objectContaining({ message: expect.any(String) })
    );
  });
});

.env File Hierarchy

Vercel loads environment files in this order (later files override earlier):

FileEnvironmentGit
.envAllCommit
.env.localAll (local only)Ignore
.env.developmentDevelopmentCommit
.env.development.localDevelopment (local only)Ignore

Output

  • Local dev server running with serverless function emulation
  • Environment variables synced from Vercel to local .env files
  • Hot reload on file changes
  • Test suite for serverless function handlers
Show full SKILL.md (172 more words)Show less

Error Handling

ErrorCauseSolution
vercel dev hangs on startPort already in useKill the process on port 3000 or use --listen 8080
Error: No framework detectedMissing package.json or frameworkAdd a build framework or use plain functions in api/
Env var undefined locallyNot pulled from VercelRun vercel env pull .env.development.local
FUNCTION_INVOCATION_TIMEOUTFunction exceeds 10s locallyCheck for unresolved promises or infinite loops
TypeScript errors in api/Missing @vercel/node typesnpm install --save-dev @vercel/node

Examples

Reproduce a function issue locally without importing production secrets

Link the local project to the correct Vercel team, pull only Development-scoped variables into an ignored .env.development.local, and replace sensitive upstream endpoints with sandbox fixtures. Run vercel dev and the focused handler test, capturing only synthetic inputs and sanitized error output. If the issue cannot reproduce locally, promote the same commit to preview for diagnosis rather than copying production variables into the workstation.

Resources

Next Steps

Proceed to vercel-sdk-patterns for production-ready REST API integration patterns.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in skills/.curated/vercel-local-dev-loop of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/errors.md
  • references/examples.md
  • references/implementation.md

Open the folder on GitHubat commit 23ea8d4

Compare with similar skills

Vercel Local Dev Loop next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Vercel Local Dev Loop compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Vercel Local Dev Loop this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.5kAutomated safety check: NotesMIT
GCP Cloud Rundavila7/claude-code-templates32k8 repos~1.7kAutomated safety check: PassMIT
Deploy Verceljohnku2011/boilerplates-with-ai-skills240—~660Automated safety check: NotesMIT
Securing Serverless Functionsmukul975/Anthropic-Cybersecurity-Skills34k—~3.1kAutomated safety check: PassApache-2.0
Vercel Functionscurvenote/curvenote169—~4kAutomated safety check: NotesCustom licence
Upstash Redisgithub/awesome-copilot40k—~1.7kAutomated safety check: PassMIT

Similar skills

  • GCP Cloud Run

    davila7/claude-code-templates

    Specialized skill for building production-ready serverless applications on GCP.

    32k GitHub starsUsed in 8 repos~1.7k tokens
    Backend & APIsAuto-check passed
  • Deploy Vercel

    johnku2011/boilerplates-with-ai-skills

    A skill your agent uses when deploying or configuring this project on Vercel — env vars, build settings, serverless limits, and production checks for Next.js or Express.

    240 GitHub stars~660 tokensUpdated 1 mo ago
    Backend & APIsAuto-check: notes
  • Securing Serverless Functions

    mukul975/Anthropic-Cybersecurity-Skills

    Hardens serverless compute platforms (AWS Lambda, Azure Functions, Google Cloud Functions): least-privilege IAM roles, dependency vulnerability scanning, secrets management integration, input…

    34k GitHub stars~3.1k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Vercel Functions

    curvenote/curvenote

    Vercel Functions expert guidance — Serverless Functions, Edge Functions, Fluid Compute, streaming, Cron Jobs, and runtime configuration.

    169 GitHub stars~4k tokensUpdated 10 days ago
    Backend & APIsAuto-check: notes
  • Upstash Redis

    github/awesome-copilot

    Official

    Use Redis over HTTP from serverless and edge runtimes with @upstash/redis, and add rate limiting with @upstash/ratelimit.

    40k GitHub stars~1.7k tokensUpdated today
    Backend & APIsAuto-check passed
  • Deploy Fullstack Vercel

    vellum-ai/vellum-assistant

    Build and deploy a full-stack app (React frontend + Python/FastAPI backend) or a Vellum app to Vercel as a serverless demo with seeded data

    1.4k GitHub stars~2.8k tokensUpdated yesterday
    Backend & APIsAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Analyzing Text With NLP

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to perform natural language processing and text analysis using the nlp-text-analyzer plugin.

    2.8k GitHub starsUsed in 1 repo~819 tokens
    Auto-check passed
  • Building Neural Networks

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill allows AI assistant to construct and configure neural network architectures using the neural-network-builder plugin.

    2.8k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Detecting Data Anomalies

    jeremylongshore/tons-of-skills-marketplace

    Process identify anomalies and outliers in datasets using machine learning algorithms.

    2.8k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Explaining Machine Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill enables AI assistant to provide interpretability and explainability for machine learning models.

    2.8k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Optimizing Prompts

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill optimizes prompts for large language models (llms) to reduce token usage, lower costs, and improve performance.

    2.8k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed

Works with

Categories

Questions about Vercel Local Dev Loop

What does Vercel Local Dev Loop do?

Configure Vercel local development with vercel dev, environment variables, and hot reload. Vercel Local Dev Loop is an agent skill from jeremylongshore/tons-of-skills-marketplace. Configure Vercel local development with vercel dev, environment variables, and hot reload.

When should I use Vercel Local Dev Loop?

Vercel Local Dev Loop fits situations like: setting up a development environment; testing serverless functions locally; establishing a fast iteration cycle with Vercel; with phrases like vercel dev setup.

How do I install Vercel Local Dev Loop in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-local-dev-loop -a claude-code`. Or copy the skill folder (skills/.curated/vercel-local-dev-loop in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/vercel-local-dev-loop in your project. Claude Code loads it when a task matches its description.

How do I install Vercel Local Dev Loop in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-local-dev-loop -a codex`. Or copy the skill folder (skills/.curated/vercel-local-dev-loop in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/vercel-local-dev-loop in your project. Codex loads it when a task matches its description.

Can I use Vercel Local Dev Loop in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill vercel-local-dev-loop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vercel-local-dev-loop, .gemini/skills/vercel-local-dev-loop, .github/skills/vercel-local-dev-loop and .opencode/skills/vercel-local-dev-loop in your project.

What does Vercel Local Dev Loop need to run?

Going by SKILL.md and its folder, Vercel Local Dev Loop needs the command-line tools its instructions call (vercel, curl, npx and npm) and credentials named API_SECRET. Our summary lists: Node.js; A credential in API_SECRET. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(vercel:*), Bash(npm:*), Bash(npx:*), Grep. Compatibility (from SKILL.md): Designed for Claude Code.

Does Vercel Local Dev Loop access the network?

SKILL.md names 2 domains. As links in the text: vercel.com and vitest.dev. This is read from the text; nothing was executed.

Is Vercel Local Dev Loop safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Vercel Local Dev Loop use?

Vercel Local Dev Loop is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Vercel Local Dev Loop use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 564 tokens, read only when the agent opens those files.

What are the alternatives to Vercel Local Dev Loop?

Skills that share tags, products or a category with Vercel Local Dev Loop: GCP Cloud Run (davila7/claude-code-templates, 32k stars), Deploy Vercel (johnku2011/boilerplates-with-ai-skills, 240 stars), Securing Serverless Functions (mukul975/Anthropic-Cybersecurity-Skills, 34k stars) and Vercel Functions (curvenote/curvenote, 169 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Vercel Local Dev Loop?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,821 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 8, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.