Agent skill

Ab Test Generator

by Affitor in Affitor/affiliate-skills

Generate A/B test variants for affiliate content. An agent skill from Affitor/affiliate-skills.

MITAuto-check passedMarketing & SEO

Install Ab Test Generator

skills CLI
$ npx skills add Affitor/affiliate-skills --skill ab-test-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Affitor/affiliate-skills ab-test-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Affitor/affiliate-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/analytics/ab-test-generator .claude/skills/ab-test-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ab-test-generator
GitHub stars
699
Token cost
~2.2k tokens
SKILL.md length
866 words
Files
2
Skills in repo
50
Repo updated
First seen
Licence
MIT

At a glance

Generate A/B test variants for affiliate content. An agent skill from Affitor/affiliate-skills.

  • Works in 6 steps: Analyze Original Content → Identify Testable Elements → Generate Variants → …
  • : create A/B test
  • SKILL.md covers Stage, When to Use, Input Schema and Workflow, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ab Test Generator is an agent skill from Affitor/affiliate-skills. Generate A/B test variants for affiliate content. Triggers on: "create A/B test", "test my headline", "optimize my CTA", "generate variants", "split test ideas", "improve click-through rate", "test my landing page copy", "headline alternatives", "CTA variations", "which version is better", "optimize conversions", "test my email subject line", "compare approaches".

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file. Compatibility notes: Claude Code, ChatGPT, Gemini CLI, Cursor, Windsurf, OpenClaw, any AI agent

It sits in Marketing & SEO, covering A/B testing. The repository describes itself as: 50 AI agent skills for affiliate marketing. Research trending content, write data-backed posts, generate infographics, build landing pages, deploy — full flywheel with social… The licence is MIT.

When your agent uses it

  • : create A/B test
  • Test my headline
  • Optimize my CTA
  • Generate variants

Example prompts

  • “create A/B test”
  • “test my headline”
  • “optimize my CTA”
  • “/ab-test-generator”

Requirements

  • Compatibility (from SKILL.md): Claude Code, ChatGPT, Gemini CLI, Cursor, Windsurf, OpenClaw, any AI agent

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Analyze Original Content
  2. Identify Testable Elements
  3. Generate Variants
  4. Write Hypotheses
  5. Suggest Test Plan
  6. Self-Validation

What it can do on your machine

Read from SKILL.md and the folder at commit e43bfae. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Claude Code, ChatGPT, Gemini CLI, Cursor, Windsurf, OpenClaw, any AI agent

    From compatibility in the SKILL.md frontmatter.

Context cost

Ab Test Generator loads about 2.2k tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 866 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~96
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Affitor/affiliate-skills at commit e43bfae, republished under its MIT licence (© Affitor). 866 words, ~2,180 tokens.

Download SKILL.mdSave it as .claude/skills/ab-test-generator/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
ab-test-generator
description
Generate A/B test variants for affiliate content. Triggers on: "create A/B test", "test my headline", "optimize my CTA", "generate variants", "split test ideas", "improve click-through rate", "test my landing page copy", "headline alternatives", "CTA variations", "which version is better", "optimize conversions", "test my email subject line", "compare approaches".
compatibility
Claude Code, ChatGPT, Gemini CLI, Cursor, Windsurf, OpenClaw, any AI agent
license
MIT
version
1.0.0
tags
affiliate-marketing, analytics, optimization, tracking, ab-testing, experiments
metadata.author
affitor
metadata.version
1.0
metadata.stage
S6-Analytics

A/B Test Generator

Generate A/B test variants for affiliate content — headlines, CTAs, landing page sections, email subject lines, and social post hooks. Each variant includes a hypothesis explaining why it might outperform the original. Output is a Markdown document with the original, variants, hypotheses, and a test plan.

Stage

S6: Analytics — Small changes in headlines and CTAs can swing conversion rates by 20-50%. A/B testing is how professional affiliates systematically find what converts best. This skill removes the guesswork by generating theory-driven variants using proven copywriting frameworks.

When to Use

  • User wants to improve conversion rates on existing content
  • User has a headline, CTA, or email subject line and wants alternatives
  • User says "test my headline", "optimize my CTA", "A/B test ideas"
  • User has a landing page section that isn't converting
  • User wants to compare different messaging approaches
  • Chaining from S2-S5: take any content output and generate test variants

