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.
git clone --depth 1 https://github.com/InternScience/ChemClawnpx agentmods add skills/internscience/chemclaw/mol-image-to-smilesWrote 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.
[](https://agentmods.dev/skills/internscience/chemclaw/mol-image-to-smiles)<a href="https://agentmods.dev/skills/internscience/chemclaw/mol-image-to-smiles"><img src="https://agentmods.dev/badge/skills/internscience/chemclaw/mol-image-to-smiles/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.
<a href="https://agentmods.dev/skills/internscience/chemclaw/mol-image-to-smiles"><img src="https://agentmods.dev/badge/skills/internscience/chemclaw/mol-image-to-smiles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.02847 |
| Opus 5 | $0.00017 | $0.01424 |
| Sonnet 5 | $0.00007 | $0.00569 |
| Haiku 4.5 | $0.00003 | $0.00285 |
Grade A, and why
mol-image-to-smiles 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 11d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 354 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mol Image to SMILES Converter
将分子结构图片转换为 SMILES 字符串,使用 DECIMER 和 MolNextR 模型进行智能识别。
触发条件
- 用户提供分子结构图片并要求转换
- 提到"图片转 SMILES"、"image to smiles"
- 说"识别这个分子"、"从图片提取 SMILES"
- 上传化学结构图片(png/jpg/jpeg)
功能
- ✅ 双模型支持 - DECIMER + MolNextR
- ✅ 自动模型选择 - 优先使用本地模型,失败时自动切换
- ✅ 高精度识别 - 支持复杂分子结构
- ✅ 批量处理 - 支持多张图片同时转换
- ✅ 结果对比 - 可比较不同模型的预测结果
- ✅ 置信度评估 - 提供预测可靠性信息
- ✅ 格式支持 - PNG、JPG、JPEG、GIF、BMP
核心模型
| 模型 | 来源 | 特点 | 使用方式 |
|---|---|---|---|
| DECIMER | 德国联邦材料研究与测试所 | 高精度、速度快 | 本地安装 |
| MolNextR | MolecularAI (HuggingFace) | 支持复杂结构 | API 调用 |
DECIMER
- 版本: 2.8.0
- 优势:
- 本地运行,无需网络
- 识别速度快
- 对标准化学结构图准确率高
- 限制:
- 需要安装
decimer包 - 某些复杂结构可能识别不准确
- 需要安装
MolNextR
- 来源: HuggingFace (MolecularAI/MolNextR)
- 优势:
- 支持复杂分子结构
- 持续更新
- 无需本地安装模型
- 限制:
- 需要网络连接
- 依赖 HuggingFace API
使用方法
对话框中使用
把这个分子图片转成 SMILES
识别这张化学结构图
image to smiles: molecule.png
用 DECIMER 识别这个分子
命令行使用
# 基本转换(自动选择模型)
python3 scripts/mol_image_to_smiles.py -i molecule.png
# 指定使用 DECIMER
python3 scripts/mol_image_to_smiles.py -i molecule.png -m decimer
# 指定使用 MolNextR
python3 scripts/mol_image_to_smiles.py -i molecule.png -m molnextr
# 指定输出目录
python3 scripts/mol_image_to_smiles.py -i molecule.png -o ./results
# 批量处理
python3 scripts/mol_image_to_smiles.py -i "*.png" -o ./batch
# 安静模式(输出 JSON)
python3 scripts/mol_image_to_smiles.py -i molecule.png -q
参数说明
| 参数 | 简写 | 说明 | 默认值 |
|---|---|---|---|
--input |
-i |
输入图片路径 | - |
--output |
-o |
输出目录 | ~/.openclaw/media/mol-image-to-smiles |
--model |
-m |
模型选择:auto/decimer/molnextr | auto |
--quiet |
-q |
安静模式(输出 JSON) | false |
输出示例
成功转换
{
"input_image": "/path/to/molecule.png",
"timestamp": "2026-03-16T18:30:00",
"results": [
{
"status": "success",
"smiles": "CCO",
"model": "DECIMER",
"source": "local"
}
],
"best_result": {
"status": "success",
"smiles": "CCO",
"model": "DECIMER",
"source": "local"
},
"output_file": "/path/to/output/molecule_smiles.json"
}
What ships with it
3 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.
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.
- 11d ago First seen · 354 lines · 34 tokens per session scan A 8ca9ef95e79b
mol-image-to-smiles is a skill published in the GitHub repository InternScience/ChemClaw (52 stars, last pushed 5mo ago), licensed MIT. It adds 34 tokens to every session and 2,847 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.
Other skills, from other repositories
instrument-data-to-allotrope
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…
matlab
Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.
exploratory-data-analysis
Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…
phylogenetics
Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.
research-engineer
An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.
mapping-to-snomed
Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…