remove-feature-flag

Remove stabilized feature flags from Cargo features, enums, and runtime checks.

37|1|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/terzigolu/warp-lite --skill remove-feature-flag-terzigolu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remove-feature-flag
Source: https://github.com/terzigolu/warp-lite/tree/main/.agents/skills/remove-feature-flag
Command: npx skills add https://github.com/terzigolu/warp-lite --skill remove-feature-flag-terzigolu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Removing feature flags after stabilization reduces technical debt and keeps the codebase clean and maintainable.

Core Features & Use Cases

  • Automated removal: Remove the feature flag from Cargo.toml, the FeatureFlag enum, and all conditional checks.
  • Runtime clean-up: Eliminate dead branches and obsolete keybindings associated with the flag.
  • Governance & traceability: Update DOGFOOD_FLAGS and release notes to reflect permanent removal.

Quick Start

Create a PR that removes the feature flag from Cargo.toml, the enum, and all runtime checks after it has been stabilized in production.

Frequently Asked Questions about remove-feature-flag

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

FAQPage Schema
How do I remove a feature flag from a Rust codebase after rollout?

Removing a stabilized feature flag requires deleting its Cargo feature entry, stripping the FeatureFlag enum variant, and eliminating all conditional runtime checks to ensure no remaining flag-based behavior persists in the codebase.

What is the best way to clean up dead code branches from stabilized feature flags?

Cleaning up dead branches from stabilized feature flags involves removing the flag from Cargo.toml, deleting the FeatureFlag enum variant, and eliminating obsolete keybindings, then validating the removal with a build and test suite to prevent regressions.

How do I update Cargo features and runtime checks when deleting a feature flag?

When deleting a feature flag, update Cargo features by removing the declaration from Cargo.toml, and update runtime checks by deleting all conditional logic branches associated with that flag to ensure the feature is permanently enabled.

Does removing a feature flag require updating release notes and governance tracking?

Yes, removing a feature flag requires updating governance tracking such as DOGFOOD_FLAGS and release notes to reflect permanent removal, ensuring full traceability and preventing future confusion about the flag's status.

What are the limitations of manually removing feature flags without automated validation?

Manually removing feature flags without automated validation risks introducing regressions because leftover conditional checks or obsolete keybindings may persist, making it essential to validate the refactor with a build, tests, and a PR review.