Input Schema

yaml
original: string               # REQUIRED — the content to test (headline, CTA, paragraph,
                               # email subject line, or full social post)

content_type: string           # REQUIRED — "headline" | "cta" | "landing_section"
                               # | "email_subject" | "social_hook"

goal: string                   # OPTIONAL — "clicks" | "signups" | "purchases"
                               # Default: "clicks"

num_variants: number           # OPTIONAL — number of variants to generate (2-5)
                               # Default: 3

audience: string               # OPTIONAL — who sees this content
                               # (e.g., "SaaS founders", "content creators")

product: string                # OPTIONAL — product being promoted

Chaining context: If S2-S5 content exists in conversation, the user can reference it: "test the headline from my blog post" or "generate CTA variants for my landing page."

Workflow

Step 1: Analyze Original Content

Break down the original into components:

  • Emotional angle: What emotion does it trigger? (curiosity, fear, desire, urgency)
  • Specificity: How specific vs vague?
  • Structure: Question, statement, command, statistic?
  • Framework: Which copywriting framework does it follow? (PAS, AIDA, 4U, BAB)
Step 2: Identify Testable Elements

Determine what to vary:

  • Emotional angle (switch from curiosity to urgency)
  • Specificity (add numbers, remove vagueness)
  • Structure (question vs statement)
  • Length (shorter vs longer)
  • Power words (swap key words for stronger alternatives)
  • Social proof (add or remove)
Step 3: Generate Variants

Create num_variants alternatives, each using a different approach:

  • Variant A: Different emotional angle
  • Variant B: Different structure/format
  • Variant C: Different specificity level
  • Additional variants explore social proof, urgency, or contrarian angles

Each variant must:

  • Preserve the core message and product reference
  • Preserve any FTC disclosure from the original
  • Be a realistic alternative (not just a word swap)
Step 4: Write Hypotheses

For each variant, explain:

  • What was changed and why
  • Which copywriting principle supports the change
  • What behavior change is expected (e.g., "Higher CTR because questions create open loops")
Step 5: Suggest Test Plan

Recommend:

  • Sample size needed (minimum 100 impressions per variant for social, 500 for landing pages)
  • Test duration (7-14 days minimum)
  • What metric to track (CTR, conversion rate, revenue per visitor)
  • When to declare a winner (95% statistical significance or practical significance threshold)
Step 6: Self-Validation

Before presenting output, verify:

  • 3-5 distinct variants generated (not just word swaps)
  • Each hypothesis grounded in a copywriting principle or framework
  • Sample size calculation is present and realistic
  • Test duration is ≥7 days minimum
  • Winner criteria defined with statistical significance threshold

If any check fails, fix the output before delivering. Do not flag the checklist to the user — just ensure the output passes.

Output Schema

yaml
output_schema_version: "1.0.0"  # Semver — bump major on breaking changes
test:
  original: string
  content_type: string
  goal: string

variants:
  - label: string              # "Variant A", "Variant B", etc.
    content: string            # the variant text
    change: string             # what was changed
    framework: string          # copywriting principle used
    hypothesis: string         # why this might win

test_plan:
  sample_size: number          # per variant
  duration: string             # recommended test period
  metric: string               # what to measure
  winner_criteria: string      # when to pick a winner

Output Format

  1. Original — the current content being tested
  2. Variants — each variant with its content, change description, and hypothesis
  3. Test Plan — sample size, duration, metric, winner criteria
  4. Quick Win — if one variant is clearly stronger based on copywriting principles, call it out
Show full SKILL.md (348 more words)Show less

Error Handling

  • Original too short (1-2 words): "I need more context. Paste the full headline, CTA, or email subject line you want to test."
  • Content type unclear: "Is this a headline, CTA button text, email subject line, or social post hook? Knowing the format helps me generate better variants."
  • Too many variants requested (>5): "I'll generate 5 high-quality variants. More than 5 makes testing impractical — you'd need a very large audience to reach statistical significance."

Examples

Example 1: Blog headline test

