creating-experiments
Skill by PostHog
Guides AI assistants through creating a PostHog A/B test experiment as a draft. It is for teams that want setup choices checked against their project's data before the experiment is created.
Install creating-experiments
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/products/experiments/skills/creating-experiments ~/.claude/skills/creating-experimentsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/products/experiments/skills/creating-experiments ~/.gemini/antigravity-cli/skills/creating-experimentsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install creating-experiments in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The creating-experiments skill guides an AI assistant through creating a new A/B test experiment in PostHog. It starts by reading the project's setup, confirming that the target and metric events exist, and reading previous experiments with the experiment-setup-context tool. It then covers the hypothesis, feature flag key, variant split, rollout percentage, bucketing, and analytics.
The skill creates the experiment as a draft and reports which choices are set with confidence, which are best guesses, and which are still open. It hands rollout and metric decisions to other skills and does not launch the experiment unless the user asks. It is aimed at teams that run PostHog experiments through an AI assistant.
Written from the project's SKILL.md and checked against it.
What it can do
- read-data-schemaConfirms that the target and metric events exist in the project before setup.
- experiment-setup-contextReads the project's setup and previous experiments to inform choices.
- experiment-createCreates a draft experiment with a name, hypothesis, flag key and variants.
- experiment-updateAdds the primary metric after creation, since metrics are not set on creation.
- Rollout and bucketing guidancePasses rollout and bucketing decisions to the configuring-experiment-rollout skill.
- Metric guidancePasses metric setup and shared metric reuse to the configuring-experiment-analytics skill.
- Guess reportingReports choices as set with confidence, best guesses, or not decided.
What you need
- Access to PostHog experiment tools in the AI assistant
- A PostHog project with the events the experiment measures
Try asking
- Create an A/B test on our pricing page that measures signups
- Set up a 50/50 experiment for the new checkout flow as a draft
- Draft an experiment for the homepage hero and show me the link
Good to know
- Creates drafts only. Launching is a separate step the user must request.
- Does not create no-code or toolbar experiments. Users are pointed to the PostHog UI.
- Experiments need between 2 and 20 variants.
- Device-id bucketing cannot be set by experiment-create.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: products/experiments/skills/creating-experiments/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
references/setup-decisions.md19 KB
Alternatives to creating-experiments
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
creating-experiments: common questions
Does the skill launch the experiment?
No. Creation ends at a draft, and experiment-launch is called only when the user asks for it.
Does it create the feature flag?
Yes. The source says the flag is auto-created by experiment-create, except for device-id bucketing.
Can it create a no-code experiment?
No. The source says no-code experiments are configured visually in the PostHog toolbar, so users are pointed to the PostHog UI.
How do I install creating-experiments?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is creating-experiments free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is creating-experiments safe to use?
It scores 87 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to creating-experiments?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
