experiment-analyze
experiment-analyze
Fetch results, refresh the snapshot only when the cached data is over 24 hours old or the user wants a different phase/dimension cut, then interpret. This skill is the heaviest in the catalog because of the conditional polling loop and the statistical interpretation — slow down and do each step deliberately.
All API calls go through the bundled helper: ${CLAUDE_PLUGIN_ROOT}/scripts/gb-call. It needs GB_API_KEY — set in your shell, or written to ~/.config/growthbook/.env by /growthbook:gb-setup. If unset or invalid, gb-call's error message points back at /growthbook:gb-setup. The skill also uses sleep between poll calls.
Workflow
-
Fetch results + experiment metadata in one call.
/resultsreturns{ experiment, result }— the same payload that powers the GrowthBook UI's results view, so there's no need for a separate metadata call.If the user gave a name instead of an ID ("the checkout test"), resolve it first —
qmatches against name, tracking key, description, and hypothesis:gb-call GET '/api/v1/experiments?q=checkout&sortBy=dateUpdated&sortOrder=desc&limit=10'If more than one experiment plausibly matches, list the candidates and let the user pick — don't guess.