helllo-shijie/motor-hospital-plugins--plugins-motor-case-kb ↗★ 0
motor-case-kb
电机历史案例知识库插件:读取维修案例数据库,支持按故障、功率、品牌检索相似案例及案例沉淀。
AI 分析
核心用途是检索和管理电机维修历史案例,为诊断和报价提供数据支持。适合电机维修行业的诊断人员,需配合 `motor-hospital-plugins` 引擎使用。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:helllo-shijie/motor-hospital-plugins#6b13e4bb39d30f795b9af8402034f0c0a88f7ab9&path:plugins/motor-case-kb说明文档
阅读完整 README ↗motor-case-kb · 电机历史案例知识库
Electric-motor repair case knowledge base (suite stage P1): searches past repair cases by fault description, motor rating and brand, and saves new diagnoses back for future retrieval.
插件定位
读取维修案例数据库(repair_cases/work_orders),按故障描述/功率/品牌检索相似历史案例,支持案例学习沉淀与工单回写,为后续诊断与报价提供依据。
能力来源
- 引擎模块:
engine/caseKb.js(本插件是共享 Node 引擎的 DSH 入口包装;引擎与库随仓库motor-hospital-plugins一并发布) - 数据库:
data/motor_hospital.db—— SQLite,node:sqlite原生读写,零第三方依赖 - 运行环境: Node.js ≥ 22.5(Windows / macOS / Linux)
命令示例(引擎直用,无需 DSH)
cd motor-hospital-plugins
node engine/cli.js case-search --text "轴承异响 温度高" --power 250 # 检索相似历史案例
node engine/cli.js learn --json '' # 案例学习沉淀回写
安装到 DSH
- 插件市场:仓库收录进 awesome-dsh-plugin 目录后,在 DSH 设置→插件市场 搜索
motor-case-kb(或motor-)即可一键安装;dsh-market 会自动解析到本仓库plugins/motor-case-kb/子包。 - 安装即热挂载;若提示有 agent 正在运行,请在空闲会话安装或重启一次 DSH。详细说明见仓库
docs/04-上架与安装指南.md。
自测
cd motor-hospital-plugins
node plugins/motor-case-kb/test.js # 期望输出 [PASS]