Safely remove a feature flag from code while preserving production behavior. Use when the user wants to remove a flag from code, delete flag references, or create a PR that hardcodes the winning variation after a rollout is complete.
Install
npx skills add launchdarkly/ai-tooling --skill launchdarkly-flag-cleanupnpx skills add launchdarkly/ai-tooling --skill launchdarkly-flag-cleanup -a claude-code -gnpx skills add launchdarkly/ai-tooling --skill launchdarkly-flag-cleanup -a codex -ggemini skills install https://github.com/launchdarkly/ai-tooling.git --path skills/feature-flags/launchdarkly-flag-cleanupgh skill install launchdarkly/ai-tooling launchdarkly-flag-cleanupgit clone --depth 1 https://github.com/launchdarkly/ai-tooling /tmp/launchdarkly__ai-tooling
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/launchdarkly__ai-tooling/skills/feature-flags/launchdarkly-flag-cleanup ~/.claude/skills/launchdarkly-flag-cleanup # Claude Code
cp -R /tmp/launchdarkly__ai-tooling/skills/feature-flags/launchdarkly-flag-cleanup ~/.agents/skills/launchdarkly-flag-cleanup # Codex, Cursor, Gemini CLI, Copilot, OpenCode