Token导航 LogoToken导航TokenDH.com
待分类权限需确认github未标认证来源可访问许可证需确认审计通过

chem-data-extractor化学数据提取器

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

247

周安装

10

GitHub Stars

44

下载量

78
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:chem-data-extractor(化学数据提取器)
来源仓库:https://github.com/internscience/chemclaw
仓库路径:skills/chem-data-extractor
安装命令:
npx skills add https://github.com/internscience/chemclaw --skill chem-data-extractor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/internscience/chemclaw --skill chem-data-extractor

简介

Chem Data Extractor 从化学论文补充材料中提取结构化表征数据并以 JSON 格式返回。

  • 支持化合物名称、物理状态、产率、熔点等关键参数的标准化抽取。
  • 适用于文献计量研究与实验数据快速归档的专业科研场景。
  • 输出结果需经人工复核以确保字段映射准确无误后再用于后续分析。
  • chem-data-extractor 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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
└── ...

Example: Batch Process

# Process all PDFs in a folder
python scripts/batch_extract.py ./pdfs/ -o ./extracted_data

# Process single PDF
python scripts/batch_extract.py ./article.pdf -o ./results

# Keep intermediate files, skip existing
python scripts/batch_extract.py ./pdfs/ --keep-md --skip-existing

Mode 2: Single Document Processing

For processing a single document (Markdown or after PDF conversion).

Step 2: Prepare Input File

If the input is a PDF file:

  1. Use mineru-pdf-converter skill to convert PDF to Markdown first
  2. Use the generated full.md file as input

If the input is already a Markdown file, use it directly.

Step 3: Extract Data

Use the extraction script to parse the data:

# Extract a specific compound
python scripts/extract_chem_data.py \
    /path/to/full.md -c COMPOUND_ID --compact

# Extract all compounds
python scripts/extract_chem_data.py \
    /path/to/full.md --compact

Options:

  • -c, --compound: Extract specific compound by ID (e.g., "3i", "1a")
  • --compact: Remove null/empty fields from output
  • -o, --output: Save output to file instead of stdout

Step 4: Return Results

Output ONLY valid JSON without any extra text, unless the user specifically asks for explanations.


Examples

Example 1: Batch Process Multiple PDFs

# Process all PDFs in a directory
python scripts/batch_extract.py ./supplementary_pdfs/ -o ./extracted_compounds

# Output structure:
# ./extracted_compounds/
# ├── batch_summary.json
# ├── paper1/
# │   ├── compounds.json
# │   └── summary.json
# └── paper2/
#     ├── compounds.json
#     └── summary.json

Example 2: Extract Single Compound from Markdown

python scripts/extract_chem_data.py full.md -c 3i --compact

Output:

{
  "compound_name": "(R)-N-Benzoyl-4-iodobenzenesulfonimidoyl fluoride",
  "physical_state": "white solid",
  "mass_obtained": 33.2,
  "yield_percent": 85,
  "melting_point_range": "126.6–127.3",
  "rf_value": "0.37 (Pet/EtOAc, 5/1, v/v)",
  "optical_rotation": "[α]D25 = +10.3 (c = 0.75, CHCl3)",
  "hplc_conditions": {
    "column": "CHIRALCEL AY-RH",
    "mobile_phase": "n-hexane/2-propanol = 60/40",
    "flow_rate": "1.0 mL/min",
    "wavelength": "256 nm",
    "retention_times": {
      "major": "9.642 min",
      "minor": "12.955 min"
    },
    "ee_percent": 90
  },
  "nmr_1H": {
    "frequency": "400 MHz",
    "solvent": "CDCl3",
    "chemical_shifts": "δ 8.17–8.09 (m, 2H), 8.06–8.00 (m, 2H)..."
  },
  "nmr_13C": {
    "frequency": "100 MHz",
    "solvent": "CDCl3",
    "chemical_shifts": "δ 170.0, 139.2, 134.3 (d, JCF = 22.0 Hz)..."
  },
  "nmr_19F": {
    "frequency": "376 MHz",
    "solvent": "CDCl3",
    "chemical_shift": "δ 65.3 (s, 1F)"
  },
  "hrms_data": {
    "ion_type": "[M+Na]+",
    "calculated_mz": 411.9275,
    "found_mz": 411.9273,
    "formula": "C13H9FINNaO2S"
  }
}

Example 3: Extract All Compounds from Single File

python scripts/extract_chem_data.py full.md --compact -o all_compounds.json

Output is a JSON array containing all extracted compounds.


Common Compound ID Patterns

Compound IDs typically follow these patterns:

  • Numbers: 1, 2, 3
  • Numbers with letters: 1a, 3i, 5b
  • Numbers with multiple letters: 1aa, 3ba
  • Numbers with primes: 1', 2''

Tips

  1. Compound identification: The script looks for section headers like (R)-Compound Name (3i) or # Compound Name (1a)
  2. Data completeness: Not all fields may be present for every compound - missing fields will be null (or omitted with --compact)
  3. Stereochemistry: The script preserves stereochemical descriptors like (R), (S), (±) in compound names
  4. Multiple compounds: When extracting all compounds, the output is a JSON array sorted by appearance in document

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.19%
按下载量换算27

Claude

29.81%
按下载量换算23

Cursor

17.78%
按下载量换算14

Gemini CLI

8.93%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills