
launchdarkly-flag-cleanup
Safely remove a feature flag from code while preserving production behavior
by launchdarklyFree
Description
launchdarkly-flag-cleanup is an agent skill for removing a feature flag from a codebase while keeping production behaviour the same. The agent explores the code to see how the flag is used, queries LaunchDarkly to find the correct value to keep, removes the flag code cleanly, and verifies the result. The skill is for the moment after a flag has been fully rolled out and is no longer needed, and it relies on the remotely hosted LaunchDarkly MCP server. Its required tools are check-removal-readiness, which runs a combined safety check across flag configuration, environment status, dependencies, code references and expiring targets, and get-flag, which fetches a flag's configuration in a given environment. Optional tools archive the flag after the code is removed, or delete it. The skill names deletion as irreversible and prefers archiving. If the user has not yet picked which flag to clean up, the skill points to the flag discovery skill, which audits the flags in a project and finds candidates. The core principles emphasise that the production value of the flag must be preserved and that the agent must check before removing anything.…
Highlights
- Safely removes a feature flag from code
- Checks removal readiness through LaunchDarkly
- Keeps production behaviour the same
- Archive preferred over delete
- Pairs with the flag discovery skill
Ratings & Reviews
No ratings yet
Be the first to rate launchdarkly-flag-cleanup.
People also visit

launchdarkly-flag-discovery
Audit your LaunchDarkly feature flags to understand the landscape

first-flag
Create a boolean first flag, add evaluation, toggle on/off for end-to-end proof

launchdarkly-flag-targeting
Control LaunchDarkly feature flag targeting including toggling flags on/off
launchdarkly-flag-cleanup FAQ
What does this skill do?
It guides an agent through removing a feature flag from code while preserving the production behaviour.
How do I install it?
Run npx skills add https://github.com/launchdarkly/ai-tooling --skill launchdarkly-flag-cleanup.
What do I need to run it?
The remotely hosted LaunchDarkly MCP server, configured in your environment.
Does it delete the flag?
Only if you choose to. The skill says deletion is irreversible and prefers archiving the flag after the code is removed.
What if I do not know which flag to remove?
The skill points to the flag discovery skill to find candidates first.
Is it safe to install?
Gen Agent Trust Hub: Pass, Socket: Pass and Snyk: Pass.
What are the best launchdarkly-flag-cleanup alternatives?
Popular alternatives to launchdarkly-flag-cleanup include launchdarkly-flag-create, launchdarkly-flag-discovery and first-flag. See all launchdarkly-flag-cleanup alternatives










