mat-xrd-digitizer

Installation
SKILL.md

XRD Digitizer

Goal

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.

Instructions

1. Extract Peaks Visually

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.

Installs
5
GitHub Stars
176
First Seen
Jun 19, 2026