content-experimentation-best-practices — Claude Code skill
This skill guides content A/B test planning, metric selection, and result analysis. Use it when working with CMS-managed variants or frontend experiments.
npx skills add sanity-io/agent-toolkit --skill content-experimentation-best-practices -a claude-codeWhat content-experimentation-best-practices does
The skill gives an agent guidance for content experiments, from shaping a hypothesis and choosing metrics to estimating sample size. It covers A/B tests, multivariate tests, and how to interpret statistical significance.
references/experiment-design.md covers experiment design, metrics, sample size, and test selection. references/statistical-foundations.md, references/cms-integration.md, and references/common-pitfalls.md cover statistics, CMS-managed variants, and analysis mistakes. The pitfalls guide lists 17 mistakes, so conclusions deserve a check before acting on a test result.
What it helps with
- form a hypothesis for a content A/B test
- choose success metrics and sample size
- plan a multivariate experiment
- set up CMS-managed content variants
- check statistical conclusions for common mistakes
Example prompts for the agent
- Plan a content A/B test and define its hypothesis and metrics.
- Help me choose a sample size and interpret statistical significance.
- Design CMS-managed content variants and flag analysis risks.
How to install content-experimentation-best-practices
1Skills CLI (Vercel)
npx skills add sanity-io/agent-toolkit --skill content-experimentation-best-practices -a claude-code2Manually: put the files in place
~/.claude/skills/content-experimentation-best-practices/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/content-experimentation-best-practices/
1Skills CLI (Vercel)
npx skills add sanity-io/agent-toolkit --skill content-experimentation-best-practices -a codex2Manually: put the files in place
.agents/skills/content-experimentation-best-practices/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add sanity-io/agent-toolkit --skill content-experimentation-best-practices -a cursor2Manually: put the files in place
.cursor/skills/content-experimentation-best-practices/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install sanity-io/agent-toolkit content-experimentation-best-practices2Manually: put the files in place
.github/skills/content-experimentation-best-practices/SKILL.md1Skills CLI (Vercel)
npx skills add sanity-io/agent-toolkit --skill content-experimentation-best-practices -a gemini-cli2Platform CLI
gemini skills install https://github.com/sanity-io/agent-toolkit --path skills/content-experimentation-best-practicesManually: put the files in place
.devin/skills/content-experimentation-best-practices/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add sanity-io/agent-toolkit --skill content-experimentation-best-practices -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about content-experimentation-best-practices
How do I install content-experimentation-best-practices in Claude Code?
Run npx skills add sanity-io/agent-toolkit --skill content-experimentation-best-practices -a claude-code, then run npx skills add sanity-io/agent-toolkit --skill content-experimentation-best-practices -a claude-code again. The skill file is at ~/.claude/skills/content-experimentation-best-practices/SKILL.md.
What does content-experimentation-best-practices do?
It guides an agent through planning and analysing content experiments. The material covers hypotheses, metrics, sample size, statistics, CMS variants, and interpretation pitfalls.
What references does the skill use for experiment analysis?
It includes references for experiment design, statistical foundations, CMS integration, and common pitfalls. The pitfalls reference covers 17 mistakes across design, execution, statistics, and interpretation.
Source text
SKILL.md · MIT
--- name: content-experimentation-best-practices description: Content experimentation and A/B testing guidance covering experiment design, hypotheses, metrics, sample size, statistical foundations, CMS-managed variants, and common analysis pitfalls. Use this skill when planning experiments, setting up variants, choosing success metrics, interpreting statistical results, or building experimentation workflows in a CMS or frontend stack. --- # Content Experimentation Best Practices Principles and patterns for running effective content experiments to improve conversion rates, engagement, and user experience. ## When to Apply Reference these guidelines when: - Setting up A/B or multivariate testing infrastructure - Designing experiments for content changes - Analyzing and interpreting test results - Building CMS integrations for experimentation - Deciding what to test and how ## Core Concepts ### A/B Testing Comparing two variants (A vs B) to determine which performs better. ### Multivariate Testing Testing multiple variables simultaneously to find optimal combinations. ### Statistical Significance The confidence level that results aren't due to random chance. ### Experimentation Culture Making decisions based on data rather than opinions (HiPPO avoidance). ## References Start with the reference that matches the current problem, such as design, statistics, CMS integration, or pitfalls. See `references/` for detailed guidance: - `references/experiment-design.md` — Hypothesis framework, metrics, sample size, and what to test - `references/statistical-foundations.md` — p-values, confidence intervals, power analysis, Bayesian methods - `references/cms-integration.md` — CMS-managed variants, field-level variants, external platforms - `references/common-pitfalls.md` — 17 common mistakes across statistics, design, execution, and interpretation
© sanity-io · MIT · sanity-io/agent-toolkit