Skip to content
Back to skills

Graph Data

ASecurity

"Construct, batch, split, mask, validate, and troubleshoot

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
devopspythonreactnode

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill graph-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Graph Data?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Graph Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-graph-data-46e44269/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-graph-data-46e44269)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: graph-data
description: "Construct, batch, split, mask, validate, and troubleshoot
  TorchDrug graph, molecule, protein, and dataset data objects."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# TorchDrug Graph Data

Use this sub-skill when the task is about TorchDrug data objects rather than model layers, training loops, or domain-specific task recipes.

## Read First

- For constructors, attribute contexts, batching, masking, split helpers, and dataset loading patterns, read [references/data-objects.md](references/data-objects.md).
- For common failures around RDKit input, attribute lengths, device movement, dataset downloads, split lengths, and lazy loading, read [references/troubleshooting.md](references/troubleshooting.md).
- For a no-network sanity check that creates tiny in-memory graphs and molecules, run `python scripts/smoke_graph_data.py` from this sub-skill directory. Add `--skip-rdkit` when RDKit or molecule parsing is unavailable.

## Use This For

- Creating `data.Graph`, `data.Molecule`, `data.Protein`, and their packed variants from in-memory edge lists, SMILES strings, or protein sequences.
- Adding node, edge, graph, atom, bond, molecule, or residue attributes with the right context managers.
- Batching samples with `Graph.pack`, `PackedMolecule.from_smiles`, `PackedProtein.from_sequence`, `data.graph_collate`, or `data.DataLoader`.
- Applying `subgraph`, `node_mask`, `edge_mask`, `graph_mask`, `subbatch`, `compact`, `unpack`, and dataset split helpers.
- Loading TorchDrug datasets or building small local `MoleculeDataset` / `ProteinDataset` objects with transform and lazy-loading options.

## Route Elsewhere

- Use `layers-and-extensions` for graph neural network layers, graph construction modules, and extension compilation.
- Use `training-engine` for `core.Engine`, optimizers, training/evaluation loops, checkpoint save/load, and `Configurable` workflows.
- Use `molecular-workflows` for molecule property prediction, generation, reaction, or chemistry task recipes built on these data objects.
- Use `protein-workflows` for protein prediction, sequence/structure recipes, and protein-specific task pipelines.
- Use `knowledge-graphs` for knowledge graph datasets, entity/relation indexing, and KG tasks.

Files in this skill

  • SKILL.md2.3 KB
  • references/data-objects.md12.3 KB
  • references/troubleshooting.md7.7 KB
  • scripts/smoke_graph_data.py3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.