flags-sdk

Manage feature flags and experiments across apps with provider adapters.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/robertsthomas/hellobrand --skill flags-sdk-robertsthomas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flags-sdk
Source: https://github.com/robertsthomas/hellobrand/tree/main/.agents/skills/flags-sdk
Command: npx skills add https://github.com/robertsthomas/hellobrand --skill flags-sdk-robertsthomas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Flags SDK unifies feature flag and experiment management across frameworks and providers, reducing the complexity of toggling features and running experiments in production.

Core Features & Use Cases

  • Flag declarations with keys, decide logic, and optional identify/origin.
  • Adapter-based integration with providers like Vercel, Statsig, LaunchDarkly, PostHog, GrowthBook, OpenFeature, and more.
  • Precompute patterns for static pages and ISR, with dedupe to minimize repeated work.
  • Flags Explorer integration and provider data merging for dashboards.
  • Supports Next.js App Router, Pages Router, and SvelteKit workflows.

Quick Start

Install the Flags SDK, declare a flag with a key and decide function, and call it in a route to see the evaluated value.

Frequently Asked Questions about flags-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage feature flags across multiple providers like LaunchDarkly and Statsig?

The Flags SDK manages feature flags across multiple providers using adapter-based integration. You can unify feature toggles and experiments from LaunchDarkly, Statsig, PostHog, and others within a single codebase workflow.

Can I use the Flags SDK for A/B testing in Next.js App Router?

Yes, the Flags SDK supports A/B testing in Next.js App Router workflows. You declare experiments with a key and decide function, then call them directly in your route to evaluate the assigned variant.

What is precompute in feature flag workflows and when do I need it?

Precompute in feature flag workflows evaluates flag values at build time for static pages and ISR. You need it to minimize repeated work during request processing, utilizing dedupe utilities to optimize performance.

Does the Flags SDK work with SvelteKit and OpenFeature?

Yes, the Flags SDK works with SvelteKit workflows and supports OpenFeature integration through its adapter system. This allows you to maintain consistent feature flag evaluation across different JavaScript frameworks.

How do I declare a feature flag with custom decision logic?

You declare a feature flag by defining a key, a decide function for evaluation logic, and an adapter. You can also include optional identify and origin parameters to target specific users or contexts.

Are there tools to visualize feature flag evaluations in a dashboard?

Yes, Flags Explorer integration provides dashboard visualization for feature flag evaluations. It merges provider data to display flag states and analytics across your connected services.