# add-feature-flag

> Claude/Codex skill by [@warpdotdev](https://omgskills.com/library/warpdotdev/index.md) · 66k stars · Updated 2026-11-13

Add a new feature flag to gate code changes in the Warp codebase.

Tags: bash, linux, macos, rust, shell, terminal, wasm, zsh

## Install

```sh
git clone https://github.com/warpdotdev/warp /tmp/warp && ln -s /tmp/warp/.agents/skills/add-feature-flag ~/.claude/skills/add-feature-flag
```

## From README

add-feature-flag Add a new feature flag to gate code changes in the Warp codebase. Overview Feature flags in Warp are compile-time flags that allow features to be selectively enabled for different channels (e.g.: Dev, Stable). They use a small runtime plumbing layer that checks if a flag is enabled. TUI note The FeatureFlag enum (warpcore/src/features.rs) and the runtime FeatureFlag::X.isenabled() check are SHARED by both front-ends: the GUI desktop app (app/) and the headless TUI (crates/warptui). The Cargo-feature steps in this skill (app/Cargo.toml, app/src/lib.rs) are GUI-app-specific. Prefer runtime isenabled() checks so a flag works in both front-ends with no per-binary wiring. Only if you truly need a compile-time Cargo feature in the TUI, wire it into crates/warptui/Cargo.toml as well. Test the TUI with ./script/run-tui.

## Links

- HTML page: https://omgskills.com/library/warpdotdev/warp/dot-agents/skills/add-feature-flag/
- GitHub: https://github.com/warpdotdev/warp
- Author: [@warpdotdev](https://omgskills.com/library/warpdotdev/index.md)

## More from this repo

- [factory-files](https://omgskills.com/library/warpdotdev/warp/resources/bundled/skills/factory-files/index.md) — Used to create and edit file-based Warp software factory definitions, in a repository tree rooted at a factory.yaml.
   - [@warpdotdev](https://omgskills.com/library/warpdotdev/index.md) · 66k stars
- [factory-mcp](https://omgskills.com/library/warpdotdev/warp/resources/bundled/skills/factory-mcp/index.md) — Use the Warp Factory MCP to hand work to a software factory and collaborate with it — bundle local work and send it to...
   - [@warpdotdev](https://omgskills.com/library/warpdotdev/index.md) · 66k stars
- [add-telemetry](https://omgskills.com/library/warpdotdev/warp/add-telemetry/index.md) — Used to add telemetry events to track user behavior or system events in the Warp codebase.
   - [@warpdotdev](https://omgskills.com/library/warpdotdev/index.md) · 64k stars
