ab-testing

ab-testing is a skill for Claude Code, Codex from supportersimulator/3-surgeons. It costs 15 tokens per session (1,423 once invoked), scanned A, original, MIT.

A workflow for A/B tests, which compare two versions of something under controlled conditions to see which works better.

In plain words
What is it for?
Use it to compare prompts, caching approaches, model settings, or code changes, provided the parameter is not safety-critical or related to authentication, cost, or rate limits.
Why use it?
It adds stages, safety limits, monitoring, and a chance for a person to stop the test before changes take effect.

Skill for Claude CodeCodex

Part of the 3-surgeons plugin — 23 skills, 7 commands, 1 agent, 3 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/supportersimulator/3-surgeons/ab-testing
Any agent
npx skills add supportersimulator/3-surgeons --skill ab-testing
Clone the repo
git clone --depth 1 https://github.com/supportersimulator/3-surgeons

Made for: Claude Code, Codex.

Or install 3-surgeons, the plugin that ships this one along with the rest of its 23 skills, 7 commands, 1 agent, 3 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ab-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/supportersimulator/3-surgeons/ab-testing.svg)](https://agentmods.dev/skills/supportersimulator/3-surgeons/ab-testing)
Your own site
<a href="https://agentmods.dev/skills/supportersimulator/3-surgeons/ab-testing"><img src="https://agentmods.dev/badge/skills/supportersimulator/3-surgeons/ab-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,423 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.01423
Opus 5 $0.00008 $0.00711
Sonnet 5 $0.00003 $0.00285
Haiku 4.5 $0.00002 $0.00142

Measured 5d ago against content hash e773d6ae17e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ab-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ab-testing/SKILL.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

A/B Testing

When to Propose an A/B Test

A/B testing is for controlled experiments where you have two plausible approaches and want empirical evidence for which performs better. Use it when:

  • Optimizing prompts -- "Does system prompt A produce better results than system prompt B?"
  • Comparing approaches -- "Is caching strategy X faster than strategy Y?"
  • Parameter tuning -- "Does temperature=0.3 produce more consistent output than temperature=0.7?"
  • Validating improvements -- "Does the refactored code actually perform better than the original?"

Do NOT use for: safety-critical parameters, authentication settings, cost/rate limits, or anything that could compromise system integrity. These are enforced as forbidden parameters (see Safety Constraints below).

The Full Lifecycle

An A/B test moves through these states:

PROPOSED -> GRACE_PERIOD -> ACTIVE -> MONITORING -> CONCLUDED
                |                                       |
                v                                       v
             VETOED                                 REVERTED
                                                (auto: cost/time exceeded)

Step 1: Propose

3s ab-propose "temperature" "0.3" "0.7" "Lower temperature produces more consistent classification output"

Or via MCP:

ab_propose(
    param="temperature",
    variant_a="0.3",
    variant_b="0.7",
    hypothesis="Lower temperature produces more consistent classification output"
)

This creates the test in PROPOSED status and returns a test ID (UUID). The test is not yet running.

Step 2: Grace Period (Human Veto Window)

ab_start(test_id="<uuid>")

Moves the test to GRACE_PERIOD. This is a deliberate pause (default 30 minutes) that allows a human to review the proposal and veto it before any resources are spent. The grace period duration is informational -- enforcement is the caller's responsibility.

Why a grace period? Autonomous A/B testing without human oversight can waste budget on ill-conceived experiments. The grace period is a safety valve.

Read the full file on GitHub · 180 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 180 lines · 15 tokens per session scan A e773d6ae17e3

Subscribe to this mod's changes

ab-testing is a skill published in the GitHub repository supportersimulator/3-surgeons (2 stars, last pushed 3mo ago), licensed MIT. It adds 15 tokens to every session and 1,423 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

skill-creator

Create, install, or update skills in the workspace. Use when (1) installing a skill from a URL or remote source, (2) creating a new skill from scratch, (3) updating or restructuring existing skills. Always use this skill for any skill installation or creation task.

zhayujie/CowAgent · 61 tokens

image-generation

Generate or edit images from text prompts. Use when the user asks to create, draw, design, or edit an image, illustration, photo, icon, poster, or any visual content.

zhayujie/CowAgent · 41 tokens

deepcode-self-refer

Answers questions about Deep Code CLI itself — including features, configuration options, slash commands, Skills, MCP integration, permissions, notifications, session persistence, and troubleshooting. Use this when users ask how to configure or use Deep Code, how to set up an MCP server, configure notifications (such…

lessweb/deepcode-cli · 86 tokens

image-generator

Generate or edit images from text and local files, image URLs, or data URLs through image API. Use when the user asks to create an image, generate from one or more reference images, combine styles or elements across references, or edit a marked region while blending the result into the original scene.

lessweb/deepcode-cli · 62 tokens

weibo-poster

微博内容创作 - 140字优化、话题热搜、@提及策略、配图描述、发布时机.

dongsheng123132/u-claw · 32 tokens

excel-helper

Excel 表格助手 - 公式编写、数据透视表、图表可视化、宏自动化、数据清洗.

dongsheng123132/u-claw · 31 tokens