Skip to main content
skill CX Codex

tribev2-brain-encoding — Claude Code skill: fMRI prediction from video

A skill that wires the TRIBE v2 model into your agent so it can predict brain responses to video, audio and text. Built for research work.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/trending-skills --skill tribev2-brain-encoding -a claude-code
Open on GitHub

What tribev2-brain-encoding does

TRIBE v2 comes from Meta and merges three encoders: LLaMA 3.2 handles text, V-JEPA2 handles video, Wav2Vec-BERT handles audio. A shared Transformer maps those representations onto the fsaverage5 cortical surface, roughly 20k vertices. The skill lets your agent run inference and training against it.

Inference needs only pip install -e .. Brain plots pull in the [plotting] extras with PyVista and Nilearn; full training pulls [training] with PyTorch Lightning and W&B. Weights come from HuggingFace via TribeModel.from_pretrained("facebook/tribev2", cache_folder="./cache"). You then build an events dataframe with get_events_dataframe and call predict.

Training from scratch runs into LLaMA 3.2 gating. You log in with huggingface-cli login using a read token and wait for access approval on the model page. Grid searches are written for Slurm and read DATAPATH, SAVEPATH and SLURM_PARTITION from the environment. No GPU means no training.

What it helps with

  • predict cortical responses to a video clip
  • combine video, audio and text into one multimodal input
  • project MNI data onto the fsaverage5 surface
  • pull responses for a single region such as V1
  • batch predictions across several videos

Example prompts for the agent

  • Load TRIBE v2 and predict brain responses to video.mp4
  • Build an events dataframe from narration.txt and run inference
  • Project the predictions to fsaverage5 and mask V1

How to install tribev2-brain-encoding

1Skills CLI (Vercel)

npx skills add reason-machines/trending-skills --skill tribev2-brain-encoding -a claude-code

2Manually: put the files in place

~/.claude/skills/tribev2-brain-encoding/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/tribev2-brain-encoding/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about tribev2-brain-encoding

How do I install tribev2-brain-encoding in Claude Code?

Run npx skills add reason-machines/trending-skills --skill tribev2-brain-encoding -a claude-code. The skill lands in ~/.claude/skills/tribev2-brain-encoding/SKILL.md.

What does tribev2-brain-encoding do?

It gives the agent access to TRIBE v2: build an events dataframe from video, audio or text, call predict, and get an array of responses per cortical vertex.

What is required to train a model from scratch?

Gated access to LLaMA 3.2 on HuggingFace — huggingface-cli login with a read token plus an approved request. You also need a GPU, and Slurm for the full grid search.

Similar skills

All skills for AI and ML →

From the same set139

mac-code-local-ai-agent A skill that walks you through running a coding agent entirely on your Apple Silicon Mac, with no cloud calls and no subscription. CX Codex +1 843installs caveman-token-optimizer A skill that makes AI agents answer in caveman-speak, dropping pleasantries and filler. It cuts roughly 65% of output tokens while code and technical terms stay exact. CX Codex +1 842installs pump-analyzer-solana A static front end for watching Pump.fun token launches on Solana: a WebSocket feed, price and volume charts, and alerts on your own criteria. CX Codex +1 837installs app-store-screenshots-generator Builds ad-style iOS app screenshots in Next.js and exports PNG files for App Store device sizes. It also handles localized sets. CX Codex +1 818installs codex-session-patcher Finds AI refusals in Claude CLI, Claude and OpenCode session files and replaces them so you can resume the conversation. CX Codex +1 798installs torchcode-pytorch-interview-practice A practice environment for PyTorch coding interviews: 40 problems with auto-grading, gradient checks and timing. Useful before an ML interview loop. CX Codex +1 798installs ministack-aws-emulator This skill guides an agent through running MiniStack, a local AWS emulator for testing S3, SQS, DynamoDB, and other services. CX Codex +1 790installs wildworld-dataset A skill for the WildWorld dataset: 108M+ frames from an ARPG, 450+ actions, per-frame annotations. Useful when preparing data for world modeling. CX Codex +1 782installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor