ClaudeSuperPower

flag-rules

Skill

Entry point for working with rules on a GrowthBook feature flag. Use when the user asks "what rules does flag X have", "show me the rules on this flag", "add a rule", "delete a rule", "reorder the rules", or describes a flag operation without specifying the rule type. Routes to specialized skills fo

Install

git clone https://github.com/growthbook/skills.git ~/.claude/skills/flag-rules

What is flag-rules?

Entry point for working with rules on a GrowthBook feature flag. Use when the user asks "what rules does flag X have", "show me the rules on this flag", "add a rule", "delete a rule", "reorder the rules", or describes a flag operation without specifying the rule type. Routes to specialized skills for creating and editing specific rule types. Also handles listing, reordering, and deleting rules directly. For specific rule types, use flag-targeting for force/rollout rules, flag-experiment for experiment-ref rules, flag-schedule for timed activation, flag-ramp for progressive rollouts, flag-monitoring for monitored rollouts, flag-prerequisites for feature-level prerequisite gates.

What this can do

Capabilities declared in this component's own frontmatter — not inferred.

Run shell commands

Declares Bash

~172 tokens of context used while enabled, before you invoke anything

All declared tools (1)
Bash

Documentation

README · ~4 min read

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

TypeWhat it doesSkill
force / rolloutServe 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-refRun an A/B test via a linked experimentflag-experiment

Rules evaluate top-to-bottom, first match wins. Order matters.

Workflow

Reviews

Log in to leave a review.

No reviews yet — be the first.

Explore related

Other things in this space — across every part of the ecosystem, not just skills.