feature-flag-remove

feature-flag-remove is a command for Claude Code from carloshpdoc/ios-workflow-claude. It costs 0 tokens per session (2,974 once invoked), scanned C, original, Apache-2.0.

A command for removing a feature flag, which is a switch that turns a feature on or off in an application. It follows a written investigation plan and creates a Jira task for the cleanup work.

In plain words
What is it for?
Use it to clean up a named feature flag after running the required feature-flag check.
Why use it?
It gives the removal a defined process and requires the flag's investigation record before changes begin.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the ios-workflow plugin — 22 commands, 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/carloshpdoc/ios-workflow-claude/feature-flag-remove
Clone the repo
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude

Made for: Claude Code.

Or install ios-workflow, the plugin that ships this one along with the rest of its 22 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for feature-flag-remove

README.md
[![agentmods](https://agentmods.dev/badge/commands/carloshpdoc/ios-workflow-claude/feature-flag-remove.svg)](https://agentmods.dev/commands/carloshpdoc/ios-workflow-claude/feature-flag-remove)
Your own site
<a href="https://agentmods.dev/commands/carloshpdoc/ios-workflow-claude/feature-flag-remove"><img src="https://agentmods.dev/badge/commands/carloshpdoc/ios-workflow-claude/feature-flag-remove.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,974 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02974
Opus 5 $0.00000 $0.01487
Sonnet 5 $0.00000 $0.00595
Haiku 4.5 $0.00000 $0.00297

Measured 6d ago against content hash 4ebf5b27d926, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

feature-flag-remove scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf <scheme>/Coordinator/UniversalLink/Handlers/<V1Handler>/
plugins/ios-workflow/commands/feature-flag-remove.md · 377 lines

How it starts

The opening of the file, as written. The whole thing — 377 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Feature Flag Removal

Project context: Values in angle brackets below (e.g. <scheme>, <JIRA_KEY>, <flag-key-enum>) are resolved at runtime — detect them from the project (xcodebuild -list -json for the scheme, git/gh for repo & owner, the branch name for the Jira key, a codebase search for flag/font files), or ask if they cannot be inferred. This plugin ships no per-project config.

Remove the feature flag $ARGUMENTS following the investigation plan.

Prerequisite: Must have an investigation file at docs/feature-flags/issues/$ARGUMENTS.md. Run /feature-flag-check $ARGUMENTS first if it doesn't exist.

Steps

1. Create Jira Task

Create a Jira task in the current sprint using mcp__claude_ai_Atlassian__createJiraIssue:

  • Project: <JIRA_KEY>
  • Type: Task
  • Summary: Remove feature flag: $ARGUMENTS
  • Epic Link: <JIRA_KEY>-EPIC (Firebase Flags Clean Up)
  • Assignee: Current user (get from git config user.email)

Description template:

## Objective

Remove the `$ARGUMENTS` feature flag as part of the Firebase Feature Flags Maintenance initiative.

## Investigation

<Summary from docs/feature-flags/issues/$ARGUMENTS.md>

## Complexity

<Low/Medium/High based on investigation>

## Related

- Epic: <JIRA_KEY>-EPIC (Firebase Flags Clean Up)
- Notion: <notion-flags-tracker-url>

Save the Jira ticket number (e.g., <JIRA_KEY>-XXXX) for later use in commit messages and PR title.

2. Create Branch

Create a feature branch for this removal:

git checkout dev
git pull origin dev
git checkout -b feature/remove-flag-$ARGUMENTS

3. Check for Conflicting PRs

IMPORTANT: Before modifying RemoteConfig files, check for open PRs that touch the same files:

gh pr list --state open --json number,title,files --jq '.[] | select(.files[]?.path | test("<flag-key-enum>|<flag-defaults-file>")) | "PR #\(.number): \(.title)"'

If PRs are found:

  1. ⚠️ STOP and warn the user with the list of conflicting PRs
  2. Recommend syncing with those developers before proceeding
  3. Options:
    • Wait for the other PR to merge, then rebase
    • Coordinate with the other developer to avoid conflicts
    • Proceed only with explicit user confirmation

Read the full file on GitHub · 377 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 377 lines · 0 tokens per session scan C 4ebf5b27d926

Subscribe to this mod's changes

feature-flag-remove is a command published in the GitHub repository carloshpdoc/ios-workflow-claude (7 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,974 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.