科研 Skill
化合物库检索与整理
search-and-curate-chemical-libraries
Runs auditable similarity, substructure, and diversity selection over standardized compound libraries. Use to find neighbors or select representative molecules.
SKILL.md
本地结构检索与化合物库治理
能力
使用固定 RDKit 对前三个化学 Skill 的产物执行:
- 化合物库可检索性审查;
- Tanimoto 相似性检索;
- 非递归 SMILES/SMARTS 完整子结构匹配;
- Butina 聚类;
- 固定 seed 的 MaxMin 多样性选择;
- exact structure 和风险记录的只读治理复核队列。
适合以下请求:
- “找出与这个分子结构最相似的 20 个记录”;
- “筛选包含这个 SMARTS 子结构的化合物”;
- “按 Morgan 指纹给这批分子聚类”;
- “从化合物库中选择 100 个结构多样的代表”;
- “检查库里哪些记录重复、不可检索或需要人工复核”。
执行流程
- 确认输入来自
compute-molecular-features;子结构和审查也可读取standardize-chemical-structures。 - 要求用户显式选择
standardized或parent视图,禁止跨视图比较。 - 相似性、聚类和多样性选择要求显式
fingerprint_profile_id;不得自行重算或替换指纹。 - 根据任务创建 request JSON,显式记录阈值、top-k、手性、seed 和是否纳入 review 记录。
- 运行:
python scripts/search_and_curate.py \
--request request.json \
--output result.json
- 校验:
python scripts/validate_output.py result.json
- 向用户报告 indexed/excluded/error 计数、查询结果、参数、复核队列和未验证边界。
五个 operation
audit_library:审查 profile、结构视图、上游状态、重复结构和排除记录;similarity_search:固定 Tanimoto,top_k、threshold至少提供一个;substructure_search:query_type、query、use_chirality和max_results必填;cluster_library:固定 Butina,要求显式similarity_threshold;select_diverse_subset:固定 MaxMin,要求显式pick_size和非负seed。
强制边界
- 首版唯一引擎为
rdkit==2025.9.2; - 相似性、子结构、审查和 MaxMin 最多 5000 个可检索记录,Butina 最多 2000 个;
- 无全局默认相似度或聚类阈值;
- review 记录默认不索引;显式纳入时风险继续传播;
- rejected、not_run 和 error 记录永不索引,但必须保留在输出 manifest;
- fingerprint/pattern 只可预过滤,子结构最终命中必须经过完整子图匹配;
- 首版拒绝所有 recursive SMARTS;
- 不自动删除、合并、覆盖或写回用户化合物库;
- 不预测或声称活性、功能、机制、药效、毒性、安全、可合成性或实验优先级;
- parent 相同不表示相同盐型、制剂、批次或物理样品;
- 不访问网络,不调用远程化学数据库;
- 不训练模型,不执行对接、逆合成、生成、真实实验或知识图谱;
- 不修改平台、MCP、数据库、前端或 Agent runtime。
与其他 Skill 的边界
resolve-chemical-identities
名称/标识符 → 候选化学记录与来源状态
standardize-chemical-structures
已知结构 → standardized/parent、结构 QC 和重复组
compute-molecular-features
明确结构视图 → 二维描述符和固定指纹
search-and-curate-chemical-libraries
固定结构/指纹 → 只读检索、分组、选择和治理复核队列
本 Skill 不解析名称或数据库 ID,不标准化结构,不重新计算第三 Skill 指纹,也不执行性质预测和模型训练。
输入输出合同、算法参数、状态、Gold、性能边界和科学解释规则见
references/输入输出与科学边界.md。
示例提示词
帮我在这个化合物库里查找结构邻居并做多样性代表分子选择。
所属插件
安装该插件会一并获得同领域的 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.
常见问题
化合物库检索与整理能做什么?
Runs auditable similarity, substructure, and diversity selection over standardized compound libraries. Use to find neighbors or select representative molecules。
如何安装化合物库检索与整理?
在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「化合物库检索与整理」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。
化合物库检索与整理需要哪些权限?
该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。
化合物库检索与整理经过官方审核吗?
是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。