experiment-designer
Design rigorous experiments — hypotheses, controls, randomization, power analysis, and preregistration. Use when planning any study where you need trustworthy causal conclusions.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- experiment-designer
- category
- ai-research
- description
- Design rigorous experiments — hypotheses, controls, randomization, power analysis, and preregistration. Use when planning any study where you need trustworthy causal conclusions.
03 SKILL.md 正文
Experiment Designer
An experiment is a question posed to reality in a way that reality can answer. Good design — clear hypotheses, proper controls, randomization, adequate power — is what separates evidence from anecdote.
Overview
Design before data: state the hypothesis and what would falsify it, choose the design that isolates the effect (control groups, within-subject, factorial), randomize to kill confounds, blind where expectations could bias, and size the sample with a power analysis. Preregister the plan. Analysis choices made after seeing the data are hypotheses, not conclusions.
When to use
- Planning A/B tests, clinical or behavioral studies, lab experiments, field trials.
- Deciding sample size: "how many participants/runs do I need?"
- Reviewing someone else's experimental plan for flaws.
- Choosing between experimental designs for a research question.
Core concepts
- Hypothesis and falsifiability: a precise prediction plus the outcome that would disprove it. "X improves Y" needs: by how much, measured how, compared to what.
- Controls: the comparison that isolates your manipulation — placebo, baseline, active control. Without a control, you measured change, not cause.
- Randomization: random assignment breaks the link between confounds and conditions. Randomize what you can; measure and adjust for what you can't.
- Blinding: hiding condition assignments from participants and/or experimenters where expectations could bias outcomes. Single, double, or triple as needed.
- Power analysis: sample size from the smallest effect you care about, your noise level, and desired power (typically 80%). Underpowered studies can't answer their question.
- Preregistration: publishing the plan — hypotheses, measures, exclusion rules, analyses — before data collection. Separates confirmatory from exploratory.
Practical workflow
- Write the hypothesis, primary outcome measure, and the falsifying result — in one paragraph.
- Choose the design: between-subjects (simpler, needs more N), within-subjects (powerful, watch order effects), factorial (interactions, needs planning).
- Define controls, randomization procedure, and blinding level. List the confounds you're worried about and how each is handled.
- Run the power analysis; if N is infeasible, simplify the question — don't run underpowered.
- Preregister: hypotheses, measures, sample, exclusions, analysis plan. Lock it.
- Analyze as preregistered; label anything else exploratory. Report nulls and deviations honestly.
Experiment plan template:
HYPOTHESIS: <precise prediction + falsifier>
DESIGN: <between/within/factorial + why>
N: <from power analysis: effect, alpha, power>
CONTROLS: <comparison conditions>
RANDOMIZE: <unit + procedure> BLIND: <level>
MEASURES: <primary + secondary, how collected>
EXCLUSIONS: <pre-defined rules>
ANALYSIS: <tests, corrections, model>
Common pitfalls
- No control group: measuring before/after without comparison. Change isn't causation.
- Underpowered: too-small samples that can't detect real effects — and produce exaggerated ones when they "succeed."
- Peeking: checking results mid-experiment and stopping when significant. Predefine stopping rules or don't look.
- HARKing: presenting exploratory findings as predicted. Preregistration is the defense.
- Multiple comparisons uncorrected: testing 20 outcomes and reporting the significant one. Correct or pre-specify the primary.
- Confounds unaddressed: the effect could be the manipulation or the time of day. List confounds; design each one away.
04 同仓库更多 Skills
web-scrape
Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open/fetch fails on JS-heavy pages, or when you need clean markdown/structured extraction from a site. Requires FIRECRAWL_API_KEY.
design-taste-frontend
tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML/CSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, "AI-made", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
requesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).