braingnn

braingnn is a skill for Claude Code, Codex from CUHK-AIM-Group/NeuroClaw. It costs 61 tokens per session (1,982 once invoked), scanned A, original, MIT.

A graph-based machine-learning model for predicting traits from functional magnetic resonance imaging (fMRI) data. It represents brain regions and their connections as a graph and can make classification or numeric predictions.

In plain words
What is it for?
Use it for fMRI phenotype prediction, such as classifying groups or predicting measurements, with optional integration of brain tissue volume data.
Why use it?
It provides a documented way to train and evaluate BrainGNN on prepared, region-level brain-connectivity data, including results that show which regions influenced the prediction. It is intended for research use.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python models/braingnn/scripts/train.py \.

Good fit Use it for fMRI phenotype prediction, such as classifying groups or predicting measurements, with optional integration of brain tissue volume data.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/CUHK-AIM-Group/NeuroClaw
agentmods
npx agentmods add skills/cuhk-aim-group/neuroclaw/brain_gnn

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for braingnn

README.md
[![agentmods](https://agentmods.dev/badge/skills/cuhk-aim-group/neuroclaw/brain_gnn/github.svg)](https://agentmods.dev/skills/cuhk-aim-group/neuroclaw/brain_gnn)
Your own site
<a href="https://agentmods.dev/skills/cuhk-aim-group/neuroclaw/brain_gnn"><img src="https://agentmods.dev/badge/skills/cuhk-aim-group/neuroclaw/brain_gnn/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for braingnn

Your own site · 80×15
<a href="https://agentmods.dev/skills/cuhk-aim-group/neuroclaw/brain_gnn"><img src="https://agentmods.dev/badge/skills/cuhk-aim-group/neuroclaw/brain_gnn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,982 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.01982
Opus 5 $0.00030 $0.00991
Sonnet 5 $0.00012 $0.00396
Haiku 4.5 $0.00006 $0.00198

Measured 12d ago against content hash 19a92bfd0459, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

braingnn scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/data_adapter_reference.py, scripts/hypothesis_label_mapper.py, scripts/region_roi_mapper.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/brain_gnn/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

BrainGNN Model Doc

Overview

BrainGNN is an interpretable graph neural network for fMRI analysis and phenotype prediction.

  • Paper: Li et al., 2020, BrainGNN
  • Official code: https://github.com/xxlya/BrainGNN_Pytorch/tree/main
  • NeuroClaw reimplementation: models/braingnn/ (Windows-compatible, 无需 torch_sparse)
  • Primary input: ROI-level fMRI connectivity matrices (per-subject .pt files)
  • Primary output: phenotype prediction (classification/regression) + interpretable pooling scores

Research use only.


NeuroClaw 实现要点

NeuroClaw 版本对原始 BrainGNN 做了以下关键改动:

  1. 去除 torch_sparse 依赖augment_adj 不再使用 spspmm 做邻接矩阵平方,改用 add_self_loops + remove_self_loops,在 Windows 上可直接运行。
  2. 全连接输入图:data_adapter 构建 FULL graph(所有 i!=j 对),edge_attr = |Pearson r|。TopKPooling 负责选择,不在输入端做稀疏化。
  3. Fisher-z 反变换:存储的 fc_matrix 是 Fisher-z,加载时用 torch.tanh() 还原为 Pearson r,对角线置零。
  4. 支持 classification + regression 双任务:通过 --task 参数切换,regression 时 nclass=1,输出 raw scalar,用 MSELoss。
  5. PyG >=2.3 兼容:TopKPooling.weight 可能在 pool.select.weight,forward 中做了兼容处理。
  6. 可选 T1 GM volume 融合--include-t1 将 z-scored GM volume 作为额外 1 维 node feature 拼接。

Quick Start (NeuroClaw 内部)

前置条件

  • conda env: neuroclaw (Python 3.11)
  • 已有 data/braingnn_input/<atlas>/sub-*.pt 文件(由 fmri-skill 生成)
  • 可选:data/t1_volume/<atlas>/sub-*.npz(GM volume)

训练(分类)

python models/braingnn/scripts/train.py \
    --atlas schaefer_100_7net \
    --labels-csv data/hcp_gender_labels.csv \
    --subjects-file data/ready_subjects.txt \
    --fold 0 --kfold 5 \
    --n-epochs 50 --batch-size 16 --lr 0.005 \
    --include-t1

训练(回归)

python models/braingnn/scripts/train.py \
    --atlas aal_116 \
    --labels-csv data/hcp_age_labels.csv \
    --subject-col subject_id --label-col age \
    --task regression --label-scaling standardization \
    --fold 0 --n-epochs 50

Atlas Sweep(快速对比)

python models/braingnn/scripts/sweep_atlases.py

对所有可用 atlas 跑 fold 0,输出 CSV 对比表。

Read the full file on GitHub · 184 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 184 lines · 61 tokens per session scan A 19a92bfd0459

Subscribe to this mod's changes

braingnn is a skill published in the GitHub repository CUHK-AIM-Group/NeuroClaw (85 stars, last pushed 6d ago), licensed MIT. It adds 61 tokens to every session and 1,982 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

arboreto

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for…

K-Dense-AI/scientific-agent-skills · 66 tokens

pyhealth

Build clinical/healthcare deep-learning pipelines with PyHealth — loading EHR/signal/imaging datasets (MIMIC-III/IV, eICU, OMOP, SleepEDF, ChestXray14, EHRShot), defining tasks (mortality, readmission, length-of-stay, drug recommendation, sleep staging, ICD coding, EEG events), instantiating models (Transformer…

K-Dense-AI/scientific-agent-skills · 216 tokens

torchdrug

Build and troubleshoot TorchDrug 0.2.1 workflows for molecular graphs, property prediction, self-supervised pretraining, molecule generation, retrosynthesis, protein representation learning, and knowledge graph reasoning. Use when code imports torchdrug or needs its datasets, models, tasks, or Engine.

K-Dense-AI/scientific-agent-skills · 61 tokens

deepspot-m

Generate transcriptome-wide virtual spatial transcriptomics from H&E histology with DeepSpot-M. Use when you need spatial gene expression in log1p-CPM for 224x224 tiles at about 20x, want to query protein-coding genes by symbol instead of a fixed panel, or want to run prediction across a whole slide after tiling with…

K-Dense-AI/scientific-agent-skills · 80 tokens

nemo-mbridge-perf-expert-parallel-overlap

Validate and use MoE expert-parallel communication overlap in Megatron-Bridge, including overlapmoeexpertparallelcomm, delaywgradcompute, and flex dispatcher backends such as DeepEP and HybridEP.

NVIDIA/skills · 56 tokens

pick-a-pii-model

Select an on-device OpenMed PII model from the committed registry by language, runtime format, and size budget, then require recall validation before deployment. Use when an agent must choose a local PII detector for CPU, Apple Silicon, or a mobile export without relying on live model discovery.

maziyarpanahi/openmed · 64 tokens