qm-dft

qm-dft is a skill for Claude Code, Codex from Kdevos12/ALKYL. It costs 77 tokens per session (1,213 once invoked), scanned A, original, MIT.

A guide to quantum-chemistry calculations using methods that model electrons to study molecular structure, energies, and properties. It covers ORCA, xTB, PySCF, density functional theory, and related workflows.

In plain words
What is it for?
Use it to optimize molecular geometries, search and rank conformations, estimate reaction energies and pKa values, calculate charges and electronic properties, and model IR, Raman, NMR, or UV-Vis spectra.
Why use it?
Simple force-field models are not suitable for questions such as bond breaking, reaction barriers, or spectroscopy. Quantum-chemistry methods can provide the calculations needed for those cases, with different speed and accuracy trade-offs.

Skill for Claude CodeCodex

Part of the alkyl plugin — 27 skills shipped together

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.

agentmods
npx agentmods add skills/kdevos12/alkyl/qm-dft
Any agent
npx skills add Kdevos12/ALKYL --skill qm-dft
Clone the repo
git clone --depth 1 https://github.com/Kdevos12/ALKYL

Made for: Claude Code, Codex.

Or install alkyl, the plugin that ships this one along with the rest of its 27 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kdevos12/alkyl/qm-dft.svg)](https://agentmods.dev/skills/kdevos12/alkyl/qm-dft)
Your own site
<a href="https://agentmods.dev/skills/kdevos12/alkyl/qm-dft"><img src="https://agentmods.dev/badge/skills/kdevos12/alkyl/qm-dft.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,213 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00077 $0.01213
Opus 5 $0.00039 $0.00607
Sonnet 5 $0.00015 $0.00243
Haiku 4.5 $0.00008 $0.00121

Measured 4d ago against content hash 4904fbed4847, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

qm-dft 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 4d 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.

result = subprocess.run(
skills/qm-dft/SKILL.md · 97 lines

How it starts

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

QM/DFT — Quantum Chemistry Calculations

Quantum mechanics-based methods compute electronic structure explicitly — enabling bond breaking/forming, spectroscopic properties, and accurate energetics beyond force fields. Python ecosystem: ORCA (best free QM, subprocess), xTB/tblite (fast semi-empirical, Python API), PySCF (pure Python, scriptable).

When to Use This Skill

  • Geometry optimization with QM accuracy (beyond MM force fields)
  • Reaction energetics: transition states, barrier heights, IRC
  • Spectroscopy: IR/Raman frequencies, NMR shifts, UV-Vis (TD-DFT)
  • Partial charge calculation: RESP, ESP, NBO, Mulliken
  • pKa estimation, protonation states
  • Conformer search and ranking (CREST + xTB)
  • Parametrization validation: compare QM vs force field energies
  • Property prediction: dipole moment, polarizability, HOMO/LUMO gaps

Method Cost Hierarchy

Method Cost Accuracy Use case
GFN-FF O(N²) ~MM Pre-screening, conformers
GFN2-xTB O(N²·8) Good Conformers, pre-opt, pKa
r²SCAN-3c O(N³) Very good Routine geometry opt
B3LYP-D3BJ/def2-SVP O(N⁴) Good Drug-like molecules opt
B3LYP-D3BJ/def2-TZVP O(N⁴) Better Single-point on opt geom
ωB97X-D/def2-TZVP O(N⁴) Very good Reaction barriers, CT states
DLPNO-CCSD(T)/CBS O(N⁵⁺) Benchmark High-accuracy energetics

Quick Start

# xTB geometry optimization (fastest QM-level method)
import subprocess

result = subprocess.run(
    ['xtb', 'mol.xyz', '--opt', '--gfn', '2', '--alpb', 'water'],
    capture_output=True, text=True, cwd='workdir/'
)
# Output: xtbopt.xyz (optimized), xtbopt.log

# Parse final energy
for line in result.stdout.split('\n'):
    if 'TOTAL ENERGY' in line:
        energy = float(line.split()[3])  # Hartree
        print(f"E = {energy:.8f} Eh")
# ORCA single-point DFT (via subprocess)
orca_input = """\
! B3LYP D3BJ def2-SVP TightSCF
%pal nprocs 4 end
%maxcore 2000

* xyzfile 0 1 mol.xyz
"""

with open('sp.inp', 'w') as f:
    f.write(orca_input)

result = subprocess.run(['orca', 'sp.inp'], capture_output=True, text=True)
# Parse with chem_qm.py: python chem_qm.py --parse sp.out

Read the full file on GitHub · 97 lines

Files

What ships with it

5 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.

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. 4d ago First seen · 97 lines · 77 tokens per session scan A 4904fbed4847

Subscribe to this mod's changes

qm-dft is a skill published in the GitHub repository Kdevos12/ALKYL (6 stars, last pushed 5mo ago), licensed MIT. It adds 77 tokens to every session and 1,213 once invoked, about $0.0004 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

datamol

Pythonic wrapper around RDKit with simplified interface and sensible defaults. Preferred for standard drug discovery including SMILES parsing, standardization, descriptors, fingerprints, clustering, 3D conformers, parallel processing. Returns native rdkit.Chem.Mol objects. For advanced control or custom parameters…

synthetic-sciences/openscience · 67 tokens

deepchem

Molecular ML with diverse featurizers and pre-built datasets. Use for property prediction (ADMET, toxicity) with traditional ML or GNNs when you want extensive featurization options and MoleculeNet benchmarks. Best for quick experiments with pre-trained models, diverse molecular representations. For graph-first…

synthetic-sciences/openscience · 78 tokens

molecular-optimization

Iterative lead optimization with analyze-reason-generate-verify-evaluate loop. Paper-backed (MT-Mol, DrugR, MultiMol).

synthetic-sciences/openscience · 34 tokens

admet-reasoning

Interpretable ADMET analysis with mechanistic reasoning. Maps liabilities to structural causes and biological pathways. Based on CoTox (Park 2025) and DrugR (Liu 2026).

synthetic-sciences/openscience · 47 tokens

rdkit

Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom…

synthetic-sciences/openscience · 80 tokens

smiles-validation

Strict SMILES validation, structural comparison, and modification verification. Catches invalid LLM-generated molecules.

synthetic-sciences/openscience · 24 tokens