sync-feature-flags

Synchronize Statsig feature gates with local Swift source code.

1|Updated Dec 8, 2025
One-click install
npx skills add https://github.com/adamayoung/popcorn --skill sync-feature-flags
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-feature-flags
Source: https://github.com/adamayoung/popcorn/tree/main/.claude/skills/sync-feature-flags
Command: npx skills add https://github.com/adamayoung/popcorn --skill sync-feature-flags

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates manual synchronization errors between Statsig feature gates and the application codebase, ensuring that flag definitions, descriptions, and cleanup remain consistent across the project.

Core Features & Use Cases

  • Automated Sync: Automatically detects new, updated, or removed feature flags by comparing Statsig gates against the local FeatureFlag.swift file.
  • Cascading Cleanup: Safely removes deprecated flags by identifying and cleaning up all references in dependencies, view models, views, and tests.
  • Use Case: When a feature is deprecated in Statsig, use this skill to perform a full impact analysis and automatically remove all associated code paths, preventing technical debt.

Quick Start

Run the sync-feature-flags skill to compare current Statsig gates with the local codebase and apply necessary updates.

Frequently Asked Questions about sync-feature-flags

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

FAQPage Schema
How do I sync Statsig feature gates with Swift source code?

To sync Statsig feature gates with Swift source code, run the skill to parse Statsig API responses and cross-reference them with the local FeatureAccess module, identifying additions, updates, and removals to maintain a single source of truth.

What is the best way to remove deprecated feature flags from a Swift project?

The best way to remove deprecated feature flags is to use a cascading cleanup process that safely deletes the flag and automatically cleans up all associated references in dependencies, view models, views, and tests, preventing technical debt.

Do I need a Statsig MCP server to automate feature flag synchronization?

Yes, you need the Statsig MCP server configured and accessible, as the feature gate discovery and validation processes require it to parse API responses and compare them against your local codebase.

How does automated feature flag synchronization detect code changes?

Automated feature flag synchronization detects code changes by comparing Statsig gate definitions against the local FeatureFlag.swift file, automatically identifying any new, updated, or removed feature flags to keep the project consistent.

Can I use this feature flag sync tool for impact analysis when deprecating features?

Yes, you can use this tool for impact analysis when deprecating features, as it identifies and cleans up all associated code paths across dependencies, view models, views, and tests before safely removing the deprecated flags.