flag-toggle
Installation
SKILL.md
flag-toggle
Enable or disable a GrowthBook feature flag in a specific environment. Toggling an environment is the kill switch — when a flag is disabled in an environment, its rules don't evaluate and the SDK returns the default value for all users in that environment, regardless of what the rules say.
Like all flag changes, environment toggles go through the draft → review → publish flow. There is no bypass path — review is the happy path, not an obstacle.
All API calls go through the bundled helper: ${CLAUDE_PLUGIN_ROOT}/scripts/gb-call. It needs GB_API_KEY set in env or written to ~/.config/growthbook/.env by /growthbook:gb-setup.
Required inputs
- Flag ID — kebab-case key. Use flag-search to resolve if the user gives a description.
- Environment — the environment to toggle. If the user says "production" or "prod", confirm against the actual environment IDs.
- Direction — enable (
true) or disable (false). Infer from the user's words; confirm before mutating.