omdsh-dev/dsh-plugin-check
DSH 插件健康检查工具:扫描插件仓库的清单协议 / patch 格式 / 构建陷阱 / hub 收录状态,零依赖只读,注册 plugin_check 工具
Project Overview项目介绍
dsh-plugin-check is a native DSH plugin that provides health checking functionality for other DSH plugins. It scans local DSH plugin repositories to diagnose issues related to bundle manifests, patch formatting, common build traps, and DSH hub inclusion status, then outputs a structured compliance report with suggested fixes. The tool operates in read-only mode, so it never modifies or builds the repository being checked, and only relies on Node.js built-in modules to function. To install it via the recommended Profile Bundle method, you can run dsh plugin --profile <profile-name> add github:omdsh-dev/dsh-plugin-check in your terminal.
The tool offers three core actions: check a single plugin repository, scan all dsh-prefixed plugin repositories under a parent directory, and output a full list of checks with their pass/fail criteria. It includes 33 total checks split into five categories, and automatically adjusts which checks to run based on the detected type of the plugin being scanned. It is intended for use by DSH plugin developers, can be integrated into continuous integration pipelines, or called directly by the DSH model to catch compliance issues before plugin submission or public release.
dsh-plugin-check is released under the open-source MIT license, and has no external production dependencies beyond the core built-in Node.js modules. It is officially verified to work with DSH version 0.1.5-rc.1 and newer, and the repository includes 38 test cases to validate that checks are accurate and avoid unnecessary false positives. After successful installation, the plugin_check tool is registered with the row ID tool-plugin-check, and all results are output as standardized JSON for easy parsing by models or automated workflows.
这是一款专为 DSH 生态开发的原生插件健康检查工具,用于扫描 DSH 插件仓库,诊断清单协议、patch 格式、构建陷阱、 hub 收录状态等问题,输出合规报告与修复建议。工具全程只读,不会修改或构建被检查的仓库,仅依赖 Node.js 内置模块完成文件读取和扫描,目标是将已知的插件开发踩坑点转化为可自动执行的检查门禁。
工具支持三类操作:检查单个插件仓库、批量扫描父目录下所有插件仓库、输出全部检测项清单与判定标准。总共覆盖 33 项检测,分类为清单协议、patch 格式、构建陷阱、生态合规、hub 收录五类,会根据插件形态自动匹配适用的检测集。适合插件开发者、CI 流程和 DSH 模型用来提前拦截合规性问题。
本工具遵循 MIT 许可,零业务依赖,仅使用 Node.js 内置 fs/path/child_process 模块。可以通过 DSH 官方的 Profile Bundle 方式一键安装,也支持本地构建 tarball 安装,兼容 DSH 0.1.5-rc.1 及以上版本。安装后会注册 plugin_check 工具,输出标准化 JSON 格式结果。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-check(omdsh-dev/dsh-plugin-check)
仓库:https://github.com/omdsh-dev/dsh-plugin-check
本站详情页:https://www.yhbd.top/plugins/omdsh-dev-dsh-plugin-check/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 25 · 最近提交 2026-09-10 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 25 stars - an early-stage project星标 25,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:omdsh-dev/dsh-plugin-check
把 omdsh-dev/dsh-plugin-check 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-plugin-check
DSH 插件健康检查工具 —— 扫描插件仓库,诊断清单协议 / patch 格式 / 构建陷阱 / hub 收录状态,输出合规报告与修复建议。只读,不修改、不构建被检查仓库。
动机
组织内插件仓库持续增长,作者踩过的坑(cordis 双副本、tsconfig 三件套、patch name 不一致、产物 .ts 残留——运行时必崩)本可以自动化拦截。本工具把全部实测踩坑变成可自动检查的门禁:模型或 CI 直接对仓库目录跑一次 plugin_check,拿合规报告与修复建议。
安全模型
- 只读:仅
readdir/stat/readFile,绝不修改或构建被检查仓库 - 零业务依赖:仅 node 内置模块(fs/path/child_process)
- hub 检查离线优先:先读本地 hub catalog(
DSH_HUB_SOURCE或 cwd/hub/ 下),再通过gh读取公开omdsh-dev/dsh-hub-workshop/catalog.json;兼容dsh-hub-index/v0.4与旧repos[].name;全部失败静默降级skipped(报告如实标注,不算警告) - 不执行 tsc:构建陷阱全部静态文本扫描(快、无副作用)
工具声明
注册 plugin_check 工具(@omdsh-dev/dsh-plugin-check,row id tool-plugin-check),统一输出 JSON 文本。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
action |
string | ✅ | check / scan / schema |
path |
string | 插件仓库目录(check)或父目录(scan);默认当前工作目录 | |
strict |
boolean | strict 模式:warning 升级为 error 影响 verdict,默认 false |
Actions
| action | 功能 |
|---|---|
check |
检查单个插件仓库目录 → 合规报告(verdict/errors/warnings/suggestions) |
scan |
扫描父目录下所有 dsh-* 插件仓库(有 package.json 者)→ 汇总报告 |
schema |
输出全部检测项清单与判定标准(按形态适用的检测项矩阵,供模型/人核对) |
形态识别与检测项(按形态适用,33 项)
| 类别 | error | warning |
|---|---|---|
| 清单协议 | no-manifest / invalid-name-format / missing-main-or-types / no-patch | incomplete-files / missing-peer / no-bundle-decl |
| patch 格式 | malformed-patch / patch-name-mismatch / duplicate-row-id | unexpected-fields |
| 构建陷阱 | no-source-entry / no-tsconfig / missing-ts-ext-imports / lib-layout-mismatch / stale-ts-imports | missing-rewrite-imports / types-path-mismatch / implicit-node-types / no-build-script |
| 生态合规(Profile Bundle) | core-row-id | missing-profile-install-example / manual-install-only / core-modification-required |
| hub 收录 | — | not-in-hub(hub-skipped 为 info) |
生态合规四项(immediate-adjustments-bundle-profile-plan §4.5):
core-row-id:patch 条目使用官方核心 row(tools/session/llm/web/permission);missing-profile-install-example:README 缺dsh plugin --profile ... add示例;manual-install-only:无法通过标准 Profile Bundle 安装(无 patch 或 README 无示例);core-modification-required:默认安装流程要求修改 DSH 核心(git apply / cp 进 monorepo;明确标注"手动安装与旧版本兼容"的段落不计入)。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
jingyunstudio/jingyun-dsh
Unclecheng-li/DeepSec
Awesome-AI-Pedia/Awesome-AI-Pedia
imsai-sh/awesome-deepseek-harness-plugins
yjh051108/dsh-super-injector