DeepSeek Harness Plugin

helllo-shijie/motor-hospital-plugins#motor-fault-diagnosis

Stars ★ 1 Category Tools & Capabilities Added 2026-09-08

Combines fault knowledge-base symptom-to-cause rules with similar past cases to rank candidate motor diagnoses with evidence terms and suggested extra tests.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:helllo-shijie/motor-hospital-plugins#path:/plugins/motor-fault-diagnosis

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

Electric-motor fault diagnosis (suite stage P2): combines fault knowledge-base symptom-to-cause rules with similar past cases to rank candidate diagnoses with evidence terms and suggested extra tests.

插件定位

读取工人录入的故障分析与检测数据,结合故障知识库(fault_kb)症状-原因规则与相似案例,输出主诊断/候选清单/相关度/证据词/建议补测项,并提示是否需补充信息。

能力来源

  • 引擎模块: engine/diagnosis.js(本插件是共享 Node 引擎的 DSH 入口包装;引擎与库随仓库 motor-hospital-plugins 一并发布)
  • 数据库: data/motor_hospital.db —— SQLite,node:sqlite 原生读写,零第三方依赖
  • 数据字典: 故障知识 fault_kb、历史案例 repair_cases、工单 work_orders 等
  • 运行环境: Node.js ≥ 22.5(Windows / macOS / Linux)

命令示例(引擎直用,无需 DSH)

cd motor-hospital-plugins
node engine/cli.js diagnose --work-order WO20260910001

安装到 DSH

  • 插件市场:仓库收录进 awesome-dsh-plugin 目录后,在 DSH 设置→插件市场 搜索 motor-fault-diagnosis(或 motor-)即可一键安装;dsh-market 会自动解析到本仓库 plugins/motor-fault-diagnosis/ 子包。
  • 安装即热挂载;若提示有 agent 正在运行,请在空闲会话安装或重启一次 DSH。详细说明见仓库 docs/04-上架与安装指南.md。

自测

cd motor-hospital-plugins
node plugins/motor-fault-diagnosis/test.js     # 期望输出 [PASS]

版本: 1.0.0 | 授权: MIT | 作者: 电机医院(河南盛科机联科技)

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.