User: "Test this headline: 'HeyGen Review: Is It Worth It in 2026?'" Action: Generate 3 variants. Variant A: "I Tested HeyGen for 30 Days — Here's What Happened" (curiosity + personal experience). Variant B: "HeyGen vs Synthesia: Which AI Video Tool Wins?" (comparison + specificity). Variant C: "The AI Video Tool That Cut My Production Time by 80%" (result + specificity). Each with hypothesis.

Example 2: CTA button test

User: "Optimize this CTA: 'Start Free Trial'" Action: Variant A: "Try HeyGen Free — No Card Required" (reduces friction). Variant B: "Create Your First AI Video in 2 Minutes" (outcome-focused). Variant C: "Get Started Free →" (shorter, action-oriented). Test plan: minimum 500 clicks per variant, track conversion rate.

Example 3: Email subject line test

User: "I'm sending an email about Semrush. Test this subject: 'Check out Semrush — it's great for SEO'" Action: Identify weakness (vague, no hook). Variant A: "The SEO tool I use to rank #1 (not kidding)" (social proof + curiosity). Variant B: "Your competitors are using this — are you?" (FOMO). Variant C: "3 Semrush features that doubled my organic traffic" (specificity + result). Each preserves FTC compliance.

References

  • shared/references/ftc-compliance.md — Ensure variants preserve FTC disclosure from original. Referenced in Step 3.
  • shared/references/flywheel-connections.md — master flywheel connection map

Flywheel Connections

Feeds Into
  • purple-cow-audit (S1) — winning variants reveal what resonates = what's remarkable
  • performance-report (S6) — test results for reporting
Fed By
  • viral-post-writer (S2) — posts to test variations of
  • twitter-thread-writer (S2) — thread hooks to test
  • landing-page-creator (S4) — landing page elements to test
  • content-pillar-atomizer (S2) — volume mode variants for testing
Feedback Loop
  • Test results directly improve all content-producing skills → winning headlines, CTAs, and angles feed into next content creation cycle
yaml
chain_metadata:
  skill_slug: "ab-test-generator"
  stage: "analytics"
  timestamp: string
  suggested_next:
    - "performance-report"
    - "viral-post-writer"
    - "landing-page-creator"

© Affitor, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/analytics/ab-test-generator of Affitor/affiliate-skills.

  • SKILL.md
  • LICENSE.txt

Open the folder on GitHubat commit e43bfae

Compare with similar skills

Ab Test Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ab Test Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ab Test Generator this skillAffitor/affiliate-skills699—~2.2kAutomated safety check: PassMIT
Ab Testingcoreyhaines31/marketingskills54k3 repos~2.8kAutomated safety check: PassMIT
AnalyticsNexus-JPF/note-companion8707 repos~2.2kAutomated safety check: PassMIT
Ab Test Setupfreekmurze/dotfiles1k15 repos~1.8kAutomated safety check: PassNone
Ad Test Designeraaron-he-zhu/aaron-marketing-skills2.9k2 repos~2.8kAutomated safety check: PassApache-2.0
Meta Tags Optimizernowork-studio/notfair-plugin3.9k1 repos~2.7kAutomated safety check: PassMIT

Similar skills

  • Ab Testing

    coreyhaines31/marketingskills

    When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program.

    54k GitHub starsUsed in 3 repos~2.8k tokens
    Marketing & SEOAuto-check passed
  • Analytics

    Nexus-JPF/note-companion

    When the user wants to set up, improve, or audit analytics tracking and measurement.

    870 GitHub starsUsed in 7 repos~2.2k tokens
    Marketing & SEOAuto-check passed
  • Ab Test Setup

    freekmurze/dotfiles

    When the user wants to plan, design, or implement an A/B test or experiment.

    1k GitHub starsUsed in 15 repos~1.8k tokens
    Marketing & SEOAuto-check passed
  • Ad Test Designer

    aaron-he-zhu/aaron-marketing-skills

    A skill your agent uses when the user asks to "design an A/B test", "set up a creative/landing test", "run an incrementality test", or "is this result statistically and practically material?"…

    2.9k GitHub starsUsed in 2 repos~2.8k tokens
    Marketing & SEOAuto-check passed
  • Meta Tags Optimizer

    nowork-studio/notfair-plugin

    Writes and improves title tags, meta descriptions, Open Graph and Twitter card tags for click-through, with character counts and A/B test variants.

    3.9k GitHub starsUsed in 1 repo~2.7k tokens
    Marketing & SEOAuto-check passed
  • Ab Test Analyzer

    irinabuht12-oss/marketing-skills

    Statistical significance calculator for A/B test results with sample size requirements, segment breakdowns, and hypothesis generation.

    3.9k GitHub stars~1.4k tokensUpdated 14 days ago
    Marketing & SEOAuto-check passed

