the-qian/dsh-commit-review
一个DSH插件:为Web GUI增加/commit与/review两个斜杠命令
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that adds two new slash commands to the DSH web GUI: /commit and /review. The commands are modeled after the same-named built-in commands from Claude Code, turning two common developer workflows into a simple one-command trigger. You can install the plugin directly from this public GitHub repository using the official DSH command line interface with a single installation command, and no additional build steps or extra dependency installations are required after installation to get it working.
The /commit command runs an initial pre-check on your current working directory to confirm you are in a valid Git repository with uncommitted changes available. If the pre-check passes, it guides the DSH agent to analyze the changes, follow Conventional Commits rules to generate a valid commit message, and then actually run the git commit command to save the changes. It has built-in Git safety rules that prevent it from modifying your Git config or force pushing any changes. The /review command lets you run a code review focused on different priorities like security, performance, or code style, and only outputs a graded review report without changing any project files.
This plugin is pure JavaScript that runs entirely on the host side, and has zero external dependencies beyond the two core DSH services it consumes: commands and subprocess. It does not expose any additional services to the DSH framework, so it does not require an isolated realm within DSH. Command registration and unregistration is automatically handled when the plugin is loaded or unloaded via the DSH plugin lifecycle system. It works correctly on both Windows and POSIX-compliant systems, and is released under the permissive MIT open source license, so anyone can use, modify, or redistribute it freely.
这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,为 DSH 的 Web GUI 添加了 /commit 和 /review 两个斜杠命令,对标 Claude Code 内置的同名命令,将分析变更生成符合规范的提交、代码审查这两个常见开发流程,标准化为一条命令即可触发的工作流。它支持通过 DSH CLI 从 GitHub 一键安装,无需额外构建步骤。
/commit 命令会自动预检当前工作区,确认是 Git 仓库且有变更后,引导模型分析差异、遵循 Conventional Commits 规范生成提交信息并实际执行 git 提交,内置 Git 安全协议,不会修改配置或强制提交。/review 命令则支持按不同优先级对未提交变更进行分级审查,仅输出报告不修改代码。适合日常开发中需要规范提交流程、做代码审查的开发人员使用。
本插件是纯 Host 侧 JavaScript 代码,零额外依赖,只依赖 DSH 内置的 commands 和 subprocess 两个服务,不发布其他服务,因此不需要隔离域。插件生命周期随 DSH 插件装卸自动完成命令的注册和反注册,支持 Windows 和 POSIX 系统,遵循 MIT 开源许可协议,可免费使用和修改。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-commit-review(the-qian/dsh-commit-review)
仓库:https://github.com/the-qian/dsh-commit-review
本站详情页:https://www.yhbd.top/plugins/the-qian-dsh-commit-review/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-08-14 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【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 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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 https://github.com/the-qian/dsh-commit-review.git
把 the-qian/dsh-commit-review 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-commit-review
一个 DSH(DeepSeek Harness) 插件:为 Web GUI 增加 /commit 与 /review 两个斜杠命令,对标 Claude Code 内置的同名命令,把「分析变更 → 生成 Conventional Commits 提交」和「代码审查」变成一条命令即可触发的标准工作流。
- ✅ 官方 dsh 插件形态(
dsh.bundle.patch),通过dsh plugin add一键安装 - ✅ 纯 Host 侧、零依赖、无构建步骤(
lib/index.js即最终产物) - ✅ 预检失败(非 git 仓库 / 工作区干净 / git 未安装)直接返回卡片提示,不浪费一轮模型
- ✅ 提交与审查由模型用自身工具执行,天然走 DSH 的沙箱与审批策略
- ✅ 注册随插件行生命周期自动装卸(
ctx.effect包裹)
安装
方式一:从 GitHub 安装(推荐)
dsh plugin --profile web add https://github.com/the-qian/dsh-commit-review.git
本包没有
prepare构建脚本,pnpm 不会要求allowBuilds,安装即可用。
方式二:本地路径安装
git clone https://github.com/the-qian/dsh-commit-review.git
dsh plugin --profile web add D:\path\to\dsh-commit-review
安装完成后重启 profile(bundle 层在 boot 时装配):
dsh web
重启后在输入框输入 /,即可在命令面板看到 commit 和 review。包名与仓库名均为 dsh-commit-review(与 cordis.patch.yml 中的行引用保持一致)。
命令
/commit [message guidance]
分析当前 git 变更并真正创建提交(不只是给出建议)。可选参数会成为提交消息的引导,例如:
/commit
/commit fix the login bug
处理流程:
- 预检:
git status --porcelain=v1 --branch+ 暂存/未暂存 diff 统计(经subprocess直接调用 git,无 bash 依赖,20s 超时保护) - 预检通过后,将完整工作流注入模型:
- 检查真实 diff 与最近提交风格(
git log) - 选定 Conventional Commits 类型/范围(
feat/fix/docs/style/refactor/perf/test/build/ci/chore/revert,破坏性变更用!或BREAKING CHANGEfooter) - 逻辑分组暂存(永不提交
.env、凭据、私钥等密钥) - 生成祈使句、一般现在时、≤72 字符的主题行
- 执行
git commit并用git log -1 --stat验证后报告哈希与消息
- 检查真实 diff 与最近提交风格(
- 内置 git 安全协议:不改 config、不 force、不跳过 hooks、hooks 失败时修复后新建提交(不 amend)
/review [security|performance|simplicity|style|i18n|with-context|guidance]
审查当前未提交的变更(暂存 + 未暂存),在对话中输出按严重度分级的 markdown 审查报告,只审查、不修改任何文件:
/review # 通用审查
/review security # 安全优先
/review performance # 性能优先
/review simplicity # 简洁性优先
/review style # 代码风格优先
/review i18n # 国际化优先
/review with-context # 结合全仓库上下文审查
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
theBigGavin/marketingdashboard
hancao97/hanai-investment-dsh
maddogfinance/dsh-trading
lehhair/dsh-diff-viewer