/growthbook:feature-flagsfrom growthbook
Read and modify GrowthBook feature flags: create, search, toggle, target, schedule, ramp, monitor, publish drafts, and archive. Activates on mentions of feature flags, rollouts, targeting rules, percentage releases, saved groups, prerequisites, draft revisions, flag approvals, or flag cleanup.
Ships in growthbook. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Domain router for GrowthBook feature flags. Every flag workflow lives in a reference file under references/. Read this router, pick the workflow that matches the user's intent, then read that one file and follow it.
Flags use the v2 API (/api/v2/features). Environments, projects, and saved groups are v1.
All API calls go through the bundled helper. Under the Claude Code plugin install, it lives at ${CLAUDE_PLUGIN_ROOT}/scripts/gb-call (the plugin root). Under npx skills install, it lives at scripts/gb-call relative to this skill's directory. Resolve that path once and substitute it whenever a reference example says gb-call; do not assume gb-call is on PATH. It reads GB_API_KEY from the environment first, then falls back to ~/.config/growthbook/.env (written by gb-setup); environment variables take precedence.
When a workflow needs to present a GrowthBook UI link, a shell-capable runtime should call gb-call app-origin once per conversation, retain the returned trusted origin across workflow and domain handoffs, and prepend it to the root-relative UI paths in the reference file. If the origin is already in context, reuse it; do not call the command once per link. Embedded or MCP adapters that already know their trusted app origin may resolve the same paths directly. Never derive an app origin from GB_API_URL; if app-origin refuses because self-hosted configuration is incomplete, route to gb-setup.
Read exactly one of these, based on what the user is doing. If two look plausible, read the more specific one.
| Read this | When the user wants to |
|---|---|
references/flag-create.md | Create a new flag |
references/flag-search.md | Find, list, or audit flags — by project, tag, owner, environment state, or staleness (read-only) |
references/flag-graph.md | Trace what a flag depends on, what depends on it, and its linked experiments or holdouts (read-only) |
references/flag-toggle.md | Enable or disable a flag in an environment — the kill switch |
references/flag-targeting.md | Add, edit, or remove force / rollout rules, conditions, saved groups, rule-level prerequisites |
references/flag-rules.md | List, reorder, or delete rules, or route to the right rule-type workflow |
references/flag-experiment.md | Add an experiment-ref rule so an A/B test runs through the flag |
references/flag-schedule.md | Time-gate a rule with a start and/or end datetime |
references/flag-ramp.md | Build or drive a multi-step ramp schedule (progressive coverage over time) |
references/flag-monitoring.md | Set up a monitored / safe rollout — a ramp plus guardrail metrics and optional auto-rollback |
references/flag-prerequisites.md | Gate the whole flag on another boolean flag |
references/flag-default-value.md | Change the value served when no rules match |
references/flag-metadata.md | Change description, owner, project, tags, custom fields, or JSON schema |
references/flag-revisions.md | See what drafts are open, who owns them, start or discard a draft |
references/flag-review.md | Request a review, or approve / request changes / comment on a draft |
references/flag-publish.md | Publish a draft, resolve a merge conflict, revert, or discard |
references/flag-cleanup.md | Archive or delete a stale flag, inlining its value at code sites first |
Ambiguity worth resolving before you read: "turn off the flag" is flag-toggle if they mean the whole environment, flag-rules if they mean one rule. "Roll this out" is flag-targeting for a one-shot percentage, flag-ramp for a schedule, flag-monitoring if guardrail metrics should gate it.
These hold across every flag workflow. The reference files assume them.
flag-publish owns the publish step; the write workflows hand off to it.version returned by the previous step instead of re-sending new. new auto-creates or reuses a draft, which can silently pick up a teammate's concurrent draft mid-chain. Only fall back to new (or /revisions/latest?mine=true) on a fresh start.rules replaces the entire array. The v2 rules array is top-level and scoped by environments or allEnvironments. GET the current rules first for any partial edit.defaultValue is always a string, whatever the flag's value type.id), never an internal Mongo id. Link to the UI path /features/<key>.GB_API_URL; API and UI origins need not share a hostname. A runtime with a trusted app origin may resolve the path; otherwise surface the root-relative path without guessing.Verified against the back-end handlers; don't collapse these into one another.
This revision requires approval before publishing). The policy gate is working as intended — hand to references/flag-review.md.POST /v2/features/<id> with {archived} both go through createAndPublishRevision, which raises a permission error rather than a bad-request error. Read the body — if it doesn't mention review, the token lacks permission outright and the problem is GB_API_KEY.ignoreWarnings retry would clear and which need a permission instead.confirmation.summary and confirmation.url, then poll gb-call GET '/api/v1/confirmations/<confirmation.id>?wait=30' until status is no longer pending or running; a hold expires after an hour.
completed → response holds the status and body the original request returned. Branch on it exactly as you would on a direct response; it can be an error. Confirming is not a review approval.rejected → nothing ran. Relay note to the user and stop.expired → nothing ran. Resend the request only if the user still wants it; that asks for a new confirmation.confirmation.id → gb-call GET '/api/v1/confirmations' lists the pending holds made by your key, newest first. Match on summary. Pass status=<status> to list another status.flag-search and flag-graph are read-only and must stay that way — they never POST, PUT, or DELETE. Every other workflow writes, and each one states its own confirmation requirements. flag-cleanup's archive-then-verify-then-delete gate is a product-safety pause, not a mutation confirmation: don't skip it even when the user sounds certain.
GrowthBook rate-limits at 60 rpm. flag-search and flag-graph fan out across paginated lists — cap loops explicitly and mention the call budget when it's non-obvious.
gb-call reports a missing or invalid GB_API_KEY.references/flag-cleanup.md (opens in a new tab)references/flag-create.md (opens in a new tab)references/flag-default-value.md (opens in a new tab)references/flag-experiment.md (opens in a new tab)references/flag-graph.md (opens in a new tab)references/flag-metadata.md (opens in a new tab)references/flag-monitoring.md (opens in a new tab)references/flag-prerequisites.md (opens in a new tab)references/flag-publish.md (opens in a new tab)references/flag-ramp.md (opens in a new tab)references/flag-review.md (opens in a new tab)references/flag-revisions.md (opens in a new tab)references/flag-rules.md (opens in a new tab)references/flag-schedule.md (opens in a new tab)references/flag-search.md (opens in a new tab)references/flag-targeting.md (opens in a new tab)references/flag-toggle.md (opens in a new tab)scripts/gb-call (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
growthbook, feature-flags, feature-toggles, rollout, targeting
4 skills in this plugin
/analyticsChart GrowthBook product data, build Analytics dashboards, manage the metric catalog, or query the warehouse directly — run Product Analytics explorations, save charts together on a dashboard, search metrics and fact tables, create fact metrics and their fact tables, or fall back to ad-hoc SQL. Use for "show me signups by country", "chart daily active users", "how many orders last week", "build me a dashboard", "put these metrics on a dashboard", "add a chart to this dashboard", "set up reporting for X", "find our revenue metric", "what fact tables exist", "create a metric", "define a metric on the orders table", "what tables contain user data", "run a SQL query", or any "show me / chart / plot / how many" question about product data. For an A/B test's results or choosing experiment metrics, use experiments. For feature flags, use feature-flags. For first-time API key configuration, use gb-setup./experimentsDesign, launch, analyze, and stop GrowthBook A/B tests, and search or record durable Learnings across experiments. Use for experiments, split tests, variations, hypotheses, sample size, guardrail metrics, SRM, chance to win, lift, declaring a winner, "what have we learned", "have we tested this before", or "record this learning". For bandits, identify them and direct the user to GrowthBook UI. For feature flags and rollouts, use feature-flags. For product analytics or metric catalog work, use analytics. For API key configuration, use gb-setup.npx claudepluginhub growthbook/skills --plugin growthbookOther plugins' skills for the same job