More from Affitor/affiliate-skills

All 50 skills in this repo
  • Performance Report

    Affitor/affiliate-skills

    Generate affiliate performance reports with KPIs and recommendations.

    699 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Affiliate Check

    Affitor/affiliate-skills

    Live affiliate program data from openaffiliate.dev. An agent skill from Affitor/affiliate-skills.

    699 GitHub stars~808 tokensUpdated 23 days ago
    Auto-check: notes
  • Affiliate Program Search

    Affitor/affiliate-skills

    Research and evaluate affiliate programs to find the best ones to promote.

    699 GitHub stars~2.4k tokensUpdated 23 days ago
    Auto-check passed
  • Bio Link Deployer

    Affitor/affiliate-skills

    Create a Linktree-style bio link hub page as a single self-contained HTML file.

    699 GitHub stars~3k tokensUpdated 23 days ago
    Auto-check passed
  • Conversion Tracker

    Affitor/affiliate-skills

    Set up affiliate conversion tracking with UTM parameters and link tagging.

    699 GitHub stars~2.1k tokensUpdated 23 days ago
    Auto-check passed
  • Product Showcase Page

    Affitor/affiliate-skills

    Build a single-product deep-dive showcase page as a self-contained HTML file.

    699 GitHub stars~3.6k tokensUpdated 23 days ago
    Auto-check passed

Categories

Questions about Ab Test Generator

What does Ab Test Generator do?

Generate A/B test variants for affiliate content. An agent skill from Affitor/affiliate-skills. Ab Test Generator is an agent skill from Affitor/affiliate-skills. Generate A/B test variants for affiliate content.

When should I use Ab Test Generator?

Ab Test Generator fits situations like: : create A/B test; test my headline; optimize my CTA; generate variants.

How do I install Ab Test Generator in Claude Code?

Run `npx skills add Affitor/affiliate-skills --skill ab-test-generator -a claude-code`. Or copy the skill folder (skills/analytics/ab-test-generator in Affitor/affiliate-skills) into .claude/skills/ab-test-generator in your project. Claude Code loads it when a task matches its description.

How do I install Ab Test Generator in Codex?

Run `npx skills add Affitor/affiliate-skills --skill ab-test-generator -a codex`. Or copy the skill folder (skills/analytics/ab-test-generator in Affitor/affiliate-skills) into .agents/skills/ab-test-generator in your project. Codex loads it when a task matches its description.

Can I use Ab Test Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Affitor/affiliate-skills --skill ab-test-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ab-test-generator, .gemini/skills/ab-test-generator, .github/skills/ab-test-generator and .opencode/skills/ab-test-generator in your project.

What does Ab Test Generator need to run?

SKILL.md names no scripts, command-line tools or credentials: Ab Test Generator is instructions for the agent only. Compatibility (from SKILL.md): Claude Code, ChatGPT, Gemini CLI, Cursor, Windsurf, OpenClaw, any AI agent.

Does Ab Test Generator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ab Test Generator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ab Test Generator use?

Ab Test Generator is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ab Test Generator use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ab Test Generator?

Skills that share tags, products or a category with Ab Test Generator: Ab Testing (coreyhaines31/marketingskills, 54k stars), Analytics (Nexus-JPF/note-companion, 870 stars), Ab Test Setup (freekmurze/dotfiles, 1k stars) and Ad Test Designer (aaron-he-zhu/aaron-marketing-skills, 2.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ab Test Generator?

Affitor (a GitHub organization) maintains it in Affitor/affiliate-skills, which has 699 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on September 15, 2026.

Source: Affitor/affiliate-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.