vercelvercelOfficialยท1 Agent Skills Included

flags

Add feature flags and A/B tests to Next.js and SvelteKit apps

Adds feature flags and A/B testing to Next.js and SvelteKit applications through simple callable functions. Connects to any flag provider like Vercel, LaunchDarkly, Statsig, or PostHog through ready-made adapters. Eliminates layout shift and slow pages by evaluating flags server-side and keeping pages static. Guides AI agents to create, register, and wire up flags end to end without manual dashboard steps.
npx skills add vercel/flags --all -g -y
Available:

Tells AI coding agents how to safely edit the docs site, playground, and core flag engine by following package architecture rules, adapter patterns, and testing conventions.

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install Flags SDK?โ–ผ

Run `npx skills add vercel/flags --all -g -y` in your terminal to install this skill suite globally for your AI agent.

How to add feature flags to a Next.js app?โ–ผ

Declare each flag as a function with the flag() helper, then call it in server components, middleware, or API routes. Your AI agent can register the flag with Vercel, pull environment variables, and wire up the code automatically.

Does Flags SDK work with providers like LaunchDarkly or Statsig?โ–ผ

Yes. It ships with adapters for Vercel, LaunchDarkly, Statsig, PostHog, GrowthBook, Optimizely, and more, and you can also write custom adapters.

Can I use feature flags without hurting page speed?โ–ผ

Yes. Flags evaluate server-side and the precompute pattern keeps pages static, so there is no layout shift or client-side flicker.

Does Flags SDK support SvelteKit?โ–ผ

Yes. It provides a dedicated flags/sveltekit module with server hooks, precompute support, and toolbar integration for SvelteKit apps.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’