flag-rules
Installation
SKILL.md
flag-rules
Entry point for rule operations on a GrowthBook feature flag. Use this skill to inspect rules, delete a rule, or reorder rules. For creating or editing rules, this skill identifies the right rule type and routes to the specialized skill.
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.
Rule types reference
| Type | What it does | Skill |
|---|---|---|
force / rollout |
Serve a specific value, optionally to a random % of users. rollout is the same type as force but with coverage < 1 and a required hashAttribute — the server auto-flips between the two based on effective coverage. |
flag-targeting |
experiment-ref |
Run an A/B test via a linked experiment | flag-experiment |
Rules evaluate top-to-bottom, first match wins. Order matters.