flag-experiment

Installation
SKILL.md

flag-experiment

Add an experiment-ref rule to a GrowthBook feature flag. This links a flag rule to a separately-managed GrowthBook experiment object — the experiment is the source of truth for variations, metrics, and analysis.

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.

Workflow

Path A — Add an experiment-ref rule

Use this when the user has an existing GrowthBook experiment or wants to launch one through a flag.

1. Fetch the flag and confirm the experiment exists:

gb-call GET /api/v2/features/<flag-id>

Capture valueType — you'll need it to map variation values correctly.

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