feature-flag-architecture

Design feature-flag systems with staged rollouts, tenant targeting, and lifecycle management.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/marquesfelip/agents-and-skills --skill feature-flag-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-flag-architecture
Source: https://github.com/marquesfelip/agents-and-skills/tree/main/skills/feature-flag-architecture
Command: npx skills add https://github.com/marquesfelip/agents-and-skills --skill feature-flag-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Feature flag architectures help teams safely release and iterate software by controlling exposure, reducing risk, and enabling controlled experimentation across tenants and users.

Core Features & Use Cases

  • Flag types: release, kill_switch, ops, experiment, permission; staged rollouts; tenant/user targeting; auditability and lifecycle.
  • Evaluation context and deterministic percentage rollouts; caching; monitoring and alerts; debt prevention.

Quick Start

Define a new flag with type, scope, and rollout plan, then deploy to production with monitoring.

Frequently Asked Questions about feature-flag-architecture

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

FAQPage Schema
How do I implement deterministic percentage rollouts for SaaS feature flags?

Deterministic percentage rollouts ensure users consistently see the same flag state by hashing evaluation context identifiers. This approach safely controls feature exposure across targeted tenants without random fluctuations during staged releases.

What types of feature flags should I use for kill switches and ops control?

Feature flags should be categorized by type: release, kill_switch, ops, experiment, and permission. Defining flag types and scopes ensures clear lifecycle management and appropriate usage for operational control and staged rollouts.

How do I target feature flags to specific tenants in a multi-tenant SaaS environment?

Tenant targeting uses evaluation context to expose features only to specific tenants or users. This allows controlled staged rollouts and safe experimentation within defined scopes across your SaaS environment.

How does in-process caching work for feature flag evaluation?

In-process caching stores flag configurations locally to evaluate feature flags rapidly without external network calls. This reduces latency during evaluation while maintaining deterministic percentage rollouts and consistent user targeting.

How do I manage feature flag debt and automate the removal process?

Feature flag debt is prevented by attaching expiry and ownership metadata to each flag. Automated removal processes retire stale flags after their lifecycle ends, ensuring clean code and reducing technical debt.

What monitoring and alerts do I need for a feature flag system?

Monitoring and alerts track feature flag evaluation metrics and rollout health across tenants. This observability detects issues during staged rollouts, enabling quick kill switch activation if exposure causes errors.