Skip to content
AI & Agents
Command

/flag-cleanup

Run the quarterly feature-flag cleanup workflow on the current repo

From plugin
claude-skills
30k173 skills129 agents173 commands2 MCP
$ npx -y skills add alirezarezvani/claude-skills --agent claude-code

Command definition

flag-cleanup.md
name: flag-cleanup
description: Run the quarterly feature-flag cleanup workflow on the current repo

/flag-cleanup

Run the full feature-flag cleanup workflow:

1. Scan for stale flags (older than 90 days, used in ≤2 places) 2. For each candidate, identify the introducing PR/issue and current owner 3. Generate a removal plan grouped by owner 4. Run kill-switch audit against the flag-doc registry 5. Output a markdown report ready to share with the team

Usage

/flag-cleanup
/flag-cleanup --max-age-days 60
/flag-cleanup --flag-doc runbooks/flags.md

Implementation

This command dispatches to the `feature-flags-architect` skill:

SKILL=engineering/feature-flags-architect/skills/feature-flags-architect

# Step 1: scan for debt
python "$SKILL/scripts/flag_debt_scanner.py" --repo . --max-age-days "${MAX_AGE_DAYS:-90}" --format json > .flag-debt.json

# Step 2: audit kill switches
python "$SKILL/scripts/kill_switch_audit.py" --repo . --flag-doc "${FLAG_DOC:-docs/feature-flags.md}" --format json > .kill-switch-audit.json

# Step 3: synthesize a markdown report
# (Claude reads both JSON files, groups by owner, drafts the cleanup plan)

Output

A markdown report with:

  • **Stale flag candidates** grouped by owner, with introducing commit links
  • **Undocumented flags** that fail the kill-switch audit
  • **Incomplete documentation** (missing fields per flag)
  • **Suggested removal PRs** — one per owner

Pre-conditions

  • Run from a git repository with the source code committed
  • A flag-doc registry exists (default: `docs/feature-flags.md`)
  • The `feature-flags-architect` skill is installed

Post-conditions

  • `.flag-debt.json` and `.kill-switch-audit.json` written to repo root (ignored via `.gitignore`)
  • Markdown report streamed to terminal
  • Recommended next step printed (which removal PR to start with)
Read more
@alirezarezvani
Ships withclaude-skills

415 production-ready skills for Claude Code and 12 other coding agents, covering engineering, product, marketing, compliance, finance and the C-suite. We test whether each skill loads when you ask in plain words, and publish the results.

30k200 skills129 agents2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
29.8k
Star history of alirezarezvani/claude-skills on GitHub, a chart by star-history.com

Other commands on claude-skills.

focused-fix

focused-fix

Command

Deep-dive feature repair — systematically fix an entire feature/module across all its files and dependencies. Usage: /focused-fix…

plugin-audit

plugin-audit

Command

Comprehensive audit pipeline for skills, plugins, agents, and commands. Validates structure, quality, security, marketplace…

More commands from other plugins.

devbox-entrypoint

devbox-entrypoint

Command

Context: runloop resumes a devbox by re-running the same entrypoint script, which invokes `cn serve --id <agentId> ...`. Because…

@continuedev@continuedevInstall Command
c

c

Command

Shortcut for "continue working" — pick the work in flight back up exactly where it stopped and keep going until it is done or…

lifeos2w20k
@danielmiessler@danielmiesslerInstall Command
sidecar

sidecar

Command

Spawn a read-only sidecar subagent to investigate something in this checkout without editing files, moving branches, or touching…

@builderio@builderioInstall Command