MR
Mayur Rathi
@mayurrathi
⭐ 40.7k GitHub stars

Ab Test Setup

Ab Test Setup is an data AI skill with a core value of Structured guide for setting up A/B tests with mandatory gates for hypothesis, metrics, and execution readiness. It helps developers solve real-world problems in the data domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

Structured guide for setting up A/B tests with mandatory gates for hypothesis, metrics, and execution readiness.

Last verified on: 2026-07-07

Quick Facts

Category data
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 40.7k
Last Verified 2026-07-07
Risk Level Low
mkdir -p ./skills/ab-test-setup && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/ab-test-setup/SKILL.md -o ./skills/ab-test-setup/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# A/B Test Setup


1️⃣ Purpose & Scope


Ensure every A/B test is **valid, rigorous, and safe** before a single line of code is written.


- Prevents "peeking"

- Enforces statistical power

- Blocks invalid hypotheses


---


2️⃣ Pre-Requisites


You must have:


- A clear user problem

- Access to an analytics source

- Roughly estimated traffic volume


Hypothesis Quality Checklist


A valid hypothesis includes:


- Observation or evidence

- Single, specific change

- Directional expectation

- Defined audience

- Measurable success criteria


---


3️⃣ Hypothesis Lock (Hard Gate)


Before designing variants or metrics, you MUST:


- Present the **final hypothesis**

- Specify:

- Target audience

- Primary metric

- Expected direction of effect

- Minimum Detectable Effect (MDE)


Ask explicitly:


> “Is this the final hypothesis we are committing to for this test?”


**Do NOT proceed until confirmed.**


---


4️⃣ Assumptions & Validity Check (Mandatory)


Explicitly list assumptions about:


- Traffic stability

- User independence

- Metric reliability

- Randomization quality

- External factors (seasonality, campaigns, releases)


If assumptions are weak or violated:


- Warn the user

- Recommend delaying or redesigning the test


---


5️⃣ Test Type Selection


Choose the simplest valid test:


- **A/B Test** – single change, two variants

- **A/B/n Test** – multiple variants, higher traffic required

- **Multivariate Test (MVT)** – interaction effects, very high traffic

- **Split URL Test** – major structural changes


Default to **A/B** unless there is a clear reason otherwise.


---


6️⃣ Metrics Definition


#### Primary Metric (Mandatory)


- Single metric used to evaluate success

- Directly tied to the hypothesis

- Pre-defined and frozen before launch


#### Secondary Metrics


- Provide context

- Explain _why_ results occurred

- Must not override the primary metric


#### Guardrail Metrics


- Metrics that must not degrade

- Used to prevent harmful wins

- Trigger test stop if significantly negative


---


7️⃣ Sample Size & Duration


Define upfront:


- Baseline rate

- MDE

- Significance level (typically 95%)

- Statistical power (typically 80%)


Estimate:


- Required sample size per variant

- Expected test duration


**Do NOT proceed without a realistic sample size estimate.**


---


8️⃣ Execution Readiness Gate (Hard Stop)


You may proceed to implementation **only if all are true**:


- Hypothesis is locked

- Primary metric is frozen

- Sample size is calculated

- Test duration is defined

- Guardrails are set

- Tracking is verified


If any item is missing, stop and resolve it.


---


Running the Test


During the Test


**DO:**


- Monitor technical health

- Document external factors


**DO NOT:**


- Stop early due to “good-looking” results

- Change variants mid-test

- Add new traffic sources

- Redefine success criteria


---


Analyzing Results


Analysis Discipline


When interpreting results:


- Do NOT generalize beyond the tested population

- Do NOT claim causality beyond the tested change

- Do NOT override guardrail failures

- Separate statistical significance from business judgment


Interpretation Outcomes


| Result | Action |

| -------------------- | -------------------------------------- |

| Significant positive | Consider rollout |

| Significant negative | Reject variant, document learning |

| Inconclusive | Consider more traffic or bolder change |

| Guardrail failure | Do not ship, even if primary wins |


---


Documentation & Learning


Test Record (Mandatory)


Document:


- Hypothesis

- Variants

- Metrics

- Sample size vs achieved

- Results

- Decision

- Learnings

- Follow-up ideas


Store records in a shared, searchable location to avoid repeated failures.


---


Refusal Conditions (Safety)


Refuse to proceed if:


- Baseline rate is unknown and cannot be estimated

- Traffic is insufficient to detect the MDE

- Prima

🎯 Best For

  • QA engineers
  • Developers writing unit tests
  • UI designers
  • Product designers
  • Claude users

💡 Use Cases

  • Generating test cases for edge conditions
  • Writing integration test suites
  • Generating component mockups
  • Creating design system tokens

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Ab Test Setup to Your Work

    Provide context for your task — paste source material, describe your audience, or share existing work to guide the AI.

  4. 4

    Review and Refine

    Edit the AI output for accuracy, tone, and completeness. Add human insight where the AI lacks context.

❓ Frequently Asked Questions

Does this generate test mocks?

Many testing skills include mock generation. Check the install command and skill content for details.

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

How do I install Ab Test Setup?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/ab-test-setup/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Not testing edge cases

AI tends to generate happy-path tests. Manually review for boundary conditions.

Skipping usability testing

AI-generated designs should be validated with real users before development.

Ignoring data quality

AI analysis inherits all data quality issues — profile your data first.

🔗 Related Skills