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-defect-energynpx skills add learningmatter-mit/AtomisticSkills --skill mat-defect-energygit 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-defect-energy)<a href="https://agentmods.dev/skills/learningmatter-mit/atomisticskills/mat-defect-energy"><img src="https://agentmods.dev/badge/skills/learningmatter-mit/atomisticskills/mat-defect-energy.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.00025 | $0.01526 |
| Opus 5 | $0.00013 | $0.00763 |
| Sonnet 5 | $0.00005 | $0.00305 |
| Haiku 4.5 | $0.00003 | $0.00153 |
Grade A, and why
mat-defect-energy 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 — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Point-Defect Formation Energy (MLIP)
Goal
To calculate the formation energy ($E_f$) of neutral point defects (vacancies, substitutions, and interstitials) using Machine Learning Interatomic Potentials (MLIPs). Formation energy is defined as:
$$E_f = E_\mathrm{defect} - \frac{n_\mathrm{defect}}{n_\mathrm{bulk}} E_\mathrm{bulk} + \sum_i \Delta n_i \mu_i$$
where $E_\mathrm{defect}$ and $E_\mathrm{bulk}$ are the total energies of the defective and pristine supercells, $n$ is the number of atoms, $\Delta n_i$ is the change in number of species $i$, and $\mu_i$ is the chemical potential of species $i$.
Instructions
1. Select Level of Theory
Choose an MLIP model. See ml-foundation-potentials for guidance.
- Recommended: r2SCAN-level potentials for inorganic defects (e.g.,
MACE-MH-1withmatpes_r2scanhead). - Use the same model for bulk and defect calculations.
2. Obtain Bulk Structure
Start with a relaxed bulk primitive cell. You can retrieve one from Materials Project:
mcp_base_search_materials_project_by_formula(formula="MgO", save_to_file="MgO.cif")
3. Relax Bulk Structure
Relax the bulk unit cell to get the reference energy:
mcp_mace_load_model(model_name="MACE-MH-1", task_name="matpes_r2scan")
mcp_mace_relax_structure(
structure_data="MgO.cif",
relax_cell=True,
fmax=0.01,
output_dir="bulk_relaxation/"
)
Record the final energy per atom from the output.
4. Generate Defect Supercells
Use the defect generation script with pymatgen-analysis-defects:
# Env: base-agent
python .agents/skills/mat-defect-energy/scripts/generate_defects.py \
--bulk bulk_relaxation/relaxed_structure.cif \
--supercell_size 2 2 2 \
--defect_type vacancy \
--output defect_structures/
Options for --defect_type:
vacancy— removes each symmetry-unique atomsubstitution— replaces atoms with--substitute_elementat each unique siteinterstitial— inserts--interstitial_elementat Voronoi interstitial sitesall— generates all vacancy types
What ships with it
7 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/MgO_vacancy/defect_energies.json 732 B
- examples/MgO_vacancy/pristine_supercell.cif 3.4 KB
- examples/MgO_vacancy/README.md 2.6 KB
- examples/MgO_vacancy/vac_Mg_0.cif 3.6 KB
- examples/MgO_vacancy/vac_O_1.cif 3.6 KB
- scripts/calculate_defect_energy.py 8.4 KB runs code
- scripts/generate_defects.py 8.8 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 · 131 lines · 25 tokens per session scan A 5c18473df740
mat-defect-energy is a skill published in the GitHub repository learningmatter-mit/AtomisticSkills (158 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 1,526 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…