Skip to content
cccskills
FreePublished on GitHub

resolve-chemical-identities

保守解析化学名称、SMILES、InChI、InChIKey、PubChem CID、ChEMBL ID 或 CAS RN,保留多源证据、相关形式、歧义和冲突。用于确认化学记录是谁、对齐开放数据库,或在结构标准化前选择候选。

The English summary is being prepared. Showing the original description.

See how to install

Files included (20)

  • SKILL.md3.9 KB
  • agents/openai.yaml325 B
  • references/标准化交接合同.md3.7 KB
  • references/身份判定契约与来源边界.md14.4 KB
  • scripts/identity_alignment.py8.9 KB
  • scripts/identity_candidates.py9.2 KB
  • scripts/identity_handoff_contract.py7.1 KB
  • scripts/identity_output_contract.py5.9 KB
  • scripts/identity_pipeline.py11.6 KB
  • scripts/identity_request_contract.py11.3 KB
  • scripts/identity_resolution_contract.py7.8 KB
  • scripts/identity_runtime.py4.6 KB
  • scripts/identity_source_pipeline.py4.0 KB
  • scripts/identity_sources_primary.py6.6 KB
  • scripts/identity_sources_registry.py10.9 KB
  • scripts/identity_standardization.py4.4 KB
  • scripts/identity_transport.py11.3 KB
  • scripts/requirements.txt49 B
  • scripts/resolve_identities.py10.8 KB
  • scripts/validate_output.py1.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

化学身份解析与来源对齐

把名称、结构或编号转换为可审计的化学候选记录。默认失败关闭:不投票选优、不让模型猜结构、不把数据库记录当作用户实物样品。

执行流程

  1. 接收一个 query;只有纯数字等无法安全判断的输入才追问 input_type。
  2. 阅读身份判定契约与来源边界,确认 exact、related_forms、ambiguous、conflict 和样品边界。
  3. 阅读标准化交接合同。只有 standardization_handoff.status=ready 时,才允许 Adapter 将其中唯一 record 转成 standardize-chemical-structures 的通用输入。
  4. 在隔离环境安装固定依赖:
python -m pip install -r scripts/requirements.txt
  1. 运行解析器。单条名称示例:
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
  1. 校验输出:
python scripts/validate_output.py identity-result.json
  1. 只有 standardization_handoff.status=ready 时,才把其中唯一 record 交给 standardize-chemical-structures。禁止读取 candidates 作为交接 兜底;其他状态先向用户展示候选和确认问题。

来源选择

  • 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:依赖、请求文件或命令行输入加载失败。

退出码不是身份或科学结论;始终检查五类状态、候选证据和人工确认问题。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

中文购车决策助手初始化与验收 Skill。用于安装、配置、启动、恢复或诊断仓库内完整前后端,引导用户选择自己的 AI Native 应用开发底座 Workspace,私密配置 Agent Plan Key,真实调用专业数据集核验 1–3 款候选车型、配置与城市车系月度数据,并完成应用开发底座和浏览器验收。用户提出“初始化购车决策助手”“安装选车网站”“配置汽车专业数据”“启动购车助手”或排查该应用时使用。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

理解化学科研自然语言需求,生成带来源绑定的 ResearchIntent,并通过本地确定性校验路由到七个化学 Skill、受控 Skill 链或 Workflow A/B。用于复杂、多步、模糊、需要自动编排,或可能联网、产生费用和发送数据的化学身份、结构、特征、分子库、反应和已有路线任务;毒性预测、路线生成、实验安全和放大审批不支持。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

对已标准化化合物确定性计算受控二维描述符、Morgan/RDKit/MACCS 指纹和数据集质量画像。用于准备分子特征、生成指纹,或检查特征缺失、常数、异常和分布。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

整理和审查结构化化学反应,保留原始记录并检查参与物、角色、产率、重复、守恒和 ORD 合同。用于清洗 reaction SMILES、ORD 或反应表格。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

中文个人投资助手初始化 Skill。引导用户确认真实股票、市场、关注偏好和盘后监控安排,检查 Agent Plan Harness,安装并启动仓库内完整前后端,导入个性化配置,真实调用 DataPro、豆包搜索和 Agent Plan 模型生成首批个股简评与盘后风险摘要,并完成可用性验收。用户提出“帮我初始化个人投资助手”“安装投资助手”“配置我的关注股票”“让我打开网站就有内容”或需要恢复、诊断该应用时使用。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

评审已有合成路线的拓扑、逐步反应先例、库存声明和证据缺口。用于比较 AiZynthFinder、PaRoutes 或结构化多步路线并生成专家复核队列。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

See all skills by volcengine

Report a problem with this skill