torch-geometric

Generates PyTorch Geometric templates and scripts for graph neural networks.

1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/SciMate-AI/scicli --skill torch-geometric-scimate-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: torch-geometric
Source: https://github.com/SciMate-AI/scicli/tree/main/internal/skills/bundled/claude-scientific-skills/skills/torch-geometric
Command: npx skills add https://github.com/SciMate-AI/scicli --skill torch-geometric-scimate-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, torch_geometric, numpy, matplotlib, networkx, and includes scripts (resource) and references (resource) components.

What problem does it solve?

PyG skeletons, templates, and scripts reduce setup time for graph neural network projects, letting teams jump straight to model development and experimentation.

Core Features & Use Cases

  • Prebuilt model templates: GCN, GAT, GraphSAGE templates with training loops.
  • Dataset and benchmark scaffolding: Example usage with Planetoid/TUDataset datasets and standard evaluation pipelines.
  • Code generation utilities: Templates generator for node/graph classification tasks to accelerate prototyping.

Quick Start

Install PyG and run the included GNN template generator to scaffold your first model.

Frequently Asked Questions about torch-geometric

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a graph neural network with PyTorch Geometric?

You can build a graph neural network with PyTorch Geometric using prebuilt GCN, GAT, and GraphSAGE templates. The included code generator scaffolds training loops and evaluation pipelines, letting you jump straight to model development for tasks like node classification and link prediction.

What GNN architectures are available as templates for node and graph classification?

Templates for graph neural networks include GCN, GAT, and GraphSAGE architectures. These prebuilt models come with integrated training loops and standard evaluation pipelines designed to accelerate prototyping for node classification, graph classification, and molecular property prediction.

Can I run PyTorch Geometric templates on GPU for training graph neural networks?

Yes, PyTorch Geometric templates support both CPU and GPU execution for training graph neural networks. You need a Python environment with PyTorch and PyG installed to run the scripts and execute model training and evaluation pipelines on your hardware.

What's the best way to scaffold a GNN project for molecular property prediction?

The best way to scaffold a GNN project for molecular property prediction is using a template generator. It creates ready-to-use PyG scripts with dataset and benchmark scaffolding, allowing teams to rapidly prototype models and standardize evaluation pipelines across research workflows.

Do I need NetworkX and Matplotlib installed to use PyG graph neural network templates?

Yes, the graph neural network templates require NetworkX and Matplotlib alongside PyTorch, PyG, and NumPy. These dependencies support graph data handling and visualization within the training and evaluation scripts for your node and graph classification tasks.

How do I evaluate GNN models on standard benchmark datasets like Planetoid and TUDataset?

You can evaluate GNN models on standard benchmarks using built-in dataset scaffolding. The templates provide example usage with Planetoid and TUDataset datasets, integrating standard evaluation pipelines directly into the generated training scripts for consistent benchmarking.