home / skills / andrelandgraf / fullstackrecipes / feature-flags-setup
This skill helps you implement feature flags with Flags SDK for server-side evaluation, environment toggles, and Vercel Toolbar integration.
npx playbooks add skill andrelandgraf/fullstackrecipes --skill feature-flags-setupReview the files below or copy the command above to add this skill to your agents.
---
name: feature-flags-setup
description: Implement feature flags using the Vercel Flags SDK with server-side evaluation, environment-based toggles, and Vercel Toolbar integration.
---
# Feature Flags with Flags SDK
To set up Feature Flags with Flags SDK, refer to the fullstackrecipes MCP server resource:
**Resource URI:** `recipe://fullstackrecipes.com/feature-flags-setup`
If the MCP server is not configured, fetch the recipe directly:
```bash
curl -H "Accept: text/plain" https://fullstackrecipes.com/api/recipes/feature-flags-setup
```
This skill implements feature flags using the Vercel Flags SDK with server-side evaluation, environment-based toggles, and Vercel Toolbar integration. It provides production-ready patterns and a step-by-step recipe for integrating flags into full-stack TypeScript apps. The setup focuses on predictable rollouts, secure server-side checks, and easy developer tooling via the Vercel Toolbar.
The implementation uses the Vercel Flags SDK to evaluate flags on the server, ensuring consistent behavior regardless of client state. Flags can be toggled per environment (development, staging, production) and controlled from Vercel or local environment variables. Integration with the Vercel Toolbar exposes flag controls to developers for debugging and manual testing without changing code.
Do I need client-side code to use Vercel Flags?
No — server-side evaluation is supported and recommended for security and consistency. Client flags can be added for UI-only behavior, but keep sensitive checks on the server.
How do I manage different environments?
Use environment-specific flag configurations in Vercel or environment variables for local testing. Treat staging and production separately and use the Toolbar for per-environment control.