Skip to content
Back to skills

Braindecode

ASecurity

"Routes EEG, ECoG, MEG, and related electrophysiology deep-learning

  • 247 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 8, 2026
datapythonrailsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill braindecode --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Braindecode?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Braindecode
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-braindecode/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-braindecode)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: braindecode
description: "Routes EEG, ECoG, MEG, and related electrophysiology deep-learning
  workflows through the braindecode Python package, including dataset
  construction, preprocessing, model training, augmentation, and
  interpretation."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# Braindecode

Use this skill when a task names **braindecode**, or asks for deep learning on
EEG, ECoG, MEG, or similar electrophysiological recordings with MNE-shaped
objects, windowed datasets, skorch wrappers, or Braindecode model families.

## Operating sequence

1. Establish the input signal contract: channels, sampling frequency, units,
   recording/epoch layout, targets, and whether data are local or need a
   network-backed dataset.
2. Install PyTorch first, then `braindecode`; add only the optional extras that
   the selected workflow needs. The minimal check is:

   ```python
   import braindecode, torch
   print(braindecode.__version__, torch.__version__)
   print(torch.cuda.is_available())  # acceleration probe only
   ```

3. Route to exactly one primary workflow below. Workflows commonly compose in
   this order: datasets and windowing -> preprocessing -> models and training;
   add augmentation or interpretation only when requested.
4. Keep units and preprocessing identical between training and inference. Never
   infer a model's final temporal shape from the model name; use its signal
   parameters and a tiny forward check.
5. Treat MOABB, BIDS/OpenNeuro, TUH, Sleep Physionet, Hugging Face Hub,
   EEGPrep, and pretrained checkpoints as optional integrations requiring their
   own dependencies, data, network, credentials, or storage.

## Focused routes

- **Datasets and windows**: Construct datasets from NumPy/MNE objects, attach
  descriptions and targets, create event/fixed/target-channel windows, split,
  concatenate, or serialize data. Read
  [datasets-and-windowing](sub-skills/datasets-and-windowing/SKILL.md).
- **Preprocessing**: Apply MNE-backed or array-backed preprocessors, filters,
  resampling, channel operations, scaling, windowing order, parallel execution,
  or serialized preprocessing. Read
  [preprocessing](sub-skills/preprocessing/SKILL.md).
- **Models and training**: Select/configure a model, infer signal parameters,
  train `EEGClassifier`/`EEGRegressor`, use cropped decoding, score/predict, or
  load a local/pretrained model. Read
  [models-and-training](sub-skills/models-and-training/SKILL.md).
- **Augmentation and sampling**: Compose signal transforms, use
  `AugmentedDataLoader`, or construct sequence, relative-positioning, or
  self-supervised samplers. Read
  [augmentation-and-sampling](sub-skills/augmentation-and-sampling/SKILL.md).
- **Interpretation and visualization**: Compute Captum attributions, frequency
  gradients, topomaps, confusion/metric plots, or sanity checks. Read
  [interpretation-and-visualization](sub-skills/interpretation-and-visualization/SKILL.md).

## Shared guardrails

- Use float32 tensors shaped `(batch, channels, time)` unless a selected model
  explicitly documents another shape. Preserve channel order and sampling rate.
- Split by subject/session before overlapping windows when evaluating
  generalization. Do not leak windows from the same recording across splits.
- Keep runtime scripts self-contained and local-data-only by default. Do not
  run long gallery examples, download datasets, upload private recordings, or
  log in to a model/data Hub without explicit authorization.
- For missing optional integrations, report the exact extra or package and
  continue with a local synthetic fixture where behavior is equivalent.
- Read [API reference](references/api-reference.md) for the verified public
  surface, [troubleshooting](references/troubleshooting.md) for cross-cutting
  failures, and [provenance](references/repo-provenance.md) before deciding
  whether this graph is stale for a checkout.

Files in this skill

  • SKILL.md3.9 KB
  • references/api-reference.md2.7 KB
  • references/repo-provenance.md1.4 KB
  • references/repo-routing-metadata.json320 B
  • references/troubleshooting.md2.5 KB
  • scripts/check_env.py1.9 KB
  • sub-skills/augmentation-and-sampling/SKILL.md1.7 KB
  • sub-skills/augmentation-and-sampling/references/api-reference.md933 B
  • sub-skills/augmentation-and-sampling/references/sampling-workflows.md1.1 KB
  • sub-skills/augmentation-and-sampling/references/troubleshooting.md1.1 KB
  • sub-skills/augmentation-and-sampling/scripts/smoke_augmentation.py1.5 KB
  • sub-skills/datasets-and-windowing/SKILL.md1.9 KB
  • sub-skills/datasets-and-windowing/references/api-reference.md1.8 KB
  • sub-skills/datasets-and-windowing/references/optional-integrations.md1 KB
  • sub-skills/datasets-and-windowing/references/troubleshooting.md1.4 KB
  • sub-skills/datasets-and-windowing/references/workflows.md1.5 KB
  • sub-skills/datasets-and-windowing/scripts/smoke_dataset.py1.3 KB
  • sub-skills/interpretation-and-visualization/SKILL.md1.7 KB
  • sub-skills/interpretation-and-visualization/references/api-reference.md896 B
  • sub-skills/interpretation-and-visualization/references/troubleshooting.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.