repo-release

September 5, 2026 · View on GitHub

topics

DSH(DeepSeek Harness)skill:Git/GitHub 版本发布与仓库运营一条龙。

功能

  • 版本发布流:版本号 bump → 语法校验 → 规范 commit → tag → gh release create
  • Topics 维护gh repo edit --add-topic,固定 topic 集参考
  • 上游 PR / issue:fork → 分支 → gh pr create --body-file(body 走临时文件避免转义)
  • 安全闸门(push 前强制)
    • git grep -E 'sk-[A-Za-z0-9]{12,}' 扫 API 密钥
    • 扫手机号 / 个人敏感信息
    • 命中即走 git bundle 备份 + git filter-repo 全历史清理
    • git push 永远需要用户显式授权

触发场景

"推送到 GitHub" / "更新一下仓库" / "打 tag" / "发个 Release" / "加 topics" / "提个 PR" / "提交一下"

安装

Copy-Item repo-release ~\.dsh\skills\ -Recurse

DSH 热加载 skill,无需重启。前置无依赖;如果同时安装了 dsh-env-recon,会先勘察环境再动手。

背景

从 20+ 次跨项目发布会话中蒸馏而来,内含实战教训:

  • 密钥进 git 历史的真实泄漏案例与完整清理流程
  • gh pr create body 转义踩坑 → 统一走临时文件
  • fork 后 remote 混淆 → push 前先 git remote -v
  • push 目标拿不准 → 先问用户,不自作主张

相关 skill

  • dsh-env-recon — DSH 环境勘察(前置)
  • dsh-plugin-install — 插件安装
  • multi-model-dispatch — 多模型子代理派发

License

MIT