Logo: Experimentation

Experimentation

Communautéit
nahid-sparktales
experimentation

Design an A/B test that can answer its question — hypothesis, randomization unit, power, duration, pre-registered analysis — and read the result honestly, including a null. Use when someone proposes testing a change, asks how long a test must run or whether a result is real, when a test is about to be stopped early, or when a flat result is being read as "no difference". Not for defining the metric itself (product-analytics), not for a change too small or too rare to power, and not for authorizing a rollout.

Iwwersiicht

Editeurnahid-sparktales
Repositoryagent-dispatcher
Skill-Nummexperimentation
Stären
58
Forks
5
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    nahid-sparktales huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Experimentation an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/product/experimentation
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/product/experimentation .claude/skills/experimentation
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Experimentation an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Experimentation automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Experimentation net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Experimentation

Most experiments fail before they launch: an unmeasurable hypothesis, a unit that leaks between arms, or a sample that was never going to detect the effect anyone cared about. Reading results is the short part. The design is where the answer is won or lost.

When this fires

A change is about to be tested, a running test is about to be read or stopped, or a result is being turned into a decision. It also fires as a refusal: when the traffic cannot support a test worth running, saying that early is the valuable output.

Five states, not one

  • Designed — hypothesis, unit, primary metric, power and duration written down.
  • Launched — assignment is live and exposures are being logged.
  • Read — analysed at the pre-registered time, after sanity checks pass.
  • Conclusive — the result distinguishes the hypothesis from its absence at the stated power.
  • Shipped — a human decided to roll it out. Never a consequence of the other four.

Procedure

  1. Write a falsifiable hypothesis with a direction and a size. "Moving the plan selector above the fold will increase trial starts by at least 5% relative, because users currently scroll past it." Without a size there is no power calculation, and without that there is no experiment — only a period of waiting.
  2. Choose one primary metric, before any data exists. One. Add guardrails (the metrics that must not degrade) and secondaries (interesting, never decisive). If the primary metric is not already defined to the standard of product-analytics, define it first — an experiment on a vague metric produces a vague result at full cost.
  3. Pick the randomization unit so that interference stays inside an arm. User or account for anything with memory across sessions; session-level assignment gives a user both arms and smears the effect. If users interact with each other or share a workspace, the unit is the group, not the person. State the unit and the reason.
  4. Make the analysis unit match the randomization unit. Randomize by user, analyse by user. Analysing per-event data from user-randomized arms understates the variance and manufactures significance.
  5. Compute the sample size from the baseline rate and the minimum effect worth acting on, using the standard two-proportion (or two-sample mean) sample-size calculation, per arm, at the significance and power you state — conventionally 5% and 80%, said out loud, not assumed. Then convert to duration with the real traffic reaching that surface, not total site traffic.
  6. Sanity-check the duration before committing. Run whole weeks, at least one full business cycle, so day-of-week mix is balanced. If the required duration is longer than anyone will wait, the honest moves are: raise the minimum detectable effect, pick a surface with more traffic, test a bolder version of the change, or decide without an experiment. Running it anyway underpowered is the one option that produces a confident wrong answer.
  7. Pre-register the analysis and write it down before launch: primary metric, guardrails, unit, arms and split, start and planned end date, the segments you are permitted to cut, and what each outcome means for the decision. This document is what makes a later null result credible.
  8. Before reading anything, run the sanity checks. Sample ratio mismatch — the observed split against the intended split, tested rather than eyeballed; a mismatch invalidates the comparison and is a bug, not a result. Then: exposures logged in both arms, no other experiment or launch overlapping the same surface, no outage or campaign inside the window.
  9. Read at the pre-registered time. Peeking and stopping on a good day inflates the false positive rate badly. If you need to look early, that decision belongs at step 7 as a sequential or group-sequential design with its own thresholds — not as an improvisation at step 9.
  10. Report the effect with its confidence interval, in both relative and absolute terms, plus the guardrails. A point estimate alone hides everything that matters about certainty.
  11. Be precise about a null. A flat result is not "no difference". It is: the data are consistent with effects between the interval's bounds, and the test was powered to detect an effect of at least the MDE. Say which. A wide interval means the experiment was uninformative — a different statement from "the change did nothing", and a more useful one.
  12. Treat post-hoc segments as hypothesis generation only. A subgroup that "won" in a test designed for the whole population is a candidate for the next experiment, never a conclusion, and never a reason to ship to that subgroup.
  13. Stop and ask before rolling out, ramping, or ending a test early. Producing the result is this procedure's job; changing what users get is a decision with an owner who is not you. Say what the data support and hand it over.

Checklist

  • Hypothesis states direction, size and mechanism
  • One primary metric, fixed before data; guardrails named
  • Randomization unit stated, with interference argued
  • Analysis unit matches the randomization unit
  • Sample size per arm computed from baseline, MDE, significance and power — all stated
  • Duration derived from real traffic, in whole weeks
  • Analysis pre-registered in writing before launch
  • Sample ratio checked; exposures present in both arms; no overlapping change in the window
  • Result read at the pre-registered time, with confidence intervals
  • A null result reported as "could not detect an effect larger than X", not "no difference"
  • Rollout proposed to a human, not performed

Failure handling

  • Sample ratio mismatch — stop analysing. Something in assignment, exposure logging or filtering is broken; any effect measured through it is uninterpretable. Report it as a bug.
  • A guardrail moved against you while the primary won — that is the result, both halves of it. Do not report the win alone.
  • A secondary metric moved and the primary did not — a new hypothesis, not a finding. Say so plainly; this is the most common way a dead experiment gets resurrected as a claim.
  • The test was stopped early — say when and why, and treat the p-value as optimistic. If the early stop was for harm, that decision stands; the statistics just do not transfer.
  • An overlapping launch, outage or campaign landed inside the window — name it, say which direction it plausibly biases, and do not quietly report the number as clean.
  • Traffic cannot power the test — return that as the answer, with the numbers: baseline rate, weekly eligible traffic, detectable effect at the maximum acceptable duration. A well-argued "this cannot be tested here, decide another way" is a complete deliverable.

Evidence to report

The pre-registration as written before launch. The power calculation with its inputs visible — baseline rate, MDE, significance, power, resulting sample per arm, traffic, duration. The sample ratio check as observed-versus-expected counts. The primary metric with its confidence interval, relative and absolute, and every guardrail. The exact window analysed and anything known to have happened inside it. And, for a null, the effect size the test could not have ruled out.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Experimentation?

Design an A/B test that can answer its question — hypothesis, randomization unit, power, duration, pre-registered analysis — and read the result honestly, including a null. Use when someone proposes testing a change, asks how long a test must run or whether a result is real, when a test is about to be stopped early, or when a flat result is being read as "no difference". Not for defining the metric itself (product-analytics), not for a change too small or too rare to power, and not for authorizing a rollout.

Firwat Experimentation op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Experimentation besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Experimentation an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/product/experimentation an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Experimentation benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Experimentation benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Experimentation domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Experimentation gratis?

Jo. nahid-sparktales huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