npx claudepluginhub gilles86/braincoderSkill for the braincoder library: fitting fMRI encoding models (pRFs) and inverting them for Bayesian stimulus decoding. Step-by-step manual, silent traps, noise models and calibration, runtimes.
Braincoder is a package to fit encoding models to neural data (for now fMRI) and to then invert those models to decode stimulus information from neural data. It wraps stimulus handling, model definition, HRF convolution, and optimization into a single Keras 3-based toolkit that runs on TensorFlow, JAX, or PyTorch.
EncodingModel to implement your own.Install braincoder with one of the three backends:
pip install "braincoder[tensorflow]" # or [jax], or [torch]
Then predict the responses of two voxels to a stimulus:
import numpy as np
import pandas as pd
from braincoder.models import GaussianPRF
paradigm = pd.DataFrame({"x": np.linspace(-5, 5, 100)},
index=pd.Index(np.arange(100), name="time"))
parameters = pd.DataFrame({"mu": [0.0, 1.0], "sd": [1.0, 2.0], "amplitude": [1.0, 1.0], "baseline": [0.0, 0.0]},
index=pd.Index(["v1", "v2"], name="voxel"))
model = GaussianPRF()
predicted = model.predict(paradigm=paradigm, parameters=parameters)
See the tutorials for full fitting and decoding pipelines.
Pin the version in your project's environment, e.g. braincoder[tensorflow]==0.7.1, so that its results stay reproducible.
git clone https://github.com/Gilles86/braincoder.git
cd braincoder
conda env create -f environment.yml
conda activate braincoder
This installs braincoder in editable mode (pip install -e .) with a TensorFlow backend and dev tools. See the installation docs for the other backends.
The braincoder skill gives an AI coding assistant a step-by-step manual for new projects, the common silent errors, and measured runtimes. It is also readable on its own. In Claude Code, install it with:
/plugin install braincoder --marketplace Gilles86/braincoder
Other assistants (Codex, Cursor, Gemini CLI, …) can read skills/braincoder/SKILL.md directly, e.g. by pointing to it from your project's AGENTS.md.
prfmodel is a Python package for population receptive field modelling, also built on Keras 3. It covers further pRF models, such as CSS, delayed normalization and connective fields.
de Hollander, G., Renkert, M., Ruff, C. C., & Knapen, T. H. (2024). Braincoder: A package for fitting encoding models to neural data and decoding stimulus features. Zenodo. DOI: 10.5281/zenodo.10778413.
@software{deHollander2024braincoder,
author = {Gilles de Hollander and Maike Renkert and Christian C. Ruff and Tomas H. Knapen},
title = {braincoder: A package for fitting encoding models to neural data and decoding stimulus features},
year = {2024},
publisher = {Zenodo},
doi = {10.5281/zenodo.10778413},
url = {https://github.com/Gilles86/braincoder}
}
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.