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

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/batch_extract.py ./pdfs/ -o ./extracted_data.

Good fit Use it to collect compound names, physical descriptions, yields, melting points, optical rotation, HPLC results, NMR data, and high-resolution mass-spectrometry data.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/InternScience/ChemClaw
agentmods
npx agentmods add skills/internscience/chemclaw/chem-data-extractor

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/github.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/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 chem-data-extractor

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00143 $0.01915
Opus 5.5 $0.00057 $0.00766
Sonnet 5.5 $0.00029 $0.00383
Haiku 4.5 $0.00014 $0.00192

Measured 1mo ago against content hash c851f750e1db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (53 stars, last pushed 6mo ago), licensed MIT. It adds 143 tokens to every session and 1,915 once invoked, about $0.0006 per session on Opus 5.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

nature-paper-trans

A workflow for translating selected pages or a complete English research-paper PDF into a simplified-Chinese, image-based PDF. bioRxiv is not mentioned in the provided details; the workflow applies to research-paper PDFs generally.

Yuan1z0825/nature-skills · 68 tokens

pydicom

Reads, inspects, writes, transforms, and preflights local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

K-Dense-AI/scientific-agent-skills · 52 tokens

pptx-posters

Creates and audits editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Used when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.

K-Dense-AI/scientific-agent-skills · 59 tokens

extracting-lab-tables

Detects and extracts tabular laboratory panels from PDFs, scans, and images into structured rows ready for OpenMed and FHIR. Use when the user has a CBC, CMP, lipid panel, or other lab report as a scanned image / PDF / spreadsheet and needs the test name, value, unit, reference range, and abnormal flag as clean rows.…

maziyarpanahi/openmed · 210 tokens

figures

Makes publication-quality plots from data with matplotlib, learning curves, scaling laws, benchmark and ablation comparisons, Pareto trade-offs, heatmaps and confusion matrices, sized for the page, vector, with uncertainty shown. Use whenever results are plotted, charted or visualized for a paper, report or answer, or…

synthetic-sciences/openscience · 99 tokens

paper-compile

A build workflow that turns LaTeX source files into a PDF and checks whether the paper compiles correctly. LaTeX is a text-based system commonly used for academic papers.

wanshuiyin/Auto-claude-code-research-in-sleep · 53 tokens