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

ab-testing

Skill8 starsChanged 7 months agoMITView on GitHub

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

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)

  • Other versions40 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 40

    1. coreyhaines31/marketingskills★ 58ksame name
    2. Cesarjoquin/Marketing-Skills★ 190same name
    3. growthack88/growth-marketing-os★ 117same name
    4. Yg0rAndrade/carcara-code★ 84same name
    5. open-fox/agents★ 55same name
    6. Infinite-Labs-AI/infinite-skills★ 43same name
    7. SZcalligrapher/slash-skills-subscription★ 32same name
    8. ncklrs/claude-chrome-user-testing★ 20same name
    9. opensite-ai/opensite-skills★ 15same name
    10. TommyBez/skillsboard★ 10same name

    30 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use free-tools, 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

      free-tools

      When the user wants to plan, evaluate, or build a free tool for marketing purposes — lead generation, SEO value, or brand awareness. Also use when the user mentions "engineering as marketing," "free tool," "marketing tool," "calculator," "generator," "interactive tool," "lead gen tool," "build a tool for leads," "free resource," "ROI calculator," "grader tool," "audit tool," "should I build a free tool," or "tools for lead gen." Use this whenever someone wants to build something useful and give it away to attract leads or earn links. For downloadable content lead magnets (ebooks, checklists, templates), see lead-magnets.

      Also in 20 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 18 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 13 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 21 projects that use this

    • roerohanSkill

      prospecting

      When the user wants to find, qualify, and build a list of prospects to reach out to — across B2B SaaS, general B2B, or local small businesses. Also use when the user mentions "prospecting," "build a prospect list," "find prospects," "find leads," "lead gen list," "find SaaS companies that," "find B2B companies," "find local businesses," "ICP-fit accounts," "who should we go after," "outbound list," "target account list," "find clients near me," "businesses without websites," "prospect research," "qualified leads," "find my first customers," "early adopters," "design partners," "beta users," or "who has this problem." Use this for the list-building and qualification phase. For writing the outbound copy after the list is built, see cold-email. For deep competitive research on specific accounts, see competitor-profiling.

      Also in 16 projects that use this

    • +7 more from Cesarjoquin
  • In this repository110 other files it gives its agents.

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.