f
dsh-plugin-doctor
Manifest validhasBundlePatch
@deepwhale-cn/dsh-plugin-doctor
技能型插件 · 无面板:安装后由 DSH 智能体按 skill 说明调用 CLI;无独立面板界面。
安装到 DSH:
dsh plugin --profile web add @deepwhale-cn/dsh-plugin-doctor
插件目录质检:命名规范、清单一致性、README/skill 完整性、规则 JSON 健康——「数量堆质量」的质量闸。
npx @deepwhale-cn/dsh-plugin-doctor --root <插件目录> [--strict]
退出码:error → 1;--strict 时 warn 也 → 1(可挂 CI)。
判据说明(哪些是「错误」,哪些是「提醒」)
- error(会挡住发布):package.json 不合法、版本不是 semver、缺描述、缺 README 或过短、
bin/files声明了但文件不存在、cordis.patch.yml没引用本包、规则 JSON 解析失败。 - warn(只提示,不影响退出码):没有
bin(面板型/纯技能型插件本来就不需要 CLI)、没有skill/<id>.md(技能型才需要;声明了 skillFile 却缺文件才是 error)、README/skill 里还有 TODO、keywords 缺dsh-plugin。
判据默认按「通用插件」来定,不强制某一种形态;如果你有自己的团队规范,用 --strict 把 warn 也当失败。
Comments
Loading…