chem-db-spectra

chem-db-spectra is a skill for Claude Code, Codex from learningmatter-mit/AtomisticSkills. It costs 34 tokens per session (528 once invoked), scanned A, original, MIT.

A search and download tool for measured infrared, mass, and ultraviolet-visible spectra from chemical reference databases. The spectra are saved in JCAMP-DX, a standard text format for scientific spectra.

In plain words
What is it for?
Use it to find spectra by chemical formula and download infrared, mass-spectrometry, ultraviolet-visible, or all available spectrum types.
Why use it?
It supplies experimental reference data for checking or comparing results from molecular simulations and other calculations.

Skill for Claude CodeCodex

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/learningmatter-mit/atomisticskills/chem-db-spectra
Any agent
npx skills add learningmatter-mit/AtomisticSkills --skill chem-db-spectra
Clone the repo
git clone --depth 1 https://github.com/learningmatter-mit/AtomisticSkills

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 chem-db-spectra

README.md
[![agentmods](https://agentmods.dev/badge/skills/learningmatter-mit/atomisticskills/chem-db-spectra.svg)](https://agentmods.dev/skills/learningmatter-mit/atomisticskills/chem-db-spectra)
Your own site
<a href="https://agentmods.dev/skills/learningmatter-mit/atomisticskills/chem-db-spectra"><img src="https://agentmods.dev/badge/skills/learningmatter-mit/atomisticskills/chem-db-spectra.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00034 $0.00528
Opus 5 $0.00017 $0.00264
Sonnet 5 $0.00007 $0.00106
Haiku 4.5 $0.00003 $0.00053

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

Security

Grade A, and why

chem-db-spectra 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/query_spectra.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/chem-db-spectra/SKILL.md · 41 lines

What it actually says

chem-db-spectra

Goal

To query experimental molecular spectra—such as Infrared (IR), Mass Spectrometry, and UV-Vis—from standard experimental databases like the NIST Chemistry WebBook for baseline comparison against properties computed via MLIPs or DFT.

Instructions

Step 1. Query Spectra Data

Use the query_spectra.py script to fetch available spectrographic data for a given chemical formula. The script automatically searches the NIST Chemistry WebBook, resolves the compound, and downloads all available JCAMP-DX (.jdx) formatted spectra into the specified directory.

# Env: base-agent
python .agents/skills/chem-db-spectra/scripts/query_spectra.py <formula> <output_dir> [--type {IR,Mass,UVVis,All}]

Parameters:

  • formula: The chemical formula to query (e.g., CH4, C2H6O).
  • output_dir: The directory path to save the downloaded JCAMP-DX (.jdx) spectrum files.
  • --type: Filter the spectrum type to download (options: IR, Mass, UVVis, All). Default is All.

Constraints

  • Environments: The scripts require the base-agent Conda environment.
  • Spectrum Format: Output data is universally saved in JCAMP-DX (.jdx) standard format. You must use appropriate spectroscopic python package (e.g., jcamp) if you need to parse it back into numpy arrays.
  • Scraping Dependability: This script utilizes HTML scraping (beautifulsoup4). If the NIST WebBook layout changes in the future, the selectors may need to be updated.

References

  • Linstrom, P.J. and Mallard, W.G., Eds., NIST Chemistry WebBook, NIST Standard Reference Database Number 69, National Institute of Standards and Technology, Gaithersburg MD. URL
  • JCAMP-DX for Infrared, Raman, and Related Data. URL

Author: Bowen Deng Contact: GitHub @learningmatter-mit

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. 5d ago First seen · 41 lines · 34 tokens per session scan A af50aeab6c7c

Subscribe to this mod's changes

chem-db-spectra is a skill published in the GitHub repository learningmatter-mit/AtomisticSkills (158 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 528 once invoked, about $0.0002 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-08-30.

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

hypogenic

Automated LLM-driven hypothesis generation and testing on tabular datasets. Use when you want to systematically explore hypotheses about patterns in empirical data (e.g., deception detection, content analysis). Combines literature insights with data-driven hypothesis testing. For manual hypothesis formulation use…

synthetic-sciences/openscience · 69 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

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

molfeat

Molecular featurization for ML (100+ featurizers). ECFP, MACCS, descriptors, pretrained models (ChemBERTa), convert SMILES to features, for QSAR and molecular ML.

synthetic-sciences/openscience · 47 tokens

torchdrug

PyTorch-native graph neural networks for molecules and proteins. Use when building custom GNN architectures for drug discovery, protein modeling, or knowledge graph reasoning. Best for custom model development, protein property prediction, retrosynthesis. For pre-trained models and diverse featurizers use deepchem…

synthetic-sciences/openscience · 67 tokens