feature-flag-removal

Remove useRolloutFlag feature flags from front-end monorepos.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jordanfbrown/dotfiles --skill feature-flag-removal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-flag-removal
Source: https://github.com/jordanfbrown/dotfiles/tree/main/claude/dot-claude/skills/feature-flag-removal
Command: npx skills add https://github.com/jordanfbrown/dotfiles --skill feature-flag-removal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remove useRolloutFlag feature flags from front-end-monorepo. Use when cleaning up feature flags after rollout. Covers finding usages, removing conditionals, and cleanup verification.

Core Features & Use Cases

  • Find all references to a given flag across libs/apps.
  • Determine and standardize the flag value during cleanup.
  • Remove the flag usage, conditionals, and dead code with verification.
  • Validate changes with lint/tests to ensure no regressions.

Quick Start

Run the cleanup workflow on the target repository to locate the flag, remove its usages, and verify the results.

Frequently Asked Questions about feature-flag-removal

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

FAQPage Schema
How do I remove feature flags from a React monorepo after rollout?

Removing feature flags from a React monorepo involves locating all useRolloutFlag references, determining flag values, deleting conditional logic, and verifying the cleanup with lint and tests to ensure no dead code remains.

What is the best way to clean up dead code from feature flags in a frontend app?

Cleaning up dead code from feature flags requires an end-to-end workflow that finds usages, removes the conditional logic, and validates changes with lint and tests to ensure no regressions occur.

Can I use this to find feature flag usages across multiple apps and libraries?

Yes, you can find feature flag usages across multiple apps and libraries. The workflow targets front-end monorepos to locate all references to a given useRolloutFlag before removing conditionals and dead code.

How do I determine the value of a feature flag before removing it?

You determine the feature flag value during the cleanup process. The workflow includes steps to determine and standardize the flag value so you can safely resolve the correct conditional branch and remove dead code.

What precautions are needed when deleting feature flag conditionals?

Precautions for deleting feature flag conditionals include running lint and tests to validate changes. This end-to-end verification prevents regressions and ensures no dead code remains in the monorepo.