Skip to content
Back to skills

Graphgym Experiments

ASecurity

"Configure, validate, customize, and troubleshoot PyTorch Geometric

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
toolspythonshellbashnodetestingbackend

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill graphgym-experiments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Graphgym Experiments?

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

Security grade badge for Graphgym Experiments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-graphgym-experiments/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-graphgym-experiments)

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: graphgym-experiments
description: "Configure, validate, customize, and troubleshoot PyTorch Geometric
  GraphGym experiments without running unsafe benchmark-scale jobs."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# GraphGym Experiments

Use this sub-skill when a task involves PyTorch Geometric GraphGym experiment YAML files, run-single/run-batch concepts, custom GraphGym registration, result directories, or GraphGym optional-dependency troubleshooting.

Do not use this sub-skill for general GNN layer design, arbitrary training-loop implementation, data container basics, heterogeneous graph modeling, explainability, or distributed training. Route those workflows to sibling sub-skills when present.

## Start Here

- Read [graphgym configs](references/graphgym-configs.md) when creating or editing GraphGym YAML, choosing `dataset`, `train`, `model`, `gnn`, or `optim` keys, or mapping run-single/run-batch shell concepts into safe commands.
- Read [customization](references/customization.md) when registering custom activations, layers, losses, datasets, loaders, optimizers, schedulers, metrics, training functions, networks, or config groups.
- Read [troubleshooting](references/troubleshooting.md) when imports fail for optional GraphGym extras, a config key/type is rejected, a registry key collides, results are hard to find, or a batch job would create expensive side effects.
- Run [validate_graphgym_config.py](scripts/validate_graphgym_config.py) to inspect a GraphGym YAML file without launching training, downloading datasets, using GPUs, or writing result directories.
- Copy or compare against [example_graphgym_node.yaml](scripts/example_graphgym_node.yaml) for a minimal CPU-friendly node-classification template.

## Safe Commands

```bash
python scripts/validate_graphgym_config.py \
  scripts/example_graphgym_node.yaml
python scripts/validate_graphgym_config.py --help
```

The validator prints JSON with `ok`, dependency status, recognized sections, warnings, and errors. It intentionally does not call `torch_geometric.graphgym.main`, `run_single.sh`, `run_batch.sh`, `configs_gen.py`, or any training entrypoint.

## Common Tasks

- Create a single experiment YAML with top-level sections such as `out_dir`, `dataset`, `train`, `model`, `gnn`, and `optim`; keep `accelerator: cpu` and low `optim.max_epoch` for smoke runs.
- Explain run-single as `python main.py --cfg <config.yaml> --repeat <n>` in a GraphGym project, but do not run it unless the user explicitly accepts dataset downloads, result writes, optional extras, and training time.
- Explain run-batch as generating perturbed configs from a base YAML and grid file, then queueing many runs; treat it as benchmark-scale by default.
- Register custom modules with `torch_geometric.graphgym.register_*` decorators or direct calls, using unique lowercase keys and testing registry insertion before training.
- Confirm results under the configured `out_dir`, then distinguish per-seed run directories from aggregated metrics and copied config files.

## Route Boundaries

- For PyG model layer internals, `MessagePassing`, `GCNConv`, `GATConv`, `SAGEConv`, or training-loop code outside GraphGym, use `../gnn-modeling/SKILL.md`.
- For `Data`, `HeteroData`, custom datasets, transforms, or local fixture validation, use `../data-and-datasets/SKILL.md`.
- For mini-batch loaders, neighbor sampling, and link loaders outside GraphGym configs, use `../loaders-and-sampling/SKILL.md`.
- For large-scale distributed execution, remote backends, multi-GPU, and hardware scheduling, use `../scalable-distributed/SKILL.md`.

Files in this skill

  • SKILL.md3.6 KB
  • references/customization.md3.8 KB
  • references/graphgym-configs.md3.9 KB
  • references/troubleshooting.md3.5 KB
  • scripts/example_graphgym_node.yaml862 B
  • scripts/validate_graphgym_config.py11.1 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.