Skip to content
aj-geddes avatar

Feature Flag System

Implementation guide for feature flags covering gradual rollouts, A/B tests, canaries, and kill switches.

CCM score
38 of 100
skills.sh installs
447
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers flag configuration with rules, percentage rollouts, and weighted variants for controlled releases
  • Includes 5 reference guides: a TypeScript service, a React hook, analytics tracking, a LaunchDarkly-style SDK, and an admin UI
  • Recommends consistent hashing for stable rollouts and tracking every flag evaluation
  • Designed for teams that deploy features gradually, test in production, or need emergency kill switches

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill feature-flag-system -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Feature Flag System

Table of Contents

Overview

Implement feature flags to decouple deployment from release, enable gradual rollouts, A/B testing, and provide emergency kill switches.

When to Use

  • Gradual feature rollouts
  • A/B testing and experiments
  • Canary deployments
  • Beta features for specific users
  • Emergency kill switches
  • Trunk-based development
  • Dark launching
  • Operational flags (maintenance mode)
  • User-specific features

Quick Start

Minimal working example:

interface FlagConfig {
  key: string;
  enabled: boolean;
  description: string;
  rules?: FlagRule[];
  variants?: FlagVariant[];
  createdAt: Date;
  updatedAt: Date;
}

interface FlagRule {
  type: "user" | "percentage" | "attribute" | "datetime";
  operator: "in" | "equals" | "contains" | "gt" | "lt" | "between";
  attribute?: string;
  values: any[];
}

interface FlagVariant {
  key: string;
  weight: number;
  value: any;
}

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the feature-flag-system skill do?

The feature-flag-system skill implements feature flags for controlled rollouts, A/B testing, canary deployments and kill switches. It lets a team decouple deployment from release and roll features out gradually to users.

When should I use the feature-flag-system skill?

Use the feature-flag-system skill when deploying new features gradually, testing in production or managing feature lifecycles. It also covers beta features for specific users, dark launching and maintenance mode flags.

How do I install the feature-flag-system skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill feature-flag-system -y inside a project to install it. Once installed, the feature-flag-system skill gives the agent guidance and reference implementations for building flag evaluation with percentage and user rules.

Where does feature-flag-system sit among Backend & APIs skills?

The feature-flag-system skill is listed in the Backend & APIs category on Claude Marketplaces, alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. What sets it apart is its focus on flag rules, variants and stable percentage rollouts.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Feature Flag System

More Backend & APIs