Experimental Design
Oleafly/Oleafly
Design experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable.
Domain-specific statistical power analysis guidance for cognitive and neuroscience research, encoding effect size priors and sample size recommendations by modality
$ npx skills add NeuroAIHub/BrainPilot --skill cogsci-power-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install NeuroAIHub/BrainPilot cogsci-power-analysis --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/NeuroAIHub/BrainPilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis .claude/skills/cogsci-power-analysis && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cogsci-power-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis into .claude/skills/cogsci-power-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cogsci-power-analysis", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysisType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add NeuroAIHub/BrainPilot --skill cogsci-power-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install NeuroAIHub/BrainPilot cogsci-power-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/NeuroAIHub/BrainPilot.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis .agents/skills/cogsci-power-analysis && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cogsci-power-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis into .agents/skills/cogsci-power-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cogsci-power-analysis", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add NeuroAIHub/BrainPilot --skill cogsci-power-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install NeuroAIHub/BrainPilot cogsci-power-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/NeuroAIHub/BrainPilot.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis .cursor/skills/cogsci-power-analysis && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cogsci-power-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis into .cursor/skills/cogsci-power-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cogsci-power-analysis", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/NeuroAIHub/BrainPilot.git --path packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add NeuroAIHub/BrainPilot --skill cogsci-power-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install NeuroAIHub/BrainPilot cogsci-power-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/NeuroAIHub/BrainPilot.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis .gemini/skills/cogsci-power-analysis && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cogsci-power-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis into .gemini/skills/cogsci-power-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cogsci-power-analysis", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install NeuroAIHub/BrainPilot cogsci-power-analysisInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add NeuroAIHub/BrainPilot --skill cogsci-power-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/NeuroAIHub/BrainPilot.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis .github/skills/cogsci-power-analysis && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cogsci-power-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis into .github/skills/cogsci-power-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cogsci-power-analysis", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add NeuroAIHub/BrainPilot --skill cogsci-power-analysis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install NeuroAIHub/BrainPilot cogsci-power-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/NeuroAIHub/BrainPilot.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis .opencode/skills/cogsci-power-analysis && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cogsci-power-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis into .opencode/skills/cogsci-power-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cogsci-power-analysis", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cogsci-power-analysisDomain-specific statistical power analysis guidance for cognitive and neuroscience research, encoding effect size priors and sample size recommendations by modality
Cogsci Power Analysis is an agent skill from NeuroAIHub/BrainPilot. Domain-specific statistical power analysis guidance for cognitive and neuroscience research, encoding effect size priors and sample size recommendations by modality
Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/effect-sizes.md` and `references/sample-size-guide.md`).
It sits in Research & Science, covering Experimental design and Statistics. The repository describes itself as: BrainPilot: Automating Brain Discovery with Agentic Research. The licence is AGPL-3.0.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 93f6855. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cogsci Power Analysis loads about 3.4k tokens when it runs, and up to ~18k if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 1,654 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from NeuroAIHub/BrainPilot at commit 93f6855, republished under its AGPL-3.0 licence (© NeuroAIHub). 1,654 words, ~3,354 tokens.
.claude/skills/cogsci-power-analysis/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.This skill encodes domain-specific knowledge for planning adequately powered studies in cognitive science and neuroscience. It provides:
An AI agent needs this because generic power analysis advice (e.g., "use G*Power with d = 0.5") fails to capture the enormous variability in effect sizes across cognitive science paradigms, and because neuroimaging modalities have unique statistical considerations.
Before executing the domain-specific steps below, you MUST:
For detailed methodology guidance, see the research-literacy skill.
This skill was generated by AI from academic literature. All parameters, thresholds, and citations require independent verification before use in research. If you find errors, please open an issue.
Determine which modality and design type apply:
| Modality | Common Designs | Key Consideration |
|---|---|---|
| Behavioral | Between-groups, within-subjects, mixed | Effect sizes vary enormously by paradigm |
| EEG/ERP | Within-subjects repeated measures | Trial count matters as much as participant count |
| fMRI (task) | Within-subjects block/event-related | Whole-brain vs. ROI analysis affects power |
| fMRI (individual differences) | Correlational, between-subjects | Requires much larger N than task contrasts |
| Clinical/Developmental | Case-control, longitudinal | Recruitment constraints often limit N; adjust design |
Do not use generic benchmarks (Cohen's "small/medium/large"). Instead:
references/effect-sizes.md for a curated library organized by modality.Modality-level median effect sizes (use only when paradigm-specific estimates are unavailable):
| Modality | Median Effect Size | Source |
|---|---|---|
| Behavioral (cognitive psychology) | d = 0.40 | Brysbaert, 2019 |
| EEG/ERP component differences | d = 0.50 - 1.00 | Boudewyn et al., 2018; Clayson et al., 2019 |
| fMRI task activation | d = 0.75 - 1.00 (within-subject) | Poldrack et al., 2017 |
| fMRI brain-behavior correlation | r = 0.10 - 0.20 | Marek et al., 2022 |
| Clinical group differences | d = 0.30 - 0.80 | Leucht et al., 2015; Button et al., 2013 |
Critical warning: The median statistical power in neuroscience has been estimated at only 21% (Button et al., 2013, Nature Reviews Neuroscience). Many published effect sizes are inflated by publication bias. Always apply skepticism to effect sizes from underpowered, unreplicated studies.
Choose method based on design complexity:
Use analytic solutions via G*Power or pwr (R):
Target: 80% power (minimum) or 90% power (recommended)
Alpha: 0.05 (two-tailed unless directional hypothesis is justified)pwr.t.test(d = effect_size, power = 0.80, sig.level = 0.05, type = "two.sample")pwr.t.test(d = effect_size_dz, power = 0.80, sig.level = 0.05, type = "paired")pwr.r.test(r = effect_size, power = 0.80, sig.level = 0.05)Use simulation-based power analysis:
references/sample-size-guide.md for worked examples.Use these as sanity checks, not replacements for formal power analysis:
| Modality | Minimum N (per group/condition) | Basis |
|---|---|---|
| Behavioral (medium effect, d ≈ 0.5) | n = 30-50 per group | Brysbaert, 2019 |
| Behavioral (small effect, d ≈ 0.2) | n = 80-100 per group | Brysbaert, 2019 |
| Behavioral (within-subjects, d_z ≈ 0.4) | n = 50-65 | Brysbaert, 2019 |
| EEG/ERP (within-subjects) | n = 25-40 | Boudewyn et al., 2018 |
| fMRI (task activation, within-subjects) | n = 30-50 | Cremers et al., 2017; Poldrack et al., 2017 |
| fMRI (individual differences / brain-behavior) | n = 100+ (ideally 200+) | Marek et al., 2022 |
| fMRI (clinical group comparison) | n = 30-50 per group | Button et al., 2013 |
| Clinical/patient studies | n = 20-30 per group (minimum) | Leucht et al., 2015 |
| Developmental (cross-sectional age groups) | n = 25-40 per age group | Mills & Tamnes, 2014 |
For preregistration and manuscripts, the power analysis section must include:
Template language:
"Based on the meta-analytic effect size of d = [X] reported by [Author, Year], a power analysis using [tool] indicated that N = [X] participants per group would be needed to detect this effect with [80/90]% power at alpha = .05 (two-tailed). Anticipating a [X]% attrition/exclusion rate, we plan to recruit N = [adjusted X]."
Using Cohen's generic benchmarks as effect size priors: Cohen (1988) himself warned these were rough guidelines. Cognitive science effects range from d = 0.1 to d = 3.0+ depending on the paradigm. Always use paradigm-specific estimates (Brysbaert, 2019).
Ignoring the distinction between d and d_z: Between-subjects Cohen's d and within-subjects d_z are not interchangeable. Within-subjects designs typically yield larger d_z due to reduced error variance. Confusing them leads to incorrect sample size estimates (Lakens, 2013).
Powering for whole-brain fMRI but reporting ROI results (or vice versa): Whole-brain analyses with multiple comparison correction require larger effects to survive thresholding. Power calculations must match the planned analysis (Mumford & Nichols, 2008).
Treating pilot effect sizes as population estimates: Pilot studies with N = 10-20 produce wildly variable effect size estimates. Apply a correction factor or use the lower bound of the CI (Albers & Lakens, 2018).
Ignoring trial count in EEG/ERP power: For ERP analyses, both participant N and trial count per condition affect statistical power. Insufficient trials per condition reduces signal-to-noise ratio regardless of participant count (Boudewyn et al., 2018; Luck, 2014).
Assuming brain-behavior correlations are large: Marek et al. (2022) demonstrated that brain-wide association studies require thousands of participants for reliable effects. Planning an fMRI individual-differences study with N = 30 is almost certainly underpowered.
| Question | Answer | Recommended Action |
|---|---|---|
| "How many subjects for a Stroop study?" | Within-subjects Stroop effect is very large (d ≈ 1.0-1.5) | N = 15-25 likely sufficient (Brysbaert, 2019) |
| "How many for an ERP study of N400?" | N400 semantic violation effect d ≈ 0.8-1.5 | N = 20-30 (Boudewyn et al., 2018) |
| "How many for fMRI brain-behavior correlation?" | True r likely 0.10-0.20 | N = 200+ minimum (Marek et al., 2022) |
| "How many for a patient vs. control comparison?" | Effects vary widely (d ≈ 0.3-0.8) | N = 30-80 per group depending on expected effect |
| "Can I use my pilot N=12 effect size?" | Pilot effect is unreliable | Use meta-analytic estimate instead; if unavailable, use lower CI bound of pilot |
See references/effect-sizes.md for the full effect size reference library and references/sample-size-guide.md for detailed sample size guidance by modality.
© NeuroAIHub, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis of NeuroAIHub/BrainPilot.
Open the folder on GitHubat commit 93f6855
Cogsci Power Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cogsci Power Analysis this skillNeuroAIHub/BrainPilot | 1.1k | — | ~3.4k | Automated safety check: Pass | AGPL-3.0 | |
| Experimental DesignOleafly/Oleafly | 212 | 3 repos | ~3.5k | Automated safety check: Notes | MIT | |
| Data Scientistmagnus919/hermes-profiles | 289 | — | ~3.3k | Automated safety check: Pass | MIT | |
| Data Scientistmagnus919/agent-skills | 119 | — | ~4.1k | Automated safety check: Pass | MIT | |
| Statistical PowerK-Dense-AI/scientific-agent-skills | 48k | 1 repos | ~4.4k | Automated safety check: Notes | MIT | |
| Algo Rank Wilsonasgard-ai-platform/skills | 242 | — | ~1.1k | Automated safety check: Pass | MIT |
Oleafly/Oleafly
Design experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable.
magnus919/hermes-profiles
PhD-level expertise in data science, statistics, and machine learning.
magnus919/agent-skills
A skill your agent uses for PhD-level expertise in data science, statistics, and machine learning: rigorous statistical analysis, experimental design, causal inference, advanced modeling, research…
K-Dense-AI/scientific-agent-skills
Calculates sample sizes and statistical power for study planning.
asgard-ai-platform/skills
Calculate Wilson Score confidence intervals for ranking items by positive proportion with sample size correction.
RedWoodOG/Hermes-Desktop
End-to-end pipeline for writing ML/AI research papers — from experiment design through analysis, drafting, revision, and submission.
NeuroAIHub/BrainPilot
Toolbox for markerless animal pose estimation with DeepLabCut.
NeuroAIHub/BrainPilot
Preprocess task-based or resting-state fMRI data with fMRIPrep — a robust, BIDS-App preprocessing pipeline built on FSL, ANTs, FreeSurfer, AFNI, and Nilearn.
NeuroAIHub/BrainPilot
Domain-validated pipeline guidance for EEG/MEG data analysis using MNE-Python: data loading, preprocessing (filtering, ICA, re-referencing), epoching, ERP/ERF computation, time-frequency…
NeuroAIHub/BrainPilot
Domain-validated guidance for network neuroscience analysis using netneurotools: datasets, brain network metrics, connectivity consensus, modularity, spatial statistics, null models, and cortical…
NeuroAIHub/BrainPilot
Submission-grade Nature/high-impact journal figure workflow for Python or R.
NeuroAIHub/BrainPilot
Domain-validated guidance for cortical surface visualization and brain surface rendering of fMRI data using pycortex: data types (Volume, Vertex, Dataset), 2D cortical flatmaps, 3D WebGL brain…
Categories
Domain-specific statistical power analysis guidance for cognitive and neuroscience research, encoding effect size priors and sample size recommendations by modality. Cogsci Power Analysis is an agent skill from NeuroAIHub/BrainPilot.
Cogsci Power Analysis fits situations like: tasks that involve Experimental design; tasks that involve Statistics.
Run `npx skills add NeuroAIHub/BrainPilot --skill cogsci-power-analysis -a claude-code`. Or copy the skill folder (packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis in NeuroAIHub/BrainPilot) into .claude/skills/cogsci-power-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add NeuroAIHub/BrainPilot --skill cogsci-power-analysis -a codex`. Or copy the skill folder (packages/skills/skills/02_Cross-Domain_Foundation/cogsci-power-analysis in NeuroAIHub/BrainPilot) into .agents/skills/cogsci-power-analysis in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add NeuroAIHub/BrainPilot --skill cogsci-power-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cogsci-power-analysis, .gemini/skills/cogsci-power-analysis, .github/skills/cogsci-power-analysis and .opencode/skills/cogsci-power-analysis in your project.
SKILL.md names no scripts, command-line tools or credentials: Cogsci Power Analysis is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Cogsci Power Analysis is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 15k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Cogsci Power Analysis: Experimental Design (Oleafly/Oleafly, 212 stars), Data Scientist (magnus919/hermes-profiles, 289 stars), Data Scientist (magnus919/agent-skills, 119 stars) and Statistical Power (K-Dense-AI/scientific-agent-skills, 48k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
NeuroAIHub (a GitHub organization) maintains it in NeuroAIHub/BrainPilot, which has 1,062 GitHub stars. The repository holds 59 skills in this directory. The repository was last updated on October 2, 2026.
Source: NeuroAIHub/BrainPilot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.