Feature flags multiply quickly, and a tangle of inconsistent names turns into untouchable technical debt. This tool generates flag names in a consistent convention, with optional type prefixes and environment suffixes, so your toggles stay searchable and their purpose is obvious at a glance.
How it works
A name is assembled from up to four parts: an optional type prefix (enable, experiment, kill, ops), a feature word (checkout, dashboard, onboarding), an aspect word (redesign, flow, v2), and an optional environment suffix (prod, staging, dev). The parts are joined with the separator for your chosen case: an underscore for snake_case or a hyphen for kebab-case. Each generated batch is de-duplicated so you can scan a list of distinct candidates at once.
Tips and example
Sample output with the experiment prefix in snake_case:
experiment_pricing_table_v2
experiment_search_ranking_flow
experiment_signup_form_redesign
- Prefer descriptive names over cryptic ones.
enable_new_checkoutbeatsflag_42every time you grep the codebase six months later. - Use the type prefix to track lifecycle. When a launch is done, every
experiment_andkill_flag is a candidate for removal. - Avoid baking the environment into the name unless your platform forces a single flat namespace. Most tools scope flags per environment already.