Chemdb Search logo

Chemdb Search

Organization
cas-bigdatalab
chemdb_search

用于检索化学物质详细信息的技能。当用户希望检索化学物质详细信息、查看化学物质详细信息、检索化学物质基础数据库等情况时触发。该技能通过输入化学分子式(必要参数)以及分页(可选参数)、分页大小(可选参数)调用外部化学物质基础数据库搜索服务,并按字段含义格式化展示查询结果以及SVG化学分子式结构。

Overview

Publishercas-bigdatalab
Repositorypiflow
Skill namechemdb_search
Stars
541
Forks
172
Bundled files
4
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cas-bigdatalab on GitHub. Read the source before you install it.

Installation

Install the Chemdb Search AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cas-bigdatalab/piflow/tree/master/workspace/skills/chemdb_search
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cas-bigdatalab/piflow.git /tmp/piflow
mkdir -p .claude/skills
cp -r /tmp/piflow/workspace/skills/chemdb_search .claude/skills/chemdb_search
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Chemdb Search in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Chemdb Search on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Chemdb Search is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

chemdb_search 技能

功能说明

该技能用于调用化学物质基础数据库搜索服务,根据用户输入的化学分子式检索并返回对应的化学物质详细信息,展示时按json字段含义格式化展示并将image字段的 SVG 数据可直接渲染为分子结构示意图,便于直观查看物质结构。

触发条件

当用户希望:

  • 检索化学物质详细信息
  • 查看化学物质详细信息
  • 检索化学物质基础数据库
  • 查询特定化学分子式的物质信息
  • 获取化学物质的详细属性

调用服务说明

化学物质基础数据库搜索服务

该接口来自 化学物质基础数据库(chemdb.csdb.cn),核心功能是根据输入的化学分子式(如 C6H6、C12H12),检索并返回对应的化学物质详细信息,支持分页查询。

接口核心信息

1. 基础配置
  • 服务名称:化学物质分子式检索服务
  • 接口地址:http://www.chemdb.csdb.cn/chemdb_backend/search/text_search
  • 请求方式:GET
  • 响应状态:成功返回 200,message 为 "success"
2. 请求参数(URL 参数)
参数名说明示例值必填
text检索关键词(需为化学分子式)C6H6是
page分页页码(从 1 开始)1否
page_size每页返回的化学物质数量10否
3. 响应数据结构(核心字段说明)

响应为 JSON 格式,核心包含data(化学物质列表)和分页相关字段:

一级字段说明
data化学物质详细信息列表(数组)
page_all总页数
total匹配的化学物质总数量
code响应状态码(200 = 成功)
message响应信息(成功返回 "success")
data数组中单个化学物质的关键字段
字段名说明示例值
Formula化学分子式(与检索关键词一致)C6H6
MolWeight分子量78.11184
Alias_en英文别名1,4-Hexadiyne
CASCAS 编号(化学物质唯一标识)10420-91-4
SMILES简化分子线性输入规范(分子结构编码)C#CCC#CC
IUPAC_NameIUPAC 标准命名hexa-1,4-diyne
InChI国际化学标识符(分子结构唯一标识)InChI=1S/C6H6/c1-3-5-6-4-2/h1H,5H2,2H3
InChiKeyInChI 的哈希值(便于检索)NJXXWBJAOFKNIR-UHFFFAOYSA-N
image分子结构示意图(SVG 格式)包含 SVG 标签的矢量图数据

使用方法

  1. 调用 scripts/chemdb_search.py 脚本
  2. 提供必要参数 text(化学分子式)
  3. 可选择提供参数 page(分页页码)和 page_size(每页大小)
  4. 脚本将返回接口的完整 JSON 响应

输出格式

按查询结果json的每一条字段的含义属性格式化展示查询结果,并将image字段的 SVG 数据可直接渲染为分子结构示意图,便于直观查看物质结构。

补充说明

  1. 检索范围:仅支持化学分子式检索(如 C6H6、C12H12),输入其他类型关键词可能无匹配结果;
  2. 数据完整性:返回的化学物质信息涵盖分子结构、命名、标识、分子量等核心属性,满足化学研究、物质识别等场景需求;
  3. 分页机制:通过page和page_size控制返回数量,示例中检索 C6H6 共匹配 1244 条结果,分 125 页展示;
  4. 分子结构可视化:image字段的 SVG 数据可直接渲染为分子结构示意图,便于直观查看物质结构。

示例

示例 1:检索 C6H6 的化学物质信息

bash
python scripts/chemdb_search.py --text C6H6

示例 2:检索 C12H12 的化学物质信息,指定分页参数

bash
python scripts/chemdb_search.py --text C12H12 --page 2 --page_size 20

错误处理

  • 如果未提供必要参数 text,脚本将提示错误并退出
  • 如果接口调用失败,脚本将返回错误信息
  • 如果网络连接失败,脚本将提示网络错误

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Chemdb Search AI skill do?

用于检索化学物质详细信息的技能。当用户希望检索化学物质详细信息、查看化学物质详细信息、检索化学物质基础数据库等情况时触发。该技能通过输入化学分子式(必要参数)以及分页(可选参数)、分页大小(可选参数)调用外部化学物质基础数据库搜索服务,并按字段含义格式化展示查询结果以及SVG化学分子式结构。

Why use Chemdb Search on TypingMind?

Because you install it once and use it with any model. Chemdb Search is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Chemdb Search in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cas-bigdatalab/piflow/tree/master/workspace/skills/chemdb_search. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Chemdb Search?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Chemdb Search?

As many as you like. As long as a model supports skills, you can use Chemdb Search with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Chemdb Search AI skill free?

It is published on GitHub by cas-bigdatalab. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