
Launchdarkly Flag Cleanup
Safe removal of a LaunchDarkly feature flag from code, hardcoding the forward value after a completed rollout.
- skills.sh installs
- 2.5K
- GitHub stars
- 32
- last updated
- Jul 14, 2026
What it does
- Covers the full cleanup flow: codebase reference search, readiness check, forward value selection, code removal, PR creation, and verification
- Uses
get-removal-readinessfor a safe, caution, or blocked verdict, andget-flagsto compare critical environments before choosing the forward value - Enforces a hard stop when environments disagree on state or variation, and waits for user confirmation before any code changes
- Designed for teams that want to retire completed flags and archive them in LaunchDarkly after the code change
Install
$ npx -y skills add launchdarkly/ai-tooling --skill launchdarkly-flag-cleanup -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
LaunchDarkly Flag Cleanup
You're using a skill that will guide you through safely removing a feature flag from a codebase while preserving production behavior. Your job is to explore the codebase to understand how the flag is used, query LaunchDarkly to determine the correct forward value, remove the flag code cleanly, and verify the result.
If you haven't already identified which flag to clean up, use the flag discovery skill first to audit the landscape and find candidates.
Prerequisites
This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.
Required MCP tools:
get-removal-readiness: detailed safety check (orchestrates flag config, cross-env status, dependencies, code references, and expiring targets in parallel)get-flags: fetch flag configuration for a specific environment
Optional MCP tools:
archive-flag: archive the flag in LaunchDarkly after code removaldelete-flag: permanently delete the flag (irreversible, prefer archive)
Core Principles
Details
- Repository
- github.com/launchdarkly/ai-tooling
- Categories
- Code Review & Quality, DevOps & Cloud
- First seen
- May 16, 2026
More from launchdarkly/ai-tooling
All 40- Launchdarkly Flag Create2.5K
- Launchdarkly Flag Discovery2.5K
- Launchdarkly Flag Targeting2.5K
- Aiconfig Create2.3K
- Aiconfig Projects2.3K
- Aiconfig Tools2.3K
- Aiconfig Update2.3K
- Aiconfig Variations2.3K
- Launchdarkly Metric Choose2.3K
- Launchdarkly Metric Create2.3K
- Launchdarkly Metric Instrument2.3K
- Aiconfig Online Evals2.2K
- Aiconfig Targeting2.2K
- Aiconfig Ai Metrics2K
- Aiconfig Custom Metrics2K
- Aiconfig Migrate2K
- Apply2K
- Detect2K
- Launchdarkly Experiment Setup2K
- Launchdarkly Guarded Rollout2K
- Mcp Configure2K
- Plan2K
- Sdk Install2K
- Aiconfig Agent Graphs1.8K
Similar to Launchdarkly Flag Cleanup
More Code Review & Quality
launchdarkly-flag-discoverySkilllaunchdarkly/ai-tooling2.5K installsAudit LaunchDarkly feature flags for staleness, lifecycle state, and removal readiness without changing them.
launchdarkly-flag-targetingSkilllaunchdarkly/ai-tooling2.5K installsControls LaunchDarkly flag targeting, rollouts, and environment promotion through the hosted MCP server with safety checks.
feature-flag-systemSkillaj-geddes/useful-ai-prompts447 installsImplementation guide for feature flags covering gradual rollouts, A/B tests, canaries, and kill switches.
feature-flags-architectSkillalirezarezvani/claude-skills484 installsLead-in summary of a feature-flag lifecycle skill with debt scanning, rollout planning, and kill-switch auditing tools.
shipping-and-launchSkilladdyosmani/agent-skills71.8K installsPre-launch checklist and staged rollout guide that gates production deploys on tests, security, monitoring, and rollback readiness.
launch_darkly-automationPluginComposioHQ/awesome-claude-skills51.5K starsAutomate LaunchDarkly tasks via Rube MCP (Composio): feature flags, environments, segments, and rollout management. Always search tools first for current schema