Official agent skill

Flags SDK

by vercel in vercel/vercel-plugin

Set up and use feature flags and A/B tests with the Flags SDK (flags npm package) and Vercel Flags.

OfficialCustom licenceAuto-check: notesMarketing & SEO

Install Flags SDK

skills CLI
$ npx skills add vercel/vercel-plugin --skill flags-sdk -a claude-code

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

GitHub CLI
$ gh skill install vercel/vercel-plugin flags-sdk --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/vercel/vercel-plugin.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/flags-sdk .claude/skills/flags-sdk && 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
flags-sdk
GitHub stars
301
Token cost
~6.9k tokens
SKILL.md length
2,390 words
Files
7 (incl. references)
Skills in repo
38
Repo updated
First seen
Licence
Custom licence

At a glance

Set up and use feature flags and A/B tests with the Flags SDK (flags npm package) and Vercel Flags.

  • Works in 6 steps: Install packages (if not already in… → Link the project to Vercel (required for… → Pull environment variables: If… → …
  • Configuring the SDK
  • SKILL.md covers Core concepts, Set up the SDK, Pull environment variables and Create a flag, plus 10 more sections
  • Calls vercel, pnpm and npm; needs FLAGS_SECRET and VERCEL_OIDC_TOKEN

What it does

Flags SDK is an agent skill from vercel/vercel-plugin, published by the product's own GitHub organization. Set up and use feature flags and A/B tests with the Flags SDK (flags npm package) and Vercel Flags. Use when installing or configuring the SDK, adding a new or existing flag, wiring vercelAdapter (OIDC or SDK keys), declaring flags with flag(), using the vercel flags CLI (create, inspect, list, enable, disable, set, update, split, rollout, rules, segments, use-targeting, evaluations, versions, open, archive, unarchive, rm, sdk-keys, override, prepare), setting up providers/adapters (Vercel, Statsig, LaunchDarkly…

Its SKILL.md is about 6.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `overlay.yaml`, `references/api.md` and `references/nextjs.md`).

It sits in Marketing & SEO, covering A/B testing and OAuth and OpenID Connect. It works with Vercel, Next.js, SvelteKit and npm. The repository describes itself as: Comprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel…

When your agent uses it

  • Configuring the SDK
  • Wiring vercelAdapter (OIDC
  • Declaring flags with flag()
  • Using the vercel flags CLI (create

Example prompts

  • “/flags-sdk”

Requirements

  • Node.js
  • A credential in FLAGS_SECRET
  • A credential in VERCEL_OIDC_TOKEN

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Install packages (if not already in package.json)
  2. Link the project to Vercel (required for vercel env pull and local OIDC token refresh)
  3. Pull environment variables: If .env.local lacks VERCEL_OIDC_TOKEN=, follow Pull environment variables.
  4. Set up the Vercel Toolbar (if not already present)
  5. Ensure flags.ts exists: If missing, create flags.ts (or lib/flags.ts / src/flags.ts to match the project) with export {} so TypeScript…
  6. Set up Flags Explorer (if not already present): Create app/.well-known/vercel/flags/route.ts — see Flags Explorer setup. Do this only…

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • vercel
    • pnpm
    • npm
    • yarn
    • bun
    • npx

    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
    • flags-sdk.dev
    • github.com

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

  • Credentials

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

    • FLAGS_SECRET
    • VERCEL_OIDC_TOKEN

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

Context cost

Flags SDK loads about 6.9k tokens when it runs, and up to ~21k if it reads all its reference files. Until then it costs about 250 tokens; SKILL.md has 2,390 words of instructions outside code blocks.

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

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:124
    -sdk) (including `vercel env pull` when `.env.local` is missing). When they ask to create or add a flag, follow [Create
  • NoteMentions a .env fileSKILL.md:165
    yet, or when Toolbar / Flags Explorer / `.env.local` are missing. Skip any step that is already done.
  • NoteMentions a .env fileSKILL.md:174
    - Does `.env.local` contain `VERCEL_OIDC_TOKEN=` (or a `FLAGS=` SDK key)? → Env vars already pulled, skip step 3
  • NoteMentions a .env fileSKILL.md:191
    3. **Pull environment variables**: If `.env.local` lacks `VERCEL_OIDC_TOKEN=`, follow [Pull environment variables](#pull
  • NoteMentions a .env fileSKILL.md:205
    ` writes the Development credentials to `.env.local`: the Vercel OIDC token that `vercelAdapter` uses locally (deploymen
  • NoteMentions a .env fileSKILL.md:207
    - `.env.local` lacks `VERCEL_OIDC_TOKEN=` (or a `FLAGS=` SDK key)
  • NoteMentions a .env fileSKILL.md:219
    he-sdk) first if packages, Vercel link, `.env.local`, Toolbar, `flags.ts`, or Flags Explorer are missing. Skip steps tha
  • NoteMentions a .env fileSKILL.md:220
    - Does `.env.local` contain `VERCEL_OIDC_TOKEN=`? → Env vars already pulled; see [Pull environment variables](#pull-envi
  • NoteMentions a .env fileSKILL.md:260
    3. **Pull environment variables**: If `.env.local` lacks `VERCEL_OIDC_TOKEN=`, follow [Pull environment variables](#pull
  • NoteMentions a .env fileSKILL.md:280
    K packages, Toolbar, Flags Explorer, or `.env.local`. For a CLI-only request, skip app setup and code changes. Target th

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 2,390 words (~6,858 tokens).

“The Flags SDK (flags npm package) is a feature flags toolkit for Next.js and SvelteKit. It turns each feature flag into a callable function, works with any flag provider via adapters, and keeps pages static using the precompute pattern. Vercel…”

— opening of SKILL.md by vercel, Custom licence
name
flags-sdk
summary
Flags SDK guidance — declare flags with flag(), connect provider adapters, manage Vercel Flags via the vercel flags CLI, precompute static variants, and set…
metadata.priority
6
metadata.docs
https://vercel.com/docs/flags, https://flags-sdk.dev
metadata.sitemap
https://vercel.com/sitemap.xml
metadata.pathPatterns
flags.ts, flags.tsx, lib/flags.ts, src/flags.ts, lib/flags/**, src/flags/**, .well-known/vercel/flags/**
metadata.importPatterns
flags/next, flags/sveltekit, flags/react, flags, @flags-sdk/*, @vercel/flags
metadata.bashPatterns
\bvercel\s+flags\b, \bvc\s+flags\b, \bnpm\s+(install|i|add)\s+[^\n]*\bflags\b, \bpnpm\s+(install|i|add)\s+[^\n]*\bflags\b…
retrieval.aliases
feature flags, feature toggles, vercel flags, flags sdk, a/b testing
retrieval.intents
add a feature flag, run an a/b test, gate a feature, roll out gradually, manage flags from cli
retrieval.entities
Flags SDK, Vercel Flags, Flags Explorer, vercelAdapter, precompute, FLAGS_SECRET

Read the full SKILL.md on GitHub

Files

SKILL.md and 6 other files (references) in skills/flags-sdk of vercel/vercel-plugin.

  • SKILL.md
  • .vercel.approvers
  • overlay.yaml
  • references/api.md
  • references/nextjs.md
  • references/providers.md
  • references/sveltekit.md

Open the folder on GitHubat commit 2a1e58d

Compare with similar skills

Flags SDK 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.

Flags SDK compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Flags SDK this skillvercel/vercel-plugin301—~6.9kAutomated safety check: NotesCustom licence
Htmldropooiyeefei/ccc494—~5.2kAutomated safety check: WarnMIT
Sandbox Benchvercel/next.js143k—~4.1kAutomated safety check: PassMIT
Vercel Optimize Auditvercel-labs/agent-skills32k8 repos~4.3kAutomated safety check: PassNone
AI SDKvercel-labs/ai-facts16820 repos~1.2kAutomated safety check: PassNone
Vercel React Best Practicessanity-io/sanity6.4k129 repos~1.6kAutomated safety check: PassMIT

Similar skills

  • Htmldrop

    ooiyeefei/ccc

    Reach for this skill when an HTML artifact — report, deck, brief, mockup, dashboard, proposal, spec, or landing page, whether the user already has it or you just generated it — needs to reach other…

    494 GitHub stars~5.2k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check: warnings
  • Sandbox Bench

    vercel/next.js

    Official

    Benchmark React or Next.js changes on Vercel Sandbox VMs with paired A/B statistics: react PR/commit vs base, or Next.js PR/commit vs base, measured end-to-end through the bench/render-pipeline app…

    143k GitHub stars~4.1k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Vercel Optimize Audit

    vercel-labs/agent-skills

    Official

    Runs a metrics-first audit of a deployed Vercel project, gating investigations on real signals to produce ranked, citation-backed cost and performance recommendations.

    32k GitHub starsUsed in 8 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • AI SDK

    vercel-labs/ai-facts

    Official

    Answer questions about the AI SDK and help build AI-powered features.

    168 GitHub starsUsed in 20 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Official

    React and Next.js performance optimization guidelines from Vercel Engineering.

    6.4k GitHub starsUsed in 129 repos~1.6k tokens
    Frontend & DesignAuto-check passed
  • GSAP for React

    greensock/gsap-skills

    Shows how to run GSAP animations in React and Next.js with the useGSAP hook, refs, scoped selectors and automatic cleanup on unmount.

    16k GitHub starsUsed in 4 repos~1.6k tokens
    Frontend & DesignAuto-check passed

More from vercel/vercel-plugin

All 38 skills in this repo
  • Deployments Cicd

    vercel/vercel-plugin

    Official

    Vercel deployment and CI/CD expert guidance. An agent skill from vercel/vercel-plugin.

    301 GitHub starsUsed in 1 repo~3k tokens
    Auto-check passed
  • Plugin Audit

    vercel/vercel-plugin

    Official

    Audit vercel-plugin performance on real-world projects. An agent skill from vercel/vercel-plugin.

    301 GitHub stars~739 tokensUpdated today
    Auto-check passed
  • Vercel CLI

    vercel/vercel-plugin

    Official

    Vercel CLI expert guidance. An agent skill from vercel/vercel-plugin.

    301 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • AI Gateway

    vercel/vercel-plugin

    Official

    Vercel AI Gateway guidance for setup, model discovery, authentication, routing, fallbacks, virtual models, evaluation models, BYOK, budgets, spend reporting, observability, compatible APIs, and…

    301 GitHub stars~4.4k tokensUpdated today
    Auto-check: notes
  • Vercel Services

    vercel/vercel-plugin

    Official

    Configure and troubleshoot Vercel Services for multiple frontends and backends in one project.

    301 GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Official

    Access and test Vercel deployments protected by Vercel Authentication, SSO, or Deployment Protection.

    301 GitHub stars~1.9k tokensUpdated today
    Auto-check: notes

Categories

Questions about Flags SDK

What does Flags SDK do?

Set up and use feature flags and A/B tests with the Flags SDK (flags npm package) and Vercel Flags. Flags SDK is an agent skill from vercel/vercel-plugin, published by the product's own GitHub organization. Set up and use feature flags and A/B tests with the Flags SDK (flags npm package) and Vercel Flags.

When should I use Flags SDK?

Flags SDK fits situations like: configuring the SDK; wiring vercelAdapter (OIDC; declaring flags with flag(); using the vercel flags CLI (create.

How do I install Flags SDK in Claude Code?

Run `npx skills add vercel/vercel-plugin --skill flags-sdk -a claude-code`. Or copy the skill folder (skills/flags-sdk in vercel/vercel-plugin) into .claude/skills/flags-sdk in your project. Claude Code loads it when a task matches its description.

How do I install Flags SDK in Codex?

Run `npx skills add vercel/vercel-plugin --skill flags-sdk -a codex`. Or copy the skill folder (skills/flags-sdk in vercel/vercel-plugin) into .agents/skills/flags-sdk in your project. Codex loads it when a task matches its description.

Can I use Flags SDK 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 vercel/vercel-plugin --skill flags-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/flags-sdk, .gemini/skills/flags-sdk, .github/skills/flags-sdk and .opencode/skills/flags-sdk in your project.

What does Flags SDK need to run?

Going by SKILL.md and its folder, Flags SDK needs the command-line tools its instructions call (vercel, pnpm, npm, yarn, bun and npx) and credentials named FLAGS_SECRET and VERCEL_OIDC_TOKEN. Our summary lists: Node.js; A credential in FLAGS_SECRET; A credential in VERCEL_OIDC_TOKEN.

Does Flags SDK access the network?

SKILL.md names 3 domains. As links in the text: vercel.com, flags-sdk.dev and github.com. This is read from the text; nothing was executed.

Is Flags SDK 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 Flags SDK use?

Flags SDK has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Flags SDK use?

About 6.9k tokens (SKILL.md is roughly 27k 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 15k tokens, read only when the agent opens those files.

What are the alternatives to Flags SDK?

Skills that share tags, products or a category with Flags SDK: Htmldrop (ooiyeefei/ccc, 494 stars), Sandbox Bench (vercel/next.js, 143k stars), Vercel Optimize Audit (vercel-labs/agent-skills, 32k stars) and AI SDK (vercel-labs/ai-facts, 168 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Flags SDK?

vercel (a GitHub organization, an official publisher) maintains it in vercel/vercel-plugin, which has 301 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on October 8, 2026.

Source: vercel/vercel-plugin on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.