Token导航 LogoToken导航

Agent Skill · 前端设计

ab-test-generator(ab 测试生成器)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

ab-test-generator 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 9,297。

总安装 220周安装 9GitHub Stars 19下载 71核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ab-test-generator(ab 测试生成器)
来源仓库:https://github.com/humblytics/ai-marketing-skills
仓库路径:skills/ab-test-generator
安装命令:
npx skills add https://github.com/humblytics/ai-marketing-skills --skill ab-test-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/humblytics/ai-marketing-skills --skill ab-test-generator

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

基于 Humblytics 数据分析生成完整的 A/B 测试配置方案。适合从转化数据和热力图洞察中创建测试假设与变体规格。可自动计算所需样本量、测试周期,并支持通过 API 直接启动测试。需配置 Humblytics API 密钥,禁止在聊天中明文粘贴凭证信息。适用于无代码分桶测试和多变量矩阵实验的设计迭代。

来源仓库内路径:skills/ab-test-generator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/humblytics/ai-marketing-skills --skill ab-test…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ab-test-generator 怎么安装?

在终端执行 npx skills add https://github.com/humblytics/ai-marketing-skills --skill ab-test-generator。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ab-test-generator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ab-test-generator 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

ab-test-generator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ab-test-generator 用的人多吗?

公开数据是累计安装 220 次,近一周安装 9 次,下载 71 次,GitHub 19 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ab-test-generator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
ab-test-generator

ab 测试生成器 · 本页

22019接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

A/B Test Generator

Purpose

Generate data-driven A/B test configurations from Humblytics analytics and heatmap data. This skill creates complete test definitions including hypotheses, variant specifications with CSS/element selectors, success metrics, sample size requirements, and can launch tests directly through the Humblytics API.

When to Use

  • Creating A/B tests from conversion data or heatmap insights
  • Generating test hypotheses for a specific page or funnel step
  • Launching no-code split tests via the Humblytics testing API
  • Calculating required sample size and test duration
  • Designing multivariate test matrices
  • Reviewing and iterating on existing test results

Credentials

This skill reads a Humblytics API key from the environment. Never paste API keys directly into chat — they persist in transcripts and logs.

Setup (one time):

  1. cp.env.example.env at the repo root and fill in HUMBLYTICS_API_KEY
  2. source.env in your shell before running the agent (or use direnv, or add the exports to your shell profile)
  3. Get the key from Humblytics Dashboard > Settings > API
  4. The skill will ask for your Property ID (also in Dashboard > Settings > API)

If HUMBLYTICS_API_KEY is not in the environment, stop and point the user at .env.example — do not accept the key in chat.

Before You Start

  1. Confirm property and page — Which Humblytics property and which page URL to test
  2. Pull current data — Retrieve page analytics, heatmap data, and current conversion rate
  3. Check existing tests — Look for any running tests to avoid conflicts
  4. Understand the goal — What is the primary conversion action on this page?
  5. Verify traffic volume — Ensure enough traffic for statistical significance within a reasonable timeframe
  6. Check for context — Look for product briefs, AGENTS.md, or existing CRO documents that inform test direction

Core Workflow

Step 1: Gather Page Intelligence

Pull data from Humblytics:

  • Page analytics: Traffic volume, bounce rate, time on page, scroll depth
  • Heatmap data: Click maps, scroll maps, attention maps
  • Event data: CTA clicks, form interactions, video plays
  • Device split: Mobile vs desktop behavior differences
  • Source split: How different traffic sources behave on this page

API endpoints:

  • GET /properties/{propertyId}/analytics/pages?url={pageUrl} — Page metrics
  • GET /properties/{propertyId}/heatmaps?url={pageUrl} — Heatmap data
  • GET /properties/{propertyId}/analytics/events?url={pageUrl} — Page events
  • GET /properties/{propertyId}/tests — Existing tests

Step 2: Identify Test Opportunities

Analyze the data for signals:

High-value signals from heatmaps:

  • Users clicking non-clickable elements (rage clicks) — make them clickable or remove confusion
  • Low scroll depth — critical content is below the fold, move it up
  • CTA getting few clicks despite visibility — copy, color, or placement issue
  • Form field abandonment — simplify or reorder fields
  • Dead zones — large page areas with no interaction

High-value signals from analytics:

  • High bounce rate from specific sources — message mismatch
  • Mobile conversion significantly lower than desktop — responsive layout issue
  • High time-on-page but low conversion — users are interested but not persuaded
  • Low time-on-page and low conversion — page fails to engage

Step 3: Formulate Hypotheses

For each opportunity, create a structured hypothesis:

Test Name: [descriptive-slug]
Page: [URL]
Hypothesis: IF we [specific change], THEN [primary metric] will [direction]
            BECAUSE [evidence from data]

Control: [current state description]
Variant: [proposed change description]

