ab-test-analysis

ab-test-analysis is a skill for Claude Code from killvxk/pm-skills-zh. It costs 74 tokens per session (1,023 once invoked), scanned A, original, MIT.

A guide for analysing A/B tests, which compare two versions of something to see which performs better. It covers statistical significance, sample-size checks, confidence intervals, and rollout decisions.

In plain words
What is it for?
Use it to analyse conversion or other experiment metrics, check test quality, review guardrail metrics, and recommend whether to launch a variant.
Why use it?
It helps distinguish a real difference from random variation and supports decisions to launch, extend, or stop an experiment.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the pm-data-analytics plugin — 3 skills, 3 commands shipped together

Good fit Use it to analyse conversion or other experiment metrics, check test quality, review guardrail metrics, and recommend whether to launch a variant.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/killvxk/pm-skills-zh/ab-test-analysis
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.

Any agent
npx skills add killvxk/pm-skills-zh --skill ab-test-analysis
Clone the repo
git clone --depth 1 https://github.com/killvxk/pm-skills-zh

Made for: Claude Code.

Or install pm-data-analytics, the plugin that ships this one along with the rest of its 3 skills, 3 commands.

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-test-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/killvxk/pm-skills-zh/ab-test-analysis/github.svg)](https://agentmods.dev/skills/killvxk/pm-skills-zh/ab-test-analysis)
Your own site
<a href="https://agentmods.dev/skills/killvxk/pm-skills-zh/ab-test-analysis"><img src="https://agentmods.dev/badge/skills/killvxk/pm-skills-zh/ab-test-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ab-test-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/killvxk/pm-skills-zh/ab-test-analysis"><img src="https://agentmods.dev/badge/skills/killvxk/pm-skills-zh/ab-test-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,023 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00074 $0.01023
Opus 5 $0.00037 $0.00511
Sonnet 5 $0.00015 $0.00205
Haiku 4.5 $0.00007 $0.00102

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

Security

Grade A, and why

ab-test-analysis 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 9d 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.

pm-data-analytics/skills/ab-test-analysis/SKILL.md · 83 lines

What it actually says

A/B 测试分析

以严格的统计方法评估 A/B 测试结果,并将发现转化为清晰的产品决策。

背景

你正在分析 $ARGUMENTS 的 A/B 测试结果。

如果用户提供了数据文件(CSV、Excel 或数据分析平台导出文件),直接读取并分析。如有需要,生成 Python 脚本执行统计计算。

操作步骤

  1. 理解实验背景

    • 假设是什么?
    • 改动了什么(实验组的变化)?
    • 主要指标是什么?是否有护栏指标?
    • 测试运行了多长时间?
    • 流量分配比例是多少?
  2. 验证测试设置

    • 样本量:样本量是否足以检测预期效应量?
      • 使用公式:n = (Z²α/2 × 2 × p × (1-p)) / MDE²
      • 如果统计功效不足(< 80%),需标记
    • 时长:测试是否至少运行了 1—2 个完整业务周期?
    • 随机化:是否有样本比例失配(SRM)的迹象?
    • 新奇效应/首因效应:时间是否足够让初期行为变化消退?
  3. 计算统计显著性

    • 对照组和实验组各自的转化率
    • 相对提升:(实验组 - 对照组) / 对照组 × 100
    • p 值:使用双尾 z 检验或卡方检验
    • 置信区间:差值的 95% CI
    • 统计显著性:p < 0.05 吗?
    • 实际显著性:提升幅度对业务有意义吗?

    如果用户提供了原始数据,生成并运行 Python 脚本来计算上述结果。

  4. 检查护栏指标

    • 是否有护栏指标(营收、参与度、页面加载时间)出现下降?
    • 主要指标获胜但护栏指标恶化,不一定是真正的胜利
  5. 解读结果

    结果 建议
    显著正向提升,无护栏问题 上线 — 全量推送
    显著正向提升,存在护栏顾虑 进一步调查 — 理解权衡后再上线
    不显著,但有正向趋势 延长测试 — 需要更多数据或更大效应
    不显著,基本持平 停止测试 — 未检测到有意义的差异
    显著负向提升 不上线 — 回退到对照组,分析原因
  6. 提供分析摘要

    ## A/B 测试结果:[测试名称]
    
    **假设**:[我们的预期]
    **时长**:[X 天] | **样本量**:[N 对照组 / M 实验组]
    
    | 指标 | 对照组 | 实验组 | 提升 | p 值 | 是否显著? |
    |---|---|---|---|---|---|
    | [主要指标] | X% | Y% | +Z% | 0.0X | 是/否 |
    | [护栏指标] | ... | ... | ... | ... | ... |
    
    **建议**:[上线 / 延长 / 停止 / 进一步调查]
    **理由**:[原因]
    **后续行动**:[下一步]
    

逐步思考。保存为 Markdown 格式。如果提供了原始数据,生成 Python 脚本执行计算。


延伸阅读

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. 9d ago First seen · 83 lines · 74 tokens per session scan A 789899118374

Subscribe to this mod's changes

ab-test-analysis is a skill published in the GitHub repository killvxk/pm-skills-zh (156 stars, last pushed 5mo ago), licensed MIT. It adds 74 tokens to every session and 1,023 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens