Agent skill

Torchdrug English

by aipoch in aipoch/medical-research-skills

PyTorch-native Graph Neural Network framework for molecules and proteins.

MITAuto-check passedResearch & Science

Install Torchdrug English

skills CLI
$ npx skills add aipoch/medical-research-skills --skill torchdrug-english -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills torchdrug-english --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'scientific-skills/Data Analysis/TorchDrug-English' .claude/skills/torchdrug-english && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
torchdrug-english
GitHub stars
1.9k
Token cost
~2.6k tokens
SKILL.md length
988 words
Files
11 (incl. references)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

PyTorch-native Graph Neural Network framework for molecules and proteins.

  • Works in 7 steps: Molecular Property Prediction → Protein Modeling → Knowledge Graph Reasoning → …
  • Tasks that involve Deep learning
  • SKILL.md covers When to Use, Key Features, Dependencies and Example Usage, plus 6 more sections
  • Runs Python scripts from its folder; calls pip

What it does

Torchdrug English is an agent skill from aipoch/medical-research-skills. PyTorch-native Graph Neural Network framework for molecules and proteins. Suitable for building custom GNN architectures for drug discovery, protein modeling, or knowledge graph reasoning. Best for custom model development, protein property prediction, and retrosynthesis. If you need pretrained models and diverse feature extractors, use deepchem; if you need benchmark datasets, use pytdc.

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including reference files (for example `TorchDrug-English_audit_result_v1.json`, `references/core_concepts.md` and `references/datasets.md`).

It sits in Research & Science, covering Deep learning, Drug discovery and cheminformatics and Knowledge graphs. It works with PyTorch. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • Tasks that involve Deep learning
  • Tasks that involve Drug discovery and cheminformatics
  • Tasks that involve Knowledge graphs

Example prompts

  • “/torchdrug-english”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Molecular Property Prediction
  2. Protein Modeling
  3. Knowledge Graph Reasoning
  4. Molecular Generation
  5. Retrosynthesis
  6. Graph Neural Network Models
  7. Datasets

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Torchdrug English loads about 2.6k tokens when it runs, and up to ~17k if it reads all its reference files. Until then it costs about 102 tokens; SKILL.md has 988 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~102
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~17k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 988 words, ~2,591 tokens.

Download SKILL.mdSave it as .claude/skills/torchdrug-english/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
name
torchdrug-english
description
PyTorch-native Graph Neural Network framework for molecules and proteins. Suitable for building custom GNN architectures for drug discovery, protein modeling, or knowledge graph reasoning. Best for custom model development, protein property prediction, and retrosynthesis. If you need pretrained models and diverse feature extractors, use deepchem; if you need benchmark datasets, use pytdc.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

TorchDrug

When to Use

  • Use this skill when you need pytorch-native graph neural network framework for molecules and proteins. suitable for building custom gnn architectures for drug discovery, protein modeling, or knowledge graph reasoning. best for custom model development, protein property prediction, and retrosynthesis. if you need pretrained models and diverse feature extractors, use deepchem; if you need benchmark datasets, use pytdc in a reproducible workflow.
  • Use this skill when a data analytics task needs a packaged method instead of ad-hoc freeform output.
  • Use this skill when the user expects a concrete deliverable, validation step, or file-based result.
  • Use this skill when the documented workflow in this package is the most direct path to complete the request.
  • Use this skill when you need the TorchDrug (English) package behavior rather than a generic answer.

Key Features

  • Scope-focused workflow aligned to: PyTorch-native Graph Neural Network framework for molecules and proteins. Suitable for building custom GNN architectures for drug discovery, protein modeling, or knowledge graph reasoning. Best for custom model development, protein property prediction, and retrosynthesis. If you need pretrained models and diverse feature extractors, use deepchem; if you need benchmark datasets, use pytdc.
  • Documentation-first workflow with no packaged script requirement.
  • Reference material available in references/ for task-specific guidance.
  • Structured execution path designed to keep outputs consistent and reviewable.

Dependencies

  • Python: 3.10+. Repository baseline for current packaged skills.
  • Third-party packages: not explicitly version-pinned in this skill package. Add pinned versions if this skill needs stricter environment control.

Example Usage

text
Skill directory: 20260316/scientific-skills/Data Analytics/TorchDrug-English
No packaged executable script was detected.
Use the documented workflow in SKILL.md together with the references/assets in this folder.

Example run plan:

  1. Read the skill instructions and collect the required inputs.
  2. Follow the documented workflow exactly.
  3. Use packaged references/assets from this folder when the task needs templates or rules.
  4. Return a structured result tied to the requested deliverable.

Implementation Details

See ## Overview above for related details.

  • Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
  • Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
  • Primary implementation surface: instruction-only workflow in SKILL.md.
  • Reference guidance: references/ contains supporting rules, prompts, or checklists.
  • Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
  • Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.

Overview

TorchDrug is a PyTorch-based comprehensive machine learning toolbox designed for drug discovery and molecular science. It applies graph neural networks, pretrained models, and task definitions to molecules, proteins, and biological knowledge graphs, covering molecular property prediction, protein modeling, knowledge graph reasoning, molecular generation, retrosynthesis planning, and more, including 40+ curated datasets and 20+ model architectures.

When to Use This Skill

Use this skill when dealing with the following:

Data Types:

  • SMILES strings or molecular structures
  • Protein sequences or 3D structures (PDB files)
  • Reactions and retrosynthesis
  • Biomedical knowledge graphs
  • Drug discovery datasets

Tasks:

  • Predict molecular properties (solubility, toxicity, activity)
  • Protein function or structure prediction
  • Drug-target binding prediction
  • Generate new molecular structures
  • Plan chemical synthesis routes
  • Link prediction in biomedical knowledge bases
  • Train graph neural networks on scientific data

Libraries and Integration:

  • TorchDrug as core library
  • Often with RDKit for cheminformatics
  • PyTorch and PyTorch Lightning compatibility
  • Integrated AlphaFold and ESM for proteins

Getting Started

Installation
bash
pip install torchdrug
  • Or install full version with optional dependencies
bash
pip install torchdrug[full]
Quick Example
python
from torchdrug import datasets, models, tasks
from torch.utils.data import DataLoader
import torch

# Load molecular dataset
dataset = datasets.BBBP("~/molecule-datasets/")
train_set, valid_set, test_set = dataset.split()

# Define GNN model
model = models.GIN(
    input_dim=dataset.node_feature_dim,
    hidden_dims=[256, 256, 256],
    edge_input_dim=dataset.edge_feature_dim,
    batch_norm=True,
    readout="mean"
)

# Create property prediction task
task = tasks.PropertyPrediction(
    model,
    task=dataset.tasks,
    criterion="bce",
    metric=["auroc", "auprc"]
)

# Train with PyTorch
optimizer = torch.optim.Adam(task.parameters(), lr=1e-3)
train_loader = DataLoader(train_set, batch_size=32, shuffle=True)

for epoch in range(100):
    for batch in train_loader:
        loss = task(batch)
        optimizer.zero_grad()
        loss.backward()
        optimizer.step()

Core Capabilities

1. Molecular Property Prediction

Predict chemical, physical, and biological properties from molecular structures.

Use Cases:

  • Drug-likeness and ADMET properties
  • Toxicity screening
  • Quantum chemical properties
  • Binding affinity prediction

Core Components:

  • 20+ molecular datasets (BBBP, HIV, Tox21, QM9, etc.)
  • GNN models (GIN, GAT, SchNet)
  • PropertyPrediction and MultipleBinaryClassification tasks

Reference: See molecular_property_prediction.md

Show full SKILL.md (400 more words)Show less
2. Protein Modeling

Process protein sequences, structures, and properties.

Use Cases:

  • Enzyme function prediction
  • Protein stability and solubility
  • Subcellular localization
  • Protein-protein interactions
  • Structure prediction

Core Components:

  • 15+ protein datasets (EnzymeCommission, GeneOntology, PDBBind, etc.)
  • Sequence models (ESM, ProteinBERT, ProteinLSTM)
  • Structure models (GearNet, SchNet)
  • Multiple task types for different prediction levels

Reference: See protein_modeling.md

3. Knowledge Graph Reasoning

Predict missing links and relations in biomedical knowledge graphs.

Use Cases:

  • Drug repurposing
  • Disease mechanism discovery
  • Gene-disease associations
  • Multi-hop biomedical reasoning

Core Components:

  • General KGs (FB15k, WN18) and biomedical KGs (Hetionet)
  • Embedding models (TransE, RotatE, ComplEx)
  • KnowledgeGraphCompletion task

