ml-generative-diffcsp

ml-generative-diffcsp is a skill for Claude Code, Codex from learningmatter-mit/AtomisticSkills. It costs 36 tokens per session (1,321 once invoked), scanned A, original, MIT.

A generative AI tool for creating crystal structures while respecting crystal symmetry, including space groups and Wyckoff positions. It can generate structures with an exact chemical composition or sample from trained material distributions.

In plain words
What is it for?
Use it to generate composition-controlled crystals, unrestricted crystal candidates, perovskites, or carbon structures for later evaluation.
Why use it?
It makes it easier to explore plausible crystal arrangements under chemical and symmetry constraints. This is useful when searching for new materials or predicting structures from a composition.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/learningmatter-mit/atomisticskills/ml-generative-diffcsp
Any agent
npx skills add learningmatter-mit/AtomisticSkills --skill ml-generative-diffcsp
Clone the repo
git clone --depth 1 https://github.com/learningmatter-mit/AtomisticSkills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ml-generative-diffcsp

README.md
[![agentmods](https://agentmods.dev/badge/skills/learningmatter-mit/atomisticskills/ml-generative-diffcsp.svg)](https://agentmods.dev/skills/learningmatter-mit/atomisticskills/ml-generative-diffcsp)
Your own site
<a href="https://agentmods.dev/skills/learningmatter-mit/atomisticskills/ml-generative-diffcsp"><img src="https://agentmods.dev/badge/skills/learningmatter-mit/atomisticskills/ml-generative-diffcsp.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00036 $0.01321
Opus 5 $0.00018 $0.00660
Sonnet 5 $0.00007 $0.00264
Haiku 4.5 $0.00004 $0.00132

Measured yesterday against content hash 3a83279b8908, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ml-generative-diffcsp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/batch_generate.py, scripts/unconditional_generate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/ml-generative-diffcsp/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DiffCSP++ Crystal Structure Generation

Goal

Generate novel crystal structures using DiffCSP++ (ICLR 2024), a diffusion model that leverages space group symmetry constraints for crystal structure prediction (CSP) and ab initio generation.

1. Prerequisites

[!IMPORTANT] GPU Required: DiffCSP++ inference is significantly faster on GPU.

  • The diffcsp-agent conda environment must be installed.
  • DiffCSP++ repo cloned to /home/bdeng/projects/DiffCSP-PP.
  • Pre-trained checkpoints downloaded to checkpoints/ directory.

2. Available Models

Model Type Description
mp_csp CSP Materials Project — composition-constrained generation
mp_gen Gen Materials Project — unconditional generation
perov_csp CSP Perovskite — composition-constrained generation
perov_gen Gen Perovskite — unconditional generation
carbon_gen Gen Carbon — unconditional generation
mpts_csp CSP MPTS-52 — composition-constrained generation

3. Usage Modes

Mode 1: Single Composition via MCP Tool (Recommended)

Generate structures with exact composition using the generate_structures_with_symmetry MCP tool:

mcp_diffcsp_generate_structures_with_symmetry(
    spacegroup=58,                        # Space group number (1-230)
    wyckoff_letters="2a,2d,4g",           # Wyckoff positions (comma-separated or shorthand "adg")
    atom_types="Mn,Li,O",                 # Element per Wyckoff position
    model_name="mp_csp",                  # CSP model
    num_samples=5,                        # Number of structures to generate
    step_lr=1e-5,                         # Langevin step size
    output_dir="research/my_project"
)

Mode 2: Batch Generation from JSON File

Generate multiple structures from a JSON specification file. This is useful when you have many different compositions to generate at once.

JSON format (see examples/example.json):

[
    {"spacegroup_number": 58, "wyckoff_letters": ["2a","2d","4g"], "atom_types": ["Mn","Li","O"]},
    {"spacegroup_number": 194, "wyckoff_letters": "abff", "atom_types": ["Tm","Tm","Ni","As"]}
]

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 126 lines · 36 tokens per session scan A 3a83279b8908

Subscribe to this mod's changes

ml-generative-diffcsp is a skill published in the GitHub repository learningmatter-mit/AtomisticSkills (158 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 1,321 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

hugging-face-trackio

Track and visualize ML training experiments with Trackio. Use when logging metrics during training (Python API) or retrieving/analyzing logged metrics (CLI). Supports real-time dashboard visualization, HF Space syncing, and JSON output for automation.

patchy631/ai-engineering-hub · 52 tokens

physicsnemo-discover

Official NVIDIA-authored guidance for navigating PhysicsNeMo — pick the model, datapipe, or example for a SciML/AI4Science task (surrogates, forecasting, downscaling, physics-informed, inverse, generative). Points at existing files via live repo search; never writes code. Do NOT use for installation or environment…

NVIDIA/physicsnemo · 124 tokens

pysr

Use when fitting equations to data with PySR or SymbolicRegression.jl, when a user wants an interpretable formula, symbolic model, scaling law, or empirical relation discovered from numeric data, or when debugging a PySR search that is slow, stuck, or giving poor equations.

astroautomata/PySR · 61 tokens

cellxgene-census-query

Query CZ CELLxGENE Census (61M+ cells). Filter by cell type/tissue/disease, retrieve expression data, and integrate with scanpy/PyTorch for population-scale single-cell analysis. Use this skill when: (1) Querying single-cell expression data by cell type, tissue, or disease, (2) Exploring available single-cell datasets…

PharMolix/OpenBioMed · 105 tokens

HomeSafe-Bench

VLM indoor safety hazard detection benchmark inspired by HomeSafeBench (arXiv 2509.23690).

SharpAI/DeepCamera · 28 tokens

implement-tool

Implements a new bioinformatics tool wrapper in proto-tools using a parallelized agent pipeline. Orchestrates phases: Research, Contract (core tool file), Fan-out (5 parallel subagents), Verify, then the decisive gates — Config Field Audit, Temp Integration & Stress, Docs Verification, Self-Audit & Full PR Review …

evo-design/proto-tools · 93 tokens