flag-targeting

Installation
SKILL.md

flag-targeting

Add, edit, or remove targeting rules on an existing GrowthBook feature flag. Handles force (serve a specific value to matched users) and rollout (serve a value to a random percentage of users) rule types, with full support for conditions, saved groups, and rule-level prerequisites.

Every change goes through a draft revision and requires publishing. For publishing, use flag-publish — it handles approval-required and merge-conflict failure modes.

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

Collect before starting:

  • Flag ID — kebab-case key. Use flag-search to resolve from a description.
  • Actionadd, edit, or remove. Infer from the user's request; confirm before mutating.

Per-action inputs

Installs
44
GitHub Stars
21
First Seen
Jun 2, 2026
flag-targeting — growthbook/skills