Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.
JavaScript agent-skillsai-agentsai-seoclaudeclaude-codeclaude-code-pluginclaude-skillscodexcontent-marketingconversion-rate-optimizationcopywritingcursoremail-marketinggenerative-engine-optimizationgrowth-marketingmarketingmarketing-automationsaas-marketingseoskill-md
fix(ab-testing): correct inference and fixed-horizon decisions
Rudy Celeklib761fe8ded2c
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex ea384a9..a6f60db 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -6,7 +6,7 @@},"metadata": {"description": "Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, and growth",- "version": "2.11.17",+ "version": "2.11.18","repository": "https://github.com/coreyhaines31/marketingskills"},"plugins": [diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 83527da..d155ceb 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "marketing-skills","description": "Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth",- "version": "2.11.17",+ "version": "2.11.18","author": {"name": "Corey Haines"},diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.jsonindex 7f59e6e..5884655 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "marketing-skills","description": "Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth",- "version": "2.11.17",+ "version": "2.11.18","author": {"name": "Corey Haines"},diff --git a/VERSIONS.md b/VERSIONS.mdindex 404f2de..7ab147c 100644--- a/VERSIONS.md+++ b/VERSIONS.md@@ -4,7 +4,7 @@ Current versions of all skills. Agents can compare against local versions to che| Skill | Version | Last Updated ||-------|---------|--------------|-| ab-testing | 2.0.0 | 2026-05-05 |+| ab-testing | 2.0.1 | 2026-10-06 || ad-creative | 2.9.3 | 2026-10-02 || ai-seo | 2.7.2 | 2026-10-02 || analytics | 2.0.2 | 2026-10-02 |@@ -57,6 +57,10 @@ Current versions of all skills. Agents can compare against local versions to che## Recent Changes+### 2.11.18 (2026-10-06)++- **ab-testing** (2.0.0 → 2.0.1): correct p-value and confidence-interval interpretation, distinguish uncertainty from practical impact, and keep completed fixed-horizon tests from being extended until significant. Strengthens the result-analysis eval, adds an interpretation scenario, and links ASA guidance.+### 2.11.17 (2026-10-02)- **video** (2.2.0 → 2.2.1) and the **Hyperframes integration guide** (reported in #600 by @pjthegiant): the old example called a `render({ frames })` API that the `hyperframes` package doesn't export. Both now lead with the CLI (`npx hyperframes init`, `preview`, `render -o output.mp4`) and explain the composition format: a root with `data-composition-id`, `class="clip"` elements with timing attributes, and a paused GSAP timeline. Rendering from code goes through `@hyperframes/producer` (`createRenderJob` + `executeRenderJob`). Checked against v0.8.114.diff --git a/skills/ab-testing/SKILL.md b/skills/ab-testing/SKILL.mdindex e3f9997..a31e208 100644--- a/skills/ab-testing/SKILL.md+++ b/skills/ab-testing/SKILL.md@@ -2,7 +2,7 @@name: ab-testingdescription: When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program," or "experiment playbook." Use this whenever someone is comparing two approaches and wants to measure which performs better, or when they want to build a systematic experimentation practice. For tracking implementation, see analytics. For page-level conversion optimization, see cro.metadata:- version: 2.0.0+ version: 2.0.1---# A/B Test Setup@@ -193,9 +193,12 @@ Looking at results before reaching sample size and stopping early leads to false## Analyzing Results### Statistical Significance-- 95% confidence = p-value < 0.05-- Means <5% chance result is random-- Not a guarantee—just a threshold+- For a pre-specified fixed-horizon test, compare its p-value with the chosen significance level (commonly α = 0.05).+- A p-value describes how incompatible the data are with the null model: the probability, **assuming that model and its assumptions**, of a result at least as extreme as the observed one. It is not the probability that the result is random, that the null is true, or that a variant will win again.+- A 95% confidence interval comes from a procedure with 95% coverage over repeated samples under its assumptions. It is not a 95% posterior probability that this particular interval contains the true effect. Report the interval and effect size alongside the p-value.+- Use the planned analysis and stopping rule. Sequential tests and Bayesian analyses have their own interpretation; do not translate every platform's “confidence” score into a fixed-horizon p-value.++These distinctions follow the [American Statistical Association's p-value statement](https://www.amstat.org/asa/files/pdfs/p-valuestatement.pdf). Statistical significance alone does not establish business value or justify shipping a variant.### Analysis Checklist@@ -210,10 +213,10 @@ Looking at results before reaching sample size and stopping early leads to false| Result | Conclusion ||--------|------------|-| Significant winner | Implement variant |+| Significant winner | Check effect size, uncertainty and guardrails before implementing || Significant loser | Keep control, learn why |-| No significant difference | Need more traffic or bolder test |-| Mixed signals | Dig deeper, maybe segment |+| No significant difference | Report the effect interval: it may still allow meaningful benefit and harm, or may exclude effects worth pursuing. Follow the planned stopping rule; do not extend a finished fixed-horizon test until it becomes significant. Plan a new test if needed. |+| Mixed signals | Check data quality and planned metrics; label unplanned segment findings exploratory and confirm them in a new test |---diff --git a/skills/ab-testing/evals/evals.json b/skills/ab-testing/evals/evals.jsonindex 7ef70da..d72c1f7 100644--- a/skills/ab-testing/evals/evals.json+++ b/skills/ab-testing/evals/evals.json@@ -49,7 +49,7 @@{"id": 4,"prompt": "Help me set up a multivariate test on our landing page. I want to test the headline, hero image, and CTA button simultaneously.",- "expected_output": "Should identify this as a Multivariate Test (MVT). Should explain that MVT tests combinations of elements and requires much more traffic than A/B tests. Should calculate or reference traffic needs (combinations multiply: e.g., 2 headlines × 2 images × 2 CTAs = 8 combinations). Should recommend MVT only if traffic supports it, otherwise suggest sequential A/B tests. Should build hypotheses for each element being tested. Should define interaction effects to watch for. Should provide structured test plan.",+ "expected_output": "Should identify this as a Multivariate Test (MVT). Should explain that MVT tests combinations of elements and requires much more traffic than A/B tests. Should calculate or reference traffic needs (combinations multiply: e.g., 2 headlines \u00d7 2 images \u00d7 2 CTAs = 8 combinations). Should recommend MVT only if traffic supports it, otherwise suggest sequential A/B tests. Should build hypotheses for each element being tested. Should define interaction effects to watch for. Should provide structured test plan.","assertions": ["Identifies as multivariate test (MVT)","Explains MVT tests combinations of elements",@@ -90,14 +90,25 @@{"id": 7,"prompt": "We ran an A/B test on our pricing page for 4 weeks. Control: 2.1% conversion. Variant: 2.4% conversion. 12,000 visitors per variant. Is this statistically significant? Should we ship it?",- "expected_output": "Should evaluate the results against statistical significance criteria. Should calculate or estimate whether the sample size is sufficient to detect a 0.3 percentage point lift from a 2.1% baseline (this is a ~14% relative lift). Should reference the 95% confidence threshold. Should discuss practical significance vs statistical significance. Should recommend whether to ship, continue testing, or iterate. Should consider segment analysis if results are borderline.",+ "expected_output": "Should calculate the result under a declared analysis: 252/12,000 vs 288/12,000 gives approximately p = 0.117 for an uncorrected two-sided pooled-proportion z-test, so it does not meet alpha = 0.05. Should distinguish the 0.3 percentage-point / ~14% relative estimate from evidence for a reliably positive effect. Report uncertainty and practical business impact. Respect the pre-specified duration and stopping rule; do not recommend continuing the completed fixed-horizon test until significant. Unplanned segments are exploratory; a follow-up test needs its own plan.","assertions": [- "Evaluates against statistical significance criteria",- "Addresses whether sample size is sufficient for this effect size",- "References 95% confidence threshold",- "Distinguishes statistical significance from practical significance",- "Provides clear recommendation on shipping",- "Suggests segment analysis or follow-up if borderline"+ "Uses actual conversion counts and states the analysis assumptions",+ "Does not call p ~0.117 significant at alpha0.05",+ "Distinguishes statistical uncertainty from business value",+ "Does not extend a completed fixed-horizon test until significant",+ "Labels unplanned segment findings exploratory"+ ],+ "files": []+ },+ {+ "id": 8,+ "prompt": "Our fixed-horizon A/B test reached its planned sample today with p = 0.04. Can I tell the CEO there is a 96% chance the change works and just a 4% chance the lift was random? We have a +2% estimate, an interval of +0.1% to +3.9%, and a higher refund rate in the variant.",+ "expected_output": "Reject both probability interpretations. Explain the p-value conditional on the null model and assumptions, and repeated-sampling interval coverage without asserting a posterior probability. Consider the effect interval, practical impact and refund guardrail before recommending rollout. Do not substitute a numerical significance threshold for the business decision.",+ "assertions": [+ "Does not interpret 1-p as the probability the variant works",+ "Does not interpret p as the probability the result was random",+ "Explains the conditional null-model meaning",+ "Uses interval, business effect and refund guardrail before rollout"],"files": []}diff --git a/skills/ab-testing/references/sample-size-guide.md b/skills/ab-testing/references/sample-size-guide.mdindex 3e35e6c..bb5b05c 100644--- a/skills/ab-testing/references/sample-size-guide.md+++ b/skills/ab-testing/references/sample-size-guide.md@@ -19,7 +19,7 @@ Reference for calculating sample sizes and test duration.1. **Baseline conversion rate**: Your current rate2. **Minimum detectable effect (MDE)**: Smallest change worth detecting-3. **Statistical significance level**: Usually 95% (α = 0.05)+3. **Statistical significance level**: Usually α = 0.05 (5%)4. **Statistical power**: Usually 80% (β = 0.20)### What These Mean@@ -31,7 +31,7 @@ Reference for calculating sample sizes and test duration.- Implementation cost (worth the effort?)- Realistic expectations (what have past tests shown?)-**Statistical significance (95%)**: Means there's less than 5% chance the observed difference is due to random chance.+**Significance level (α = 0.05)**: For the planned test and its assumptions, limits the long-run probability of rejecting a true null hypothesis to 5%. It is not the probability that an observed difference is “due to chance.” Repeated unadjusted looks or multiple comparisons do not retain that error rate. See the [ASA's interpretation guidance](https://www.amstat.org/asa/files/pdfs/p-valuestatement.pdf).**Statistical power (80%)**: Means if there's a real effect of size MDE, you have 80% chance of detecting it.