remove-feature-flag

Remove obsolete Warp feature flags from Rust codebase including Cargo.toml, enum variants and runtime checks.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/lalaABC/waprcn --skill remove-feature-flag-lalaabc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remove-feature-flag
Source: https://github.com/lalaABC/waprcn/tree/main/.agents/skills/remove-feature-flag
Command: npx skills add https://github.com/lalaABC/waprcn --skill remove-feature-flag-lalaabc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remove a feature flag after it has been rolled out and stabilized in the Warp codebase.

Core Features & Use Cases

  • Remove the flag definition from Cargo.toml and default features
  • Remove the enum variant and runtime checks
  • Clean up dead code references to the flag across codebase
  • Align documentation and tooling with permanent flags

Quick Start

Remove the feature flag from Cargo.toml, update the FeatureFlag enum, strip conditional compilations, and prune any associated runtime checks.

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 Cargo.toml file?

To remove a feature flag from Cargo.toml, delete the flag definition from the features section and default features list, then update the FeatureFlag enum and strip any conditional compilation attributes referencing it.

What is the best way to clean up obsolete feature flags in a Rust codebase?

The best way to clean up obsolete feature flags is to remove the definition from Cargo.toml, delete the enum variant, and prune all dead code references and runtime checks across the codebase during maintenance cycles.

When should I remove a feature flag from a stabilized codebase?

You should remove a feature flag when the feature has stabilized in production and is designated permanent, allowing you to safely clean up conditional compilations and dead code references during routine maintenance.

How do I strip conditional compilation checks after deleting a Rust feature flag?

To strip conditional compilation checks after deleting a Rust feature flag, remove the cfg attributes from app/src/lib.rs, delete the runtime checks, and prune any associated keybindings that referenced the flag usage.

Does removing a feature flag require updating the FeatureFlag enum?

Yes, removing a feature flag requires updating the FeatureFlag enum to delete the obsolete variant, alongside updating Cargo.toml, app/src/lib.rs, and all runtime checks to ensure complete codebase cleanup.

What happens to dead code references when I remove a Rust feature flag?

When you remove a Rust feature flag, dead code references must be pruned across the codebase to align documentation and tooling, ensuring no conditional compilations or runtime checks remain for the permanent feature.