knowledge--feature-flag-implementation

Community

Master feature flag patterns for safe releases.

Authortetetratra
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Feature flags enable safe, staged deployments by isolating new behavior behind opt-in flags rather than risky code rewrites. This guide provides practical patterns and testing strategies to help teams adopt, validate, and retire feature flags with confidence.

Core Features & Use Cases

  • Pattern 1: unless + early return to guard existing code while the new path is behind a flag.
  • Pattern 2: if-else branching to keep old and new logic explicit during transition.
  • Test structure: set the flag default to the desired state in tests and organize test suites to cover both enabled and disabled scenarios.

Quick Start

Enable NEW_BEHAVIOR flags and run the relevant tests to validate behavior before migration.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: knowledge--feature-flag-implementation
Download link: https://github.com/tetetratra/dotfiles/archive/main.zip#knowledge-feature-flag-implementation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.