Primary Metric: [conversion event or goal]
Secondary Metrics: [engagement metrics to monitor]

Element Selector: [CSS selector for the element to modify]
Change Type: [text | style | visibility | layout | redirect]

Step 4: Calculate Sample Size and Duration

For each test, calculate statistical requirements:

Inputs needed:

  • Baseline conversion rate (from current analytics)
  • Minimum detectable effect (MDE) — typically 10-20% relative lift
  • Statistical significance level — default 95%
  • Statistical power — default 80%

Sample size formula (per variant):

n = (Z_alpha/2 + Z_beta)^2 * (p1(1-p1) + p2(1-p2)) / (p2 - p1)^2

Duration estimate:

Days = (n * number_of_variants) / daily_traffic_to_page

Present this clearly:

  • Required sample per variant
  • Total sample needed
  • Estimated days to reach significance at current traffic
  • Recommendation: proceed, increase traffic first, or test a larger change

Step 5: Define Test Configuration

Create the complete test spec for Humblytics:

{
  "name": "descriptive-test-name",
  "pageUrl": "/pricing",
  "hypothesis": "Changing CTA from 'Start Free Trial' to 'See Your Analytics' will increase clicks because heatmap shows users hesitate at commitment language",
  "variants": [
    {
      "name": "control",
      "weight": 50,
      "changes": []
    },
    {
      "name": "variant-a",
      "weight": 50,
      "changes": [
        {
          "selector": "#hero-cta",
          "attribute": "textContent",
          "value": "See Your Analytics"
        }
      ]
    }
  ],
  "primaryGoal": {
    "type": "event",
    "event": "signup_started"
  },
  "secondaryGoals": [
    { "type": "event", "event": "cta_clicked" },
    { "type": "metric", "metric": "bounce_rate" }
  ],
  "trafficAllocation": 100,
  "minimumSampleSize": 2400,
  "significanceLevel": 0.95
}

Step 6: Launch or Document

To launch via API:

  • POST /properties/{propertyId}/tests — Create and start the test
  • GET /properties/{propertyId}/tests/{testId} — Monitor test status
  • GET /properties/{propertyId}/tests/{testId}/results — Pull results

To document for manual launch:

  • Output the full test specification
  • Include screenshot annotations if heatmap data informed the test
  • Provide the hypothesis document for the team

Test Type Selection Guide

ScenarioTest TypeNotes
One element changeA/B testFastest to significance
Two element changesA/B/C testTest both independently
Multiple interacting elementsMultivariateNeeds 4x+ traffic
Completely different pageSplit URL testRedirect-based
Copy variations onlyA/B testQuick wins
Layout restructureSplit URL testBuild separate variant page

Common Test Categories

Headlines and Copy

  • Value prop rewording
  • Specificity (add numbers, timeframes, outcomes)
  • Emotional vs rational framing
  • Length (short punchy vs detailed)

CTAs

  • Button text (action verbs, benefit language, urgency)
  • Button color and size
  • Button placement (above fold, after social proof, sticky)
  • Single CTA vs multiple CTAs

Social Proof

  • Testimonials vs logos vs metrics
  • Placement (near CTA vs header vs throughout)
  • Specificity (named customers vs anonymous)

Layout and Structure

  • Long page vs short page
  • Information hierarchy reordering
  • Form length and field order
  • Navigation presence vs removal

Pricing

  • Price anchoring (show higher price first)
  • Plan naming
  • Feature comparison layout
  • Free trial vs freemium vs demo

Avoiding Common Mistakes

  1. Testing too small a change — If your MDE requires 50,000 visitors per variant, the change is too subtle. Test bolder.
  2. Running too many tests on one page — Interaction effects corrupt results. One test per page at a time.
  3. Stopping early on positive results — Peeking inflates false positives. Commit to the sample size.
  4. Ignoring secondary metrics — A variant that increases signups but increases churn is not a win.
  5. Not segmenting results — A test can be flat overall but show strong wins on mobile. Always segment.

Output Format

For each generated test, present:

  1. Hypothesis — One sentence: IF/THEN/BECAUSE
  2. Evidence — What data supports this test
  3. Variants — Control and variant descriptions
  4. Selectors — CSS selectors and exact changes
  5. Metrics — Primary and secondary goals
  6. Duration — Estimated days to significance
  7. Expected Impact — Projected conversion lift range

Related Skills

  • cro-optimizer — Identify which pages and funnel steps need testing
  • page-cro — Deep page-level audit to inform test hypotheses
  • copywriting — Generate high-quality copy variants for tests
  • funnel-reporter — Track how test results affect downstream funnel metrics

平台分布

Codex

37.55%
按下载量换算27

Claude

30.86%
按下载量换算22

Cursor

19.26%
按下载量换算14

Gemini CLI

9.24%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills