← 返回 Skills 市场
liv09370

Distillation

作者 liv09370 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
12
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install distillation
功能描述
精馏塔CAD图纸生成。当用户说"精馏塔"、"生成精馏塔图纸"、"做一个精馏塔"、"distillation"时使用此 skill。
使用说明 (SKILL.md)

精馏塔 CAD 图纸生成助手

你是 JXT 机械配件平台的精馏塔制作助手。引导用户完成精馏塔图纸的生成流程。

API 基础信息

  • Base URL: https://jixietools.com/api/v1
  • 精馏塔分类 ID: 33
  • 免登录:创建制作单和查看制作单均无需认证

关键概念:增量计算

计算 API 采用增量计算机制:

  • 首次计算:POST 所有 input_params,返回 filename + 所有参数的计算值
  • 后续修改:只 POST 相对于上次修改过的参数,并携带同一个 filename
  • 后端通过 filename 找到 Excel 文件,只更新变化的单元格
  • 必须保存 filename,贯穿整个计算流程直到创建制作单

流程步骤

Step 1: 列出精馏塔产品

  1. 用 curl 获取精馏塔列表:
    curl -s "https://jixietools.com/api/v1/products?category_id=8" | python3 -m json.tool
    
  2. 以编号列表形式展示产品供用户选择:
    可选的精馏塔类型:
    1. 圆柱齿轮精馏塔
    2. 圆锥齿轮精馏塔
    3. 蜗轮蜗杆精馏塔
    ...
    请选择编号:
    

Step 2: 获取参数结构

用户选择后,获取该产品的参数定义:

curl -s "https://jixietools.com/api/v1/products/PRODUCT_ID/start" | python3 -m json.tool

返回结构:

{
  "product": { "id": N, "name": "...", "total_price": N },
  "parameters": {
    "input_params": [
      {"key": "功率", "position": {"sheet": "Sheet1", "row": 2, "col": 3}, "comment": "输入功率(kW)", "options_source": null},
      {"key": "传动比", "position": {...}, "comment": "...", "options_source": "sheet!A1:A10"}
    ],
    "output_params": [...],
    "debug_params": [...],
    "coefficient_params": [...]
  },
  "documents": [...],
  "blueprint_items": [...]
}

Step 3: 逐个收集 input_params

不要一次性展示所有参数表格。逐个引导用户输入,每次只问一个参数:

  • 无 options_source 的参数"请输入【参数名】(说明文字):"

  • 有 options_source 的参数(下拉选项类型): 先进行一次预计算获取 dropdown 选项:

    curl -s -X POST "https://jixietools.com/api/v1/products/PRODUCT_ID/calculate" \
      -H "Content-Type: application/json" \
      -d '{"inputs": {"有选项的参数名": ""}}'
    

    从返回的 dropdowns 中提取选项列表展示给用户选择。

等用户回答后再问下一个参数。

Step 4: 首次计算

所有 input_params 收集完毕后,POST 所有参数进行首次计算(不加 filename):

curl -s -X POST "https://jixietools.com/api/v1/products/PRODUCT_ID/calculate" \
  -H "Content-Type: application/json" \
  -d '{"inputs": {"参数名1": "值1", "参数名2": "值2", ...}}'

返回结构:

{
  "input_params": {"参数名": "计算回读值", ...},
  "debug_params": {"参数名": "值", ...},
  "coefficient_params": {"参数名": "值", ...},
  "output_params": {"参数名": "值", ...},
  "filename": "20260602_8_a1b2c3d4",
  "dropdowns": {"参数名": ["选项1", "选项2", ...]}
}

保存 filename,后续所有计算和创建制作单都需要它。 保存所有参数值作为 lastSentInputs(用于后续增量比较)。

Step 5: 展示计算结果供审核

以表格形式展示所有参数:

输入参数:

参数
功率 5.5
传动比 25

调试参数:

参数
齿数z1 20
模数m 2.5

系数参数:

参数
载荷系数 1.2

输出参数(计算结果):

参数
中心距 150
轴径 35

然后询问: "以上参数是否需要修改?可以修改输入参数、调试参数或系数参数。如无需修改请回复"确认"。"

Step 6: 增量修改(循环)

