[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BY2D1NMRGP8N4TE9ADAG2C":3,"skill-same:01M7BY2D1NMRGP8N4TE9ADAG2C":169},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":124,"commitSha":125,"skillDirectory":126,"forksCount":127,"repositoryHtmlUrl":128,"repositoryHomepageUrl":6,"ownerHtmlUrl":129,"ownerBlogUrl":130,"ownerDescription":131,"updatedAt":132,"install":133,"resources":146},"01M7BY2D1NMRGP8N4TE9ADAG2C","flags-sdk",null,"Flags SDK and Vercel Flags expert guidance. Use when declaring feature flags with flag(), wiring provider adapters (Vercel, Statsig, LaunchDarkly, PostHog, and others), managing flags with the vercel flags CLI, implementing the precompute pattern for static A\u002FB tests, or integrating the Flags Explorer.","CognitionAI\u002Fdevin-marketplace","CognitionAI","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163493330?v=4","01M7BVSRD98NC4FG8T3EZS6V5M","Cognition","01M7BVSRDX111C2XPWJ0E6MY26",29,"MIT","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fflags-sdk\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: flags-sdk\ndescription: Flags SDK and Vercel Flags expert guidance. Use when declaring feature flags with flag(), wiring provider adapters (Vercel, Statsig, LaunchDarkly, PostHog, and others), managing flags with the vercel flags CLI, implementing the precompute pattern for static A\u002FB tests, or integrating the Flags Explorer.\nsummary: \"Flags SDK guidance — declare flags with flag(), connect provider adapters, manage Vercel Flags via the vercel flags CLI, precompute static variants, and set up the Flags Explorer.\"\nmetadata:\n  priority: 6\n  docs:\n    - \"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fflags\"\n    - \"https:\u002F\u002Fflags-sdk.dev\"\n  sitemap: \"https:\u002F\u002Fvercel.com\u002Fsitemap.xml\"\n  pathPatterns:\n    - 'flags.ts'\n    - 'flags.tsx'\n    - 'lib\u002Fflags.ts'\n    - 'src\u002Fflags.ts'\n    - 'lib\u002Fflags\u002F**'\n    - 'src\u002Fflags\u002F**'\n    - '.well-known\u002Fvercel\u002Fflags\u002F**'\n  importPatterns:\n    - 'flags\u002Fnext'\n    - 'flags\u002Fsveltekit'\n    - 'flags\u002Freact'\n    - 'flags'\n    - '@flags-sdk\u002F*'\n    - '@vercel\u002Fflags'\n  bashPatterns:\n    - '\\bvercel\\s+flags\\b'\n    - '\\bvc\\s+flags\\b'\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]*@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'\n  promptSignals:\n    phrases:\n      - \"feature flag\"\n      - \"feature flags\"\n      - \"flags sdk\"\n      - \"vercel flags\"\n      - \"flags explorer\"\n      - \"feature gate\"\n      - \"feature gating\"\n      - \"a\u002Fb test\"\n      - \"a\u002Fb testing\"\n      - \"ab test\"\n      - \"ab testing\"\n      - \"flag rollout\"\n      - \"gradual rollout\"\n      - \"percentage rollout\"\n      - \"kill switch\"\n      - \"flag variant\"\n      - \"flag adapter\"\n      - \"precompute flags\"\n    allOf:\n      - [flag, rollout]\n      - [flag, variant]\n      - [flag, toggle]\n      - [flag, experiment]\n      - [experiment, variant]\n      - [split, test]\n    anyOf:\n      - \"flag\"\n      - \"experiment\"\n      - \"experimentation\"\n      - \"rollout\"\n      - \"variant\"\n    noneOf:\n      - \"command-line flag\"\n      - \"command line flag\"\n      - \"cli flag\"\n      - \"compiler flag\"\n      - \"flag emoji\"\n    minScore: 6\nretrieval:\n  aliases:\n    - feature flags\n    - feature toggles\n    - vercel flags\n    - flags sdk\n    - a\u002Fb testing\n  intents:\n    - add a feature flag\n    - run an a\u002Fb test\n    - gate a feature\n    - roll out gradually\n    - manage flags from cli\n  entities:\n    - Flags SDK\n    - Vercel Flags\n    - Flags Explorer\n    - vercelAdapter\n    - precompute\n    - FLAGS_SECRET\nchainTo:\n  -\n    pattern: 'precompute\\s*\\(|generatePermutations|flags\u002Fnext.*precompute'\n    targetSkill: routing-middleware\n    message: 'Precompute pattern detected — loading Routing Middleware guidance for the middleware rewrites that serve static flag variants.'\n  -\n    pattern: '@flags-sdk\u002F(edge|global)-config|create(Edge|Global)ConfigAdapter'\n    targetSkill: vercel-storage\n    message: 'Global Config flag adapter detected — loading Vercel storage guidance for Global Config setup and limits.'\n---\n\n# Flags SDK\n\nThe 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 Flags is the first-party provider, letting you manage flags from the Vercel dashboard or the `vercel flags` CLI.\n\n- Docs: https:\u002F\u002Fflags-sdk.dev\n- Repo: https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags\n\n## Core concepts\n\n### Flags as code\n\nEach flag is declared as a function. No string keys at call sites:\n\n```ts\nimport { flag } from 'flags\u002Fnext';\n\nexport const exampleFlag = flag({\n  key: 'example-flag',\n  decide() { return false; },\n});\n\nconst value = await exampleFlag();\n```\n\n### Server-side evaluation\n\nFlags evaluate server-side to avoid layout shift, keep pages static, and maintain confidentiality. Combine routing middleware with the precompute pattern to serve static variants from CDN.\n\n### Adapter pattern\n\nAdapters replace `decide` and `origin` on a flag declaration, connecting your flags to a provider. Vercel Flags (`@flags-sdk\u002Fvercel`) is the first-party adapter. Third-party adapters are available for Statsig, LaunchDarkly, PostHog, and others.\n\n```ts\nimport { flag } from 'flags\u002Fnext';\nimport { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\nexport const exampleFlag = flag({\n  key: 'example-flag',\n  adapter: vercelAdapter,\n});\n```\n\n> **Version note**: The SDK is published as `flags` (renamed from `@vercel\u002Fflags`; that old name still appears in changelog history). `flags` 4.2.0+ accepts the adapter factory by reference (`adapter: vercelAdapter`) and resolves it once per declaration. Older versions require calling it (`adapter: vercelAdapter()`). The called form still works on new versions, so prefer the shorthand unless you're targeting `flags` \u003C 4.2.0.\n\n## Agent workflow: Creating a new flag\n\nWhen a user asks you to create or add a feature flag, follow these steps in order. Do not leave CLI steps as \"next steps\" for the user — execute them yourself.\n\n### Before you start\n\nCheck the project state to adapt commands and decide which steps you can skip:\n\n- Which lockfile is present (`pnpm-lock.yaml`, `package-lock.json`, `yarn.lock`, `bun.lockb`)? → Adapt all package manager commands accordingly (`pnpm add`, `npm install`, `yarn add`, `bun add`).\n- Is `flags` in `package.json`? → Skip install (step 1)\n- Does `.vercel\u002F` directory exist? → Project is linked, skip `vercel link` in step 2\n- Does `.env.local` contain `FLAGS=`? → Env vars already pulled, skip step 3\n- Does `flags.ts` (or `lib\u002Fflags.ts`, `src\u002Fflags.ts`) exist? → Add to it rather than creating from scratch (step 4)\n- Is `@vercel\u002Ftoolbar` in `package.json`? → Skip toolbar setup (step 6)\n- Does `app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts` exist? → Flags Explorer already set up, skip step 7\n\n### Steps\n\n1. **Install packages** (if not already in `package.json`):\n   ```bash\n   pnpm i flags @flags-sdk\u002Fvercel\n   ```\n\n2. **Register the flag with Vercel**: Run `vercel flags add \u003Cflag-key> --kind boolean --description \"\u003Cdescription>\"`.\n\n   > **Prerequisite**: The `vercel flags` commands require the Vercel CLI to be installed and authenticated. If the Vercel CLI is not installed, run `pnpm i -g vercel`. For authentication or linking issues, follow the `vercel-cli` skill if it's already available. If it isn't, suggest the user install it with `npx skills add vercel\u002Fvercel@vercel-cli` (don't auto-install it) and rely on `vercel \u003Ccommand> --help` in the meantime.\n\n   Before running `vercel flags add`, verify the project is linked to Vercel. Check for a `.vercel` directory in the project root. If it doesn't exist, run `vercel link` first.\n\n3. **Pull environment variables**: Run `vercel env pull` to write `FLAGS` and `FLAGS_SECRET` to `.env.local`. Without these environment variables, `vercelAdapter` will not be able to evaluate flags. This step is **mandatory** after creating a flag.\n\n4. **Declare the flag in code**: Add it to `flags.ts` (or create the file if it doesn't exist) using `vercelAdapter`:\n   ```ts\n   import { flag } from 'flags\u002Fnext';\n   import { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\n   export const myFlag = flag({\n     key: 'my-flag',\n     adapter: vercelAdapter,\n   });\n   ```\n\n5. **Use the flag**: Call it in your page or component and conditionally render based on the result:\n   ```tsx\n   import { myFlag } from '..\u002Fflags';\n\n   export default async function Page() {\n     const enabled = await myFlag();\n     return \u003Cdiv>{enabled ? 'Feature on' : 'Feature off'}\u003C\u002Fdiv>;\n   }\n   ```\n\n6. **Set up the Vercel Toolbar** (if not already present):\n   - Run `pnpm i @vercel\u002Ftoolbar`\n   - Wrap `next.config.ts` with the toolbar plugin\n   - Render `\u003CVercelToolbar \u002F>` in the root layout\n   See [references\u002Fnextjs.md — Toolbar Setup](references\u002Fnextjs.md#toolbar-setup) for the full code.\n\n7. **Set up Flags Explorer** (if not already present): Create `app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts` — see the [Flags Explorer setup](#flags-explorer-setup) section below.\n\n## Vercel Flags\n\nVercel Flags is Vercel's feature flags platform. You create and manage flags from the Vercel dashboard or the `vercel flags` CLI, then connect them to your code with the `@flags-sdk\u002Fvercel` adapter. When you create a flag in Vercel, the `FLAGS` and `FLAGS_SECRET` environment variables are configured automatically.\n\nTo create a flag end-to-end, follow the [Agent workflow](#agent-workflow-creating-a-new-flag) above.\n\nFor the full Vercel provider reference — user targeting, `vercel flags` CLI subcommands, custom adapter configuration, and Flags Explorer setup — see [references\u002Fproviders.md](references\u002Fproviders.md#vercel).\n\n## Declaring flags\n\nWhen using Vercel Flags, declare flags with `vercelAdapter` as shown in the [Agent workflow](#agent-workflow-creating-a-new-flag). For other providers, see [references\u002Fproviders.md](references\u002Fproviders.md). Below are the general `flag()` patterns.\n\n### Basic flag\n\n```ts\nimport { flag } from 'flags\u002Fnext'; \u002F\u002F or 'flags\u002Fsveltekit'\n\nexport const showBanner = flag\u003Cboolean>({\n  key: 'show-banner',\n  description: 'Show promotional banner',\n  defaultValue: false,\n  options: [\n    { value: false, label: 'Hide' },\n    { value: true, label: 'Show' },\n  ],\n  decide() { return false; },\n});\n```\n\n### Flag with evaluation context\n\nUse `identify` to establish who the request is for. The returned entities are passed to `decide`:\n\n```ts\nimport { dedupe, flag } from 'flags\u002Fnext';\nimport type { ReadonlyRequestCookies } from 'flags';\n\ninterface Entities {\n  user?: { id: string };\n}\n\nconst identify = dedupe(\n  ({ cookies }: { cookies: ReadonlyRequestCookies }): Entities => {\n    const userId = cookies.get('user-id')?.value;\n    return { user: userId ? { id: userId } : undefined };\n  },\n);\n\nexport const dashboardFlag = flag\u003Cboolean, Entities>({\n  key: 'new-dashboard',\n  identify,\n  decide({ entities }) {\n    if (!entities?.user) return false;\n    return ['user1', 'user2'].includes(entities.user.id);\n  },\n});\n```\n\n### Flag with another adapter\n\nAdapters connect flags to third-party providers. Each adapter replaces `decide` and `origin`:\n\n```ts\nimport { flag } from 'flags\u002Fnext';\nimport { statsigAdapter } from '@flags-sdk\u002Fstatsig';\n\nexport const myGate = flag({\n  key: 'my_gate',\n  adapter: statsigAdapter.featureGate((gate) => gate.value),\n  identify,\n});\n```\n\nSee [references\u002Fproviders.md](references\u002Fproviders.md) for all supported adapters.\n\n### Key parameters\n\n| Parameter      | Type                               | Description                                          |\n| -------------- | ---------------------------------- | ---------------------------------------------------- |\n| `key`          | `string`                           | Unique flag identifier                               |\n| `decide`       | `function`                         | Resolves the flag value                              |\n| `defaultValue` | `any`                              | Fallback if `decide` returns undefined or throws     |\n| `description`  | `string`                           | Shown in Flags Explorer                              |\n| `origin`       | `string`                           | URL to manage the flag in provider dashboard         |\n| `options`      | `{ label?: string, value: any }[]` | Possible values, used for precompute + Flags Explorer|\n| `adapter`      | `Adapter`                          | Provider adapter implementing `decide` and `origin`  |\n| `identify`     | `function`                         | Returns evaluation context (entities) for `decide`   |\n\n## Dedupe\n\nWrap shared functions (especially `identify`) in `dedupe` to run them once per request:\n\n```ts\nimport { dedupe } from 'flags\u002Fnext';\n\nconst identify = dedupe(({ cookies }) => {\n  return { user: { id: cookies.get('uid')?.value } };\n});\n```\n\nNote: `dedupe` is not available in Pages Router.\n\n## Bulk evaluation\n\nTo evaluate **multiple** flags at once, call `evaluate()` (from `flags\u002Fnext`) instead of awaiting flags one at a time or using `Promise.all()`. To evaluate a **single** flag, just call it: `await myFlag()`.\n\n```ts\nimport { evaluate } from 'flags\u002Fnext';\nimport { flagA, flagB } from '..\u002Fflags';\n\n\u002F\u002F avoid: each await blocks the next, so the flags resolve sequentially\nconst a = await flagA();\nconst b = await flagB();\n\n\u002F\u002F avoid: parallel, but each flag is evaluated in isolation\nconst [a, b] = await Promise.all([flagA(), flagB()]);\n\n\u002F\u002F prefer: shares work across the batch\nconst [a, b] = await evaluate([flagA, flagB]);\n```\n\n`evaluate()` is faster than both approaches. Awaiting flags one at a time makes total latency the sum of every flag's evaluation instead of the slowest single flag, while `Promise.all()` runs them in parallel but evaluates each in isolation. `evaluate()` pre-reads headers, cookies, and overrides once for the whole batch and lets adapters resolve a group in a single call, which reduces the number of parallel promises the runtime manages and leaves less room for the async work to be interrupted by other microtasks.\n\nIt accepts either an **array** (positional results) or an **object** (keyed results):\n\n```ts\nconst [a, b] = await evaluate([flagA, flagB]);\nconst { a, b } = await evaluate({ a: flagA, b: flagB });\n```\n\nOutside App Router (Pages Router `getServerSideProps`\u002FAPI routes, or routing middleware), pass the request as the second argument: `await evaluate([flagA, flagB], request)`.\n\n`evaluate()` always evaluates flags at request time. It is not for reading [precomputed](#precompute-pattern) (static) values — for those, use `getPrecomputed` (or call the flag with the code, `await myFlag(code, flagGroup)`).\n\nAdapters can opt into batching by implementing the optional `bulkDecide` hook. The Vercel adapter (`@flags-sdk\u002Fvercel`) implements it — roughly a 10x reduction in evaluation time when resolving hundreds of flags. See [references\u002Fproviders.md — Custom Adapters](references\u002Fproviders.md#custom-adapters) for implementing `bulkDecide`, and [references\u002Fapi.md — `evaluate`](references\u002Fapi.md#evaluate) for the full signature.\n\n## Flags Explorer setup\n\n### Next.js (App Router)\n\n```ts\n\u002F\u002F app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts\nimport { createFlagsDiscoveryEndpoint } from 'flags\u002Fnext';\nimport { getProviderData } from '@flags-sdk\u002Fvercel';\nimport * as flags from '..\u002F..\u002F..\u002F..\u002Fflags';\n\nexport const GET = createFlagsDiscoveryEndpoint(async () => {\n  return getProviderData(flags);\n});\n```\n\n### With external provider data\n\nWhen using a third-party provider alongside Vercel Flags, combine their data with `mergeProviderData`. Each provider adapter exports its own `getProviderData` — see the provider-specific examples in [references\u002Fproviders.md](references\u002Fproviders.md).\n\n### SvelteKit\n\n```ts\n\u002F\u002F src\u002Fhooks.server.ts\nimport { createHandle } from 'flags\u002Fsveltekit';\nimport { FLAGS_SECRET } from '$env\u002Fstatic\u002Fprivate';\nimport * as flags from '$lib\u002Fflags';\n\nexport const handle = createHandle({ secret: FLAGS_SECRET, flags });\n```\n\n## FLAGS_SECRET\n\nRequired for precompute and Flags Explorer. Must be 32 random bytes, base64-encoded:\n\n```sh\nnode -e \"console.log(crypto.randomBytes(32).toString('base64url'))\"\n```\n\nUse a separate `FLAGS_SECRET` value for each environment (Development, Preview, Production), and mark the Preview and Production values as Sensitive. Run the generator once per environment to produce distinct values, then store each on Vercel:\n\n```sh\nvercel env add FLAGS_SECRET production --sensitive --value \u003Cproduction-secret>\nvercel env add FLAGS_SECRET preview --sensitive --value \u003Cpreview-secret>\nvercel env add FLAGS_SECRET development --value \u003Cdevelopment-secret>\n```\n\nThen run `vc env pull` to sync to local.\n\n## Precompute pattern\n\nUse precompute to keep pages static while using feature flags. Middleware evaluates flags and encodes results into the URL via rewrite. The page reads precomputed values instead of re-evaluating.\n\nHigh-level flow:\n1. Declare flags and group them in an array\n2. Call `precompute(flagGroup)` in middleware, get a `code` string\n3. Rewrite request to `\u002F${code}\u002Foriginal-path`\n4. Page reads flag values from `code`: `await myFlag(code, flagGroup)`\n\nFor full implementation details, see framework-specific references:\n- **Next.js**: See [references\u002Fnextjs.md](references\u002Fnextjs.md) — covers proxy middleware, precompute setup, ISR, generatePermutations, multiple groups\n- **SvelteKit**: See [references\u002Fsveltekit.md](references\u002Fsveltekit.md) — covers reroute hook, middleware, precompute setup, ISR, prerendering\n\n## Custom adapters\n\nCreate an adapter factory that returns an object with `origin` and `decide`. For the full pattern (including default adapter and singleton client examples), see [references\u002Fproviders.md](references\u002Fproviders.md#custom-adapters).\n\n## Encryption functions\n\nFor keeping flag data confidential in the browser (used by Flags Explorer):\n\n| Function                   | Purpose                             |\n| -------------------------- | ----------------------------------- |\n| `encryptFlagValues`        | Encrypt resolved flag values        |\n| `decryptFlagValues`        | Decrypt flag values                 |\n| `encryptFlagDefinitions`   | Encrypt flag definitions\u002Fmetadata   |\n| `decryptFlagDefinitions`   | Decrypt flag definitions            |\n| `encryptOverrides`         | Encrypt toolbar overrides           |\n| `decryptOverrides`         | Decrypt toolbar overrides           |\n\nAll use `FLAGS_SECRET` by default. Example:\n\n```tsx\nimport { encryptFlagValues } from 'flags';\nimport { FlagValues } from 'flags\u002Freact';\n\nasync function ConfidentialFlags({ values }) {\n  const encrypted = await encryptFlagValues(values);\n  return \u003CFlagValues values={encrypted} \u002F>;\n}\n```\n\n## React components\n\n```tsx\nimport { FlagValues, FlagDefinitions } from 'flags\u002Freact';\n\n\u002F\u002F Renders script tag with flag values for Flags Explorer\n\u003CFlagValues values={{ myFlag: true }} \u002F>\n\n\u002F\u002F Renders script tag with flag definitions for Flags Explorer\n\u003CFlagDefinitions definitions={{ myFlag: { options: [...], description: '...' } }} \u002F>\n```\n\n## References\n\nDetailed framework and provider guides are in separate files to keep context lean:\n\n- **[references\u002Fnextjs.md](references\u002Fnextjs.md)**: Next.js quickstart, toolbar, App Router, Pages Router, middleware\u002Fproxy, precompute, dedupe, dashboard pages, marketing pages, suspense fallbacks\n- **[references\u002Fsveltekit.md](references\u002Fsveltekit.md)**: SvelteKit quickstart, toolbar, hooks setup, precompute with reroute + middleware, dashboard pages, marketing pages\n- **[references\u002Fproviders.md](references\u002Fproviders.md)**: All provider adapters — Vercel, Global Config, Statsig, LaunchDarkly, PostHog, GrowthBook, Hypertune, Flagsmith, Reflag, Split, Optimizely, OpenFeature, and custom adapters\n- **[references\u002Fapi.md](references\u002Fapi.md)**: Full API reference for `flags`, `flags\u002Freact`, `flags\u002Fnext`, and `flags\u002Fsveltekit`\n","# Flags SDK\n\nThe 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 Flags is the first-party provider, letting you manage flags from the Vercel dashboard or the `vercel flags` CLI.\n\n- Docs: https:\u002F\u002Fflags-sdk.dev\n- Repo: https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags\n\n## Core concepts\n\n### Flags as code\n\nEach flag is declared as a function. No string keys at call sites:\n\n```ts\nimport { flag } from 'flags\u002Fnext';\n\nexport const exampleFlag = flag({\n  key: 'example-flag',\n  decide() { return false; },\n});\n\nconst value = await exampleFlag();\n```\n\n### Server-side evaluation\n\nFlags evaluate server-side to avoid layout shift, keep pages static, and maintain confidentiality. Combine routing middleware with the precompute pattern to serve static variants from CDN.\n\n### Adapter pattern\n\nAdapters replace `decide` and `origin` on a flag declaration, connecting your flags to a provider. Vercel Flags (`@flags-sdk\u002Fvercel`) is the first-party adapter. Third-party adapters are available for Statsig, LaunchDarkly, PostHog, and others.\n\n```ts\nimport { flag } from 'flags\u002Fnext';\nimport { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\nexport const exampleFlag = flag({\n  key: 'example-flag',\n  adapter: vercelAdapter,\n});\n```\n\n> **Version note**: The SDK is published as `flags` (renamed from `@vercel\u002Fflags`; that old name still appears in changelog history). `flags` 4.2.0+ accepts the adapter factory by reference (`adapter: vercelAdapter`) and resolves it once per declaration. Older versions require calling it (`adapter: vercelAdapter()`). The called form still works on new versions, so prefer the shorthand unless you're targeting `flags` \u003C 4.2.0.\n\n## Agent workflow: Creating a new flag\n\nWhen a user asks you to create or add a feature flag, follow these steps in order. Do not leave CLI steps as \"next steps\" for the user — execute them yourself.\n\n### Before you start\n\nCheck the project state to adapt commands and decide which steps you can skip:\n\n- Which lockfile is present (`pnpm-lock.yaml`, `package-lock.json`, `yarn.lock`, `bun.lockb`)? → Adapt all package manager commands accordingly (`pnpm add`, `npm install`, `yarn add`, `bun add`).\n- Is `flags` in `package.json`? → Skip install (step 1)\n- Does `.vercel\u002F` directory exist? → Project is linked, skip `vercel link` in step 2\n- Does `.env.local` contain `FLAGS=`? → Env vars already pulled, skip step 3\n- Does `flags.ts` (or `lib\u002Fflags.ts`, `src\u002Fflags.ts`) exist? → Add to it rather than creating from scratch (step 4)\n- Is `@vercel\u002Ftoolbar` in `package.json`? → Skip toolbar setup (step 6)\n- Does `app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts` exist? → Flags Explorer already set up, skip step 7\n\n### Steps\n\n1. **Install packages** (if not already in `package.json`):\n   ```bash\n   pnpm i flags @flags-sdk\u002Fvercel\n   ```\n\n2. **Register the flag with Vercel**: Run `vercel flags add \u003Cflag-key> --kind boolean --description \"\u003Cdescription>\"`.\n\n   > **Prerequisite**: The `vercel flags` commands require the Vercel CLI to be installed and authenticated. If the Vercel CLI is not installed, run `pnpm i -g vercel`. For authentication or linking issues, follow the `vercel-cli` skill if it's already available. If it isn't, suggest the user install it with `npx skills add vercel\u002Fvercel@vercel-cli` (don't auto-install it) and rely on `vercel \u003Ccommand> --help` in the meantime.\n\n   Before running `vercel flags add`, verify the project is linked to Vercel. Check for a `.vercel` directory in the project root. If it doesn't exist, run `vercel link` first.\n\n3. **Pull environment variables**: Run `vercel env pull` to write `FLAGS` and `FLAGS_SECRET` to `.env.local`. Without these environment variables, `vercelAdapter` will not be able to evaluate flags. This step is **mandatory** after creating a flag.\n\n4. **Declare the flag in code**: Add it to `flags.ts` (or create the file if it doesn't exist) using `vercelAdapter`:\n   ```ts\n   import { flag } from 'flags\u002Fnext';\n   import { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\n   export const myFlag = flag({\n     key: 'my-flag',\n     adapter: vercelAdapter,\n   });\n   ```\n\n5. **Use the flag**: Call it in your page or component and conditionally render based on the result:\n   ```tsx\n   import { myFlag } from '..\u002Fflags';\n\n   export default async function Page() {\n     const enabled = await myFlag();\n     return \u003Cdiv>{enabled ? 'Feature on' : 'Feature off'}\u003C\u002Fdiv>;\n   }\n   ```\n\n6. **Set up the Vercel Toolbar** (if not already present):\n   - Run `pnpm i @vercel\u002Ftoolbar`\n   - Wrap `next.config.ts` with the toolbar plugin\n   - Render `\u003CVercelToolbar \u002F>` in the root layout\n   See [references\u002Fnextjs.md — Toolbar Setup](references\u002Fnextjs.md#toolbar-setup) for the full code.\n\n7. **Set up Flags Explorer** (if not already present): Create `app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts` — see the [Flags Explorer setup](#flags-explorer-setup) section below.\n\n## Vercel Flags\n\nVercel Flags is Vercel's feature flags platform. You create and manage flags from the Vercel dashboard or the `vercel flags` CLI, then connect them to your code with the `@flags-sdk\u002Fvercel` adapter. When you create a flag in Vercel, the `FLAGS` and `FLAGS_SECRET` environment variables are configured automatically.\n\nTo create a flag end-to-end, follow the [Agent workflow](#agent-workflow-creating-a-new-flag) above.\n\nFor the full Vercel provider reference — user targeting, `vercel flags` CLI subcommands, custom adapter configuration, and Flags Explorer setup — see [references\u002Fproviders.md](references\u002Fproviders.md#vercel).\n\n## Declaring flags\n\nWhen using Vercel Flags, declare flags with `vercelAdapter` as shown in the [Agent workflow](#agent-workflow-creating-a-new-flag). For other providers, see [references\u002Fproviders.md](references\u002Fproviders.md). Below are the general `flag()` patterns.\n\n### Basic flag\n\n```ts\nimport { flag } from 'flags\u002Fnext'; \u002F\u002F or 'flags\u002Fsveltekit'\n\nexport const showBanner = flag\u003Cboolean>({\n  key: 'show-banner',\n  description: 'Show promotional banner',\n  defaultValue: false,\n  options: [\n    { value: false, label: 'Hide' },\n    { value: true, label: 'Show' },\n  ],\n  decide() { return false; },\n});\n```\n\n### Flag with evaluation context\n\nUse `identify` to establish who the request is for. The returned entities are passed to `decide`:\n\n```ts\nimport { dedupe, flag } from 'flags\u002Fnext';\nimport type { ReadonlyRequestCookies } from 'flags';\n\ninterface Entities {\n  user?: { id: string };\n}\n\nconst identify = dedupe(\n  ({ cookies }: { cookies: ReadonlyRequestCookies }): Entities => {\n    const userId = cookies.get('user-id')?.value;\n    return { user: userId ? { id: userId } : undefined };\n  },\n);\n\nexport const dashboardFlag = flag\u003Cboolean, Entities>({\n  key: 'new-dashboard',\n  identify,\n  decide({ entities }) {\n    if (!entities?.user) return false;\n    return ['user1', 'user2'].includes(entities.user.id);\n  },\n});\n```\n\n### Flag with another adapter\n\nAdapters connect flags to third-party providers. Each adapter replaces `decide` and `origin`:\n\n```ts\nimport { flag } from 'flags\u002Fnext';\nimport { statsigAdapter } from '@flags-sdk\u002Fstatsig';\n\nexport const myGate = flag({\n  key: 'my_gate',\n  adapter: statsigAdapter.featureGate((gate) => gate.value),\n  identify,\n});\n```\n\nSee [references\u002Fproviders.md](references\u002Fproviders.md) for all supported adapters.\n\n### Key parameters\n\n| Parameter      | Type                               | Description                                          |\n| -------------- | ---------------------------------- | ---------------------------------------------------- |\n| `key`          | `string`                           | Unique flag identifier                               |\n| `decide`       | `function`                         | Resolves the flag value                              |\n| `defaultValue` | `any`                              | Fallback if `decide` returns undefined or throws     |\n| `description`  | `string`                           | Shown in Flags Explorer                              |\n| `origin`       | `string`                           | URL to manage the flag in provider dashboard         |\n| `options`      | `{ label?: string, value: any }[]` | Possible values, used for precompute + Flags Explorer|\n| `adapter`      | `Adapter`                          | Provider adapter implementing `decide` and `origin`  |\n| `identify`     | `function`                         | Returns evaluation context (entities) for `decide`   |\n\n## Dedupe\n\nWrap shared functions (especially `identify`) in `dedupe` to run them once per request:\n\n```ts\nimport { dedupe } from 'flags\u002Fnext';\n\nconst identify = dedupe(({ cookies }) => {\n  return { user: { id: cookies.get('uid')?.value } };\n});\n```\n\nNote: `dedupe` is not available in Pages Router.\n\n## Bulk evaluation\n\nTo evaluate **multiple** flags at once, call `evaluate()` (from `flags\u002Fnext`) instead of awaiting flags one at a time or using `Promise.all()`. To evaluate a **single** flag, just call it: `await myFlag()`.\n\n```ts\nimport { evaluate } from 'flags\u002Fnext';\nimport { flagA, flagB } from '..\u002Fflags';\n\n\u002F\u002F avoid: each await blocks the next, so the flags resolve sequentially\nconst a = await flagA();\nconst b = await flagB();\n\n\u002F\u002F avoid: parallel, but each flag is evaluated in isolation\nconst [a, b] = await Promise.all([flagA(), flagB()]);\n\n\u002F\u002F prefer: shares work across the batch\nconst [a, b] = await evaluate([flagA, flagB]);\n```\n\n`evaluate()` is faster than both approaches. Awaiting flags one at a time makes total latency the sum of every flag's evaluation instead of the slowest single flag, while `Promise.all()` runs them in parallel but evaluates each in isolation. `evaluate()` pre-reads headers, cookies, and overrides once for the whole batch and lets adapters resolve a group in a single call, which reduces the number of parallel promises the runtime manages and leaves less room for the async work to be interrupted by other microtasks.\n\nIt accepts either an **array** (positional results) or an **object** (keyed results):\n\n```ts\nconst [a, b] = await evaluate([flagA, flagB]);\nconst { a, b } = await evaluate({ a: flagA, b: flagB });\n```\n\nOutside App Router (Pages Router `getServerSideProps`\u002FAPI routes, or routing middleware), pass the request as the second argument: `await evaluate([flagA, flagB], request)`.\n\n`evaluate()` always evaluates flags at request time. It is not for reading [precomputed](#precompute-pattern) (static) values — for those, use `getPrecomputed` (or call the flag with the code, `await myFlag(code, flagGroup)`).\n\nAdapters can opt into batching by implementing the optional `bulkDecide` hook. The Vercel adapter (`@flags-sdk\u002Fvercel`) implements it — roughly a 10x reduction in evaluation time when resolving hundreds of flags. See [references\u002Fproviders.md — Custom Adapters](references\u002Fproviders.md#custom-adapters) for implementing `bulkDecide`, and [references\u002Fapi.md — `evaluate`](references\u002Fapi.md#evaluate) for the full signature.\n\n## Flags Explorer setup\n\n### Next.js (App Router)\n\n```ts\n\u002F\u002F app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts\nimport { createFlagsDiscoveryEndpoint } from 'flags\u002Fnext';\nimport { getProviderData } from '@flags-sdk\u002Fvercel';\nimport * as flags from '..\u002F..\u002F..\u002F..\u002Fflags';\n\nexport const GET = createFlagsDiscoveryEndpoint(async () => {\n  return getProviderData(flags);\n});\n```\n\n### With external provider data\n\nWhen using a third-party provider alongside Vercel Flags, combine their data with `mergeProviderData`. Each provider adapter exports its own `getProviderData` — see the provider-specific examples in [references\u002Fproviders.md](references\u002Fproviders.md).\n\n### SvelteKit\n\n```ts\n\u002F\u002F src\u002Fhooks.server.ts\nimport { createHandle } from 'flags\u002Fsveltekit';\nimport { FLAGS_SECRET } from '$env\u002Fstatic\u002Fprivate';\nimport * as flags from '$lib\u002Fflags';\n\nexport const handle = createHandle({ secret: FLAGS_SECRET, flags });\n```\n\n## FLAGS_SECRET\n\nRequired for precompute and Flags Explorer. Must be 32 random bytes, base64-encoded:\n\n```sh\nnode -e \"console.log(crypto.randomBytes(32).toString('base64url'))\"\n```\n\nUse a separate `FLAGS_SECRET` value for each environment (Development, Preview, Production), and mark the Preview and Production values as Sensitive. Run the generator once per environment to produce distinct values, then store each on Vercel:\n\n```sh\nvercel env add FLAGS_SECRET production --sensitive --value \u003Cproduction-secret>\nvercel env add FLAGS_SECRET preview --sensitive --value \u003Cpreview-secret>\nvercel env add FLAGS_SECRET development --value \u003Cdevelopment-secret>\n```\n\nThen run `vc env pull` to sync to local.\n\n## Precompute pattern\n\nUse precompute to keep pages static while using feature flags. Middleware evaluates flags and encodes results into the URL via rewrite. The page reads precomputed values instead of re-evaluating.\n\nHigh-level flow:\n1. Declare flags and group them in an array\n2. Call `precompute(flagGroup)` in middleware, get a `code` string\n3. Rewrite request to `\u002F${code}\u002Foriginal-path`\n4. Page reads flag values from `code`: `await myFlag(code, flagGroup)`\n\nFor full implementation details, see framework-specific references:\n- **Next.js**: See [references\u002Fnextjs.md](references\u002Fnextjs.md) — covers proxy middleware, precompute setup, ISR, generatePermutations, multiple groups\n- **SvelteKit**: See [references\u002Fsveltekit.md](references\u002Fsveltekit.md) — covers reroute hook, middleware, precompute setup, ISR, prerendering\n\n## Custom adapters\n\nCreate an adapter factory that returns an object with `origin` and `decide`. For the full pattern (including default adapter and singleton client examples), see [references\u002Fproviders.md](references\u002Fproviders.md#custom-adapters).\n\n## Encryption functions\n\nFor keeping flag data confidential in the browser (used by Flags Explorer):\n\n| Function                   | Purpose                             |\n| -------------------------- | ----------------------------------- |\n| `encryptFlagValues`        | Encrypt resolved flag values        |\n| `decryptFlagValues`        | Decrypt flag values                 |\n| `encryptFlagDefinitions`   | Encrypt flag definitions\u002Fmetadata   |\n| `decryptFlagDefinitions`   | Decrypt flag definitions            |\n| `encryptOverrides`         | Encrypt toolbar overrides           |\n| `decryptOverrides`         | Decrypt toolbar overrides           |\n\nAll use `FLAGS_SECRET` by default. Example:\n\n```tsx\nimport { encryptFlagValues } from 'flags';\nimport { FlagValues } from 'flags\u002Freact';\n\nasync function ConfidentialFlags({ values }) {\n  const encrypted = await encryptFlagValues(values);\n  return \u003CFlagValues values={encrypted} \u002F>;\n}\n```\n\n## React components\n\n```tsx\nimport { FlagValues, FlagDefinitions } from 'flags\u002Freact';\n\n\u002F\u002F Renders script tag with flag values for Flags Explorer\n\u003CFlagValues values={{ myFlag: true }} \u002F>\n\n\u002F\u002F Renders script tag with flag definitions for Flags Explorer\n\u003CFlagDefinitions definitions={{ myFlag: { options: [...], description: '...' } }} \u002F>\n```\n\n## References\n\nDetailed framework and provider guides are in separate files to keep context lean:\n\n- **[references\u002Fnextjs.md](references\u002Fnextjs.md)**: Next.js quickstart, toolbar, App Router, Pages Router, middleware\u002Fproxy, precompute, dedupe, dashboard pages, marketing pages, suspense fallbacks\n- **[references\u002Fsveltekit.md](references\u002Fsveltekit.md)**: SvelteKit quickstart, toolbar, hooks setup, precompute with reroute + middleware, dashboard pages, marketing pages\n- **[references\u002Fproviders.md](references\u002Fproviders.md)**: All provider adapters — Vercel, Global Config, Statsig, LaunchDarkly, PostHog, GrowthBook, Hypertune, Flagsmith, Reflag, Split, Optimizely, OpenFeature, and custom adapters\n- **[references\u002Fapi.md](references\u002Fapi.md)**: Full API reference for `flags`, `flags\u002Freact`, `flags\u002Fnext`, and `flags\u002Fsveltekit`\n",{"name":5,"chainTo":24,"summary":33,"metadata":34,"retrieval":108,"description":7},[25,29],{"message":26,"pattern":27,"targetSkill":28},"Precompute pattern detected — loading Routing Middleware guidance for the middleware rewrites that serve static flag variants.","precompute\\s*\\(|generatePermutations|flags\u002Fnext.*precompute","routing-middleware",{"message":30,"pattern":31,"targetSkill":32},"Global Config flag adapter detected — loading Vercel storage guidance for Global Config setup and limits.","@flags-sdk\u002F(edge|global)-config|create(Edge|Global)ConfigAdapter","vercel-storage","Flags SDK guidance — declare flags with flag(), connect provider adapters, manage Vercel Flags via the vercel flags CLI, precompute static variants, and set up the Flags Explorer.",{"docs":35,"sitemap":38,"priority":39,"bashPatterns":40,"pathPatterns":51,"promptSignals":59,"importPatterns":101},[36,37],"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fflags","https:\u002F\u002Fflags-sdk.dev","https:\u002F\u002Fvercel.com\u002Fsitemap.xml",6,[41,42,43,44,45,46,47,48,49,50],"\\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","\\bbun\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b","\\byarn\\s+add\\s+[^\\n]*\\bflags\\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",[52,53,54,55,56,57,58],"flags.ts","flags.tsx","lib\u002Fflags.ts","src\u002Fflags.ts","lib\u002Fflags\u002F**","src\u002Fflags\u002F**",".well-known\u002Fvercel\u002Fflags\u002F**",{"allOf":60,"anyOf":74,"noneOf":76,"phrases":82,"minScore":39},[61,64,66,68,70,71],[62,63],"flag","rollout",[62,65],"variant",[62,67],"toggle",[62,69],"experiment",[69,65],[72,73],"split","test",[62,69,75,63,65],"experimentation",[77,78,79,80,81],"command-line flag","command line flag","cli flag","compiler flag","flag emoji",[83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],"feature flag","feature flags","flags sdk","vercel flags","flags explorer","feature gate","feature gating","a\u002Fb test","a\u002Fb testing","ab test","ab testing","flag rollout","gradual rollout","percentage rollout","kill switch","flag variant","flag adapter","precompute flags",[102,103,104,105,106,107],"flags\u002Fnext","flags\u002Fsveltekit","flags\u002Freact","flags","@flags-sdk\u002F*","@vercel\u002Fflags",{"aliases":109,"intents":111,"entities":117},[84,110,86,85,91],"feature toggles",[112,113,114,115,116],"add a feature flag","run an a\u002Fb test","gate a feature","roll out gradually","manage flags from cli",[118,119,120,121,122,123],"Flags SDK","Vercel Flags","Flags Explorer","vercelAdapter","precompute","FLAGS_SECRET","main","9836d94e88404aabb682086405c2aa9cba7657ac","plugins\u002Fvercel\u002Fskills\u002Fflags-sdk",156,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace","https:\u002F\u002Fgithub.com\u002FCognitionAI","https:\u002F\u002Fcognition.ai\u002F","Makers of Devin, the AI software engineer.","2026-11-13 07:08:23",{"source":8,"skillName":5,"commands":134,"prompt":144,"zipAvailable":145},[135,138,141],{"tool":136,"command":137},"npx","npx skills add CognitionAI\u002Fdevin-marketplace --skill flags-sdk",{"tool":139,"command":140},"bunx","bunx skills add CognitionAI\u002Fdevin-marketplace --skill flags-sdk",{"tool":142,"command":143},"pnpm","pnpm dlx skills add CognitionAI\u002Fdevin-marketplace --skill flags-sdk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fflags-sdk\u002FSKILL.md",true,[147,153,157,161,165],{"path":148,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":151,"sourceHtmlUrl":152},"overlay.yaml","REFERENCE","参考文档",3177,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fflags-sdk\u002Foverlay.yaml",{"path":154,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":155,"sourceHtmlUrl":156},"references\u002Fapi.md",10212,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fflags-sdk\u002Freferences\u002Fapi.md",{"path":158,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":159,"sourceHtmlUrl":160},"references\u002Fnextjs.md",12850,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fflags-sdk\u002Freferences\u002Fnextjs.md",{"path":162,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":163,"sourceHtmlUrl":164},"references\u002Fproviders.md",17789,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fflags-sdk\u002Freferences\u002Fproviders.md",{"path":166,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":167,"sourceHtmlUrl":168},"references\u002Fsveltekit.md",9396,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fflags-sdk\u002Freferences\u002Fsveltekit.md",[170,176,183,189,196,202],{"skillNo":171,"name":172,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":19},"01M7BYC4AJGM98P2G9JH7QS24Z","business-data","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwindsor-ai\u002Fskills\u002Fbusiness-data\u002FSKILL.md",[],[],{"skillNo":177,"name":178,"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":19},"01M7BYBZ0CD4CBCPZHRZ551BNK","workflow","Creates durable, resumable workflows using Vercel's Workflow SDK. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of \"workflow\", \"durable functions\", \"resumable\", \"workflow sdk\", \"queue\", \"event\", \"push\", \"subscribe\", or step-based orchestration.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002Fupstream\u002FSKILL.md",[],[],{"skillNo":184,"name":178,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":19},"01M7BYB1XSZHKHD8JZTQJ62JN0","Vercel Workflow SDK 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\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[],{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":19},"01M7BYASGMK935J33E21N5WTW0","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\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fverification\u002FSKILL.md",[],[],{"skillNo":197,"name":32,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":201,"publishedAt":19},"01M7BY9WJERKSKEH9HK6E71GW2","Vercel storage expert guidance — Blob, Global Config (formerly Edge Config), and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-storage\u002FSKILL.md",[],[],{"skillNo":203,"name":204,"nameZh":6,"description":205,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":206,"categories":207,"keywords":208,"publishedAt":19},"01M7BY9N034894YV2J9DCRZHYS","vercel-services","Configure and troubleshoot Vercel Services for multiple frontends and backends in one project. Use when composing a polyglot or multi-service application on one Vercel deployment; defining the `services` key, service-targeted rewrites, or service bindings in `vercel.json`; or running all services with `vercel dev`.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-services\u002FSKILL.md",[],[]]