/atomistic-skills:mat-xrd-digitizerfrom Atomistic Skills
Digitizes an image of an X-Ray Diffraction (XRD) plot into a numeric .xy data file by visually extracting peak positions and intensities using VLM capabilities.
Ships in Atomistic Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
To convert an image or screenshot of an X-Ray Diffraction (XRD) pattern into a digitized, numeric .xy data file, which can then be used by downstream analysis tools like mat-xrd-phase-analysis.
This skill leverages the AI Agent's built-in Vision/Language Model (VLM) capabilities. The Agent will visually parse the provided image to extract key peak positions (2-theta) and approximate relative intensities, and then use a provided script to mathematically generate a representative pseudo-Voigt profile.
Provide the agent with an image (e.g., screenshot) of the XRD plot. The agent will visually inspect the plot and identify the coordinates of the major peaks.
Handling Multiple Curves/Colors: If the image contains multiple XRD patterns, the user should specify which curve to digitize by its color, label, or position (e.g., "digitize the red curve" or "digitize the curve labeled 'sample A'"). The agent will then selectively extract peaks from only that specific curve.
Agent Action: The agent should:
peaks.json) containing the extracted peaks as an array of objects for the target curve. CRITICAL: You must ensure every single visible peak, including the tiny minor peaks, is reported and digitized to ensure accurate full-profile refinement downstream.original_plot.png) in the same directory as the JSON file for future reference.Example peaks.json format:
[
{"2theta": 8.8, "intensity": 0.05, "fwhm": 0.3},
{"2theta": 15.8, "intensity": 0.08, "fwhm": 0.3},
{"2theta": 33.1, "intensity": 1.00, "fwhm": 0.3}
]
Note: intensity should be normalized between 0 and 1.0 (where the highest peak is 1.0). fwhm defaults to 0.3.
.xy FileUse the provided script to generate the experimental .xy file based on the extracted peaks.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/digitize_plot.py peaks.json --output digitized_plot.xy --min-x 5.0 --max-x 80.0
Parameters:
input: The JSON file containing the extracted peak parameters.--output: Path to save the resulting .xy file.--min-x: Minimum 2-theta value to generate (default: 5.0).--max-x: Maximum 2-theta value to generate (default: 90.0).--points: Number of data points in the .xy file (default: 4000).--noise: Amplitude of experimental noise to add (default: 0.01).--background: Amplitude of exponential background baseline (default: 0.05).For a full working example of extracting and digitizing a YBCO plot:
See examples/digitize-ybco/README.md.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/digitize_plot.py ${CLAUDE_SKILL_DIR}/examples/digitize-ybco/peaks.json --output test_ybco.xy
cpu environment. Each code block MUST specify the environment..xy file to identify the material phases.Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/digitize-ybco/README.md (opens in a new tab)examples/digitize-ybco/example_ybco.png (opens in a new tab)examples/digitize-ybco/example_ybco.xy (opens in a new tab)examples/digitize-ybco/original_plot.png (opens in a new tab)examples/digitize-ybco/peaks.json (opens in a new tab)scripts/digitize_plot.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skills133 skills in this plugin
/chem-bond-dissociationCalculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation./chem-conformer-searchGenerate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting./chem-db-mofQuery multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al. via Materials Cloud) and download CIF structures with optional element or identifier filters.Other plugins' skills for the same job