vercel avatar

Flags Sdk

vercel/flagsOfficial

Teaches Claude how to set up and work with the Flags SDK, a feature flags toolkit for Next.js and SvelteKit that treats flags as callable functions instead of string keys. The skill includes detailed workflows for creating flags end-to-end with Vercel Flags (including CLI commands like `vercel flags add` and env var setup), integrating third-party providers through adapters (Statsig, LaunchDarkly, PostHog), and implementing the precompute pattern to keep pages static. What makes this useful is the step-by-step agent workflow that checks project state first, then runs the actual commands rather than leaving them as next steps. Covers both App Router and Pages Router in Next.js, plus SvelteKit integration and the Vercel Toolbar setup.

skills.sh installs
2.7K
GitHub stars
628
last updated
Aug 21, 2026

Install

$ npx -y skills add vercel/flags --skill flags-sdk --agent claude-code

Installs into .claude/skills of the current project.

Files

Set up and use the Flags SDK

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 Flags is the first-party provider; its adapter is @flags-sdk/vercel.

This skill covers the code. Planning a flag, choosing between the Flags SDK, @vercel/flags-core, and OpenFeature, and managing flags in the dashboard or with the vercel flags CLI belong to the vercel-flags skill. Archiving a flag, deleting it, or removing a variant requires the checks in that skill (remove the code first, confirm no evaluations over the Skew Protection window, archive before rm); do not run those commands without it. If it is not available, suggest npx skills add vercel/flags@vercel-flags (do not auto-install) and run vercel flags <cmd> --help in the meantime. For a project on another framework, @vercel/flags-core replaces this SDK (Core SDK).

Sponsors

Details

Repository
github.com/vercel/flags
Categories
Frontend Development, Backend & APIs, Testing & QA, Documentation, Cloud & Infrastructure, CLI & Terminal
First seen
Apr 16, 2026
1tanstack-skills avatartanstack-virtualtanstack-skills/tanstack-skillsHeadless UI for virtualizing large element lists at 60FPS in TS/JS, React, Vue, Solid, Svelte, Lit & Angular.2.6Kskills.sh installs
2jezweb avatartanstack-queryjezweb/claude-skillsManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infin2.5Kskills.sh installs
3freshtechbro avataraframe-webxrfreshtechbro/claudedesignskillsDeclarative web framework for building browser-based 3D, VR, and AR experiences using HTML and entity-component architecture. Use this skill when creating WebXR2.5Kskills.sh installs
4geekjourneyx avatarmd2wechatgeekjourneyx/md2wechat-skillConvert Markdown to WeChat Official Account HTML. Use this whenever the user wants WeChat article formatting, article preview, WeChat draft upload, image genera2.5Kskills.sh installs
5mastra-ai avatare2e-tests-studiomastra-ai/mastraREQUIRED when modifying any file in packages/playground-ui or packages/playground. Triggers on: React component creation/modification/refactoring, UI changes, n2.5Kskills.sh installs
6vercel avatarupdate-docsvercel/next.jsGuided workflow for updating Next.js documentation based on code changes and PR reviews.2.4Kskills.sh installs