Skip to content
Back to skills

Mattergen

ASecurity

"Guide MatterGen inorganic-crystal generation, structure

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolspythonbashrailsgitapibackend

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Mattergen?

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

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

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: mattergen
description: "Guide MatterGen inorganic-crystal generation, structure
  evaluation, dataset preparation, Hydra training, and property fine-tuning with
  CUDA-aware validation and safe artifact handling."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# MatterGen

MatterGen is a generative model for inorganic materials design. Use this root
route to choose the smallest workflow-specific guide before running commands.
The generated skill is self-contained: it describes package contracts and
bundles safe preflight helpers, but it does not download checkpoints, datasets,
MatterSim potentials, or start expensive jobs implicitly.

## First route the request

- **Generate crystal structures** — read
  [generation](sub-skills/generation/SKILL.md). This covers named or local
  checkpoints, unconditional/property/multi-property sampling, CSP target
  compositions, guidance, sampling overrides, and output files.
- **Score or relax structures** — read
  [evaluation](sub-skills/evaluation/SKILL.md). This covers MatterSim relaxation,
  precomputed-energy evaluation, matching, compatible references, correction
  schemes, and metrics.
- **Prepare or validate data** — read
  [data-preparation](sub-skills/data-preparation/SKILL.md). This covers MP-20 and
  Alex-MP-20 layout, CSV schema, cache splits, custom properties, and storage
  preflight.
- **Train or fine-tune** — read
  [training-finetuning](sub-skills/training-finetuning/SKILL.md). This covers
  Hydra base/CSP training, adapters, multi-property wiring, custom embeddings,
  resource controls, and no-launch validation.

For a request that spans routes, prepare data first, train/fine-tune second,
generate third, and evaluate last. Keep each stage's inputs, resolved config,
checkpoint identity, data/reference version, device, and output directory in an
external experiment record.

## Install and smoke-check

MatterGen requires Python 3.10+; the repository's documented Linux path uses a
CUDA-capable PyTorch stack. Install the package using its supported distribution
or editable source checkout, then run the bundled environment check:

```bash
python -m pip install -e <mattergen-source>
python <mattergen-skill-root>/scripts/check_environment.py
```

The source distribution pins a Linux CUDA family around PyTorch 2.2.1 + cu118
and matching PyG extensions. Respect the package's platform-specific install
instructions rather than mixing CPU/CUDA/ROCm wheels. Apple Silicon is
experimental and requires `PYTORCH_ENABLE_MPS_FALLBACK=1` for documented MPS
runs. Read [installation and assets](references/installation-and-assets.md)
when deciding package variants, checkpoints, Git LFS, Hugging Face access, or
large data acquisition.

The helper checks package metadata/imports and reports CUDA/MPS availability;
it does not install packages, contact external services, or launch a model.
Read [API and CLI overview](references/api-and-cli-overview.md) for the five
console entry points and the verified public Python objects.

## Operational guardrails

1. Treat checkpoint, dataset, reference, and potential files as explicit
   inputs. An LFS pointer is not a hydrated model or archive.
2. Preflight arguments, paths, schemas, and backend availability before any
   large job. Use the nearest bundled helper; dry-run is the default where
   offered.
3. Keep generation/evaluation on a visible CUDA device when the workflow needs
   the GPU. CPU checks validate imports and lightweight behavior, not full
   generation throughput or MatterSim relaxation.
4. Use a new output directory for retries. Preserve resolved configs and
   partial artifacts rather than silently overwriting them.
5. Do not compare MP2020 and TRI2024 evaluation results as if they used the
   same hull/reference convention; do not treat MatterSim predictions as DFT.
6. Before publication or scientific claims, record data/license provenance,
   conditioning/checkpoint identity, random seeds, sampling settings, device,
   and whether metrics came from MatterSim or DFT.

For cross-cutting install, import, backend, asset, and artifact failures, read
[troubleshooting](references/troubleshooting.md). For source-version checks or
refresh decisions, read [repository provenance](references/repo-provenance.md).

Files in this skill

  • SKILL.md4.2 KB
  • references/api-and-cli-overview.md2.3 KB
  • references/installation-and-assets.md3.1 KB
  • references/repo-provenance.md2 KB
  • references/repo-routing-metadata.json330 B
  • references/troubleshooting.md4.3 KB
  • scripts/check_environment.py4 KB
  • sub-skills/data-preparation/SKILL.md8 KB
  • sub-skills/data-preparation/references/custom-properties.md3.7 KB
  • sub-skills/data-preparation/references/data-formats.md4.6 KB
  • sub-skills/data-preparation/references/troubleshooting.md5.4 KB
  • sub-skills/data-preparation/references/workflows.md4 KB
  • sub-skills/data-preparation/scripts/validate_dataset_csv.py11.9 KB
  • sub-skills/evaluation/SKILL.md8.3 KB
  • sub-skills/evaluation/references/api-reference.md5.1 KB
  • sub-skills/evaluation/references/data-formats.md4.2 KB
  • sub-skills/evaluation/references/troubleshooting.md5.6 KB
  • sub-skills/evaluation/references/workflows.md4.6 KB
  • sub-skills/evaluation/scripts/evaluate_structures.py10.7 KB
  • sub-skills/generation/SKILL.md6.6 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.