# remove-feature-flag

remove-feature-flag is a Claude Code skill that removes a stabilized feature flag from Warp code. It runs after the feature reaches all users and production is stable.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 720 repo stars
- Author: dominikmartn
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dominikmartn/harp/tree/HEAD/.agents/skills/remove-feature-flag/SKILL.md
- Updated: 2026-11-10
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/remove-feature-flag

## What it does

The remove-feature-flag skill removes a feature flag from the Warp codebase once the feature is enabled for every user and has settled in production. It edits `app/Cargo.toml`, removes the matching `FeatureFlag` variant from `warp_core/src/features.rs`, and clears the conditional entry in `app/src/lib.rs`.

It also searches flag lists, runtime checks, keybinding predicates, and branches for the former behavior. The search includes `crates/warp_tui/`, since the shared `FeatureFlag` can be referenced by the headless TUI. Validation uses `cargo nextest`, `cargo clippy` with `-D warnings`, and `./script/format`; the procedure excludes the full workspace suite and launching the GUI or TUI.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dominikmartn/harp --skill remove-feature-flag -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/remove-feature-flag/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/remove-feature-flag/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dominikmartn/harp --skill remove-feature-flag -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/remove-feature-flag/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dominikmartn/harp --skill remove-feature-flag -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/remove-feature-flag/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dominikmartn/harp .agents/skills/remove-feature-flag
```

2. **Manually: put the files in place**
- File: `.github/skills/remove-feature-flag/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dominikmartn/harp --skill remove-feature-flag -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dominikmartn/harp --path .agents/skills/remove-feature-flag
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/remove-feature-flag/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dominikmartn/harp/tree/HEAD/.agents/skills/remove-feature-flag/SKILL.md

## When to use it
- remove a permanent feature flag from `app/Cargo.toml`
- trace flag references across `app/`, `warp_core/`, and `crates/warp_tui/`
- clear keybinding predicates and obsolete disabled-feature branches
- validate affected packages with `cargo nextest` and `cargo clippy`

## Example prompts
- Remove `YourFeatureName` from the Warp codebase and trace every remaining reference.
- Inspect `app/Cargo.toml`, `warp_core/src/features.rs`, and `app/src/lib.rs`, then delete the related conditional paths.
- Run tests for the affected package, `cargo clippy` with `-D warnings`, and `./script/format` after the removal.

## Similar
- [Feature Flag Rollout taste](https://affpapa.org/en/nevibecode/prompts/feature-flag-rollout-taste.md) — prompt · ★ 178201 repo stars
- [launchdarkly-flag-cleanup](https://affpapa.org/en/nevibecode/skills/launchdarkly-flag-cleanup.md) — skill · 4200 installs
- [rust-refactor](https://affpapa.org/en/nevibecode/skills/rust-refactor.md) — skill · 331 installs
- [cleaning-up-stale-feature-flags](https://affpapa.org/en/nevibecode/skills/cleaning-up-stale-feature-flags.md) — skill · 466 installs
- [java-refactoring-remove-parameter](https://affpapa.org/en/nevibecode/skills/java-refactoring-remove-parameter.md) — skill · 8900 installs
- [rust-best-practices](https://affpapa.org/en/nevibecode/skills/morganlinton-rust-best-practices.md) — skill · 1100 installs

From the same set: [dominikmartn/harp](https://affpapa.org/en/nevibecode/by/dominikmartn/harp.md) — 62 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
