Skill 31 · Launchdarkly Flag Discovery
Subchapter 31.2
references/removal-readiness-checklist.mdMarkdown4 KBView on GitHub
A systematic safety check to determine whether a feature flag can be safely removed. Run through this checklist before recommending flag removal to a user.
Check: Use get-flag-status-across-envs to verify the flag’s state in all environments.
Pass criteria:
inactive or launched in ALL critical environments (production, staging, etc.)new or active stateFail criteria:
active in any critical environmentnew anywhere (still being rolled out)Check: Use get-flag for each critical environment and compare configurations.
Pass criteria:
fallthrough.variation or same offVariation)Caution criteria:
Fail criteria:
Check: Look for prerequisites in the flag configuration. Also check if this flag appears as a prerequisite in other flags.
Pass criteria:
Fail criteria (hard blocker):
Check: If available, use check-removal-readiness which includes code reference statistics. Otherwise, use get-code-references to find repositories that reference this flag.
Pass criteria:
Caution criteria:
Note: Code reference scanning has limitations. It tracks static string matches and may miss dynamic flag key construction (flag-${name}) or have false positives from comments/documentation.
Check: Look for scheduled expiring targets on the flag.
Pass criteria:
Caution criteria:
Check: The temporary field on the flag.
Pass criteria:
temporary: it was intended to be removedCaution criteria:
permanent: it may be intentionally long-lived. Confirm with the user before recommending removal.After running the checklist, categorize the result:
All checks pass. No blockers or warnings.
No hard blockers, but warnings exist.
Hard blockers prevent safe removal.
Structure the assessment as: