Skip to content

PyTorch Geometric layers, datasets, transforms, and sampling for graph neural network training with version-pinned installs.

CCM score
69 of 100
skills.sh installs
2.2K
GitHub stars
58.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers node, link, and graph tasks with message passing layers such as GCN, GAT, GraphSAGE, and GIN
  • Includes Data and HeteroData graph structures, standard datasets, and transforms such as NormalizeFeatures and ToUndirected
  • Guards edge_index format and num_nodes handling so isolated nodes and batching offsets stay correct
  • Designed for researchers and engineers training GNNs on torch_geometric rather than general graph analytics

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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__)"

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
Data Science & Analytics, Python
First seen
Jun 3, 2026

Questions

What does the torch-geometric skill help an agent do?

The torch-geometric skill guides an agent through PyTorch Geometric graph neural networks, covering node, link and graph classification. It also explains message passing with GCN, GAT, GraphSAGE and GIN layers, heterogeneous graphs, neighbor sampling and custom datasets.

How do I install the torch-geometric skill?

Run npx -y skills add k-dense-ai/scientific-agent-skills --skill torch-geometric -y in a project. Once installed, torch-geometric lets the agent build graph models on PyTorch Geometric with the correct edge_index format and dataset handling.

What does torch-geometric need before it runs?

torch-geometric needs Python 3.10 or newer, PyTorch 2.9 or newer, and torch-geometric 2.8.0.post1. Optional pyg-lib, torch-scatter and torch-sparse wheels must match your Python, OS, PyTorch and CUDA or CPU build, and network access is needed only for installation and dataset downloads.

Which graph tasks does torch-geometric not cover?

The torch-geometric skill does not cover general NetworkX analytics or non-graph PyTorch models. Its own description says to use it only for graph neural network work built on torch_geometric.

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

All 132

Similar to Torch Geometric

More Data Science & Analytics