agentleFS
YepAPIYepAPI/skills/skills/ab-testing/SKILL.md

ab-testing

Skill8 starsChanged 8 months agoMITView on GitHub

Experiment setup, variant splitting, statistical significance, and feature flag integration.

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use paywalls, popups and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CesarjoquinSkill

    paywalls

    When the user wants to create or optimize in-app paywalls, upgrade screens, upsell modals, or feature gates. Also use when the user mentions "paywall," "upgrade screen," "upgrade modal," "upsell," "feature gate," "convert free to paid," "freemium conversion," "trial expiration screen," "limit reached screen," "plan upgrade prompt," "in-app pricing," "free users won't upgrade," "trial to paid conversion," or "how do I get users to pay." Use this for any in-product moment where you're asking users to upgrade. Distinct from public pricing pages (see cro) — this focuses on in-product upgrade moments where the user has already experienced value. For pricing decisions, see pricing.

    Also in 12 projects that use this

  • CesarjoquinSkill

    popups

    When the user wants to create or optimize popups, modals, overlays, slide-ins, or banners for conversion purposes. Also use when the user mentions "exit intent," "popup conversions," "modal optimization," "lead capture popup," "email popup," "announcement banner," "overlay," "collect emails with a popup," "exit popup," "scroll trigger," "sticky bar," or "notification bar." Use this for any overlay or interrupt-style conversion element. For forms outside of popups, see cro. For general page conversion optimization, see cro.

    Also in 12 projects that use this

  • ScaleBrickSkill

    competitors

    Audit competitors using ScaleBrick's 3-surface framework (social, web/pages, SEO). Categorizes their pricing, features, and landing pages. Identifies gaps you can exploit, positioning angles no one is claiming, and specific moves you can make this week.

    Also in 14 projects that use this

  • roerohanSkill

    emails

    When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program. Also use when the user mentions "email sequence," "drip campaign," "nurture sequence," "onboarding emails," "welcome sequence," "re-engagement emails," "email automation," "lifecycle emails," "trigger-based emails," "email funnel," "email workflow," "what emails should I send," "welcome series," or "email cadence." Use this for any multi-email automated flow. For cold outreach emails, see cold-email. For in-app onboarding, see onboarding.

    Also in 13 projects that use this

  • coreyhaines31Skill

    marketing-council

    When the user wants multiple expert perspectives on a marketing question — a simulated board of advisors staffed by legendary marketers (Seth Godin, David Ogilvy, Eugene Schwartz, April Dunford, Rory Sutherland, Alex Hormozi, Byron Sharp, and more). Also use when the user mentions 'marketing council,' 'board of advisors,' 'advisory board,' 'what would Seth Godin say,' 'what would Ogilvy think,' 'channel Hormozi,' 'get multiple perspectives,' 'debate this,' 'have the council review,' 'marketing mentors,' or asks how a famous marketer would approach their problem. The council gives each advisor's take through their documented frameworks, surfaces where they disagree, and synthesizes a recommendation. For executing the winning direction, hand off to positioning, offers, copywriting, ads, or the relevant skill.

    Also in 5 projects that use this

  • +7 more from Cesarjoquin

The file

Files
SKILL.md

A/B Testing

Rules

  • Hash-based assignment: deterministic variant selection using hash(userId + experimentId) % 100 — no randomness drift between sessions
  • Variant config: store experiments in a config object { id, name, variants: [{ id, weight }], status } — never hardcode variants
  • Split traffic server-side: assign in middleware or API route, set cookie for consistency — client-side splits cause flicker
  • Statistical significance: require 95% confidence (p < 0.05) before declaring a winner — use z-test for proportions
  • Sample size: calculate minimum sample before starting — n = (Z^2 * p * (1-p)) / E^2 where E is minimum detectable effect
  • One metric per experiment: define a primary metric upfront (conversion rate, click-through, revenue) — secondary metrics are exploratory only
  • Mutual exclusion: users in one experiment should not overlap with conflicting experiments — use experiment layers
  • Feature flags: wrap experiment code in feature flag checks — clean up losing variants after experiment ends
  • Duration: run for at least 1-2 full business cycles (7-14 days minimum) to account for day-of-week effects
  • Logging: track experiment_id, variant_id, user_id, timestamp for every impression and conversion event

Avoid

  • Peeking at results before sample size is reached — inflates false positive rate
  • Changing experiment parameters mid-run — invalidates statistical analysis
  • Testing too many variants at once — increases required sample size exponentially
  • Client-side variant assignment without cookies — causes flickering and inconsistent experiences

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.