Statistical Analysis
spacering-net/codeg
Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting.
Domain-validated guidance for building hierarchical Bayesian cognitive models with Stan/PyMC: prior specification, model structure, MCMC diagnostics, and posterior predictive checks
$ npx skills add NeuroAIHub/BrainPilot --skill bayesian-cognitive-model-builder -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install NeuroAIHub/BrainPilot bayesian-cognitive-model-builder --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/07_Computational_Modeling/bayesian-cognitive-model-builder .claude/skills/bayesian-cognitive-model-builder && 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 "bayesian-cognitive-model-builder" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/07_Computational_Modeling/bayesian-cognitive-model-builder into .claude/skills/bayesian-cognitive-model-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bayesian-cognitive-model-builder", 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/07_Computational_Modeling/bayesian-cognitive-model-builderType 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 bayesian-cognitive-model-builder -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install NeuroAIHub/BrainPilot bayesian-cognitive-model-builder --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/07_Computational_Modeling/bayesian-cognitive-model-builder .agents/skills/bayesian-cognitive-model-builder && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "bayesian-cognitive-model-builder" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/07_Computational_Modeling/bayesian-cognitive-model-builder into .agents/skills/bayesian-cognitive-model-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bayesian-cognitive-model-builder", 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 bayesian-cognitive-model-builder -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install NeuroAIHub/BrainPilot bayesian-cognitive-model-builder --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/07_Computational_Modeling/bayesian-cognitive-model-builder .cursor/skills/bayesian-cognitive-model-builder && 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 "bayesian-cognitive-model-builder" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/07_Computational_Modeling/bayesian-cognitive-model-builder into .cursor/skills/bayesian-cognitive-model-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bayesian-cognitive-model-builder", 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/07_Computational_Modeling/bayesian-cognitive-model-builder--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 bayesian-cognitive-model-builder -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install NeuroAIHub/BrainPilot bayesian-cognitive-model-builder --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/07_Computational_Modeling/bayesian-cognitive-model-builder .gemini/skills/bayesian-cognitive-model-builder && 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 "bayesian-cognitive-model-builder" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/07_Computational_Modeling/bayesian-cognitive-model-builder into .gemini/skills/bayesian-cognitive-model-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bayesian-cognitive-model-builder", 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 bayesian-cognitive-model-builderInstalls 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 bayesian-cognitive-model-builder -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/07_Computational_Modeling/bayesian-cognitive-model-builder .github/skills/bayesian-cognitive-model-builder && 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 "bayesian-cognitive-model-builder" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/07_Computational_Modeling/bayesian-cognitive-model-builder into .github/skills/bayesian-cognitive-model-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bayesian-cognitive-model-builder", 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 bayesian-cognitive-model-builder -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 bayesian-cognitive-model-builder --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/07_Computational_Modeling/bayesian-cognitive-model-builder .opencode/skills/bayesian-cognitive-model-builder && 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 "bayesian-cognitive-model-builder" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/07_Computational_Modeling/bayesian-cognitive-model-builder into .opencode/skills/bayesian-cognitive-model-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bayesian-cognitive-model-builder", 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.
bayesian-cognitive-model-builderDomain-validated guidance for building hierarchical Bayesian cognitive models with Stan/PyMC: prior specification, model structure, MCMC diagnostics, and posterior predictive checks
Bayesian Cognitive Model Builder is an agent skill from NeuroAIHub/BrainPilot. Domain-validated guidance for building hierarchical Bayesian cognitive models with Stan/PyMC: prior specification, model structure, MCMC diagnostics, and posterior predictive checks
Its SKILL.md is about 5.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/diagnostics-checklist.md` and `references/prior-selection-guide.md`).
It sits in Data & Analytics, covering Statistics. It works with PyMC. The repository describes itself as: BrainPilot: Automating Brain Discovery with Agentic Research. The licence is AGPL-3.0.
8 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.
Bayesian Cognitive Model Builder loads about 5.6k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 54 tokens; SKILL.md has 2,741 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). 2,741 words, ~5,575 tokens.
.claude/skills/bayesian-cognitive-model-builder/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.This skill encodes expert knowledge for building hierarchical Bayesian cognitive models using probabilistic programming languages (Stan, PyMC). It addresses the modeling decisions that require domain expertise beyond knowing Stan/PyMC syntax: how to choose priors that respect cognitive constraints, when to use hierarchical structure, how to diagnose MCMC pathologies, and how to evaluate model adequacy through posterior predictive checks.
A competent programmer without cognitive modeling training would get wrong: which prior families are appropriate for cognitive parameters (e.g., RT must be positive, learning rates bounded in [0,1]), when partial pooling outperforms complete pooling or no pooling, how to detect non-identifiability in cognitive models, and what constitutes adequate MCMC convergence for publishable results.
cogsci-statistics skill)erp-analysis or fmri-glm-analysis-guide skills)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.
Choosing the right level of pooling is a fundamental modeling decision that a non-specialist routinely gets wrong.
If your data has a natural grouping structure (e.g., multiple trials per participant, participants within conditions), you need to decide on a pooling strategy. If not, fit a single model.
| Strategy | Structure | When Appropriate | Risk |
|---|---|---|---|
| Complete pooling | One set of parameters for all participants | Large homogeneous groups, nuisance individual differences | Ignores meaningful individual variation; biased group estimates if heterogeneity exists (Gelman et al., 2013, Ch. 5) |
| No pooling | Separate parameters per participant | Many trials per participant (>200), individual-level inference is the goal | Noisy estimates for participants with few trials; no borrowing of strength (Gelman et al., 2013, Ch. 5) |
| Partial pooling (hierarchical) | Individual parameters drawn from group distribution | Default choice for cognitive modeling; few-to-moderate trials per participant; individual differences are scientifically meaningful | Requires MCMC; potential convergence issues with centered parameterization (Gelman et al., 2013, Ch. 5) |
Critical domain knowledge: Hierarchical (partial pooling) models should be the default in cognitive science. They automatically regularize extreme individual estimates toward the group mean -- a property called "shrinkage" -- which is especially valuable with typical cognitive science sample sizes of 20-40 participants with 50-200 trials each (Lee & Wagenmakers, 2014, Ch. 8).
For hierarchical models, the parameterization choice affects MCMC efficiency:
theta_j ~ Normal(mu, sigma). Use when there are many observations per group (>100 trials per participant) and the data are informative relative to the prior (Betancourt & Girolami, 2015).theta_j = mu + sigma * eta_j where eta_j ~ Normal(0, 1). Use when there are few observations per group, the group-level variance is small, or you encounter divergent transitions with centered parameterization (Betancourt & Girolami, 2015; Stan User's Guide, Section 1.13).When in doubt, use non-centered parameterization. It is more robust across a wider range of data configurations and is the Stan Development Team's default recommendation.
Use weakly informative priors that encode known constraints without dominating the likelihood. The goal is to rule out impossible or implausible parameter values while remaining agnostic about the precise value (Gelman et al., 2008; Gelman et al., 2013, Ch. 2).
Domain-critical principle: Cognitive parameters have natural constraints that generic "flat" or "diffuse" priors violate. Reaction times cannot be negative. Probabilities must lie in [0,1]. Learning rates are bounded. Firing rates are non-negative. Encoding these constraints in the prior is not "being subjective" -- it is encoding physical and psychological reality (Lee & Wagenmakers, 2014, Ch. 4).
| Parameter Type | Recommended Prior | Rationale | Source |
|---|---|---|---|
| Location (unbounded) | Normal(0, sd) or Student-t(3, 0, sd) | Weakly informative; heavier tails with Student-t for robustness | Gelman et al., 2008 |
| Scale / variance | Half-Normal(0, sd) or Half-Cauchy(0, sd) | Positive-only; Half-Cauchy allows heavier tails for group-level SDs | Gelman, 2006; Polson & Scott, 2012 |
| Probability (0 to 1) | Beta(a, b) | Natural conjugate for binomial; Beta(1,1) = Uniform; Beta(2,2) = weakly informative centered at 0.5 | Kruschke, 2015, Ch. 6 |
| Rate (0 to 1) | Beta(1.1, 1.1) or logit-Normal | Gently regularizes away from boundaries | Gelman et al., 2013, Ch. 2 |
| Positive continuous | Gamma(shape, rate) or Lognormal(mu, sigma) | For RT, non-decision time, threshold parameters | Lee & Wagenmakers, 2014, Ch. 4 |
| Correlation matrix | LKJ(eta) | eta=1: uniform over matrices; eta=2: weakly informative (Stan default recommendation) | Lewandowski et al., 2009; Stan User's Guide |
| Simplex (sums to 1) | Dirichlet(alpha) | alpha=1: uniform on simplex; alpha>1: concentrates toward center | Gelman et al., 2013, Ch. 2 |
For detailed cognitive-domain-specific prior tables, see references/prior-selection-guide.md.
Always run a prior predictive check before fitting to data (Schad et al., 2021; Gabry et al., 2019):
references/prior-selection-guide.md for parameter-specific recommendationsdrift-diffusion-model skill for detailed DDM guidancesignal-detection-analysis skillEvery Bayesian analysis requires thorough convergence diagnostics. Never report posterior summaries without first verifying convergence. See references/diagnostics-checklist.md for the full step-by-step protocol.
| Diagnostic | Threshold | Interpretation | Source |
|---|---|---|---|
| R-hat (split R-hat) | < 1.01 | Between-chain vs. within-chain variance; values > 1.01 indicate non-convergence | Vehtari et al., 2021 |
| Bulk-ESS | > 400 (100 per chain with 4 chains) | Effective independent draws for posterior mean/median estimation | Vehtari et al., 2021 |
| Tail-ESS | > 400 | Effective draws for tail quantiles (credible intervals) | Vehtari et al., 2021 |
| Divergent transitions | 0 | Any divergences indicate the sampler failed to explore the posterior faithfully | Betancourt, 2017 |
| E-BFMI | > 0.3 | Energy Bayesian Fraction of Missing Information; low values indicate poor exploration | Betancourt, 2017 |
| Tree depth saturation | Rare (<1% of transitions) | Hitting maximum tree depth suggests difficult geometry | Stan User's Guide |
Critical domain knowledge: The older threshold of R-hat < 1.1 is outdated. Vehtari et al. (2021) demonstrated that the traditional R-hat can miss convergence failures. Use the rank-normalized split R-hat with a threshold of 1.01 and always report both bulk-ESS and tail-ESS.
See references/diagnostics-checklist.md for remediation steps. The most common fixes in cognitive modeling:
adapt_delta to 0.95-0.99| Method | When to Use | Implementation | Source |
|---|---|---|---|
| PSIS-LOO-CV | Default choice for comparing predictive accuracy; more robust than WAIC with weak priors or influential observations | loo package (R), az.loo (Python/ArviZ) | Vehtari et al., 2017 |
| WAIC | Asymptotically equivalent to LOO; acceptable when PSIS diagnostics are clean (all Pareto k < 0.7) | loo package (R), az.waic (Python/ArviZ) | Watanabe, 2010; Vehtari et al., 2017 |
| Bayes factors | When testing a precise null hypothesis (e.g., parameter = 0); sensitive to prior specification | Bridge sampling, Savage-Dickey density ratio | Kass & Raftery, 1995; Lee & Wagenmakers, 2014, Ch. 7 |
Critical domain knowledge: Prefer LOO-CV over WAIC for cognitive models. Vehtari et al. (2017) showed that PSIS-LOO is more robust in the finite-sample case, especially with weak priors or influential observations common in cognitive data. Always check the Pareto k diagnostic: values > 0.7 indicate unreliable LOO estimates for those observations.
| Bayes Factor (BF10) | Evidence Category | Source |
|---|---|---|
| 1 - 3 | Anecdotal / not worth more than a bare mention | Jeffreys, 1961; Lee & Wagenmakers, 2014 |
| 3 - 10 | Moderate evidence | Jeffreys, 1961; Lee & Wagenmakers, 2014 |
| 10 - 30 | Strong evidence | Jeffreys, 1961; Lee & Wagenmakers, 2014 |
| 30 - 100 | Very strong evidence | Jeffreys, 1961; Lee & Wagenmakers, 2014 |
| > 100 | Extreme / decisive evidence | Jeffreys, 1961; Lee & Wagenmakers, 2014 |
Caution: Bayes factors are highly sensitive to prior specification. A diffuse prior on the alternative hypothesis inflates evidence for the null (the Jeffreys-Lindley paradox). Always conduct a prior sensitivity analysis when reporting Bayes factors (Schad et al., 2021).
After model comparison, the selected model must demonstrate it can reproduce key features of the observed data:
Domain-specific checks: For RT models, always check the fit to the full RT distribution (not just the mean). Cognitive models derive their power from fitting distributional shape -- a model that matches mean RT but misses the right tail is inadequate (Ratcliff & McKoon, 2008).
Problem: Two or more parameters trade off so that many parameter combinations yield equivalent likelihoods. Common in RL models (learning rate vs. inverse temperature) and DDM (boundary vs. drift rate with few conditions).
Detection: Pairwise posterior scatter plots show strong correlations or ridges; marginal posteriors are much wider than expected.
Fix: Add conditions that differentially constrain parameters; use informative priors; reparameterize (e.g., the ratio v/a in DDM; Wilson & Collins, 2019).
Problem: Posterior conclusions change substantially when priors are varied within a reasonable range.
Detection: Re-fit with 2-3 alternative prior specifications and compare posteriors (Schad et al., 2021).
Fix: Collect more data; use more informative priors justified by previous literature; report sensitivity analysis in the paper.
Problem: In mixture models, MCMC chains swap component labels, creating multimodal marginal posteriors even when the model is well-identified.
Detection: Trace plots show "switching" between modes; R-hat is high even with long chains.
Fix: Impose ordering constraints (e.g., mu_1 < mu_2); use label-invariant summaries; post-hoc relabeling (Stephens, 2000).
Problem: Funnel-shaped posterior in hierarchical models where the group SD approaches zero, creating an increasingly narrow funnel that the sampler cannot traverse.
Detection: Divergent transitions concentrated near low group-SD values; non-centered parameterization is the standard fix (Betancourt & Girolami, 2015).
Fix: Non-centered parameterization (see Step 3 in Model Structure Decision Tree above).
Problem: With too few trials, individual-level parameters are poorly constrained even in hierarchical models.
Guideline: For DDM, minimum 40-60 trials per condition per participant for stable hierarchical estimation (Wiecki et al., 2013; Ratcliff & Childers, 2015). For simpler models (e.g., binomial SDT), 20-30 trials may suffice with hierarchical priors (Lee & Wagenmakers, 2014).
Fix: If data are already collected, rely more heavily on hierarchical shrinkage and report wide credible intervals honestly.
When reporting Bayesian cognitive models in a manuscript:
© 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/07_Computational_Modeling/bayesian-cognitive-model-builder of NeuroAIHub/BrainPilot.
Open the folder on GitHubat commit 93f6855
Bayesian Cognitive Model Builder 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 |
|---|---|---|---|---|---|---|
| Bayesian Cognitive Model Builder this skillNeuroAIHub/BrainPilot | 1.1k | — | ~5.6k | Automated safety check: Pass | AGPL-3.0 | |
| Statistical Analysisspacering-net/codeg | 3.9k | 3 repos | ~5k | Automated safety check: Pass | MIT | |
| Bayesian Workflowbrycewang-stanford/Auto-Empirical-Research-Skills | 4.5k | — | ~3.5k | Automated safety check: Pass | MIT | |
| PyMC Bayesian Modelingdavila7/claude-code-templates | 32k | 11 repos | ~3.9k | Automated safety check: Pass | MIT | |
| Bayesian Estimationbrycewang-stanford/Auto-Empirical-Research-Skills | 4.5k | — | ~3.4k | Automated safety check: Pass | Custom licence | |
| Statistical Analysisjaechang-hits/SciAgent-Skills | 371 | 1 repos | ~4.8k | Automated safety check: Pass | CC-BY-4.0 |
spacering-net/codeg
Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting.
brycewang-stanford/Auto-Empirical-Research-Skills
Opinionated Bayesian modeling workflow with PyMC and ArviZ. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.
davila7/claude-code-templates
Builds, fits, checks and compares Bayesian models in PyMC, from priors and NUTS sampling to variational inference, LOO and WAIC comparison, and diagnostics.
brycewang-stanford/Auto-Empirical-Research-Skills
This skill covers Bayesian estimation and inference in quantitative social science.
jaechang-hits/SciAgent-Skills
Guided statistical analysis: test choice, assumption checks, effect sizes, power, APA reporting.
jaechang-hits/SciAgent-Skills
Bayesian modeling with PyMC 5: priors, likelihood, NUTS/ADVI sampling, diagnostics (R-hat, ESS), LOO/WAIC comparison, prediction.
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…
Works with
Categories
Domain-validated guidance for building hierarchical Bayesian cognitive models with Stan/PyMC: prior specification, model structure, MCMC diagnostics, and posterior predictive checks. Bayesian Cognitive Model Builder is an agent skill from NeuroAIHub/BrainPilot.
Bayesian Cognitive Model Builder fits situations like: tasks that involve Statistics.
Run `npx skills add NeuroAIHub/BrainPilot --skill bayesian-cognitive-model-builder -a claude-code`. Or copy the skill folder (packages/skills/skills/07_Computational_Modeling/bayesian-cognitive-model-builder in NeuroAIHub/BrainPilot) into .claude/skills/bayesian-cognitive-model-builder in your project. Claude Code loads it when a task matches its description.
Run `npx skills add NeuroAIHub/BrainPilot --skill bayesian-cognitive-model-builder -a codex`. Or copy the skill folder (packages/skills/skills/07_Computational_Modeling/bayesian-cognitive-model-builder in NeuroAIHub/BrainPilot) into .agents/skills/bayesian-cognitive-model-builder 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 bayesian-cognitive-model-builder -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bayesian-cognitive-model-builder, .gemini/skills/bayesian-cognitive-model-builder, .github/skills/bayesian-cognitive-model-builder and .opencode/skills/bayesian-cognitive-model-builder in your project.
SKILL.md names no scripts, command-line tools or credentials: Bayesian Cognitive Model Builder 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.
Bayesian Cognitive Model Builder 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 5.6k tokens (SKILL.md is roughly 22k 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 8.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Bayesian Cognitive Model Builder: Statistical Analysis (spacering-net/codeg, 3.9k stars), Bayesian Workflow (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars), PyMC Bayesian Modeling (davila7/claude-code-templates, 32k stars) and Bayesian Estimation (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k 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.