Skip to content
Back to skills

Experiments And Cli

ASecurity

"Routes CogDL experiment() and training-CLI workflows for

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolsnodeapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Experiments And Cli?

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

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

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: experiments-and-cli
description: "Routes CogDL experiment() and training-CLI workflows for
  comparing, tuning, and launching runs."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Experiments and CLI

Use this sub-skill when a user wants to run CogDL's high-level `experiment()` API, preflight the training CLI surface, compare multiple datasets/models/seeds, or add checkpoint, logging, embedding, and AutoML flags.

Typical triggers:
- "Run GCN and GAT on Cora"
- "Compare two datasets with the same model"
- "What does `--use-best-config` do?"
- "How do I pass a custom Optuna search space?"
- "Can I test the CLI flags without starting training?"

Read `references/api-and-cli.md` for verified signatures, CLI flags, result semantics, and AutoML behavior.
Read `references/workflows.md` for the no-network Cora/GAT plan, checkpoint/log/embedding recipes, and the Optuna search pattern.
Read `references/troubleshooting.md` when parser errors, wrapper mismatches, dataset downloads, checkpoint/log writes, device flags, or Optuna compatibility problems appear.

Run `scripts/cogdl_cli_smoke.py` to import the parser path, inspect supported registries, and resolve `--dataset` / `--model` / `--dw` / `--mw` without training or downloads.
Run `scripts/run_tiny_experiment.py` for a CPU-only tiny NodeDataset dry run; add `--run` only when you explicitly want the helper to train.

Route these elsewhere:
- `../training-wrappers-and-customization/SKILL.md` for low-level `Trainer`, wrapper design, and custom training logic.
- `../graph-data-and-datasets/SKILL.md` for custom `Dataset`, `Graph`, and mask/schema work.
- `../models-layers-and-operators/SKILL.md` for model/layer implementation and operator details.
- `../pipelines-and-applications/SKILL.md` for `pipeline()` apps such as dataset stats, embedding generation, and OAG-BERT.

## What this sub-skill covers

- `experiment(dataset, model=None, **kwargs)` and the `args=` reuse path.
- `get_default_args(dataset, model, **kwargs)` as the parser-backed namespace builder.
- `gen_variants(...)` cartesian products over dataset/model/seed/split.
- `AutoML` / `search_space(trial)` runs, including `n_trials` and validation-metric selection.
- CLI flags for datasets, models, wrappers, seeds, devices, CPU/distributed mode, checkpoints, logs, embeddings, best configs, and trial count.
- Returned result dictionaries and the printed metric table.

## Decision rules

- Keep model families wrapper-compatible when you compare several models in one call. `gcn` and `gat` are safe together; mix-wrapper combinations belong in separate runs.
- Treat built-in datasets as potentially cache- or network-backed on first use.
- Use `cpu=True` or `--cpu` when you want the safest fallback; `--devices` only matters when CPU and distributed mode are off.
- Prefer the API for actual execution when the CLI surface is only being preflighted.

Files in this skill

  • SKILL.md2.9 KB
  • references/api-and-cli.md4.2 KB
  • references/troubleshooting.md3.7 KB
  • references/workflows.md3.7 KB
  • scripts/cogdl_cli_smoke.py1.6 KB
  • scripts/run_tiny_experiment.py4 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.