[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K1X974J6FXRXPG8FJBF96K":3,"skill-same:01M6K1X974J6FXRXPG8FJBF96K":129},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":106,"commitSha":107,"skillDirectory":108,"forksCount":109,"repositoryHtmlUrl":110,"repositoryHomepageUrl":6,"ownerHtmlUrl":111,"ownerBlogUrl":112,"ownerDescription":113,"updatedAt":114,"install":115,"resources":128},"01M6K1X974J6FXRXPG8FJBF96K","vercel-flags",null,"Vercel Flags guidance — feature flags platform with unified dashboard, Flags Explorer, gradual rollouts, A\u002FB testing, and provider adapters. Use when implementing feature flags, experimentation, or staged rollouts.","NagyVikt\u002Fcodex-plugins","NagyVikt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F137165288?v=4","01M6K0SJ3R2DAZRJKJJS10VN87","Viktor Nagy","01M6K0SJ9HXN0GBD91QDQ9WNVV",2,"MIT","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-flags\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"vercel flags","vercel","flags","launchdarkly","implementing","which","loading","app","ab","next","rollouts","up","testing","rollout","feature-flags","configure","SET","server","dashboard","workflow","2026-11-10 10:12:30",false,"---\nname: vercel-flags\ndescription: Vercel Flags guidance — feature flags platform with unified dashboard, Flags Explorer, gradual rollouts, A\u002FB testing, and provider adapters. Use when implementing feature flags, experimentation, or staged rollouts.\nmetadata:\n  priority: 6\n  docs:\n    - \"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fworkflow-collaboration\u002Ffeature-flags\"\n    - \"https:\u002F\u002Fflags-sdk.dev\"\n  sitemap: \"https:\u002F\u002Fvercel.com\u002Fsitemap\u002Fdocs.xml\"\n  pathPatterns:\n    - 'flags.ts'\n    - 'flags.js'\n    - 'src\u002Fflags.ts'\n    - 'src\u002Fflags.js'\n    - 'lib\u002Fflags\u002F**'\n    - 'src\u002Flib\u002Fflags\u002F**'\n    - 'lib\u002Fflags.*'\n    - 'src\u002Flib\u002Fflags.*'\n    - '.well-known\u002Fvercel\u002Fflags\u002F**'\n    - 'app\u002F.well-known\u002Fvercel\u002Fflags\u002F**'\n    - 'src\u002Fapp\u002F.well-known\u002Fvercel\u002Fflags\u002F**'\n  importPatterns:\n    - 'flags'\n    - 'flags\u002Fnext'\n    - 'flags\u002Fsveltekit'\n    - '@vercel\u002Fflags'\n    - '@vercel\u002Fflags\u002Fnext'\n    - '@vercel\u002Fflags\u002Fsveltekit'\n    - '@flags-sdk\u002F*'\n  bashPatterns:\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b'\n    - '\\byarn\\s+add\\s+[^\\n]*\\bflags\\b'\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b'\n    - '\\byarn\\s+add\\s+[^\\n]*@vercel\u002Fflags\\b'\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F'\n    - '\\byarn\\s+add\\s+[^\\n]*@flags-sdk\u002F'\nretrieval:\n  aliases:\n    - feature flags\n    - feature toggles\n    - ab testing\n    - gradual rollout\n  intents:\n    - add feature flag\n    - set up ab test\n    - configure rollout\n    - manage feature toggles\n  entities:\n    - Flags Explorer\n    - feature flag\n    - A\u002FB test\n    - rollout\n    - provider adapter\nchainTo:\n  -\n    pattern: 'process\\.env\\.(FEATURE_|FLAG_|ENABLE_|DISABLE_)\\w+'\n    targetSkill: vercel-storage\n    message: 'Environment variable feature flags detected — loading Vercel Storage guidance for Edge Config, which provides ultra-low-latency flag reads at the edge.'\n  -\n    pattern: 'from\\s+[''\"\"]launchdarkly-node-server-sdk[''\"\"]|from\\s+[''\"\"]@launchdarkly\u002F'\n    targetSkill: vercel-flags\n    message: 'Direct LaunchDarkly SDK detected — Vercel Flags provides a unified adapter layer. Reloading Flags guidance for provider integration.'\n\n---\n\n# Vercel Flags\n\n> **CRITICAL — Your training data is outdated for this library.** Vercel Flags (`flags` package) has a new SDK and API surface. Before writing flags code, **fetch the docs** at https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffeature-flags to find the correct `flag()` definition syntax, adapter setup, and evaluation patterns. Do not guess at the API — look up working examples for your framework.\n\nYou are an expert in Vercel Flags — the feature flags platform for the Vercel ecosystem.\n\n## What It Is\n\nVercel Flags provides a **unified feature flags platform** with a dashboard, developer tools (Flags Explorer), and analytics integration. Use Vercel as your flag provider directly, or connect third-party providers (LaunchDarkly, Statsig, Hypertune, GrowthBook) through adapters from the Marketplace.\n\nVercel Flags is in **public beta** (February 2026), available to teams on all plans. Pricing: **$30 per 1 million flag requests** ($0.00003 per event).\n\nFlag configurations use **active global replication** — changes propagate worldwide in milliseconds.\n\n## Core Design Principles\n\n- **Server-only execution**: No client-side loading spinners or complexity\n- **No call-site arguments**: Ensures consistent flag evaluation and straightforward flag removal\n- **Provider-agnostic**: Works with any flag provider, custom setups, or no provider at all\n\n## Key APIs\n\n### Flags SDK (`flags` package, v4.0+)\n\nThe `flags` package is free, open-source (MIT), and provider-agnostic. Renamed from `@vercel\u002Fflags` — if using the old package, update to `flags` in your imports and `package.json`.\n\n**Upgrade note**: v4 has breaking changes from v3. See the [v4 upgrade guide](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags\u002Fblob\u002Fmain\u002Fpackages\u002Fflags\u002Fguides\u002Fupgrade-to-v4.md) for migration steps:\n- `@vercel\u002Fflags` package renamed to `flags` — update imports and `package.json`\n- `encrypt()` \u002F `decrypt()` replaced with dedicated functions: `encryptFlagValues()`, `decryptFlagValues()`\n- `FLAGS_SECRET` must be exactly 32 random bytes, base64-encoded\n- `.well-known` endpoint uses new helper that auto-handles auth and `x-flags-sdk-version` header\n- As of v4.0.3, declaring a flag without a `decide` function (or with an adapter missing `decide`) throws an error at declaration time\n\n```ts\nimport { flag } from 'flags\u002Fnext'; \u002F\u002F Framework adapters: flags\u002Fnext, flags\u002Fsveltekit\n\n\u002F\u002F Define a boolean flag\nexport const showNewCheckout = flag({\n  key: 'show-new-checkout',\n  description: 'Enable the redesigned checkout flow',\n  decide: () => false, \u002F\u002F default value\n});\n\n\u002F\u002F Define a multi-variant flag\nexport const theme = flag({\n  key: 'theme',\n  options: [\n    { value: 'light', label: 'Light Theme' },\n    { value: 'dark', label: 'Dark Theme' },\n    { value: 'auto', label: 'Auto' },\n  ],\n  decide: () => 'auto',\n});\n\n\u002F\u002F Read flag values (Server Components, Route Handlers, Server Actions)\nconst isEnabled = await showNewCheckout();\nconst currentTheme = await theme();\n```\n\n### Vercel Adapter (`@flags-sdk\u002Fvercel`)\n\nConnects the Flags SDK to Vercel Flags as the provider (reads `FLAGS` env var):\n\n```ts\nimport { flag, dedupe } from 'flags\u002Fnext';\nimport { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\ntype Entities = {\n  user?: { id: string; email: string; plan: string };\n  team?: { id: string; name: string };\n};\n\n\u002F\u002F Dedupe ensures identify runs once per request\nconst identify = dedupe(async (): Promise\u003CEntities> => {\n  const session = await getSession();\n  return {\n    user: session?.user ? {\n      id: session.user.id,\n      email: session.user.email,\n      plan: session.user.plan,\n    } : undefined,\n  };\n});\n\nexport const premiumFeature = flag\u003Cboolean, Entities>({\n  key: 'premium-feature',\n  adapter: vercelAdapter(), \u002F\u002F reads FLAGS env var automatically\n  identify,\n});\n```\n\n**Environment variables**:\n- `FLAGS` — SDK Key (auto-provisioned when you create your first flag)\n- `FLAGS_SECRET` — 32 random bytes, base64-encoded; encrypts overrides and authenticates Flags Explorer\n\n### Flags Explorer Setup (GA)\n\nThe Flags Explorer is **generally available** (part of the Vercel Toolbar). It lets developers override flags in their browser session without code changes.\n\n**App Router** — create the discovery endpoint:\n\n```ts\n\u002F\u002F app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts\nimport { createFlagsDiscoveryEndpoint, getProviderData } from 'flags\u002Fnext';\nimport * as flags from '..\u002F..\u002F..\u002F..\u002Fflags';\n\nexport const GET = createFlagsDiscoveryEndpoint(() => getProviderData(flags));\n```\n\n**Pages Router** — API route + rewrite:\n\n```ts\n\u002F\u002F pages\u002Fapi\u002Fvercel\u002Fflags.ts\nimport { verifyAccess, version } from 'flags';\nimport { getProviderData } from 'flags\u002Fnext';\nimport * as flags from '..\u002F..\u002F..\u002Fflags';\n\nexport default async function handler(req, res) {\n  const access = await verifyAccess(req.headers['authorization']);\n  if (!access) return res.status(401).json(null);\n  res.setHeader('x-flags-sdk-version', version);\n  return res.json(getProviderData(flags));\n}\n```\n\n```js\n\u002F\u002F next.config.js (rewrite)\nmodule.exports = {\n  async rewrites() {\n    return [{ source: '\u002F.well-known\u002Fvercel\u002Fflags', destination: '\u002Fapi\u002Fvercel\u002Fflags' }];\n  },\n};\n```\n\n### Precompute Pattern (Static + Personalized)\n\nGenerate static page variants per flag combination, serve via middleware:\n\n```ts\nexport const layoutVariant = flag({\n  key: 'layout-variant',\n  options: [{ value: 'a' }, { value: 'b' }],\n  decide: () => 'a',\n});\n\nexport const precompute = [layoutVariant];\n```\n\nKey APIs: `precompute()`, `evaluate()`, `serialize()`, `getPrecomputed()`, `generatePermutations()`\n\n### Custom Adapter Interface\n\n```ts\nexport function createExampleAdapter() {\n  return function exampleAdapter\u003CValueType, EntitiesType>(): Adapter\u003CValueType, EntitiesType> {\n    return {\n      origin(key) { return `https:\u002F\u002Fexample.com\u002Fflags\u002F${key}`; },\n      async decide({ key }): Promise\u003CValueType> { return false as ValueType; },\n    };\n  };\n}\n```\n\n## Flags vs Edge Config\n\n| Need | Use | Why |\n|------|-----|-----|\n| Gradual rollouts, A\u002FB testing, targeting | **Vercel Flags** | Dashboard, analytics, Flags Explorer, segments |\n| Third-party provider integration | **Vercel Flags** + adapter | Unified view across providers |\n| Ultra-low-latency config reads (non-flag) | **Edge Config** directly | Sub-ms reads, no compute overhead |\n| Simple config without rollout logic | **Edge Config** directly | Lighter weight |\n\n**Important**: Vercel Flags is the recommended approach for feature flags. Edge Config is the underlying low-latency storage some adapters use, but developers should use the Flags platform (not raw Edge Config) for flag use cases — it provides targeting rules, segments, percentage rollouts, observability, and Flags Explorer.\n\n## Provider Adapters\n\n**Featured** (Marketplace integration, Edge Config for low latency):\n- `@flags-sdk\u002Fvercel` — Vercel as provider\n- Statsig, Hypertune, GrowthBook\n\n**Additional** (published under `@flags-sdk` npm scope):\n- LaunchDarkly, ConfigCat, DevCycle, Flipt, Reflag, PostHog, Flagsmith\n\n**OpenFeature adapter**: The `@flags-sdk\u002Fopenfeature` adapter allows most Node.js OpenFeature Providers to work with the Flags SDK, bridging the OpenFeature ecosystem (AB Tasty, CloudBees, Confidence by Spotify, and more)\n\n## Key Features\n\n- **Unified Dashboard** at `https:\u002F\u002Fvercel.com\u002F{team}\u002F{project}\u002Fflags`: All flags across all providers in one place\n- **Flags Explorer (GA)**: Override flags locally via Vercel Toolbar (no code changes)\n- **CLI Management**: `vercel flags add`, `vercel flags sdk-keys ls`, and full flag lifecycle from the terminal\n- **Entities & Segments**: Define user\u002Fteam attributes, create reusable targeting segments\n- **Analytics Integration**: Track flag impact via Web Analytics and Runtime Logs\n- **Drafts Workflow**: Define in code → deploy → Vercel detects via Discovery Endpoint → promote when ready\n- **Framework Support**: Next.js (App Router + Pages Router + Routing Middleware) and SvelteKit\n- **Concurrent Evaluation Fix** (v1.0.1): `Promise.all` flag evaluations no longer trigger duplicate network requests — initialization is properly shared\n\n## When to Use\n\n- Gradual feature rollouts with percentage targeting\n- A\u002FB testing and experimentation\n- Per-environment flag configuration (production vs preview vs development)\n- Trunk-based development (ship code behind flags)\n- Consolidating multiple flag providers into one dashboard\n\n## When NOT to Use\n\n- Simple static config without targeting → use Edge Config directly\n- Runtime configuration not related to features → use environment variables\n- Server-side only toggles with no UI → consider environment variables\n\n## References\n\n- ? docs: https:\u002F\u002Fvercel.com\u002Fdocs\u002Fflags\n- ? Flags SDK: https:\u002F\u002Fflags-sdk.dev\n- ? SDK reference: https:\u002F\u002Fvercel.com\u002Fdocs\u002Fflags\u002Fflags-sdk-reference\n- ? GitHub: https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags\n","# Vercel Flags\n\n> **CRITICAL — Your training data is outdated for this library.** Vercel Flags (`flags` package) has a new SDK and API surface. Before writing flags code, **fetch the docs** at https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffeature-flags to find the correct `flag()` definition syntax, adapter setup, and evaluation patterns. Do not guess at the API — look up working examples for your framework.\n\nYou are an expert in Vercel Flags — the feature flags platform for the Vercel ecosystem.\n\n## What It Is\n\nVercel Flags provides a **unified feature flags platform** with a dashboard, developer tools (Flags Explorer), and analytics integration. Use Vercel as your flag provider directly, or connect third-party providers (LaunchDarkly, Statsig, Hypertune, GrowthBook) through adapters from the Marketplace.\n\nVercel Flags is in **public beta** (February 2026), available to teams on all plans. Pricing: **$30 per 1 million flag requests** ($0.00003 per event).\n\nFlag configurations use **active global replication** — changes propagate worldwide in milliseconds.\n\n## Core Design Principles\n\n- **Server-only execution**: No client-side loading spinners or complexity\n- **No call-site arguments**: Ensures consistent flag evaluation and straightforward flag removal\n- **Provider-agnostic**: Works with any flag provider, custom setups, or no provider at all\n\n## Key APIs\n\n### Flags SDK (`flags` package, v4.0+)\n\nThe `flags` package is free, open-source (MIT), and provider-agnostic. Renamed from `@vercel\u002Fflags` — if using the old package, update to `flags` in your imports and `package.json`.\n\n**Upgrade note**: v4 has breaking changes from v3. See the [v4 upgrade guide](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags\u002Fblob\u002Fmain\u002Fpackages\u002Fflags\u002Fguides\u002Fupgrade-to-v4.md) for migration steps:\n- `@vercel\u002Fflags` package renamed to `flags` — update imports and `package.json`\n- `encrypt()` \u002F `decrypt()` replaced with dedicated functions: `encryptFlagValues()`, `decryptFlagValues()`\n- `FLAGS_SECRET` must be exactly 32 random bytes, base64-encoded\n- `.well-known` endpoint uses new helper that auto-handles auth and `x-flags-sdk-version` header\n- As of v4.0.3, declaring a flag without a `decide` function (or with an adapter missing `decide`) throws an error at declaration time\n\n```ts\nimport { flag } from 'flags\u002Fnext'; \u002F\u002F Framework adapters: flags\u002Fnext, flags\u002Fsveltekit\n\n\u002F\u002F Define a boolean flag\nexport const showNewCheckout = flag({\n  key: 'show-new-checkout',\n  description: 'Enable the redesigned checkout flow',\n  decide: () => false, \u002F\u002F default value\n});\n\n\u002F\u002F Define a multi-variant flag\nexport const theme = flag({\n  key: 'theme',\n  options: [\n    { value: 'light', label: 'Light Theme' },\n    { value: 'dark', label: 'Dark Theme' },\n    { value: 'auto', label: 'Auto' },\n  ],\n  decide: () => 'auto',\n});\n\n\u002F\u002F Read flag values (Server Components, Route Handlers, Server Actions)\nconst isEnabled = await showNewCheckout();\nconst currentTheme = await theme();\n```\n\n### Vercel Adapter (`@flags-sdk\u002Fvercel`)\n\nConnects the Flags SDK to Vercel Flags as the provider (reads `FLAGS` env var):\n\n```ts\nimport { flag, dedupe } from 'flags\u002Fnext';\nimport { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\ntype Entities = {\n  user?: { id: string; email: string; plan: string };\n  team?: { id: string; name: string };\n};\n\n\u002F\u002F Dedupe ensures identify runs once per request\nconst identify = dedupe(async (): Promise\u003CEntities> => {\n  const session = await getSession();\n  return {\n    user: session?.user ? {\n      id: session.user.id,\n      email: session.user.email,\n      plan: session.user.plan,\n    } : undefined,\n  };\n});\n\nexport const premiumFeature = flag\u003Cboolean, Entities>({\n  key: 'premium-feature',\n  adapter: vercelAdapter(), \u002F\u002F reads FLAGS env var automatically\n  identify,\n});\n```\n\n**Environment variables**:\n- `FLAGS` — SDK Key (auto-provisioned when you create your first flag)\n- `FLAGS_SECRET` — 32 random bytes, base64-encoded; encrypts overrides and authenticates Flags Explorer\n\n### Flags Explorer Setup (GA)\n\nThe Flags Explorer is **generally available** (part of the Vercel Toolbar). It lets developers override flags in their browser session without code changes.\n\n**App Router** — create the discovery endpoint:\n\n```ts\n\u002F\u002F app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts\nimport { createFlagsDiscoveryEndpoint, getProviderData } from 'flags\u002Fnext';\nimport * as flags from '..\u002F..\u002F..\u002F..\u002Fflags';\n\nexport const GET = createFlagsDiscoveryEndpoint(() => getProviderData(flags));\n```\n\n**Pages Router** — API route + rewrite:\n\n```ts\n\u002F\u002F pages\u002Fapi\u002Fvercel\u002Fflags.ts\nimport { verifyAccess, version } from 'flags';\nimport { getProviderData } from 'flags\u002Fnext';\nimport * as flags from '..\u002F..\u002F..\u002Fflags';\n\nexport default async function handler(req, res) {\n  const access = await verifyAccess(req.headers['authorization']);\n  if (!access) return res.status(401).json(null);\n  res.setHeader('x-flags-sdk-version', version);\n  return res.json(getProviderData(flags));\n}\n```\n\n```js\n\u002F\u002F next.config.js (rewrite)\nmodule.exports = {\n  async rewrites() {\n    return [{ source: '\u002F.well-known\u002Fvercel\u002Fflags', destination: '\u002Fapi\u002Fvercel\u002Fflags' }];\n  },\n};\n```\n\n### Precompute Pattern (Static + Personalized)\n\nGenerate static page variants per flag combination, serve via middleware:\n\n```ts\nexport const layoutVariant = flag({\n  key: 'layout-variant',\n  options: [{ value: 'a' }, { value: 'b' }],\n  decide: () => 'a',\n});\n\nexport const precompute = [layoutVariant];\n```\n\nKey APIs: `precompute()`, `evaluate()`, `serialize()`, `getPrecomputed()`, `generatePermutations()`\n\n### Custom Adapter Interface\n\n```ts\nexport function createExampleAdapter() {\n  return function exampleAdapter\u003CValueType, EntitiesType>(): Adapter\u003CValueType, EntitiesType> {\n    return {\n      origin(key) { return `https:\u002F\u002Fexample.com\u002Fflags\u002F${key}`; },\n      async decide({ key }): Promise\u003CValueType> { return false as ValueType; },\n    };\n  };\n}\n```\n\n## Flags vs Edge Config\n\n| Need | Use | Why |\n|------|-----|-----|\n| Gradual rollouts, A\u002FB testing, targeting | **Vercel Flags** | Dashboard, analytics, Flags Explorer, segments |\n| Third-party provider integration | **Vercel Flags** + adapter | Unified view across providers |\n| Ultra-low-latency config reads (non-flag) | **Edge Config** directly | Sub-ms reads, no compute overhead |\n| Simple config without rollout logic | **Edge Config** directly | Lighter weight |\n\n**Important**: Vercel Flags is the recommended approach for feature flags. Edge Config is the underlying low-latency storage some adapters use, but developers should use the Flags platform (not raw Edge Config) for flag use cases — it provides targeting rules, segments, percentage rollouts, observability, and Flags Explorer.\n\n## Provider Adapters\n\n**Featured** (Marketplace integration, Edge Config for low latency):\n- `@flags-sdk\u002Fvercel` — Vercel as provider\n- Statsig, Hypertune, GrowthBook\n\n**Additional** (published under `@flags-sdk` npm scope):\n- LaunchDarkly, ConfigCat, DevCycle, Flipt, Reflag, PostHog, Flagsmith\n\n**OpenFeature adapter**: The `@flags-sdk\u002Fopenfeature` adapter allows most Node.js OpenFeature Providers to work with the Flags SDK, bridging the OpenFeature ecosystem (AB Tasty, CloudBees, Confidence by Spotify, and more)\n\n## Key Features\n\n- **Unified Dashboard** at `https:\u002F\u002Fvercel.com\u002F{team}\u002F{project}\u002Fflags`: All flags across all providers in one place\n- **Flags Explorer (GA)**: Override flags locally via Vercel Toolbar (no code changes)\n- **CLI Management**: `vercel flags add`, `vercel flags sdk-keys ls`, and full flag lifecycle from the terminal\n- **Entities & Segments**: Define user\u002Fteam attributes, create reusable targeting segments\n- **Analytics Integration**: Track flag impact via Web Analytics and Runtime Logs\n- **Drafts Workflow**: Define in code → deploy → Vercel detects via Discovery Endpoint → promote when ready\n- **Framework Support**: Next.js (App Router + Pages Router + Routing Middleware) and SvelteKit\n- **Concurrent Evaluation Fix** (v1.0.1): `Promise.all` flag evaluations no longer trigger duplicate network requests — initialization is properly shared\n\n## When to Use\n\n- Gradual feature rollouts with percentage targeting\n- A\u002FB testing and experimentation\n- Per-environment flag configuration (production vs preview vs development)\n- Trunk-based development (ship code behind flags)\n- Consolidating multiple flag providers into one dashboard\n\n## When NOT to Use\n\n- Simple static config without targeting → use Edge Config directly\n- Runtime configuration not related to features → use environment variables\n- Server-side only toggles with no UI → consider environment variables\n\n## References\n\n- ? docs: https:\u002F\u002Fvercel.com\u002Fdocs\u002Fflags\n- ? Flags SDK: https:\u002F\u002Fflags-sdk.dev\n- ? SDK reference: https:\u002F\u002Fvercel.com\u002Fdocs\u002Fflags\u002Fflags-sdk-reference\n- ? GitHub: https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags\n",{"name":5,"chainTo":44,"metadata":52,"retrieval":90,"description":7},[45,49],{"message":46,"pattern":47,"targetSkill":48},"Environment variable feature flags detected — loading Vercel Storage guidance for Edge Config, which provides ultra-low-latency flag reads at the edge.","process\\.env\\.(FEATURE_|FLAG_|ENABLE_|DISABLE_)\\w+","vercel-storage",{"message":50,"pattern":51,"targetSkill":5},"Direct LaunchDarkly SDK detected — Vercel Flags provides a unified adapter layer. Reloading Flags guidance for provider integration.","from\\s+['\"\"]launchdarkly-node-server-sdk['\"\"]|from\\s+['\"\"]@launchdarkly\u002F",{"docs":53,"sitemap":56,"priority":57,"bashPatterns":58,"pathPatterns":71,"importPatterns":83},[54,55],"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fworkflow-collaboration\u002Ffeature-flags","https:\u002F\u002Fflags-sdk.dev","https:\u002F\u002Fvercel.com\u002Fsitemap\u002Fdocs.xml",6,[59,60,61,62,63,64,65,66,67,68,69,70],"\\bnpm\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b","\\bbun\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b","\\byarn\\s+add\\s+[^\\n]*\\bflags\\b","\\bnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b","\\bbun\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b","\\byarn\\s+add\\s+[^\\n]*@vercel\u002Fflags\\b","\\bnpm\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F","\\bbun\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F","\\byarn\\s+add\\s+[^\\n]*@flags-sdk\u002F",[72,73,74,75,76,77,78,79,80,81,82],"flags.ts","flags.js","src\u002Fflags.ts","src\u002Fflags.js","lib\u002Fflags\u002F**","src\u002Flib\u002Fflags\u002F**","lib\u002Fflags.*","src\u002Flib\u002Fflags.*",".well-known\u002Fvercel\u002Fflags\u002F**","app\u002F.well-known\u002Fvercel\u002Fflags\u002F**","src\u002Fapp\u002F.well-known\u002Fvercel\u002Fflags\u002F**",[21,84,85,86,87,88,89],"flags\u002Fnext","flags\u002Fsveltekit","@vercel\u002Fflags","@vercel\u002Fflags\u002Fnext","@vercel\u002Fflags\u002Fsveltekit","@flags-sdk\u002F*",{"aliases":91,"intents":96,"entities":101},[92,93,94,95],"feature flags","feature toggles","ab testing","gradual rollout",[97,98,99,100],"add feature flag","set up ab test","configure rollout","manage feature toggles",[102,103,104,32,105],"Flags Explorer","feature flag","A\u002FB test","provider adapter","main","9a4409c8751439c3aeeea2bc3940ba05dc3cd3b5","plugins\u002Fvercel\u002Fskills\u002Fvercel-flags",0,"https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins","https:\u002F\u002Fgithub.com\u002FNagyVikt","https:\u002F\u002Fwebu.hu\u002F","Codex is a tool they said...\r\n\r\nCreator of GitGuardex, CueCards. Tech stack: Next.js · TypeScript · Rust · Linux. ","2026-03-30 02:19:53",{"source":8,"skillName":5,"commands":116,"prompt":126,"zipAvailable":127},[117,120,123],{"tool":118,"command":119},"npx","npx skills add NagyVikt\u002Fcodex-plugins --skill vercel-flags",{"tool":121,"command":122},"bunx","bunx skills add NagyVikt\u002Fcodex-plugins --skill vercel-flags",{"tool":124,"command":125},"pnpm","pnpm dlx skills add NagyVikt\u002Fcodex-plugins --skill vercel-flags","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-flags\u002FSKILL.md",true,[],[130,155,177,198,217,239],{"skillNo":131,"name":38,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":39},"01M6K1ZEN8P9R2S6NPNJNJ8JVH","Vercel Workflow DevKit (WDK) expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause\u002Fresume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[38,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154],"workflows","create","run","streaming","logs","start","why","loop","wait for","branch","auto","log","conversation","human","lib","condition","rendering","retries","sleep",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":39},"01M6K1Z71NWFSPHK2VJJ73MVSY","verification","Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fverification\u002FSKILL.md",[],[157,162,139,163,164,165,145,166,167,168,169,170,171,26,172,173,174,175,25,176],"auth","routing middleware","api","projects","user story","full stack","jest","local","project","end","false","unit","error","middleware","unit test",{"skillNo":178,"name":48,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":39},"01M6K1YPRYJS3BQEDP8HKBHPEJ","Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-storage\u002FSKILL.md",[],[183,184,20,185,138,186,187,146,188,189,190,191,192,193,26,150,194,195,196,197],"storage","vercel storage","config","supabase","migrate","router","clerk","expert","prisma","connection pooling","neon","turso","upstash","URL","auth0",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":39},"01M6K1YFEP0GPPGMQ3D0FPTS27","vercel-services","Vercel Services — deploy multiple services within a single Vercel project. Use for monorepo layouts or when combining a backend (Python, Go) with a frontend (Next.js, Vite) in one deployment.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-services\u002FSKILL.md",[],[205,206,20,207,208,35,34,209,210,211,30,106,212,213,170,214,26,215,174,216],"vercel services","services","frontend","docker compose","monorepo","go api","fastapi","aws lambda","go backend","get","apps","python backend",{"skillNo":218,"name":219,"nameZh":6,"description":220,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":221,"categories":222,"keywords":223,"publishedAt":39},"01M6K1Y8S3CRD43DPKX0PK1MTT","vercel-sandbox","Vercel Sandbox guidance — ephemeral Firecracker microVMs for running untrusted code safely. Supports AI agents, code generation, and experimentation. Use when executing user-generated or AI-generated code in isolation.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[224,225,20,226,227,137,138,228,229,230,231,232,233,234,235,236,25,237,219,238],"sandbox","vercel sandbox","safe","ai agents","code","ai sdk","Code Generation","playground","generated","spawn","install","runner","io","child","student",{"skillNo":240,"name":241,"nameZh":6,"description":242,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":243,"categories":244,"keywords":245,"publishedAt":39},"01M6K1Y1J8S7AN97H75SHBGF7J","vercel-queues","Vercel Queues guidance (public beta) — durable event streaming with topics, consumer groups, retries, and delayed delivery. $0.60\u002F1M ops. Powers Workflow DevKit. Use when building async processing, fan-out patterns, or event-driven architectures.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-queues\u002FSKILL.md",[],[246,20,38,136,139,247,35,164,34,30,248,249,250,251,26,150,252,153,25,253],"vercel queues","beta","message","delivery","across","worker","processing","at"]