← Back to Skills Marketplace
liv09370

Tank

by liv09370 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
25
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install tank
Description
储罐CAD图纸生成。当用户说"储罐"、"生成储罐图纸"、"做一个储罐"、"tank"时使用此 skill。
README (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

Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install tank
  3. After installation, invoke the skill by name or use /tank
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: 储罐CAD图纸生成 skill 上线 - 支持通过对话引导用户生成储罐(卧式、立式)CAD图纸,无需登录 - 实现逐个参数收集、增量计算、参数修改及流程管理 - 自动保存并传递 filename,在整个流程中保持一致 - 提供免登录制作单生成、进度轮询与查看接口 - 所有操作和交互均为中文,并按表格格式清晰展示参数
Metadata
Slug tank
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Tank?

储罐CAD图纸生成。当用户说"储罐"、"生成储罐图纸"、"做一个储罐"、"tank"时使用此 skill。 It is an AI Agent Skill for Claude Code / OpenClaw, with 25 downloads so far.

How do I install Tank?

Run "/install tank" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Tank free?

Yes, Tank is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Tank support?

Tank is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Tank?

It is built and maintained by liv09370 (@liv09370); the current version is v1.0.0.

💬 Comments