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.
npx agentmods add skills/learningmatter-mit/atomisticskills/mat-xrd-refinementnpx skills add learningmatter-mit/AtomisticSkills --skill mat-xrd-refinementgit clone --depth 1 https://github.com/learningmatter-mit/AtomisticSkillsWrote 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.
[](https://agentmods.dev/skills/learningmatter-mit/atomisticskills/mat-xrd-refinement)<a href="https://agentmods.dev/skills/learningmatter-mit/atomisticskills/mat-xrd-refinement"><img src="https://agentmods.dev/badge/skills/learningmatter-mit/atomisticskills/mat-xrd-refinement.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00024 | $0.02237 |
| Opus 5 | $0.00012 | $0.01118 |
| Sonnet 5 | $0.00005 | $0.00447 |
| Haiku 4.5 | $0.00002 | $0.00224 |
Grade A, and why
mat-xrd-refinement 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rietveld Refinement
Goal
Perform quantitative Rietveld refinement of powder X-ray diffraction (XRD) patterns using DARA (Data-driven Automated Rietveld Analysis) with BGMN. Use when you have an experimental (or theoretical) pattern in .xy format and candidate phase CIFs.
Requirements
- Conda environment:
xrd-agent(see conda-envs/xrd-agent). - Dependencies:
dara-xrd,pymatgen. Optional:kaleidofor PNG export (usekaleido>=0.2.1,<0.3to avoid needing Chrome). - BGMN: DARA uses BGMN; ensure it is installed. On HPC without network, set
--bgmn_dirorDARA_BGMN_DIRto a local BGMN directory.
Scripts
| Script | Purpose |
|---|---|
scripts/refine.py |
Run Rietveld refinement with known phases; writes plots and summary under refinement_results/. |
scripts/convert_xrd_to_xy.py |
Convert XRD from JSON (xrd-spectrum) or DIF to .xy for DARA. |
scripts/dara_utils.py |
Helpers (e.g. load_xrd_file); used by other scripts. |
Instructions
1. Prepare XRD data (.xy format)
Two columns (2θ and intensity), space-separated. Options:
- From xrd-spectrum JSON: use
convert_xrd_to_xy.pywith--input_file your_xrd.json. Output is written next to the input asyour_xrd.xy. - From experimental DIF: use
convert_xrd_to_xy.pywith--input_file your_data.txt(or.dif). Format is auto-detected if the file contains a header with2-THETAandINTENSITY.
# From JSON (e.g. xrd-spectrum output)
python .agents/skills/mat-xrd-refinement/scripts/convert_xrd_to_xy.py --input_file path/to/xrd.json
# From DIF
python .agents/skills/mat-xrd-refinement/scripts/convert_xrd_to_xy.py --input_file path/to/scan.txt
Convert arguments:
--input_file: Path to JSON or DIF file.--format:auto(default),json, ordifto force format.
2. Run refinement (refine.py)
Refinement uses DARA’s do_refinement_no_saving (no BGMN working files left on disk). Output is written to refinement_results/ under the same directory as the XRD file (no --output_dir argument).
What ships with it
23 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- examples/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO.xy 169 KB
- examples/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/cifs/CaNi(PO3)4_15_sym.cif 1.3 KB
- examples/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/cifs/NiO_225_sym.cif 5.2 KB
- examples/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/README.md 1.2 KB
- examples/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/refinement_results/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO_curve_data.csv 340 KB
- examples/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/refinement_results/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO_peak_data.csv 44 KB
- examples/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/refinement_results/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO_refinement.png 139 KB
- examples/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/refinement_results/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO_refinement.svg 1504 KB
- examples/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/refinement_results/CaNi(PO3)4_800_240_Ca(OH)2_(NH4)2HPO4_NiO/refinement_result.json 1.3 KB
- examples/LiFePO4/cifs/Li3PO4.cif 1.1 KB
- examples/LiFePO4/cifs/LiFePO4.cif 2.5 KB
- examples/LiFePO4/LiFePO4_xrd.json 101 KB
- examples/LiFePO4/LiFePO4_xrd.xy 31 KB
- examples/LiFePO4/README.md 1.0 KB
- examples/LiFePO4/refinement_results/LiFePO4/LiFePO4_curve_data.csv 47 KB
- examples/LiFePO4/refinement_results/LiFePO4/LiFePO4_peak_data.csv 17 KB
- examples/LiFePO4/refinement_results/LiFePO4/LiFePO4_refinement.png 119 KB
- examples/LiFePO4/refinement_results/LiFePO4/LiFePO4_refinement.svg 326 KB
- examples/LiFePO4/refinement_results/LiFePO4/refinement_result.json 1.1 KB
- scripts/convert_xrd_to_xy.py 4.7 KB runs code
- scripts/dara_utils.py 497 B runs code
- scripts/plot.py 8.1 KB runs code
- scripts/refine.py 10 KB runs code
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.
- today First seen · 148 lines · 24 tokens per session scan A 2fb2dd5c26fe
mat-xrd-refinement is a skill published in the GitHub repository learningmatter-mit/AtomisticSkills (158 stars, last pushed today), licensed MIT. It adds 24 tokens to every session and 2,237 once invoked, about $0.0001 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.
Other skills, from other repositories
cd-calculator
Python calculators for geometry analysis, structural checking, solar calculations, panel optimization, mesh analysis, material estimation, and fabrication cost estimation for AEC computational design.
cd-calculator
Python calculators for geometry analysis, structural checking, solar calculations, panel optimization, mesh analysis, material estimation, and fabrication cost estimation for AEC computational design.
prepared-environment-designer
Redesign a classroom as a prepared environment optimised for independent learning, calm transitions, and material access. Use when classroom layout hinders independence or self-directed work.
gamedev-shaders
Use when authoring or debugging a shader, material, VFX, or full-screen post-process in a game engine — Godot 4.x .gdshader, Unity 6 URP/HDRP, Unreal 5.x Materials, effect recipes, shader performance. NOT gameplay or engine-API code (that is godot/unity/unreal), NOT physics (gamedev-physics), NOT build variant…
technical-artist
!cat skills/shared/protocols/3d-spatial-foundations.md 2>/dev/null || echo "=== 3D Foundations not loaded ===".
unity-shader-artist
!cat skills/shared/game-visual-foundations.md 2>/dev/null || echo "=== Visual Foundations not loaded ===" !cat skills/shared/protocols/ux-protocol.md 2>/dev/null || true !cat skills/shared/protocols/game-test-protocol.md 2>/dev/null || true !cat skills/shared/protocols/quality-gate.md 2>/dev/null || true !cat…