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
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 -yInstalls 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- Infrastructure Cost Optimization447
- Capacity Planning446
- Container Registry Management446
- Third Party Integration444
- Continuous Testing443
- Artifact Management441
- Dependency Tracking441
- Graceful Shutdown441
- Blue Green Deployment440
- Disaster Recovery Testing440
- ML Pipeline Automation439
- ML Model Explanation438
- Release Planning438
- Cohort Analysis437
- Intermittent Issue Debugging436
- Recommendation Engine436
- Mocking Stubbing434
- Server Side Rendering434
- Data Migration Scripts432
- Correlation Tracing430
- Dimensionality Reduction430
- Synthetic Monitoring429
- Canary Deployment428
- Model Monitoring428
Similar to Feature Flag System
More Backend & APIscanary-deploymentaj-geddes/useful-ai-prompts428 installsGradual canary rollout that shifts traffic to a new version and rolls back automatically on metric breaches.
launchdarkly-guarded-rolloutlaunchdarkly/ai-tooling2.8K installsProgressive traffic rollout with metric monitoring and per-metric automatic rollback for LaunchDarkly flags.
launchdarkly-flag-targetinglaunchdarkly/ai-tooling4.2K installsControls LaunchDarkly flag targeting, rollouts, and environment promotion through the hosted MCP server with safety checks.
shipping-and-launchaddyosmani/agent-skills76K installsPre-launch checklist and staged rollout guide that gates production deploys on tests, security, monitoring, and rollback readiness.
feature-flags-architectalirezarezvani/claude-skills487 installsLifecycle-driven feature flag discipline: classify, ship, ramp, and retire flags with measurable debt.
configuration-managementaj-geddes/useful-ai-prompts451 installsMulti-environment configuration guide covering environment variables, secrets, feature flags, and 12-factor practices.