Token导航 LogoToken导航

Agent Skill · 研究检索

cognitive-science-power-analysis(认知科学力量分析)

cognitive-science-power-analysis 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

cognitive-science-power-analysis 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 4,744。

总安装 30,022周安装 764GitHub Stars 18下载 9,741核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cognitive-science-power-analysis(认知科学力量分析)
来源仓库:https://github.com/haoxuanlithuai/awesome_cognitive_and_neuroscience_skills
仓库路径:skills/cognitive-science-power-analysis
安装命令:
npx skills add https://github.com/haoxuanlithuai/awesome_cognitive_and_neuroscience_skills --skill 'Cognitive Science Power Analysis'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/haoxuanlithuai/awesome_cognitive_and_neuroscience_skills --skill 'Cognitive Science Power Analysis'

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

cognitive-science-power-analysis 为认知与神经科学研究提供效应量先验与样本量建议。适用于在 Codex、Claude、Cursor、Gemini CLI 中规划充分有力的实验设计。区分行为、EEG/ERP、fMRI 等不同模态的统计惯例与工具链。支持重复测量与多层建模的随机效应结构指导。

避免通用统计软件导致的范式误用,提升结果可靠性。

来源仓库内路径:skills/cognitive-science-power-analysis

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/haoxuanlithuai/awesome_cognitive_and_neuroscie…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

cognitive-science-power-analysis 怎么安装?

在终端执行 npx skills add https://github.com/haoxuanlithuai/awesome_cognitive_and_neuroscience_skills…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

cognitive-science-power-analysis 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

cognitive-science-power-analysis 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

cognitive-science-power-analysis 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

cognitive-science-power-analysis 用的人多吗?

公开数据是累计安装 30,022 次,近一周安装 764 次,下载 9,741 次,GitHub 18 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

cognitive-science-power-analysis 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
cognitive-science-power-analysis

认知科学力量分析 · 本页

30,02218只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Cognitive Science Power Analysis

Purpose

This skill encodes domain-specific knowledge for planning adequately powered studies in cognitive science and neuroscience. It provides:

  • Effect size priors calibrated to specific paradigms and modalities (behavioral, EEG/ERP, fMRI, clinical/developmental)
  • Sample size recommendations grounded in empirical meta-analyses rather than arbitrary conventions
  • Power analysis workflow guidance tailored to the design complexities of cognitive neuroscience (repeated measures, multilevel, neuroimaging-specific tools)

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.

When to Use This Skill

  • A researcher is designing a new behavioral, EEG, or fMRI experiment and needs sample size justification
  • A grant proposal requires a power analysis section
  • A preregistration document needs effect size justification and sample size rationale
  • Someone asks "how many participants do I need?" for a cognitive/neuroscience study
  • Reviewing whether a published study was adequately powered

Research Planning Protocol

Before executing the domain-specific steps below, you MUST:

  1. State the research question — What study is being planned and what effect is being powered for?
  2. Justify the method choice — Why this design and analysis approach? What alternatives were considered?
  3. Declare expected outcomes — What is the smallest effect size of interest (SESOI)?
  4. Note assumptions and limitations — What assumptions does this power analysis make? Where could it mislead?
  5. Present the plan to the user and WAIT for confirmation before proceeding.

For detailed methodology guidance, see the research-literacy skill.

⚠️ Verification Notice

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.

Core Workflow

Step 1: Identify the Research Modality and Design

Determine which modality and design type apply:

ModalityCommon DesignsKey Consideration
BehavioralBetween-groups, within-subjects, mixedEffect sizes vary enormously by paradigm
EEG/ERPWithin-subjects repeated measuresTrial count matters as much as participant count
fMRI (task)Within-subjects block/event-relatedWhole-brain vs. ROI analysis affects power
fMRI (individual differences)Correlational, between-subjectsRequires much larger N than task contrasts
Clinical/DevelopmentalCase-control, longitudinalRecruitment constraints often limit N; adjust design

Step 2: Obtain an Effect Size Prior

Do not use generic benchmarks (Cohen's "small/medium/large"). Instead:

  1. Best option: Use a meta-analytic estimate for the specific paradigm. See references/effect-sizes.md for a curated library organized by modality.
  2. Second option: Use the smallest effect size of interest (SESOI) — the minimum effect that would be theoretically or practically meaningful (Lakens, 2022).
  3. Third option: Use pilot data, but apply shrinkage correction — pilot studies systematically overestimate effect sizes (Albers & Lakens, 2018).
  4. Last resort: Use the modality-specific median effect sizes from large-scale meta-analyses (see below).

Modality-level median effect sizes (use only when paradigm-specific estimates are unavailable):

ModalityMedian Effect SizeSource
Behavioral (cognitive psychology)d = 0.40Brysbaert, 2019
EEG/ERP component differencesd = 0.50 - 1.00Boudewyn et al., 2018; Clayson et al., 2019
fMRI task activationd = 0.75 - 1.00 (within-subject)Poldrack et al., 2017
fMRI brain-behavior correlationr = 0.10 - 0.20Marek et al., 2022
Clinical group differencesd = 0.30 - 0.80Leucht 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.

Step 3: Conduct the Power Analysis

Choose method based on design complexity:

Simple Designs (t-test, one-way ANOVA, correlation)

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)
  • Two-sample t-test: pwr.t.test(d = effect_size, power = 0.80, sig.level = 0.05, type = "two.sample")
  • Within-subjects t-test: pwr.t.test(d = effect_size_dz, power = 0.80, sig.level = 0.05, type = "paired")
  • Correlation: pwr.r.test(r = effect_size, power = 0.80, sig.level = 0.05)
