/bootstrap
Project bootstrapping orchestrator for repos that depend on Vercel-linked resources (databases, auth, and managed integrations). Use when setting up or repairing a repository so linking, environment provisioning, env pulls, and first-run db/dev commands happen in the correct
Claude Code
$ npx -y skills add vercel/vercel-plugin --skill bootstrap --agent claude-code
Codex
$ npx skills add vercel/vercel-plugin --skill bootstrap -a codex -y
Cursor
$ npx skills add vercel/vercel-plugin --skill bootstrap -a cursor -y
Gemini CLI
$ npx skills add vercel/vercel-plugin --skill bootstrap -a gemini-cli -y
GitHub Copilot
$ npx skills add vercel/vercel-plugin --skill bootstrap -a github-copilot -y
OpenCode
$ npx skills add vercel/vercel-plugin --skill bootstrap -a opencode -y
Windsurf
$ npx skills add vercel/vercel-plugin --skill bootstrap -a windsurf -y
SKILL.md
bootstrap.SKILL.mdname: bootstrap
description: Project bootstrapping orchestrator for repos that depend on Vercel-linked resources (databases, auth, and managed integrations). Use when setting up or repairing a repository so linking, environment provisioning, env pulls, and first-run db/dev commands happen in the correct safe order.
metadata:
priority: 8
docs:
- "https://vercel.com/docs/getting-started-with-vercel"
- "https://nextjs.org/docs/app/getting-started/installation"
sitemap: "https://vercel.com/sitemap.xml"
pathPatterns:
- '.env.example'
- '.env.sample'
- '.env.template'
- 'README*'
- 'docs/**/setup*'
- 'package.json'
- 'drizzle.config.*'
- 'prisma/schema.prisma'
- 'auth.*'
- 'src/**/auth.*'
bashPatterns:
- '\\bcp\\s+\\.env\\.(?:example|sample|template)\\s+\\.env\\.local\\b'
- '\\b(?:npm|pnpm|bun|yarn)\\s+run\\s+db:(?:push|seed|migrate|generate)\\b'
- '\\b(?:npm|pnpm|bun|yarn)\\s+run\\s+dev\\b'
- '\\bvercel\\s+link\\b'
- '\\bvercel\\s+integration\\s+(?:add|install)\\b'
- '\\bvercel\\s+env\\s+pull\\b'
importPatterns:
- '@neondatabase/serverless'
- 'drizzle-orm'
- '@upstash/redis'
- '@vercel/blob'
- '@vercel/edge-config'
- '@vercel/global-config'
- 'next-auth'
- '@auth/core'
- 'better-auth'
chainTo:
-
pattern: '@vercel/(postgres|kv)|\b(KV_REST_API_URL|POSTGRES_URL)\b'
targetSkill: vercel-storage
message: '@vercel/postgres and @vercel/kv are sunset — loading Vercel Storage guidance for Neon and Upstash migration.'
-
pattern: 'from\s+[''""](next-auth|@auth/core|@clerk/nextjs|better-auth)[''""]'
targetSkill: auth
message: 'Auth library detected during bootstrap — loading Auth guidance for Clerk Marketplace setup and middleware patterns.'
-
pattern: 'OPENAI_API_KEY|ANTHROPIC_API_KEY|AI_GATEWAY'
targetSkill: env-vars
message: 'AI provider env vars detected — loading Environment Variables guidance for OIDC-based auth via vercel env pull.'
skipIfFileContains: 'VERCEL_OIDC|vercel env pull'
retrieval:
aliases:
- project setup
- repo init
- getting started
- scaffold
intents:
- set up project
- initialize repo
- link vercel project
- pull env vars
entities:
- vercel link
- env pull
- database setup
- first runProject Bootstrap Orchestrator
Execute bootstrap in strict order. Do not run migrations or development server until project linking and environment verification are complete.
Rules
- Do not run `db:push`, `db:migrate`, `db:seed`, or `dev` until Vercel linking is complete and env keys are verified.
- Prefer Vercel-managed provisioning (`vercel integration ...`) for shared resources.
- Use provider CLIs only as fallback when Vercel integration flow is unavailable.
- Never echo secret values in terminal output, logs, or summaries.
Preflight
1. Confirm Vercel CLI is installed and authenticated.
vercel --version
vercel whoami
2. Confirm repo linkage by checking `.vercel/project.json`. 3. If not linked, inspect available teams/projects before asking the user to choose:
vercel teams ls
vercel projects ls --scope <team>
vercel link --yes --scope <team> --project <project>
4. Find the env template in priority order: `.env.example`, `.env.sample`, `.env.template`. 5. Create local env file if missing:
cp .env.example .env.local
Resource Setup: Postgres
Prisma ORM projects
If the repo has `prisma/schema.prisma`, provision Prisma Postgres with these steps instead of the preferred path below:
vercel integration guide prisma
vercel integration add prisma --scope <team>
It sets `DATABASE_URL` to the direct connection string and `DATABASE_URL_POOLED` to the pooled one. Then verify and pull env vars as in step 3 of the preferred path below. For production traffic from Vercel Functions, read `DATABASE_URL_POOLED` and fall back to `DATABASE_URL`. Keep `DATABASE_URL` for Prisma CLI commands such as migrations, the Prisma Postgres serverless driver (`@prisma/adapter-ppg` or `@prisma/ppg`), session-dependent work such as `LISTEN`/`NOTIFY`, and queries that run longer than 10 minutes. If the project has no `DATABASE_URL_POOLED`, its database was created before October 29, 2026: add the variable as described in the `vercel-storage` skill.
Preferred path (Vercel-managed Neon)
1. Read integration setup guidance:
vercel integration guide neon
2. Add Neon integration to the Vercel scope:
vercel integration add neon --scope <team>
3. Verify expected environment variable names exist in Vercel and pull locally:
vercel env ls
vercel env pull .env.local --yes
Fallback path 1 (Dashboard)
1. Provision Neon through the Vercel dashboard integration UI. 2. Re-run `vercel env pull .env.local --yes`.
Fallback path 2 (Neon CLI)
Use Neon CLI only when Vercel-managed provisioning is unavailable. After creating resources, add required env vars in Vercel and pull again.
AUTH_SECRET Generation
Generate a high-entropy secret without printing it, then store it in Vercel and refresh local env:
AUTH_SECRET="$(node -e "console.log(require('node:crypto').randomBytes(32).toString('base64url'))")"
printf "%s" "$AUTH_SECRET" | vercel env add AUTH_SECRET production,preview
printf "%s" "$AUTH_SECRET" | vercel env add AUTH_SECRET development # separate command: development-only adds default to Config
unset AUTH_SECRET
vercel env pull .env.local --yesEnv Verification
Compare required keys from template file against `.env.local` keys (names only, never values):
template_file=""
for candidate in .env.example .env.sample .env.template; do
if [ -f "$candidate" ]; then
template_file="$candidate"
break
fi
done
comm -23 \
<(grep -E '^[A-Za-z_][A-Za-z0-9_]*=' "$template_file" | cut -d '=' -f 1 | sort -u) \
<(grep -E '^[A-Za-z_][A-Za-z0-9_]*=' .env.local | cutRead more
name: bootstrap
description: Project bootstrapping orchestrator for repos that depend on Vercel-linked resources (databases, auth, and managed integrations). Use when setting up or repairing a repository so linking, environment provisioning, env pulls, and first-run db/dev commands happen in the correct safe order.
metadata:
priority: 8
docs:
- "https://vercel.com/docs/getting-started-with-vercel"
- "https://nextjs.org/docs/app/getting-started/installation"
sitemap: "https://vercel.com/sitemap.xml"
pathPatterns:
- '.env.example'
- '.env.sample'
- '.env.template'
- 'README*'
- 'docs/**/setup*'
- 'package.json'
- 'drizzle.config.*'
- 'prisma/schema.prisma'
- 'auth.*'
- 'src/**/auth.*'
bashPatterns:
- '\\bcp\\s+\\.env\\.(?:example|sample|template)\\s+\\.env\\.local\\b'
- '\\b(?:npm|pnpm|bun|yarn)\\s+run\\s+db:(?:push|seed|migrate|generate)\\b'
- '\\b(?:npm|pnpm|bun|yarn)\\s+run\\s+dev\\b'
- '\\bvercel\\s+link\\b'
- '\\bvercel\\s+integration\\s+(?:add|install)\\b'
- '\\bvercel\\s+env\\s+pull\\b'
importPatterns:
- '@neondatabase/serverless'
- 'drizzle-orm'
- '@upstash/redis'
- '@vercel/blob'
- '@vercel/edge-config'
- '@vercel/global-config'
- 'next-auth'
- '@auth/core'
- 'better-auth'
chainTo:
-
pattern: '@vercel/(postgres|kv)|\b(KV_REST_API_URL|POSTGRES_URL)\b'
targetSkill: vercel-storage
message: '@vercel/postgres and @vercel/kv are sunset — loading Vercel Storage guidance for Neon and Upstash migration.'
-
pattern: 'from\s+[''""](next-auth|@auth/core|@clerk/nextjs|better-auth)[''""]'
targetSkill: auth
message: 'Auth library detected during bootstrap — loading Auth guidance for Clerk Marketplace setup and middleware patterns.'
-
pattern: 'OPENAI_API_KEY|ANTHROPIC_API_KEY|AI_GATEWAY'
targetSkill: env-vars
message: 'AI provider env vars detected — loading Environment Variables guidance for OIDC-based auth via vercel env pull.'
skipIfFileContains: 'VERCEL_OIDC|vercel env pull'
retrieval:
aliases:
- project setup
- repo init
- getting started
- scaffold
intents:
- set up project
- initialize repo
- link vercel project
- pull env vars
entities:
- vercel link
- env pull
- database setup
- first runProject Bootstrap Orchestrator
Execute bootstrap in strict order. Do not run migrations or development server until project linking and environment verification are complete.
Rules
- Do not run `db:push`, `db:migrate`, `db:seed`, or `dev` until Vercel linking is complete and env keys are verified.
- Prefer Vercel-managed provisioning (`vercel integration ...`) for shared resources.
- Use provider CLIs only as fallback when Vercel integration flow is unavailable.
- Never echo secret values in terminal output, logs, or summaries.
Preflight
1. Confirm Vercel CLI is installed and authenticated.
vercel --version vercel whoami
2. Confirm repo linkage by checking `.vercel/project.json`. 3. If not linked, inspect available teams/projects before asking the user to choose:
vercel teams ls vercel projects ls --scope <team> vercel link --yes --scope <team> --project <project>
4. Find the env template in priority order: `.env.example`, `.env.sample`, `.env.template`. 5. Create local env file if missing:
cp .env.example .env.local
Resource Setup: Postgres
Prisma ORM projects
If the repo has `prisma/schema.prisma`, provision Prisma Postgres with these steps instead of the preferred path below:
vercel integration guide prisma vercel integration add prisma --scope <team>
It sets `DATABASE_URL` to the direct connection string and `DATABASE_URL_POOLED` to the pooled one. Then verify and pull env vars as in step 3 of the preferred path below. For production traffic from Vercel Functions, read `DATABASE_URL_POOLED` and fall back to `DATABASE_URL`. Keep `DATABASE_URL` for Prisma CLI commands such as migrations, the Prisma Postgres serverless driver (`@prisma/adapter-ppg` or `@prisma/ppg`), session-dependent work such as `LISTEN`/`NOTIFY`, and queries that run longer than 10 minutes. If the project has no `DATABASE_URL_POOLED`, its database was created before October 29, 2026: add the variable as described in the `vercel-storage` skill.
Preferred path (Vercel-managed Neon)
1. Read integration setup guidance:
vercel integration guide neon
2. Add Neon integration to the Vercel scope:
vercel integration add neon --scope <team>
3. Verify expected environment variable names exist in Vercel and pull locally:
vercel env ls vercel env pull .env.local --yes
Fallback path 1 (Dashboard)
1. Provision Neon through the Vercel dashboard integration UI. 2. Re-run `vercel env pull .env.local --yes`.
Fallback path 2 (Neon CLI)
Use Neon CLI only when Vercel-managed provisioning is unavailable. After creating resources, add required env vars in Vercel and pull again.
AUTH_SECRET Generation
Generate a high-entropy secret without printing it, then store it in Vercel and refresh local env:
AUTH_SECRET="$(node -e "console.log(require('node:crypto').randomBytes(32).toString('base64url'))")"
printf "%s" "$AUTH_SECRET" | vercel env add AUTH_SECRET production,preview
printf "%s" "$AUTH_SECRET" | vercel env add AUTH_SECRET development # separate command: development-only adds default to Config
unset AUTH_SECRET
vercel env pull .env.local --yesEnv Verification
Compare required keys from template file against `.env.local` keys (names only, never values):
template_file=""
for candidate in .env.example .env.sample .env.template; do
if [ -f "$candidate" ]; then
template_file="$candidate"
break
fi
done
comm -23 \
<(grep -E '^[A-Za-z_][A-Za-z0-9_]*=' "$template_file" | cut -d '=' -f 1 | sort -u) \
<(grep -E '^[A-Za-z_][A-Za-z0-9_]*=' .env.local | cutComprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel expert.
Other skills on vercel.
More skills from other plugins.
container
Use when running, building, or managing Linux containers on macOS, or when a task involves Docker, docker compose, Lima, Colima,…
frontend-forge-fe-oper…
Operate FrontendExtension (FE) resources in frontend-forge: create, update, rebuild, inspect package artifacts, download…
agent-advisor
Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one…
agents-sdk
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
Questions about bootstrap.
- Which coding agents can use bootstrap?
- bootstrap installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

