Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add sanity-io/agent-toolkit --skill content-experimentation-best-practices -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/content-experimentation-best-practices/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/content-experimentation-best-practices/

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

Similar skills

Everything for Testing and QA →

From the same set9

sanity-best-practices Sanity's own rules for an AI agent working on a Sanity codebase: schemas, GROQ, TypeGen, visual editing, migrations and framework wiring. Useful the moment the agent touches your content layer. CX Codex +1 31,800installs sanity-migration Plans and executes content migrations from legacy CMS platforms into Sanity. Guides schema mapping, Portable Text conversion, asset uploads, and cutover checks. CX Codex +1 22,200installs seo-aeo-best-practices A skill with SEO and AEO guidance: metadata, Open Graph, sitemaps, robots.txt, hreflang, JSON-LD and EEAT. Useful while you build pages and want search engines and AI answers to pick them up. CX Codex +1 7,300installs content-modeling-best-practices Guides your agent through content type design in headless CMS: what to reference, what to embed, how to stop duplicating data. CX Codex +1 4,800installs portable-text-serialization A skill that shows the agent how to render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown and plain text. CX Codex +1 2,900installs portable-text-conversion Turns HTML and Markdown into Portable Text blocks for Sanity. Useful when migrating content off a legacy CMS or building an import pipeline. CX Codex +1 2,700installs sanity-studio-upgrade The skill inspects your repo and reports only the breaking changes that actually apply to it. Handy when your Studio sits several majors behind. CX Codex +1 524installs Sanity Connects your agent to a Sanity project: content, datasets, releases and schemas. Useful when CMS edits happen in chat instead of Studio. CX Codex +1 ★ 194repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor