科研 Skill
化学物质身份解析
resolve-chemical-identities
Resolves chemical names, SMILES, InChI, or registry IDs into auditable records, preserving ambiguity. Use to confirm a chemical’s identity before standardization.
SKILL.md
化学身份解析与来源对齐
把名称、结构或编号转换为可审计的化学候选记录。默认失败关闭:不投票选优、不让模型猜结构、不把数据库记录当作用户实物样品。
执行流程
- 接收一个
query;只有纯数字等无法安全判断的输入才追问input_type。 - 阅读身份判定契约与来源边界,确认
exact、related_forms、ambiguous、conflict和样品边界。 - 在隔离环境安装固定依赖:
python -m pip install -r scripts/requirements.txt
- 运行解析器。单条名称示例:
python scripts/resolve_identities.py \
--query 'aspirin' \
--output identity-result.json
明确结构类型示例:
python scripts/resolve_identities.py \
--query 'CCO' \
--input-type smiles \
--output identity-result.json
批量或带上下文时使用 JSON:
{
"requests": [
{
"id": "q1",
"query": "aspirin",
"input_type": "name"
},
{
"id": "q2",
"query": "CC(=O)OC1=CC=CC=C1C(=O)[O-].[Na+]",
"input_type": "smiles",
"expected_form": "salt"
}
]
}
python scripts/resolve_identities.py \
--request requests.json \
--include-related \
--output identity-result.json
- 校验输出:
python scripts/validate_output.py identity-result.json
- 只有
standardization_handoff.status=ready时,才把其中唯一结构交给standardize-chemical-structures。其他状态先向用户展示候选和确认问题。
来源选择
OPSIN:系统名称解析;WARNING必须人工复核。PubChem:名称、结构、InChIKey 和 CID 记录。ChEMBL:精确 preferred name/同义词、ChEMBL ID 和完整 InChIKey。UniChem:完整结构跨库映射;--include-related才执行 connectivity 查询。- 敏感名称不得发送到外部服务;使用
--sources ''只做本地结构检查。
任何 500、503、超时、限流或坏 JSON 都是 source_error,不得写成 not_found。
强制规则
- 原始
query、来源记录 ID、URL、响应哈希和错误必须保留。 - 普通名称至少需要两个独立证据家族支持同一完整 InChIKey,才可标记记录层
exact。 exact只表示当前数字记录结构一致;sample_identity_status自动流程始终为not_assessed。- 多候选不得按来源数、得分、热度、首选名称或字符串顺序自动选一个。
- 同一 parent 只能标记
related_forms,不能标记相同物理样品。 - 纯数字在
auto模式下不得直接猜成 PubChem CID。 - CAS RN 只验证格式和校验位;不得声称已由 CAS 官方确认。
- 无法解析的结构必须
rejected,不得生成伪结构。 ambiguous、related_forms和conflict必须阻止自动 handoff。- 不输出 API Key、Authorization、Cookie、Token。
- 不判断活性、药效、毒性、可合成性、实验安全或结构确证。
退出码
0:流程完成且没有rejected请求;2:已写出完整结果,但至少一条请求rejected;3:依赖、请求文件或命令行输入加载失败。
退出码不是身份或科学结论;始终检查五类状态、候选证据和人工确认问题。
示例提示词
帮我核实这批化合物名称对应的InChIKey和PubChem CID是否一致。
所属插件
安装该插件会一并获得同领域的 32 个 Skill / MCP。
同插件的其他科研 Skill
- ASE原子模拟环境Builds and analyzes atomic structures with ASE: geometry optimization, NEB transition states, and MD trajectories. Use for setting up or analyzing atomistic simulations.
- 电池材料计算工作流Guides DFT/pymatgen workflows for battery materials: voltage profiles, phase stability, and ion migration barriers. Use for cathode, anode, or electrolyte computation.
- 催化剂设计指导Advises on catalyst composition, structure, and synthesis strategy using a traceable methodology base. Use when designing or optimizing a catalyst for a given reaction.
- 催化文献检索整理Searches arXiv, OpenAlex, and journal sites for catalysis literature and outputs a structured matrix. Use for catalysis literature reviews on a reaction or material system.
- ChEMBL生物活性数据查询Queries the ChEMBL API for bioactivity data: target lookup, IC50/Ki retrieval, and SAR tables. Use to build bioactivity datasets for a protein target.
- 量子化学计算工作流Guides quantum chemistry workflows with ORCA and xTB: geometry optimization, thermochemistry, and transition-state search. Use for first-principles energy calculations.
- 分子描述符与指纹计算Computes versioned 2D descriptors, Morgan/MACCS fingerprints, and dataset quality profiles with fixed RDKit. Use to generate reproducible features or audit data quality.
- 腐蚀电化学分析Guides corrosion analysis: electrode potentials, polarization curves, impedance, and Pourbaix diagrams. Use for electrochemical stability or corrosion-kinetics reasoning.
- 化学反应数据整理Curates structured single-step reactions against an ORD schema and RDKit, preserving originals. Use to clean reaction SMILES or tables and flag duplicates or mass-balance issues.
- RDKit简化分子处理Wraps RDKit with sensible defaults for SMILES parsing, standardization, descriptors, and conformers. Use for standard drug-discovery tasks; use rdkit for advanced control.
- 红外拉曼光谱分析Processes IR and Raman spectra with baseline correction, peak picking, and functional-group assignment. Use to interpret vibrational spectra against reference data.
- 质谱相似性比对Computes spectral similarity scores and identifies unknown compounds from mass-spectral libraries. Use for metabolite identification; use pyopenms for full proteomics pipelines.
- 分子动力学轨迹分析Analyzes MD trajectories from GROMACS, AMBER, LAMMPS, or NAMD with MDAnalysis: RMSD, RMSF, and contact maps. Use when analyzing existing trajectory files.
- 药物化学分子过滤Applies drug-likeness rules and structural alert catalogs (PAINS, NIBR) to compound libraries. Use for triaging compound libraries early in drug discovery.
- 分子数据集构建与清洗Guides molecular ML dataset building: source selection, deduplication, unit harmonization, and leakage-aware splits. Use before training molecular property models.
- 分子特征化方法Guides molecular featurization strategy for ML: parsing, fingerprints, and descriptor selection. Use when designing a featurization pipeline before model training.
- 分子机器学习特征化Converts molecules into ML-ready features using 100+ pretrained and hand-crafted featurizers. Use for QSAR modeling or virtual-screening feature generation at scale.
- 核磁共振谱图分析Processes raw NMR FID data through Fourier transform and phase correction, then picks peaks with nmrglue. Use for processing and interpreting 1D/2D NMR spectra.
- 化学文件格式转换Converts chemical file formats and generates 3D coordinates and conformers with OpenBabel and RDKit. Use when interconverting structure formats or generating 3D structures.
- 粉末XRD物相分析Simulates powder XRD patterns from candidate structures and matches them to an experimental pattern. Use for phase ID; use dedicated software for full Rietveld refinement.
- pymatgen晶体材料分析Manipulates crystal structures and queries the Materials Project API for band gaps and formation energies. Use for computational materials science on crystal structures.
- 蛋白质组质谱分析Processes proteomics and metabolomics MS data via OpenMS bindings: feature detection and peptide ID. Use for LC-MS/MS pipelines; use matchms for simpler spectral comparison.
- PySCF量子化学计算Runs ab initio and DFT calculations with PySCF: HF/DFT energies, optimization, and MP2/CCSD(T). Use for first-principles molecular energy and property calculations.
- RDKit化学信息学Provides fine-grained RDKit control: I/O, descriptors, fingerprints, substructure search, and reactions. Use for advanced workflows; use datamol for a simpler interface.
常见问题
化学物质身份解析能做什么?
Resolves chemical names, SMILES, InChI, or registry IDs into auditable records, preserving ambiguity. Use to confirm a chemical’s identity before standardization。
如何安装化学物质身份解析?
在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「化学物质身份解析」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。
化学物质身份解析需要哪些权限?
该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。
化学物质身份解析经过官方审核吗?
是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。