pattern-feature-flags

Enable runtime feature control through configuration for multi-tenant apps.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/akourmaz/translate2 --skill pattern-feature-flags
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pattern-feature-flags
Source: https://github.com/akourmaz/translate2/tree/main/.agents/skills/pattern-feature-flags
Command: npx skills add https://github.com/akourmaz/translate2 --skill pattern-feature-flags

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Паттерн управления функциональностью через конфигурацию. Включение/выключение фич без деплоя кода. Поддерживает постепенный rollout и per-tenant управление.

Core Features & Use Cases

  • Gradual rollout of new features without deploying code.
  • A/B тестирование, per-tenant конфигурации и kill switches.
  • Trunk-based development enabler для безопасной поставки изменений.

Quick Start

Configure a new feature flag to enable a controlled rollout for a subset of users.

Frequently Asked Questions about pattern-feature-flags

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

FAQPage Schema
How do I enable or disable features at runtime without redeploying code?

Feature flags let you control functionality through runtime configuration, avoiding redeploys. You can toggle features on or off dynamically by evaluating a flag model against the current context.

What is the best way to manage gradual rollouts for a multi-tenant application?

Gradual rollouts in a multi-tenant app are managed by applying per-tenant overrides to feature flags. This allows you to enable new functionality for specific tenants or a subset of users before a full release.

Can I use feature flags for A/B testing and trunk-based development?

Feature flags support A/B testing by routing users to different feature variations dynamically. They also enable trunk-based development by decoupling deployment from release, allowing incomplete code to safely merge into the main branch.

How do feature flags handle evaluation context and caching?

Feature flag evaluation uses a specified context to determine the active state for a request, while caching ensures fast lookups. This lifecycle management prevents latency issues during runtime configuration checks.

Does this feature toggle pattern include admin controls and lifecycle management?

The feature toggle pattern includes admin controls for managing flag states and lifecycle management for defining flag types. This structure supports kill switches and ensures flags are properly retired after full rollout.