Reference: See knowledge_graphs.md

4. Molecular Generation

Generate novel molecular structures with desired properties.

Use Cases:

  • De novo drug design
  • Lead compound optimization
  • Chemical space exploration
  • Property-directed generation

Core Components:

  • Autoregressive generation
  • GCPN (policy-based generation)
  • GraphAutoregressiveFlow
  • Property optimization workflows

Reference: See molecular_generation.md

5. Retrosynthesis

Predict synthesis routes from target molecules to starting materials.

Use Cases:

  • Synthesis planning
  • Route optimization
  • Synthesizability assessment
  • Multi-step planning

Core Components:

  • USPTO-50k reaction dataset
  • CenterIdentification (reaction center prediction)
  • SynthonCompletion (reactant prediction)
  • End-to-end retrosynthesis pipeline

Reference: See retrosynthesis.md

6. Graph Neural Network Models

Comprehensive catalog of GNN architectures for different data types and tasks.

Available Models:

  • General GNN: GCN, GAT, GIN, RGCN, MPNN
  • 3D-aware: SchNet, GearNet
  • Protein-specific: ESM, ProteinBERT, GearNet
  • Knowledge graphs: TransE, RotatE, ComplEx, SimplE
  • Generative: GraphAutoregressiveFlow

Reference: See models_architectures.md

7. Datasets

40+ curated datasets covering chemistry, biology, and knowledge graphs.

Categories:

  • Molecular properties (drug discovery, quantum chemistry)
  • Protein properties (function, structure, interactions)
  • Knowledge graphs (general and biomedical)
  • Retrosynthesis reactions

Reference: See datasets.md

Common Workflows

Workflow 1: Molecular Property Prediction

Scenario: Predict blood-brain barrier permeability for drug candidates. Steps:

  • Load dataset: datasets.BBBP()
  • Choose model: GNN for molecular graphs (e.g., GIN)
  • Define task: PropertyPrediction with binary classification
  • Train using scaffold split for realistic evaluation
  • Evaluate with AUROC and AUPRC

Navigation: references/molecular_property_prediction.md → Dataset Selection → Model Selection → Training

Workflow 2: Protein Function Prediction

Scenario: Predict enzyme function from sequence. Steps:

  • Load dataset: datasets.EnzymeCommission()
  • Choose model: pretrained ESM or GearNet with structure
  • Define task: PropertyPrediction with multi-class classification
  • Finetune pretrained model or train from scratch
  • Evaluate with accuracy and per-class metrics

Navigation: references/protein_modeling.md → Model Selection (Sequence vs Structure) → Pretraining Strategies

Workflow 3: Drug Repurposing via Knowledge Graph

Scenario: Find new disease treatments in Hetionet. Steps:

  • Load dataset: datasets.Hetionet()
  • Choose model: RotatE or ComplEx
  • Define task: KnowledgeGraphCompletion
  • Train with negative sampling
  • Query predictions for compound-treats-disease
  • Filter by plausibility and mechanism

Navigation: references/knowledge_graphs.md → Hetionet Dataset → Model Selection → Biomedical Applications

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files (references) in scientific-skills/Data Analysis/TorchDrug-English of aipoch/medical-research-skills.

  • SKILL.md
  • TorchDrug-English_audit_result_v1.json
  • references/core_concepts.md
  • references/datasets.md
  • references/knowledge_graphs.md
  • references/models_architectures.md
  • references/molecular_generation.md
  • references/molecular_property_prediction.md
  • references/protein_modeling.md
  • references/retrosynthesis.md
  • translate_md.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Torchdrug English next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Torchdrug English compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Torchdrug English this skillaipoch/medical-research-skills1.9k—~2.6kAutomated safety check: PassMIT
Torchdrugdavila7/claude-code-templates33k11 repos~3.5kAutomated safety check: PassMIT
TorchdrugK-Dense-AI/scientific-agent-skills48k1 repos~3kAutomated safety check: NotesApache-2.0
tangermeme Genomic Model Analysisjmschrei/tangermeme318—~1.6kAutomated safety check: PassMIT
Cellxgene Censusdavila7/claude-code-templates33k11 repos~3.8kAutomated safety check: PassMIT
Pennylanedavila7/claude-code-templates33k7 repos~1.9kAutomated safety check: PassMIT

