Feature Flag Cleanup

Remove fully-rolled-out feature flags across frontend, API, and Terraform.

1|1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/btabaska/simpler-grants-documentation-automation --skill feature-flag-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Feature Flag Cleanup
Source: https://github.com/btabaska/simpler-grants-documentation-automation/tree/main/.cursor/skills/flag-cleanup
Command: npx skills add https://github.com/btabaska/simpler-grants-documentation-automation --skill feature-flag-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Workflow for safely removing a fully-rolled-out feature flag from the codebase. Identifies all flag check points across surfaces (Terraform, API, frontend), removes them while preserving the enabled behavior, updates tests, and verifies nothing broke. Use when a release gate has been fully rolled out and it's time to remove the flag.

Core Features & Use Cases

  • Identify all references to the flag across Terraform, API, and frontend surfaces.
  • Verify flag state and ensure removal preserves enabled behavior.
  • Plan, execute, and validate removal with tests and configuration cleanup.
  • Track changes with a blast-radius/template and a cleanup checklist.
  • Ensure rollback capability by re-adding the flag if issues arise.

Quick Start

Trigger the Flag Cleanup workflow with the target flag name and follow the guided steps to remove it from frontend, API, and infrastructure.

Frequently Asked Questions about Feature Flag Cleanup

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

FAQPage Schema
How do I safely remove a fully rolled out feature flag from my codebase?

Safely remove a feature flag by discovering all check points across frontend, API, and Terraform, deleting them while preserving the enabled behavior, and running post-removal validation tests to ensure nothing broke.

What is the process for cleaning up feature flags across frontend and infrastructure?

Feature flag cleanup involves cross-surface discovery to find all references, planning the removal with blast-radius templates, executing the deletion while preserving enabled behavior, and validating the changes with a rollback plan.

How do I find all references to a release gate before removing it?

Finding all references to a release gate requires cross-surface discovery across your Terraform infrastructure, API logic, and frontend code to map the complete blast radius before planning the removal.

Can I remove a feature flag from Terraform and API surfaces at the same time?

Yes, you can remove a feature flag across Terraform, API, and frontend surfaces simultaneously using a guided workflow that tracks changes with blast-radius templates, cleanup checklists, and rollback guidance in the change history.

When should I clean up a feature flag from my release management workflow?

You should clean up a feature flag when the release gate has been fully rolled out to production and you need to remove the flag checks while permanently preserving the enabled behavior across all surfaces.

How do I rollback a feature flag removal if something breaks?

To rollback a feature flag removal, you can re-add the flag to the codebase using the rollback guidance and change history embedded during the initial cleanup workflow execution.