agentleFS
learningmatter-mitlearningmatter-mit/AtomisticSkills/.agents/skills/chem-db-spectra/SKILL.md

chem-db-spectra

Skill174 starsChanged 6 months agoMITView on GitHub

Search and download experimental InfraRed (IR), Mass spectra, and UV-Vis spectra data (JCAMP-DX format) for molecules.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the query_spectra.py script to fetch available spectrographic data for a given chemical formula.

    line 16

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.