feature-flags

Generate typed feature-flag infrastructure for iOS and macOS apps with SwiftUI integration.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/mazicimert/RunDom --skill feature-flags-mazicimert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-flags
Source: https://github.com/mazicimert/RunDom/tree/main/.claude/skills/generators/feature-flags
Command: npx skills add https://github.com/mazicimert/RunDom --skill feature-flags-mazicimert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing feature rollouts and experimentation across iOS and macOS apps can be error-prone and opaque. This skill provides a cohesive, typed feature-flag infrastructure that supports local defaults, remote overrides, and safe fallbacks to keep apps stable during experiments.

Core Features & Use Cases

  • Local defaults and typed flag definitions for predictable behavior.
  • Remote configuration support with a disk-backed cache for offline resilience.
  • Composite architecture that combines local defaults with remote overrides (remote wins when available).
  • SwiftUI integration via an @Observable manager and Environment key for seamless UI binding.
  • Debug menu (DEBUG builds only) to override flags at runtime for testing and QA.
  • Ready-made templates to scaffold a production-grade feature flag layer for new projects or new features.

Quick Start

Use this skill to generate a complete feature-flag infrastructure with local defaults, remote configuration, SwiftUI integration, and a debug menu for toggling flags at runtime.

Frequently Asked Questions about feature-flags

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

FAQPage Schema
How do I set up feature flags with local defaults and remote configuration for SwiftUI apps?

Feature flags in SwiftUI apps are set up by generating a typed infrastructure blueprint with local defaults, optional remote configuration, and an @Observable manager. This provides safe fallbacks, disk-backed caching for offline resilience, and an Environment key for seamless UI binding.

What is a composite feature flag architecture and when do I need it for iOS?

A composite feature flag architecture combines local defaults with remote overrides, where remote values win when available. You need it for iOS when running A/B tests or gradual rollouts that require safe offline fallbacks and predictable behavior during network failures.

How do I add a debug menu to toggle feature flags at runtime in macOS or iOS apps?

You add a debug menu to toggle feature flags at runtime by generating DEBUG-only UI components within your feature flag infrastructure. This allows QA and testing to override typed flag values dynamically without redeploying the app.

Can I use remote config and A/B testing without breaking offline app behavior?

Yes, remote configuration and A/B testing can function offline by utilizing a composite provider architecture with a disk-backed cache. This ensures safe local defaults are used when network requests fail, maintaining app stability during experiments.

What's the best way to generate a production-grade feature flag layer for new Swift projects?

The best way to generate a feature flag layer is to scaffold production-grade templates that conform to established code patterns. This delivers typed flag definitions, SwiftUI integration, and built-in testability while ensuring safe defaults and caching.

Do I need external dependencies to implement feature flags in iOS and macOS apps?

No, you do not need external dependencies to implement feature flags. The infrastructure blueprint generates self-contained typed definitions, local defaults, remote configuration caching, and SwiftUI integration without relying on third-party libraries.