dft-convergence

dft-convergence is a skill for Claude Code, Codex from SFETNI/Deep-Matter-Chem-Skills. It costs 4 tokens per session (7,588 once invoked), scanned A, original, MIT.

A testing guide for density functional theory (DFT), a computer method that calculates material properties from quantum-mechanical models. It checks whether settings such as energy cutoffs, sampling points, smearing, and self-consistency limits give stable results.

In plain words
What is it for?
It is for testing DFT settings before production calculations, especially when changing materials, pseudopotentials, software, or the property being studied.
Why use it?
It helps show that a reported result is not mainly caused by an arbitrary calculation setting.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for testing DFT settings before production calculations, especially when changing materials, pseudopotentials, software, or the property being studied.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sfetni/deep-matter-chem-skills/dft-convergence
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.

Any agent
npx skills add SFETNI/Deep-Matter-Chem-Skills --skill dft-convergence
Clone the repo
git clone --depth 1 https://github.com/SFETNI/Deep-Matter-Chem-Skills

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 dft-convergence

README.md
[![agentmods](https://agentmods.dev/badge/skills/sfetni/deep-matter-chem-skills/dft-convergence/github.svg)](https://agentmods.dev/skills/sfetni/deep-matter-chem-skills/dft-convergence)
Your own site
<a href="https://agentmods.dev/skills/sfetni/deep-matter-chem-skills/dft-convergence"><img src="https://agentmods.dev/badge/skills/sfetni/deep-matter-chem-skills/dft-convergence/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dft-convergence

Your own site · 80×15
<a href="https://agentmods.dev/skills/sfetni/deep-matter-chem-skills/dft-convergence"><img src="https://agentmods.dev/badge/skills/sfetni/deep-matter-chem-skills/dft-convergence.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,588 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00004 $0.07588
Opus 5 $0.00002 $0.03794
Sonnet 5 $0.00001 $0.01518
Haiku 4.5 $0.00000 $0.00759

Measured 12d ago against content hash 93f0bb2ba511, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

dft-convergence scanned grade A with 1 finding 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 12d ago.

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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

# subprocess.run(["pw.x", "-in", "scf.in"], cwd=calc_dir, ...)
skills/electronic-structure/dft-convergence/SKILL.md · 462 lines

How it starts

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

DFT Convergence

Description

This skill covers systematic convergence testing for plane-wave DFT calculations: cutoff energy (ENCUT / ecutwfc), k-point mesh density, smearing scheme and width, and SCF thresholds. Convergence requirements change significantly depending on the property of interest, the code, and the downstream use of the data. Invoke this skill before any production DFT run, whenever introducing a new element or pseudopotential family, and whenever changing codes or functional.

Domain Context

Plane-wave DFT is variational: the energy decreases monotonically toward the exact result as the basis set (ENCUT) and Brillouin zone sampling (k-points) are increased. This means convergence can always be tested systematically. However, two important subtleties apply:

  • Energy differences converge faster than absolute energies. Systematic errors in ENCUT and k-points largely cancel when comparing two structures with the same composition and a similar geometry. Reaction energies and adsorption energies can be converged to 1 meV/atom with a lower ENCUT than is needed for the absolute total energy at the same tolerance.
  • Different properties have different convergence rates. Forces, stresses, phonon frequencies, band gaps, magnetic moments, and dielectric constants each have their own sensitivity to basis set completeness and k-mesh density. A calculation converged for total energy is not automatically converged for phonon frequencies or surface energies.

The pseudopotential or PAW dataset defines a recommended cutoff (ENMAX in VASP POTCAR; wfc_cutoff or ecutwfc in Quantum ESPRESSO input), but these recommendations are conservative lower bounds, not validated production defaults. The density cutoff (ecutrho in QE, controlled implicitly by VASP) must also be checked for ultrasoft pseudopotentials.

Smearing introduces a fictitious electronic temperature to smooth the Fermi surface and improve SCF convergence in metals. The smearing width (SIGMA in VASP; degauss in QE) must be small enough that the physical result is not distorted, but large enough to achieve stable convergence. The correct smearing scheme depends on whether the system is metallic, semiconducting, or insulating.

Read the full file on GitHub · 462 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. 12d ago First seen · 462 lines · 4 tokens per session scan A 93f0bb2ba511

Subscribe to this mod's changes

dft-convergence is a skill published in the GitHub repository SFETNI/Deep-Matter-Chem-Skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 4 tokens to every session and 7,588 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cluster-umap-layout-reproducibility-benchmarking

Use when you have executed an end-to-end SnapATAC2 pipeline on the pbmc10kmultiome dataset (or a similar single-cell ATAC-seq dataset with a published reference) and need to validate that spectral embedding, Leiden clustering, and UMAP layout have converged to expected cluster identities and.

HolobiomicsLab/asb-skill-collections · 76 tokens

computational-complexity-validation

Use when when an algorithm claims linear or sublinear time/space complexity (e.g., matrix-free spectral embedding) and you need to verify that claim holds for datasets at the scale intended (10 million+ cells).

HolobiomicsLab/asb-skill-collections · 50 tokens

end-to-end-bioinformatics-pipeline-testing

Use when after cloning or installing a peak-calling or genomic analysis tool from a repository, before using it on production data.

HolobiomicsLab/asb-skill-collections · 35 tokens

epic-array-simulation-benchmark

Use when when developing or validating a DNA methylation array analysis pipeline using ChAMP, you need an independent ground-truth dataset to confirm that DMR detection is working correctly.

HolobiomicsLab/asb-skill-collections · 43 tokens

repository-cloning-and-dependency-verification

Use when you have identified a published computational tool (e.

HolobiomicsLab/asb-skill-collections · 21 tokens

shell-script-executability-validation

Use when you have cloned a bioinformatics repository (e.g., FredHutch/SEACR) and need to confirm that its shell and R scripts are executable and will run successfully on your input data (e.g., CUT&RUN bedGraph files) before investing time in a full analysis.

HolobiomicsLab/asb-skill-collections · 67 tokens