Complex Designs (mixed ANOVA, multilevel, mediation)

Use simulation-based power analysis:

  • simr (R package): For linear mixed-effects models (Green & MacLeod, 2016)
  • Superpower (R/Shiny): For factorial ANOVA designs (Lakens & Caldwell, 2021)
  • Monte Carlo simulation: For non-standard designs — simulate data under the expected effect, run analysis, repeat 10,000+ times
Neuroimaging-Specific
  • fMRIpower: Power for fMRI group analyses (Mumford & Nichols, 2008)
  • NeuroPowerTools: Web-based fMRI power calculator (Durnez et al., 2016)
  • For EEG/ERP: No standard tool; use simulation with expected component amplitudes and noise levels. See references/sample-size-guide.md for worked examples.

Step 4: Apply Modality-Specific Rules of Thumb

Use these as sanity checks, not replacements for formal power analysis:

ModalityMinimum N (per group/condition)Basis
Behavioral (medium effect, d ≈ 0.5)n = 30-50 per groupBrysbaert, 2019
Behavioral (small effect, d ≈ 0.2)n = 80-100 per groupBrysbaert, 2019
Behavioral (within-subjects, d_z ≈ 0.4)n = 50-65Brysbaert, 2019
EEG/ERP (within-subjects)n = 25-40Boudewyn et al., 2018
fMRI (task activation, within-subjects)n = 30-50Cremers 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 groupButton et al., 2013
Clinical/patient studiesn = 20-30 per group (minimum)Leucht et al., 2015
Developmental (cross-sectional age groups)n = 25-40 per age groupMills & Tamnes, 2014

Step 5: Document and Report

For preregistration and manuscripts, the power analysis section must include:

  1. Effect size used and its source (meta-analysis, pilot, SESOI)
  2. Power analysis method (analytic, simulation-based, tool used)
  3. Target power level (80% or 90%) and alpha level
  4. Resulting sample size and any adjustments (attrition, exclusion rate)
  5. Sensitivity analysis: What is the minimum detectable effect at the planned N?

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]."

Common Pitfalls

  1. 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).
  2. 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).
  3. 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).
  4. 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).
  5. 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).
  6. 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.

Quick Reference Decision Table

QuestionAnswerRecommended 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.5N = 20-30 (Boudewyn et al., 2018)
"How many for fMRI brain-behavior correlation?"True r likely 0.10-0.20N = 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 unreliableUse meta-analytic estimate instead; if unavailable, use lower CI bound of pilot

References

  • Albers, C., & Lakens, D. (2018). When power analyses based on pilot data are biased. *Journal of Experimental Social Psychology*, 74, 187-195.
  • Boudewyn, M. A., Luck, S. J., Farrens, J. L., & Kappenman, E. S. (2018). How many trials does it take to get a significant ERP effect? *Psychophysiology*, 55(6), e13049.
  • Brysbaert, M. (2019). How many participants do we really need? *Journal of Cognition*, 2(1), 16.
  • Button, K. S., Ioannidis, J. P. A., Mokrysz, C., Nosek, B. A., Flint, J., Robinson, E. S. J., & Munafo, M. R. (2013). Power failure: Why small sample size undermines the reliability of neuroscience. *Nature Reviews Neuroscience*, 14(5), 365-376.
  • Clayson, P. E., Carbine, K. A., Baldwin, S. A., & Larson, M. J. (2019). Methodological reporting behavior, sample sizes, and statistical power in studies of event-related potentials. *Psychophysiology*, 56(11), e13437.
  • Cremers, H. R., Wager, T. D., & Yarkoni, T. (2017). The relation between statistical power and inference in fMRI. *PLoS ONE*, 12(11), e0184923.
  • Green, P., & MacLeod, C. J. (2016). SIMR: An R package for power analysis of generalized linear mixed models by simulation. *Methods in Ecology and Evolution*, 7(4), 493-498.
  • Lakens, D. (2013). Calculating and reporting effect sizes to facilitate cumulative science. *Frontiers in Psychology*, 4, 863.
  • Lakens, D. (2022). Sample size justification. *Collabra: Psychology*, 8(1), 33267.
  • Lakens, D., & Caldwell, A. R. (2021). Simulation-based power analysis for factorial ANOVA designs. *Advances in Methods and Practices in Psychological Science*, 4(1).
  • Leucht, S., Hierl, S., Kissling, W., Dold, M., & Davis, J. M. (2015). Putting the efficacy of psychiatric and general medicine medication into perspective. *British Journal of Psychiatry*, 200(2), 97-106.
  • Luck, S. J. (2014). *An Introduction to the Event-Related Potential Technique* (2nd ed.). MIT Press.
  • Marek, S., Tervo-Clemmens, B., Calabro, F. J., et al. (2022). Reproducible brain-wide association studies require thousands of individuals. *Nature*, 603, 654-660.
  • Mills, K. L., & Tamnes, C. K. (2014). Methods and considerations for longitudinal structural brain imaging analysis across development. *Developmental Cognitive Neuroscience*, 9, 172-190.
  • Mumford, J. A., & Nichols, T. E. (2008). Power calculation for group fMRI studies accounting for arbitrary design and temporal autocorrelation. *NeuroImage*, 39(1), 261-268.
  • Poldrack, R. A., Baker, C. I., Durnez, J., et al. (2017). Scanning the horizon: Towards transparent and reproducible neuroimaging research. *Nature Reviews Neuroscience*, 18(2), 115-126.

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.

平台分布

Codex

37.84%
按下载量换算3,686

Claude

28.92%
按下载量换算2,817

Cursor

17.83%
按下载量换算1,737

Gemini CLI

9.51%
按下载量换算926

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills