feature-flags

Evaluate boolean, percentage, targeted, and multivariate feature flags with Redis-backed storage.

53|1|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/cosmix/claude-code-setup --skill feature-flags
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-flags
Source: https://github.com/cosmix/claude-code-setup/tree/main/skills/feature-flags
Command: npx skills add https://github.com/cosmix/claude-code-setup --skill feature-flags

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill explains feature flag patterns for canary releases, A/B testing, and kill switches.

Core Features & Use Cases

  • Boolean & Percentage Flags: Simple toggles and gradual rollouts.
  • Targeted & Multivariate: User-based targeting and multi-variant experiments.
  • Runtime Evaluation: Efficient, centralized flag evaluation and auditing.

Quick Start

Implement a boolean flag to enable a new checkout flow for a subset of users.

Frequently Asked Questions about feature-flags

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

FAQPage Schema
How do I implement feature flags for gradual rollouts?

Feature flags enable gradual rollouts by controlling feature availability at runtime. Use boolean or percentage flags to expose new features to a subset of users, then incrementally increase the percentage until full deployment. This reduces risk by catching issues early in production.

What's the difference between canary releases and A/B testing with feature flags?

Canary releases use percentage flags to gradually expose a feature to increasing user cohorts, monitoring for errors. A/B testing uses multivariate flags to compare feature variants across user groups and measure impact. Both rely on feature flags but serve different goals: stability versus performance measurement.

Can I target specific users with feature flags?

Yes, targeted flags enable user-based feature control. Use deterministic hashing for consistent bucketing and rule-based evaluation to assign individual users or user groups to feature variants. This supports personalized rollouts, beta programs, and beta user targeting.

How do feature flags handle emergency kill switches?

Kill switches are boolean flags that instantly disable features at runtime without redeployment. When toggled off, the flag evaluation engine immediately stops routing traffic to the feature, providing rapid incident response without code changes or service restarts.

What infrastructure do I need to run feature flags in production?

Feature flags require Redis-backed storage for flag state, in-memory caching for low-latency evaluation, and a centralized evaluation engine. This setup supports versioning, auditing, and safe rollout patterns while keeping evaluation performant across distributed systems.

Do feature flags work for multivariate experiments?

Yes, multivariate flags support experiments with more than two variants. Rule-based evaluation assigns users to variant groups using deterministic hashing for consistency. This enables multi-armed testing beyond simple on/off toggles or A/B comparisons.