CN-WenYu/dsh-git-conventions
CN-WenYu★ 1JavaScript最后同步: 2026-08-21
Configurable Git commit and pull-request conventions for DeepSeek Harness — enforce user-defined rules on commit messages and PR titles/descriptions. | DeepSeek Harness 的可配置 Git 提交与拉取请求规范插件,按用户自定义规则校验提交信息与 PR 标题/描述。
README 摘要
dsh-git-conventions 简体中文 English 为 DeepSeek Harness 提供可配置的 Git 提交 / 推送 / 拉取请求规范(静态插件,Host + Client 双端)。规则文本由用户在设置页配置,经宿主 settings 持久化到 settings.yaml ;拦截逻辑不硬编码任何规则。 功能特性 - 提交规范校验 :对 git commit -m 的内联消息做 Conventional Commits 结构检查,不合规即拒绝,并回显不合规点与当前规则 - 推送安全 : git push 使用裸 --force / -f 时,提示改用 --force-with-lease - PR 完整性 : gh pr create 缺少 --title / --body 时拒绝,并给出补齐提示 - 规则零硬编码 :规则文本只来自设置页配置,保存后即时生效,无需重启 - 一键放行 :关闭「强制拦截」后守卫不再介入,全部命令放行 - 多语言 :设置页与拦截消息支持简体中文 / 英文,跟随宿主语言偏好 截图 设置页中的「Git 规范」面板(深色 / 浅色模式;图中为默认中文规则示例,可在设置页改为任意语言): 安装 本包已发布到 npm,在目标 profile 按包名安装即可。 dsh plugin add 会读取 package.json 中 dsh.bundle.patch 指向的 cordis.patch.yml ,并把包名追加进 dsh.profile.bundles : 重启后设置页出现独立的「Git 规范」页。更新 / 卸载: 本地开发 以工作区路径安装会建立 link: 依赖(改源码后重启即生效)。此时宿主解析 import z from 'schemastery' 走模块真实路径,需在工作区补一个可解析的依赖: 按 npm 包名安装则无需该链接(包被复制进 profile 的 node modules ,依赖沿 profile 正常解析)。 配置项 命名空间 git-conventions : 字段 类型 默认 含义 commitInstructions string Conventional Commits(zh/en 随语言) 提交说明规则;违规时作为重写提示回显 prInstructions string PR 模板(zh/en 随语言) 拉取请求标题 / 描述规则 enforce boolean true 是否强制拦截;关闭后全部放行 useForceWithLease boolean true git push 出现裸 --force 时提醒改用 --force-with-lease 任何修改即时生效,无需重启。 国际化 界面文案、默认规则文本与拦截消息均支持 zh / en ,跟随宿主语言偏好(dsh 设置 →…
在 GitHub 查看完整 README →分类
DeepSeek Harness: Everything is a Plugin.
★ 182,325
amruthpillai/reactive-resumeA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
★ 41,477
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 17,784