Skill Press

No. 291 · content-experimentation-best-practices

Content Experimentation Best Practices

A field guide from Sanity

Sanity

When to use it

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.

Rank
No. 291 of 971
Installs
Not listed yet
Runs in
Claude, Codex, Cursor
Length
183 words · 1 min
Files
6
License
MIT

Get this skill

Download the skill folder (.zip, 12 KB) ↓ · SKILL.md only ↓

Agent prompt

Paste into a coding agent with terminal access. Check the upstream requirements for the skill you’re installing.

Prompt
Install the "content-experimentation-best-practices" Agent Skill by Sanity, from https://github.com/sanity-io/agent-toolkit.

1. Fetch the whole folder skills/content-experimentation-best-practices — SKILL.md plus every script, reference, and asset beside it, not just SKILL.md. For example:
   skill_checkout=$(mktemp -d)
   git init "$skill_checkout"
   git -C "$skill_checkout" fetch --depth 1 https://github.com/sanity-io/agent-toolkit.git 1d9223c08237739ac862e6ec1c86540e58706222
   git -C "$skill_checkout" checkout --detach FETCH_HEAD
2. Copy it into your skills directory as a folder named "content-experimentation-best-practices":
   - Claude Code: ~/.claude/skills/content-experimentation-best-practices/ (all projects) or .claude/skills/content-experimentation-best-practices/ (this project only)
   - Another agent: the directory you load Agent Skills from (folders containing a SKILL.md)
3. Check that content-experimentation-best-practices/SKILL.md exists and its frontmatter says name: content-experimentation-best-practices.
4. Read SKILL.md, then tell me in two or three sentences what the skill does and when it will trigger, and list any dependencies it mentions (Python packages, npm packages, CLIs) that aren't installed yet. Don't install them without asking.

skills CLI

One command; the skills.sh installer detects your agents (Claude Code, Cursor, Codex, and more).

Terminal
npx skills add https://github.com/sanity-io/agent-toolkit/tree/1d9223c08237739ac862e6ec1c86540e58706222/skills/content-experimentation-best-practices --skill content-experimentation-best-practices

Claude.ai

Upload the .zip as a custom skill.

  1. In Settings → Capabilities, turn on “Code execution and file creation”.
  2. Download the .zip above.
  3. Go to Customize → Skills, click + → Create skill → Upload a skill, and choose it.
Anthropic’s guide to using skills ↗

Contents

  1. When to Apply
  2. Core Concepts
  3. References

The skill, in full

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

More in Conversion & Retention

All Conversion & Retention skills →

More from Sanity

From sanity-io/agent-toolkit at 1d9223c, MIT. Install counts from skills.sh.