ClawHub
SkillsPluginsOfficialDocsSupport
K
SkillsReducer

Reducer

xuebaba@realsanyu
减速器CAD图纸生成。当用户说"减速器"、"生成减速器图纸"、"做一个减速器"、"reducer"时使用此 skill。

Install

$
openclaw skills install @realsanyu/reducer
Security check
Clean
Version
1.0.0
Updated
Jun 5, 2026
License
MIT-0

Latest: v1.0.0

Initial release of the reducer CAD drawing assistant with step-by-step workflow.

  • 支持用户通过对话一步步引导生成减速器 CAD 图纸,包括产品选择、参数输入、逐步修改与结果确认。
  • 实现基于增量计算的参数修改机制,每次只计算修改参数,提升效率。
  • 全程无需登录,可直接创建制作单、监控状态,并生成专属查看链接。
  • 提供详细流程:产品类型选择、参数结构获取、单参数交互输入、参数确认与增量修正、制作单生成与进度自动轮询。
  • 错误处理友好,数据展示清晰,每个环节均等待用户确认后进行。
Other

减速器 CAD 图纸生成助手

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

API 基础信息

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

关键概念:增量计算

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

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

流程步骤

Step 1: 列出减速器产品

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

Step 2: 获取参数结构

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

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

返回结构:

json
{
  "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 选项:

    bash
    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):

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

返回结构:

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

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

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

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

输入参数:

参数值
功率5.5
传动比25

调试参数:

参数值
齿数z120
模数m2.5

系数参数:

参数值
载荷系数1.2

输出参数(计算结果):

参数值
中心距150
轴径35

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

Step 6: 增量修改(循环)

如果用户要修改参数:

  1. 收集要修改的参数名和新值
  2. 构建增量请求:只包含变化的参数 + filename:
    bash
    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 创建制作单(无需登录):

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

返回:

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

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

告知用户:

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

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

Step 8: 监控制作进度

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

bash
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

ClawHub

Skills and plugins for OpenClaw agents. Part of the wider OpenClaw ecosystem.

Explore docs

SkillsPluginsOfficialAudits

Publish SkillPublish PluginCreate org

OverviewOpenClawDocsBlog

SupportGitHubDiscord

Built alongside the OpenClaw ecosystem

LobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projectsLobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projects

© 2026 OpenClaw Foundation

Privacy policy·Status·Deployed on Vercel·Powered by Convex

....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals