What problem does it solve?
Manually implementing feature flag systems for native iOS and macOS apps leads to inconsistent code, lack of remote control, and no easy way to test feature branches during development, wasting developer time and increasing rollout risk.
Core Features & Use Cases
- Typed flag definitions: Centralized enum for all feature flags with compile-time defaults to eliminate runtime errors from missing or misspelled flag keys.
- Flexible provider architecture: Supports local-only, remote-only, or composite (local + remote) flag sources for use cases like kill switches, A/B testing, and gradual rollouts.
- SwiftUI native integration: Built-in @Observable manager with environment injection for reactive flag access, plus a debug-only toggle menu to test feature branches without recompiling.
Use case: For a macOS music app, use this skill to add a feature flag for a new DSP chain, roll it out to 10% of users via remote config, and toggle it on/off in debug builds to test edge cases.
Quick Start
Use the feature-flags skill to generate a composite feature flag system with a debug menu for your macOS app's new gapless playback feature.