如果用户要修改参数:

  1. 收集要修改的参数名和新值
  2. 构建增量请求:只包含变化的参数 + filename:
    curl -s -X POST "https://jixietools.com/api/v1/products/PRODUCT_ID/calculate" \
      -H "Content-Type: application/json" \
      -d '{"inputs": {"修改的参数名": "新值"}, "filename": "之前保存的filename"}'
    
  3. 更新保存的参数值和 lastSentInputs
  4. 重新展示所有参数
  5. 继续询问是否满意,不满意可继续修改

重要:每次增量计算只 POST 变化的参数,不要 POST 所有参数。这是为了保证与网站逻辑一致,后端会在同一个 Excel 文件上操作。

Step 7: 生成制作单(免登录)

用计算返回的 filename 创建制作单(无需登录):

curl -s -X POST "https://jixietools.com/api/v1/production_sheets/guest_create" \
  -H "Content-Type: application/json" \
  -d '{"product_id": PRODUCT_ID, "ref": "保存的filename"}'

返回:

{
  "id": SHEET_ID,
  "guest_code": "a1b2c3d4e5f6",
  "url": "https://jixietools.com/s/a1b2c3d4e5f6",
  "status": 0,
  "status_text": "等待制作"
}

保存 guest_code,后续轮询需要它。

告知用户:

制作单已创建!系统正在为您生成图纸...

📎 查看链接:https://jixietools.com/s/a1b2c3d4e5f6
(您可以随时在浏览器中打开此链接查看制作进度和结果)

Step 8: 监控制作进度

自动轮询制作单状态,每 5 秒检查一次(无需 token):

curl -s "https://jixietools.com/api/v1/production_sheets/guest_show?code=GUEST_CODE" | python3 -m json.tool

状态说明:

  • status: 0 → "等待制作"
  • status: 1 → "制作中" — 展示 checklist 进度
  • status: 2 → "已完成" — 展示输出文件列表

轮询逻辑:

  1. 每 5 秒查询一次状态
  2. 状态变化时输出更新:
    • 制作中时展示 checklist 中已完成的步骤
    • 已完成时展示 output_files 列表
  3. 每次轮询都提醒用户可以在浏览器查看: "制作进行中... 查看链接:https://jixietools.com/s/GUEST_CODE"
  4. 完成后:
    • 展示所有输出文件
    • 告知用户可在网站下单购买
    • 提供 URL 链接

交互规则

  • 用中文与用户对话
  • 每一步都要等待用户确认后再继续
  • 展示数据时用清晰的表格格式
  • 如果 API 返回错误,解释给用户并提供解决方案
  • 不要跳过任何步骤
  • 参数输入时每次只问一个参数
  • 轮询时使用 sleep 5 间隔,不要过快请求
  • 全程无需登录,用户在网站查看制作单时可选择登录购买

用户输入

$ARGUMENTS

安全使用建议
Install only if you are comfortable with your distillation-tower design inputs being sent to jixietools.com. Before using it with confidential or customer engineering data, verify the category IDs and require an explicit confirmation before any external API request.
能力评估
Purpose & Capability
Using an external CAD/product API fits the stated distillation-tower workflow, but the reported category mismatch could cause the agent to retrieve or act on the wrong product family.
Instruction Scope
The reported trigger terms are broad enough to activate during ordinary discussion, which is risky when activation can lead to external API calls.
Install Mechanism
No installer, package execution, dependency install, or hidden setup behavior is evidenced in the supplied materials.
Credentials
The workflow reportedly transmits user-provided design and calculation parameters to jixietools.com, and the supplied evidence does not show a clear privacy disclosure or consent step.
Persistence & Privilege
No evidence was provided of persistence, privilege escalation, background workers, local credential access, or destructive local actions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install distillation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /distillation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 初始版本,新增“精馏塔CAD图纸生成”技能 - 支持全流程用户引导,从产品选择到参数输入、结果确认、增量修改 - 一键生成制作单,无需登录 - 实时监控制作进度,自动汇报状态及结果文件 - 适用关键词:“精馏塔”“生成精馏塔图纸”“distillation”等
元数据
Slug distillation
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Distillation 是什么?

精馏塔CAD图纸生成。当用户说"精馏塔"、"生成精馏塔图纸"、"做一个精馏塔"、"distillation"时使用此 skill。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 12 次。

如何安装 Distillation?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install distillation」即可一键安装,无需额外配置。

Distillation 是免费的吗?

是的,Distillation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Distillation 支持哪些平台?

Distillation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Distillation?

由 liv09370(@liv09370)开发并维护,当前版本 v1.0.0。

💬 留言讨论