Similar skills

  • Torchdrug

    davila7/claude-code-templates

    Graph-based drug discovery toolkit. An agent skill from davila7/claude-code-templates.

    33k GitHub starsUsed in 11 repos~3.5k tokens
    Research & ScienceAuto-check passed
  • Torchdrug

    K-Dense-AI/scientific-agent-skills

    Builds and troubleshoots TorchDrug 0.2.1 workflows for molecular graphs, property prediction, self-supervised pretraining, molecule generation, retrosynthesis, protein representation learning, and…

    48k GitHub starsUsed in 1 repo~3k tokens
    Research & ScienceAuto-check: notes
  • Routes agents to the right tangermeme reference for analyzing trained genomic deep learning models, from attributions and motif experiments to variant effects and design.

    318 GitHub stars~1.6k tokensUpdated today
    Research & ScienceAuto-check passed
  • Cellxgene Census

    davila7/claude-code-templates

    Query CZ CELLxGENE Census (61M+ cells). An agent skill from davila7/claude-code-templates.

    33k GitHub starsUsed in 11 repos~3.8k tokens
    Research & ScienceAuto-check passed
  • Pennylane

    davila7/claude-code-templates

    Cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry.

    33k GitHub starsUsed in 7 repos~1.9k tokens
    Research & ScienceAuto-check passed
  • Nvmolkit Usage

    NVIDIA-BioNeMo/bionemo-agent-toolkit

    Write code that calls the installed nvMolKit Python API for GPU-accelerated, batched RDKit-style operations - Morgan fingerprints, Tanimoto/cosine similarity, ETKDG conformer embedding, MMFF/UFF…

    479 GitHub stars~4.4k tokensUpdated yesterday
    Research & ScienceAuto-check passed

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    1.9k GitHub stars~2.2k tokensUpdated 24 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    1.9k GitHub stars~1.4k tokensUpdated 24 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    1.9k GitHub stars~3.7k tokensUpdated 24 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    1.9k GitHub stars~1.8k tokensUpdated 24 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    1.9k GitHub stars~1.7k tokensUpdated 24 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    1.9k GitHub stars~1.3k tokensUpdated 24 days ago
    Auto-check passed

Works with

Questions about Torchdrug English

What does Torchdrug English do?

PyTorch-native Graph Neural Network framework for molecules and proteins. Torchdrug English is an agent skill from aipoch/medical-research-skills. PyTorch-native Graph Neural Network framework for molecules and proteins.

When should I use Torchdrug English?

Torchdrug English fits situations like: tasks that involve Deep learning; tasks that involve Drug discovery and cheminformatics; tasks that involve Knowledge graphs.

How do I install Torchdrug English in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill torchdrug-english -a claude-code`. Or copy the skill folder (scientific-skills/Data Analysis/TorchDrug-English in aipoch/medical-research-skills) into .claude/skills/torchdrug-english in your project. Claude Code loads it when a task matches its description.

How do I install Torchdrug English in Codex?

Run `npx skills add aipoch/medical-research-skills --skill torchdrug-english -a codex`. Or copy the skill folder (scientific-skills/Data Analysis/TorchDrug-English in aipoch/medical-research-skills) into .agents/skills/torchdrug-english in your project. Codex loads it when a task matches its description.

Can I use Torchdrug English in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill torchdrug-english -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/torchdrug-english, .gemini/skills/torchdrug-english, .github/skills/torchdrug-english and .opencode/skills/torchdrug-english in your project.

What does Torchdrug English need to run?

Going by SKILL.md and its folder, Torchdrug English needs Python for the scripts in its folder and the command-line tools its instructions call (pip). Our summary lists: Python 3.

Does Torchdrug English access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Torchdrug English safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Torchdrug English use?

Torchdrug English is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Torchdrug English use?

About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 14k tokens, read only when the agent opens those files.

What are the alternatives to Torchdrug English?

Skills that share tags, products or a category with Torchdrug English: Torchdrug (davila7/claude-code-templates, 33k stars), Torchdrug (K-Dense-AI/scientific-agent-skills, 48k stars), tangermeme Genomic Model Analysis (jmschrei/tangermeme, 318 stars) and Cellxgene Census (davila7/claude-code-templates, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Torchdrug English?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.