experiment-design-checklist
Generates a rigorous experiment design given a hypothesis. Use when asked to design experiments, plan experiments, create an experimental setup, or figure out how to test a research hypothesis. Covers controls, baselines, ablations, metrics, statistical tests, and compute estimates.
What this skill does
# Experiment Design Checklist Prevent the "I ran experiments for 3 months and they're meaningless" disaster through rigorous upfront design. ## The Core Principle Before running ANY experiment, you should be able to answer: 1. What specific claim will this experiment support or refute? 2. What would convince a skeptical reviewer? 3. What could go wrong that would invalidate the results? ## Process ### Step 1: State the Hypothesis Precisely Convert your research question into falsifiable predictions: **Template:** ``` If [intervention/method], then [measurable outcome], because [mechanism]. ``` **Examples:** - "If we add auxiliary contrastive loss, then downstream task accuracy increases by >2%, because representations become more separable." - "If we use learned positional encodings, then performance on sequences >4096 tokens improves, because the model can extrapolate beyond training length." **Null hypothesis:** What does "no effect" look like? This is what you're trying to reject. ### Step 2: Identify Variables **Independent Variables (what you manipulate):** | Variable | Levels | Rationale | |----------|--------|-----------| | [Var 1] | [Level A, B, C] | [Why these levels] | **Dependent Variables (what you measure):** | Metric | How Measured | Why This Metric | |--------|--------------|-----------------| | [Metric 1] | [Procedure] | [Justification] | **Control Variables (what you hold constant):** | Variable | Fixed Value | Why Fixed | |----------|-------------|-----------| | [Var 1] | [Value] | [Prevents confound X] | ### Step 3: Choose Baselines Every experiment needs comparisons. No result is meaningful in isolation. **Baseline Hierarchy:** 1. **Random/Trivial Baseline** - What does random chance achieve? - Sanity check that the task isn't trivial 2. **Simple Baseline** - Simplest reasonable approach - Often embarrassingly effective 3. **Standard Baseline** - Well-known method from literature - Apples-to-apples comparison 4. **State-of-the-Art Baseline** - Current best published result - Only if you're claiming SOTA 5. **Ablated Self** - Your method minus key components - Shows each component contributes **For each baseline, document:** - Source (paper, implementation) - Hyperparameters used - Whether you re-ran or used reported numbers - Any modifications made ### Step 4: Design Ablations Ablations answer: "Is each component necessary?" **Ablation Template:** | Variant | What's Removed/Changed | Expected Effect | If No Effect... | |---------|----------------------|-----------------|-----------------| | Full Model | Nothing | Best performance | - | | w/o Component A | Remove A | Performance drops X% | A isn't helping | | w/o Component B | Remove B | Performance drops Y% | B isn't helping | | Component A only | Only A, no B | Shows A's isolated contribution | - | **Good ablations are:** - Surgical (one change at a time) - Interpretable (clear what was changed) - Informative (result tells you something) ### Step 5: Address Confounds Things that could explain your results OTHER than your hypothesis: **Common Confounds:** | Confound | How to Check | How to Control | |----------|--------------|----------------| | Hyperparameter tuning advantage | Same tuning budget for all | Report tuning procedure | | Compute advantage | Matched FLOPs/params | Report compute used | | Data leakage | Check train/test overlap | Strict separation | | Random seed luck | Multiple seeds | Report variance | | Implementation bugs (baseline) | Verify baseline numbers | Use official implementations | | Cherry-picked examples | Random or systematic selection | Pre-register selection criteria | ### Step 6: Statistical Rigor **Sample Size:** - How many random seeds? (Minimum: 3, better: 5+) - How many data splits? (If applicable) - Power analysis: Can you detect expected effect size? **What to Report:** - Mean ± standard deviation (or standard error) - Confidence intervals where appropriate - Statistical significance tests if claiming "better" **Appropriate Tests:** | Comparison | Test | Assumptions | |------------|------|-------------| | Two methods, normal data | t-test | Normality, equal variance | | Two methods, unknown dist | Mann-Whitney U | Ordinal data | | Multiple methods | ANOVA + post-hoc | Normality | | Multiple methods, unknown | Kruskal-Wallis | Ordinal data | | Paired comparisons | Wilcoxon signed-rank | Same test instances | **Avoid:** - p-hacking (running until significant) - Multiple comparison problems (Bonferroni correct) - Reporting only favorable metrics ### Step 7: Compute Budget Before running, estimate: | Component | Estimate | Notes | |-----------|----------|-------| | Single training run | X GPU-hours | [Details] | | Hyperparameter search | Y runs × X hours | [Search strategy] | | Baselines | Z runs × W hours | [Which baselines] | | Ablations | N variants × X hours | [Which ablations] | | Seeds | M seeds × above | [How many seeds] | | **Total** | **T GPU-hours** | Buffer: 1.5-2x | **Go/No-Go Decision:** Is this feasible with available resources? ### Step 8: Pre-Registration (Optional but Recommended) Write down BEFORE running: - Exact hypotheses - Primary metrics (not chosen post-hoc) - Analysis plan - What would constitute "success" This prevents unconscious goal-post moving. ## Output: Experiment Design Document ```markdown # Experiment Design: [Title] ## Hypothesis [Precise statement] ## Variables ### Independent [Table] ### Dependent [Table] ### Controls [Table] ## Baselines 1. [Baseline 1]: [Source, details] 2. [Baseline 2]: [Source, details] ## Ablations [Table] ## Confound Mitigation [Table] ## Statistical Plan - Seeds: [N] - Tests: [Which tests for which comparisons] - Significance threshold: [α level] ## Compute Budget [Table with total estimate] ## Success Criteria - Primary: [What must be true] - Secondary: [Nice to have] ## Timeline - Phase 1: [What, when] - Phase 2: [What, when] ## Known Risks 1. [Risk 1]: [Mitigation] 2. [Risk 2]: [Mitigation] ``` ## Red Flags in Experiment Design 🚩 "We'll figure out the metrics later" 🚩 "One run should be enough" 🚩 "We don't need baselines, it's obviously better" 🚩 "Let's just see what happens" 🚩 "We can always run more if it's not significant" 🚩 No compute estimate before starting 🚩 Vague success criteria
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.