This brings PyTorch Geometric's full graph neural network toolkit to Claude: 60+ GNN layers (GCN, GAT, GraphSAGE, GIN), heterogeneous graph support, and mini-batch training for node, link, and graph-level tasks. The skill covers PyG 2.7+ with clear guidance on the notorious extension wheel installation (pyg-lib, torch-scatter) that trips up newcomers. It explains the critical edge_index COO format and lazy initialization patterns. Use this when you're building GNNs on citation networks, molecular graphs, or point clouds. The MessagePassing API coverage means you can implement custom layers, not just stack built-ins. One thing: PyG's design choices (no built-in activations, manual bidirectional edges) are footguns if you're coming from vanilla PyTorch, and this skill walks through them.

skills.sh installs
2.1K
GitHub stars
56.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill torch-geometric --agent claude-code

Installs into .claude/skills of the current project.

Files

PyTorch Geometric (PyG)

PyG is the standard library for Graph Neural Networks built on PyTorch. It provides data structures for graphs, 60+ GNN layer implementations, scalable mini-batch training, and support for heterogeneous graphs.

Installation

Reviewed released torch-geometric 2.8.0.post1 (2026-10-01); CPU examples tested with Python 3.13 / PyTorch 2.14.1. Rolling latest docs identify 2.9.0; check the installed release before adopting new APIs. PyG 2.8 requires PyTorch 2.9+; its original release table covers 2.9–2.12. Our 2.14.1 core tests do not establish every extension/backend combination.

# Install the PyTorch build for your platform from https://pytorch.org/get-started/locally/
uv pip install torch==2.14.1
uv pip install torch-geometric==2.8.0.post1
python -c "import torch, torch_geometric; print(torch.__version__, torch.version.cuda, torch_geometric.__version__)"

Sponsors

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
AI & Agent Building, Data Science & ML, Marketing & SEO, Go
First seen
Jun 3, 2026

More from k-dense-ai/scientific-agent-skills

All 137
1k-dense-ai avatarbiopythonk-dense-ai/scientific-agent-skillsComprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bi2.1Kskills.sh installs
2k-dense-ai avatarresearch-lookupk-dense-ai/scientific-agent-skillsCompile current scholarly evidence for a scientific manuscript or research brief. Use when the user explicitly asks to gather literature, references, background2.1Kskills.sh installs
3k-dense-ai avatartimesfm-forecastingk-dense-ai/scientific-agent-skillsZero-shot time series forecasting with Google's TimesFM foundation model. Use for any univariate time series (sales, sensors, energy, vitals, weather) without t2.1Kskills.sh installs
4k-dense-ai avatarconsciousness-councilk-dense-ai/scientific-agent-skillsRun a multi-perspective Mind Council deliberation on any question, decision, or creative challenge. Use this skill whenever the user wants diverse viewpoints, n2.1Kskills.sh installs
5catalyst-cooperative avatarpudlcatalyst-cooperative/agent-skillsExplore and understand PUDL energy data: discover which tables exist, look up column meanings and usage warnings, and load Parquet files from S3 or a local dire2.1Kskills.sh installs
6k-dense-ai avatarsimpyk-dense-ai/scientific-agent-skillsBuild, inspect, test, and analyze bounded process-based discrete-event simulations with SimPy, including events, resources, interrupts, monitoring, replications2.1Kskills.sh installs