chem-data-extractor

chem-data-extractor is a skill for Claude Code, Codex from InternScience/ChemClaw. It costs 143 tokens per session (1,915 once invoked), scanned A, original, MIT.

A document-reading tool for extracting structured chemical information from supplementary materials, the extra files published with chemistry papers. It reads PDF or Markdown documents and returns details such as spectra, mass measurements, melting points, yields, and chromatography results.

In plain words
What is it for?
Use it to collect compound names, physical descriptions, yields, melting points, optical rotation, HPLC results, NMR data, and high-resolution mass-spectrometry data.
Why use it?
It removes the need to search long experimental documents and copy scattered compound data into a consistent format by hand.

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/internscience/chemclaw/chem-data-extractor
Any agent
npx skills add InternScience/ChemClaw --skill chem-data-extractor
Clone the repo
git clone --depth 1 https://github.com/InternScience/ChemClaw

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-data-extractor

README.md
[![agentmods](https://agentmods.dev/badge/skills/internscience/chemclaw/chem-data-extractor.svg)](https://agentmods.dev/skills/internscience/chemclaw/chem-data-extractor)
Your own site
<a href="https://agentmods.dev/skills/internscience/chemclaw/chem-data-extractor"><img src="https://agentmods.dev/badge/skills/internscience/chemclaw/chem-data-extractor.svg" alt="Measured on agentmods" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,915 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.00143 $0.01915
Opus 5 $0.00072 $0.00958
Sonnet 5 $0.00029 $0.00383
Haiku 4.5 $0.00014 $0.00192

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

Security

Grade A, and why

chem-data-extractor 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 4d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/batch_extract.py, scripts/extract_chem_data.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.

skills/chem-data-extractor/SKILL.md · 225 lines

How it starts

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

Chemistry Data Extractor | 化学数据提取器

Extract structured chemical characterization data from chemistry supplementary materials and return in strict JSON format. 从化学论文补充材料中提取结构化表征数据,以严格JSON格式返回。

Supported Data Fields

  • compound_name: Full IUPAC or common name (including stereochemistry if given)
  • structure_image_description: Brief description of the molecular structure
  • physical_state: e.g., "white solid", "colorless oil"
  • mass_obtained: in mg
  • yield_percent: as number only
  • melting_point_range: in °C, as string like "126.6–127.3"
  • rf_value: Rf value and solvent system
  • optical_rotation: [α]D²⁵ value, concentration, solvent
  • hplc_conditions: column, mobile phase, flow rate, wavelength, retention times (major/minor), ee%
  • nmr_1H: frequency, solvent, chemical shifts with multiplicity and coupling constants
  • nmr_13C: frequency, solvent, chemical shifts with notes (e.g., d, JCF)
  • nmr_19F: frequency, solvent, chemical shift
  • hrms_data: ion type, calculated m/z, found m/z, formula
  • racemic_sample_note: if mentioned

Workflow

Step 1: Ask User for Extraction Mode

When user asks to extract chemistry data, first ask:

Do you want to extract data for:

  1. A specific compound (provide compound ID like "3i" or "1a")
  2. All compounds in a single document
  3. Batch process multiple PDF files (creates folder for each)

Mode 1: Batch Process Multiple PDFs

For processing multiple PDF files at once. Creates a separate folder for each PDF with extracted compounds.

Usage

python scripts/batch_extract.py \
    /path/to/pdf_folder \
    -o ./output_folder

Options

  • -o, --output: Output base directory (default: ./chem_extract_output)
  • --keep-md: Keep intermediate markdown files (default: cleanup after extraction)
  • --skip-existing: Skip PDFs that already have output folders

Output Structure

output_folder/
├── batch_summary.json          # Overall summary of all processed PDFs
├── paper1/
│   ├── compounds.json          # All extracted compounds
│   └── summary.json            # Brief summary with compound list
├── paper2/
│   ├── compounds.json
│   └── summary.json
└── ...

Read the full file on GitHub · 225 lines

Files

What ships with it

2 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 · 225 lines · 143 tokens per session scan A c851f750e1db

Subscribe to this mod's changes

chem-data-extractor is a skill published in the GitHub repository InternScience/ChemClaw (52 stars, last pushed 5mo ago), licensed MIT. It adds 143 tokens to every session and 1,915 once invoked, about $0.0007 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

paper-spine

Build, rewrite, audit, submit, revise, or transfer scholarly papers end to end, producing verified LaTeX/PDF/Word and target-specific publication packages.

WUBING2023/PaperSpine · 37 tokens

nsfc-budget

当用户明确要求“写/生成 NSFC 预算说明书”“写预算说明”“生成 budget.tex / budget.pdf”“写国自然预算 justification”时使用。基于用户标书正文或补充材料,输出一份可提交的预算说明书 LaTeX 项目并渲染 budget.pdf。若用户未指定工作目录,必须暂停并先要求其指定。⚠️ 不适用:用户只是想了解预算原则;用户仅要预算表数字而不写说明书;或用户是 2026 青年 A/B/C 默认包干制且无需预算说明书的场景。.

huangwb8/ChineseResearchLaTeX · 138 tokens

nsfc-ref-alignment

检查 NSFC 标书正文引用与参考文献的一致性与真实性风险(只读):核查 bibkey 是否存在、BibTeX 字段与 DOI 等格式问题,并生成结构化输入供宿主 AI 逐条评估“正文表述是否真的在引用该文献”;默认仅输出审核报告,不直接修改标书或 .bib(除非用户明确要求)。.

huangwb8/ChineseResearchLaTeX · 90 tokens

paper-figures

Extract figures from downloaded papers and include them in survey/review reports. Use when the report covers other groups' work and benefits from their architecture diagrams, experimental plots, or system schematics. Your brain prompt supplies the absolute path to the extract-figures script as {{EXTRACTFIGURES}} — use…

Muuuun/luxas · 79 tokens

ts-paper

Generate a complete, publication-format journal/conference paper (LaTeX → compiled PDF) from whatever the user drops — a one-line idea, a proposal, or a proposal WITH real results. It ROUTES the input (idea→idea2story; proposal→proposal mode; results-present→data-aware mode), then runs…

Spark-To-Paper-Skills/spark-to-paper-skills · 170 tokens

ts-paper-latex

Stage 7 (final assemble + compile) of the ts-paper suite. Assemble drafted LaTeX section bodies + refs.bib + blueprint into a compilable paper in the active TEMPLATE and compile it to PDF. Copies the template's .sty/.cls + assets, runs the deterministic template-driven post-processes (caption position, merge adjacent…

Spark-To-Paper-Skills/spark-to-paper-skills · 116 tokens