Analytical Method Validation Planner
K-Dense-AI/scientific-agent-skills
Plans, runs, and documents analytical method validation, verification, or transfer studies under ICH Q2(R2)/Q14, USP, ICH M10, CLSI EP, or ISO/IEC 17025.
Domain-validated methods and decision logic for neural decoding, RSA, temporal generalization, and encoding models in systems neuroscience
$ npx skills add NeuroAIHub/BrainPilot --skill neural-decoding-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install NeuroAIHub/BrainPilot neural-decoding-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/06_fMRI_Neuroimaging/neural-decoding-analysis .claude/skills/neural-decoding-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 "neural-decoding-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/06_fMRI_Neuroimaging/neural-decoding-analysis into .claude/skills/neural-decoding-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "neural-decoding-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/06_fMRI_Neuroimaging/neural-decoding-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 neural-decoding-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install NeuroAIHub/BrainPilot neural-decoding-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/06_fMRI_Neuroimaging/neural-decoding-analysis .agents/skills/neural-decoding-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 "neural-decoding-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/06_fMRI_Neuroimaging/neural-decoding-analysis into .agents/skills/neural-decoding-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "neural-decoding-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 neural-decoding-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install NeuroAIHub/BrainPilot neural-decoding-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/06_fMRI_Neuroimaging/neural-decoding-analysis .cursor/skills/neural-decoding-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 "neural-decoding-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/06_fMRI_Neuroimaging/neural-decoding-analysis into .cursor/skills/neural-decoding-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "neural-decoding-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/06_fMRI_Neuroimaging/neural-decoding-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 neural-decoding-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install NeuroAIHub/BrainPilot neural-decoding-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/06_fMRI_Neuroimaging/neural-decoding-analysis .gemini/skills/neural-decoding-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 "neural-decoding-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/06_fMRI_Neuroimaging/neural-decoding-analysis into .gemini/skills/neural-decoding-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "neural-decoding-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 neural-decoding-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 neural-decoding-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/06_fMRI_Neuroimaging/neural-decoding-analysis .github/skills/neural-decoding-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 "neural-decoding-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/06_fMRI_Neuroimaging/neural-decoding-analysis into .github/skills/neural-decoding-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "neural-decoding-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 neural-decoding-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 neural-decoding-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/06_fMRI_Neuroimaging/neural-decoding-analysis .opencode/skills/neural-decoding-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 "neural-decoding-analysis" agent skill from https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/06_fMRI_Neuroimaging/neural-decoding-analysis into .opencode/skills/neural-decoding-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "neural-decoding-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.
neural-decoding-analysisDomain-validated methods and decision logic for neural decoding, RSA, temporal generalization, and encoding models in systems neuroscience
Neural Decoding Analysis is an agent skill from NeuroAIHub/BrainPilot. Domain-validated methods and decision logic for neural decoding, RSA, temporal generalization, and encoding models in systems neuroscience
Its SKILL.md is about 4.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/decoding-methods.md` and `references/rsa-guide.md`).
The repository describes itself as: BrainPilot: Automating Brain Discovery with Agentic Research. The licence is AGPL-3.0.
6 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.
Neural Decoding Analysis loads about 4.9k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 41 tokens; SKILL.md has 2,309 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,309 words, ~4,937 tokens.
.claude/skills/neural-decoding-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 expert methodological knowledge for multivariate neural decoding analyses in systems neuroscience. It covers cross-validated classification (MVPA), representational similarity analysis (RSA), temporal generalization, and encoding models. The skill provides domain-specific decision logic, parameter recommendations, and pitfall warnings that a machine-learning engineer without neuroscience training would not know.
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.
Univariate analysis tests whether the mean activity level differs across conditions in a region. Decoding tests whether spatial patterns of activity carry information, even when mean activity is identical across conditions (Haynes, 2015). Use decoding when:
Domain judgment: High decoding accuracy does NOT mean the decoded region is the source of the representation. It means the information is accessible from that region's patterns. A downstream region receiving a copy of the signal will also decode well (Haynes, 2015).
What is your research question?
|
+-- "Is stimulus/task information present in this brain region's patterns?"
| --> Cross-validated classification (MVPA)
| Output: classification accuracy or d-prime
|
+-- "How are representations organized? Does the geometry match a model?"
| --> Representational Similarity Analysis (RSA)
| Output: model-RDM correlation, noise ceiling
|
+-- "When does information emerge and how does it transform over time?"
| --> Temporal Generalization (time x time decoding)
| Output: temporal generalization matrix
| Best for: EEG, MEG, intracranial recordings
|
+-- "What stimulus features drive neural responses across the feature space?"
--> Encoding Models (voxelwise/channel-wise prediction)
Output: prediction accuracy (R^2), feature tuning maps| Classifier | When to Use | When to Avoid | Source |
|---|---|---|---|
| Linear SVM | Default choice; robust to high dimensionality; works well with small samples | When you need probabilistic outputs (use logistic regression) | Misaki et al., 2010; Varoquaux et al., 2017 |
| LDA | Fast; good when n_features << n_samples after reduction | Raw high-dimensional data (covariance estimate unstable) | Misaki et al., 2010 |
| Logistic Regression | When you need class probabilities; with L1 for sparse solutions | Rarely a bad choice; comparable to linear SVM | Varoquaux et al., 2017 |
| Linear kernel (general) | Almost always for fMRI/EEG | Nonlinear kernels rarely improve and risk overfitting | Misaki et al., 2010 |
Domain judgment: Linear classifiers are strongly preferred in neuroimaging because (1) fMRI/EEG patterns are high-dimensional relative to sample size, making nonlinear methods prone to overfitting, and (2) linear weights are more interpretable neurally, though see Haufe et al. (2014) on the distinction between classifier weights and activation patterns.
| Strategy | When to Use | Rationale |
|---|---|---|
| Leave-one-run-out | fMRI (standard) | Respects temporal autocorrelation within runs; prevents leakage from slow hemodynamic signals (Varoquaux et al., 2017) |
| Stratified k-fold (k=5-10) | EEG/MEG with many trials | Balances class proportions in each fold; k=5 recommended for bias-variance tradeoff (Varoquaux, 2018) |
| Leave-one-trial-out | When few trials available | Maximum training data but high variance; avoid for fMRI due to temporal autocorrelation (Varoquaux et al., 2017) |
| Leave-one-subject-out | Between-subject generalization | Tests whether patterns generalize across individuals |
CRITICAL -- Information leakage: Feature selection, normalization, and dimensionality reduction MUST be performed WITHIN each cross-validation fold, using ONLY training data. Fitting a PCA or z-scoring across all data before splitting inflates accuracy by leaking test-set statistics into training (Kriegeskorte et al., 2009; Varoquaux et al., 2017).
RSA abstracts from activity patterns to a condition-by-condition dissimilarity matrix (RDM), enabling comparison across brain regions, species, and computational models (Kriegeskorte et al., 2008).
| Distance Metric | Properties | When to Use | Source |
|---|---|---|---|
| Correlation distance (1 - Pearson r) | Invariant to mean and scale | Default for comparing pattern shape; standard in early RSA | Kriegeskorte et al., 2008 |
| Euclidean distance | Sensitive to amplitude | When amplitude differences are meaningful | Kriegeskorte et al., 2008 |
| Crossnobis distance | Cross-validated Mahalanobis; unbiased estimator with interpretable zero | Preferred for inferential statistics; requires multi-run data | Walther et al., 2016; Kriegeskorte & Diedrichsen, 2019 |
Domain judgment: The crossnobis estimator is unbiased -- its expected value is zero when two conditions have identical representations, unlike correlation distance or Euclidean distance which are positively biased by noise. This means crossnobis values can be negative (not a true distance), but this property makes it valid for statistical inference without bias correction (Walther et al., 2016).
Domain judgment: If a model falls within the noise ceiling, it explains as much variance as is explainable given the noise in the data. A model below the lower bound leaves systematic variance unexplained. This is NOT the same as a significance test -- a model can be significantly correlated with brain RDMs yet still fall below the noise ceiling (Nili et al., 2014).
See references/rsa-guide.md for a complete step-by-step RSA workflow.
Train a classifier at each time point t, test it at every time point t'. The resulting time x time matrix reveals the dynamics of neural representations (King & Dehaene, 2014).
| Pattern | Matrix Shape | Interpretation | Example |
|---|---|---|---|
| Diagonal only | Thin diagonal stripe | Information is present but the neural code changes over time (chain of transient states) | Sequence of processing stages |
| Square block | Broad off-diagonal generalization | Stable, sustained representation (same code maintained) | Working memory maintenance |
| Off-diagonal stripe | Horizontal or vertical extension | A code trained at one time reactivates later | Memory reactivation |
| Below-diagonal spread | Widening below diagonal | Later representations are decodable by earlier classifiers (persistent code) | Sustained sensory trace |
(King & Dehaene, 2014; Grootswagers et al., 2017)
| Parameter | Recommended Value | Rationale | Source |
|---|---|---|---|
| Window width | 50 ms for EEG/MEG | Balances temporal resolution with SNR | Grootswagers et al., 2017 |
| Step size | 10 ms for EEG/MEG | Provides smooth temporal profile without excessive computation | Grootswagers et al., 2017 |
| Baseline window | -200 to 0 ms | Standard pre-stimulus baseline | Grootswagers et al., 2017 |
| Features | All sensors at time point t | Use all channels; spatial patterns carry information | King & Dehaene, 2014 |
Encoding models predict neural responses from stimulus features, complementing decoding (which predicts stimuli from neural responses).
Feature selection, z-scoring, PCA, or any data-driven preprocessing on the full dataset before cross-validation splitting will leak information from test folds into training, inflating accuracy. ALL such steps must occur WITHIN each fold (Kriegeskorte et al., 2009; Varoquaux et al., 2017).
Decoding "success" may reflect confounds rather than neural representations:
Selecting an ROI based on significant searchlight clusters and then performing additional analyses on those clusters is circular (Kriegeskorte et al., 2009; Etzel et al., 2013). Use independent data or pre-registered ROIs for follow-up analyses.
Raw SVM or regression weights do NOT indicate which voxels/channels are most activated by a condition. They indicate which features are most useful for discrimination, which can include suppressing noise. To obtain neurophysiologically interpretable maps, transform weights into activation patterns using the method of Haufe et al. (2014).
Unequal trial counts across classes bias accuracy toward the majority class. Solutions:
Based on Haynes (2015), Varoquaux et al. (2017), and Grootswagers et al. (2017):
See references/decoding-methods.md for detailed classifier comparisons, searchlight parameters, and software tools.
See references/rsa-guide.md for a complete step-by-step RSA analysis workflow.
© 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/06_fMRI_Neuroimaging/neural-decoding-analysis of NeuroAIHub/BrainPilot.
Open the folder on GitHubat commit 93f6855
Neural Decoding 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 |
|---|---|---|---|---|---|---|
| Neural Decoding Analysis this skillNeuroAIHub/BrainPilot | 1.1k | — | ~4.9k | Automated safety check: Pass | AGPL-3.0 | |
| Analytical Method Validation PlannerK-Dense-AI/scientific-agent-skills | 48k | 1 repos | ~4.9k | Automated safety check: Notes | MIT | |
| Ddd Validateruvnet/ruflo | 74k | — | ~643 | Automated safety check: Notes | MIT | |
| Form Validationthedaviddias/Front-End-Checklist | 74k | — | ~633 | Automated safety check: Pass | MIT | |
| Validateagenticnotetaking/arscontexta | 3.5k | — | ~3k | Automated safety check: Pass | MIT | |
| Neural Trainingruvnet/ruflo | 74k | 3 repos | ~432 | Automated safety check: Pass | MIT |
K-Dense-AI/scientific-agent-skills
Plans, runs, and documents analytical method validation, verification, or transfer studies under ICH Q2(R2)/Q14, USP, ICH M10, CLSI EP, or ISO/IEC 17025.
ruvnet/ruflo
Validate domain boundaries -- detect cross-context import violations and aggregate invariant issues.
thedaviddias/Front-End-Checklist
A skill your agent uses when reviewing templates, rendered HTML, or shared components related to Validate forms accessibly.
agenticnotetaking/arscontexta
Schema validation for notes. An agent skill from agenticnotetaking/arscontexta.
ruvnet/ruflo
Neural pattern training with SONA (Self-Optimizing Neural Architecture), MoE (Mixture of Experts), and EWC++ for knowledge consolidation.
davila7/claude-code-templates
Expert in Zod — TypeScript-first schema validation. An agent skill from davila7/claude-code-templates.
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…
Domain-validated methods and decision logic for neural decoding, RSA, temporal generalization, and encoding models in systems neuroscience. Neural Decoding Analysis is an agent skill from NeuroAIHub/BrainPilot.
Run `npx skills add NeuroAIHub/BrainPilot --skill neural-decoding-analysis -a claude-code`. Or copy the skill folder (packages/skills/skills/06_fMRI_Neuroimaging/neural-decoding-analysis in NeuroAIHub/BrainPilot) into .claude/skills/neural-decoding-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add NeuroAIHub/BrainPilot --skill neural-decoding-analysis -a codex`. Or copy the skill folder (packages/skills/skills/06_fMRI_Neuroimaging/neural-decoding-analysis in NeuroAIHub/BrainPilot) into .agents/skills/neural-decoding-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 neural-decoding-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/neural-decoding-analysis, .gemini/skills/neural-decoding-analysis, .github/skills/neural-decoding-analysis and .opencode/skills/neural-decoding-analysis in your project.
SKILL.md names no scripts, command-line tools or credentials: Neural Decoding 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.
Neural Decoding 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 4.9k tokens (SKILL.md is roughly 20k 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 6.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Neural Decoding Analysis: Analytical Method Validation Planner (K-Dense-AI/scientific-agent-skills, 48k stars), Ddd Validate (ruvnet/ruflo, 74k stars), Form Validation (thedaviddias/Front-End-Checklist, 74k stars) and Validate (agenticnotetaking/arscontexta, 3.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,060 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.