← Back to Skills Marketplace
liv09370

Suspension

by liv09370 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
26
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install suspension
Description
悬架CAD图纸生成。当用户说"悬架"、"生成悬架图纸"、"做一个悬架"、"suspension"时使用此 skill。
README (SKILL.md)

悬架 CAD 图纸生成助手

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

领域知识

悬架设计步骤:确定参数→弹簧设计→减振器选型→校核。钢板悬架和独立悬架计算方法不同。

该分类下常见产品:双横臂悬架、钢板悬架、麦弗逊悬架

输入参数:车身质量kg、前/后轮距mm、满载前/后桥载荷kg、级别、轮胎、前后悬架类型

输出参数:刚度比值、前/后工作行程(>160)、高径比(\x3C4)、卸荷速度、活塞杆校核

调试参数:质量分配系数(0.8-1.2)、前后悬挂满载偏频、悬架动挠度、弹簧旋绕比、有效圈数

系数参数:相对阻尼系数ψ(0.25-0.35)

API 基础信息

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

关键概念:增量计算

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

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

流程步骤

Step 1: 列出产品

用 curl 获取悬架列表:

curl -s "https://jixietools.com/api/v1/products?category_id=26" | 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 installing, understand that suspension design parameters will be sent to jixietools.com and a guest production sheet may be created there. Avoid entering proprietary or customer-sensitive engineering data unless you trust that service, and confirm intentionally before calculation or production-sheet creation.
Capability Assessment
Purpose & Capability
The API calls, parameter collection, calculation, production-sheet creation, and polling all fit the stated suspension CAD drawing purpose.
Instruction Scope
The trigger phrase 'suspension' is broad, but the workflow instructs the agent to ask one parameter at a time and wait for user confirmation at each step.
Install Mechanism
The artifact contains only a single SKILL.md file, with no executable scripts, package dependencies, installers, or hidden files.
Credentials
It uses curl to send design parameters to https://jixietools.com and create guest production sheets; this is proportionate to the CAD-generation purpose but should be understood by users.
Persistence & Privilege
No local persistence, privilege escalation, credentials, or token use is requested; the only retained state is the remote calculation filename and guest production-sheet code used for the workflow.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install suspension
  3. After installation, invoke the skill by name or use /suspension
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
suspension v1.0.0 — 初始发布 - 发布悬架CAD图纸生成助手,支持根据用户输入的参数自动生成悬架设计图纸。 - 引导用户逐步选择产品型号、输入关键参数,并进行增量计算。 - 支持生成免登录的制作单并实时监控制作进度。 - 全流程采用中文交互及表格展示,操作简明直观。 - 支持悬架各类结构参数的采集、复核和自动反馈输出。
Metadata
Slug suspension
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Suspension?

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

How do I install Suspension?

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

Is Suspension free?

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

Which platforms does Suspension support?

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

Who created Suspension?

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

💬 Comments