setup-feature-flags

Implement feature flags with registries, in-memory clients, and middleware integration.

Updated Oct 27, 2025
One-click install
npx skills add https://github.com/mariotoffia/gobridge --skill setup-feature-flags
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-feature-flags
Source: https://github.com/mariotoffia/gobridge/tree/main/.cursor/skills/setup-feature-flags
Command: npx skills add https://github.com/mariotoffia/gobridge --skill setup-feature-flags

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill teaches teams how to implement feature flags to decouple deployment from release, enabling safe rollouts, kill switches, and controlled cleanups in cloud-agnostic patterns.

Core Features & Use Cases

  • Flag registry: Centralized definition of feature flags with ownership, rollout, and expiration metadata.
  • In-memory client: Deterministic evaluation with overrides and per-user evaluation context for rollout decisions.
  • Middleware integration: Context propagation and easy integration into service pipelines via a flag-aware middleware layer.
  • Use Case: Roll out a new billing engine to a subset of users, with the option to quickly disable it on failure.

Quick Start

Set up a FlagRegistry, create an InMemoryClient, and evaluate a flag to observe rollout semantics.

Frequently Asked Questions about setup-feature-flags

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

FAQPage Schema
How do I decouple deployment from release using feature flags?

Feature flags decouple deployment from release by gating code paths behind typed flag keys evaluated at runtime, enabling controlled rollouts and immediate kill switches without redeploying. This skill provides registry and in-memory client implementations to manage this process.

What is the best way to implement a kill switch for a new service rollout?

A kill switch disables a feature instantly by toggling its flag state. This skill enables kill switches via a centralized flag registry and middleware integration, allowing you to quickly turn off problematic releases like a new billing engine without code changes.

How does deterministic rollout work with feature flags?

Deterministic rollout ensures consistent evaluation by using per-user context and typed flag keys. This skill implements an in-memory client that evaluates flags deterministically, supporting overrides and context propagation for precise rollout strategies.

How do I integrate feature flags into service middleware pipelines?

Feature flags integrate into service middleware via a flag-aware layer that propagates evaluation context across services. This skill covers middleware integration patterns, ensuring flags are consistently evaluated within cloud-agnostic service pipelines.

Can I manage feature flag expiration and ownership in a registry?

Yes, a flag registry centralizes feature flag definitions with ownership, rollout, and expiration metadata. This skill implements a registry pattern to maintain lifecycle control and prevent stale flags from accumulating in your codebase.

Do I need external dependencies to run an in-memory feature flag client?

No, this skill relies on an in-memory client implementation with no external dependencies. It provides deterministic evaluation, overrides, and testing capabilities directly within your application runtime.