feature-flags

Featured

Generate feature flag infrastructure with local defaults, remote configuration, SwiftUI integration, and debug menu. Use when adding feature flags or A/B testing to iOS/macOS apps.

AI & Automation 564 stars 47 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
92
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Feature Flags Generator Generate a complete feature flag infrastructure with typed flag definitions, protocol-based providers (local, remote, composite), SwiftUI environment integration, an `@Observable` manager, and a debug menu for toggling flags at runtime. ## When This Skill Activates Use this skill when the user: - Asks to "add feature flags" or "add feature toggles" - Mentions A/B testing or gradual rollouts - Asks about Firebase Remote Config or similar remote configuration - Wants to disable features without shipping an app update - Mentions "kill switches" or "feature gates" - Wants to control features remotely for a subset of users - Asks for a debug menu to toggle features during development ## Pre-Generation Checks ### 1. Project Context Detection - [ ] Check for existing feature flag implementations - [ ] Check for Firebase Remote Config or third-party flag SDKs - [ ] Identify source file locations (Sources/, App/, or root) - [ ] Verify minimum deployment target (iOS 17+ / macOS 14+ for @Observable) ### 2. Conflict Detection Search for existing feature flag code: ``` Glob: **/*FeatureFlag*.swift, **/*FeatureToggle*.swift, **/*RemoteConfig*.swift Grep: "FeatureFlag" or "FeatureToggle" or "RemoteConfig" or "isFeatureEnabled" ``` If existing feature flag code is found: - Ask whether to replace or extend the existing implementation - Check for flag names or enum cases that could conflict If a third-party SDK (Firebase, LaunchDarkly, etc.) is detected: - As...

Details

Author
rshankras
Repository
rshankras/claude-code-apple-skills
Created
9 months ago
Last Updated
3 days ago
Language
Swift
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category