Skip to content

Graph-learning stack for TorchDrug 0.2.1 covering molecular, protein, and knowledge graph workflows, with version checks.

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 property prediction, self-supervised pretraining, molecule generation, retrosynthesis, protein representation learning, and knowledge graph reasoning
  • Provides a version guard for Python 3.7 to 3.10, PyTorch 1.8 to 2.0, and CPU-only Apple Silicon, flagging unsupported combinations
  • Includes reference files on datasets, property prediction, generation, retrosynthesis, knowledge graphs, and protein modeling
  • Designed for code that imports torchdrug or needs its datasets, models, tasks, or core.Engine

Install

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

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

Files

TorchDrug

Use TorchDrug as a modular PyTorch graph-learning stack:

  1. load a datasets.* dataset,
  2. choose a models.* representation model,
  3. wrap it in a tasks.* objective,
  4. train and evaluate it with core.Engine.

The current official documentation and latest published release are both 0.2.1 (released July 2023; rechecked October 1, 2026). Treat newer Python or PyTorch combinations as unverified rather than silently assuming compatibility.

Start with the version guard

Before generating or debugging code, inspect the environment:

python --version
python -c "import torch; print(torch.__version__)"
python -c "import torchdrug; print(torchdrug.__version__)"

The supported matrix for TorchDrug 0.2.1 is:

  • Python 3.7 through 3.10
  • PyTorch 1.8 through 2.0
  • Linux, Windows, or macOS
  • Apple Silicon: PyTorch 1.13 or later, CPU only; no MPS support

If the project uses Python 3.11+ or PyTorch 2.1+, create a compatible environment or explicitly test a source build. Do not present such combinations as supported.

Installation

Prefer a dedicated Python 3.10 environment and pin the TorchDrug release:

Details

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

Questions

What does the torchdrug skill help an agent build?

The torchdrug skill helps an agent 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. It applies when code imports torchdrug or needs its datasets, models, tasks, or Engine.

How do I install the torchdrug skill?

Run npx -y skills add k-dense-ai/scientific-agent-skills --skill torchdrug -y in a project to install the torchdrug skill. After that, the agent can follow the torchdrug workflow for TorchDrug code.

What environment does the torchdrug skill need?

The torchdrug skill expects Python 3.7 through 3.10 and PyTorch 1.8 through 2.0, with compatible torch-scatter, torch-cluster, RDKit and fair-esm installed. Apple Silicon runs TorchDrug on CPU only, and network access is needed for uncached datasets and weights.

Where does the torchdrug skill sit in its category?

The torchdrug skill is listed under Data Science and Analytics on Claude Marketplaces, alongside azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation. Its focus is molecular and graph learning with TorchDrug rather than general analytics.

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

All 132

Similar to Torchdrug

More Data Science & Analytics