← 返回 Skills 市场
liv09370

Tank

作者 liv09370 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
25
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install tank
功能描述
储罐CAD图纸生成。当用户说"储罐"、"生成储罐图纸"、"做一个储罐"、"tank"时使用此 skill。
使用说明 (SKILL.md)

储罐 CAD 图纸生成助手

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

领域知识

储罐设计核心是确定直径和长度,需注意装量系数和焊接接头系数的取值。

该分类下常见产品:卧式储罐、立式储罐

输入参数:储罐容积V(m³)、设计温度下的饱和溶液密度ρ1(t/m³)、工作介质、设计温度t(℃)、绝对饱和蒸气压(Mpa)

输出参数:直径D、长度L

调试参数:装量系数φ、L/D(3-6)、焊接接头系数φ、各管口DN规格

系数参数:重力加速度

API 基础信息

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

关键概念:增量计算

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

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

流程步骤

Step 1: 列出产品

用 curl 获取储罐列表:

curl -s "https://jixietools.com/api/v1/products?category_id=9" | python3 -m json.tool

以编号列表展示产品供用户选择。

Step 2: 获取参数结构

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

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

返回包含 input_paramsoutput_paramsdebug_paramscoefficient_params 四类参数。

Step 3: 逐个收集 input_params

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

  • 无 options_source 的参数:直接提示输入数值
  • 有 options_source 的参数:先预计算获取下拉选项:
    curl -s -X POST "https://jixietools.com/api/v1/products/PRODUCT_ID/calculate" \
      -H "Content-Type: application/json" \
      -d '{"inputs": {"参数名": ""}}'
    

Step 4: 首次计算

收集完毕后 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"}}'

保存返回的 filename

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

以表格形式展示所有参数(输入、调试、系数、输出),然后询问是否需要修改。

Step 6: 增量修改(循环)

如需修改,只 POST 变化的参数 + filename:

curl -s -X POST "https://jixietools.com/api/v1/products/PRODUCT_ID/calculate" \
  -H "Content-Type: application/json" \
  -d '{"inputs": {"修改的参数": "新值"}, "filename": "保存的filename"}'

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

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"}'

返回包含 guest_code 和查看 URL,告知用户:

制作单已创建!
📎 查看链接:https://jixietools.com/s/GUEST_CODE

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 → 已完成(展示输出文件列表)

交互规则

  • 用中文与用户对话
  • 每一步等待用户确认后再继续
  • 展示数据用清晰的表格格式
  • 参数输入每次只问一个
  • 轮询间隔 sleep 5
  • 全程无需登录

用户输入

$ARGUMENTS

安全使用建议
Before using it, confirm you are comfortable sending tank design parameters to jixietools.com. Treat the returned guest code and viewing link like a password, because anyone with the link may be able to view the production sheet or status.
能力评估
Purpose & Capability
The API calls, incremental calculation flow, production sheet creation, and status polling all match the stated purpose of generating tank CAD/production documents.
Instruction Scope
The skill requires step-by-step user confirmation, but it does not explicitly warn that guest codes and returned links should be treated as private bearer links.
Install Mechanism
The artifact contains only a SKILL.md file with no executable scripts, dependency installs, hooks, or local setup commands.
Credentials
The skill uses curl against a single documented external API and does not request local file, credential, shell persistence, or broad environment access.
Persistence & Privilege
It instructs the agent to preserve the returned filename and guest code during the workflow and poll every 5 seconds, but shows no background persistence or privilege escalation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tank
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tank 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: 储罐CAD图纸生成 skill 上线 - 支持通过对话引导用户生成储罐(卧式、立式)CAD图纸,无需登录 - 实现逐个参数收集、增量计算、参数修改及流程管理 - 自动保存并传递 filename,在整个流程中保持一致 - 提供免登录制作单生成、进度轮询与查看接口 - 所有操作和交互均为中文,并按表格格式清晰展示参数
元数据
Slug tank
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Tank 是什么?

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

如何安装 Tank?

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

Tank 是免费的吗?

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

Tank 支持哪些平台?

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

谁开发了 Tank?

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

💬 留言讨论