akira399/dsh-plugin-publisher ↗★ 1
dsh-plugin-publisher
DSH plugin development & GitHub publishing workflow plugin for DeepSeek Harness (DSH). Host: registers the `dsh-plugin-publishing` skill (enabled by default, opt-out), and bridges a GUI-entered GitHub PAT (fine-grained Personal Access Token) into the system Git credential manager. Client: a settings card on the 设置 → 插件配置 page with an enable toggle (persisted across refreshes), a write-only GitHub PAT field, and an embedded PAT creation tutorial with required permissions.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:akira399/dsh-plugin-publisher说明文档
阅读完整 README ↗dsh-plugin-publisher
DeepSeek Harness(DSH)插件开发与 GitHub 发布工作流插件(双端:Host + 设置页 GUI)。
安装后插件会把内置的 dsh-plugin-publishing 技能注册到会话(默认启用):AI 可据此独立完成「把技能打包成 DSH 插件 → 本地验证 → 发布到 GitHub」的完整流程。
⚠️ 启用状态(opt-out):技能默认启用,保存后刷新仍保持启用;只有你在 DSH 设置页(设置 → 插件配置 → dsh-plugin-publisher)主动取消勾选「启用技能」并保存后才会停用。「默认启用」不等于「自动发布」——每次创建公开仓库/推送代码前,AI 仍会先征得你的明确同意。可在同一卡片(可选)填入自己的 GitHub PAT。
技能内容
- 铁律:用户授权门禁、隐私红线(token/凭据/本地路径/个人信息绝不入仓)、免责声明、超时不死等
- 环境确认:node / pnpm / git / dsh CLI / GitHub 凭据检测(不回显 token)
- DSH 插件契约速查:bundle / profile / patch 层(insert vs 覆盖)/ host+client 双端 / 运行时技能注册 / 零依赖策略 / 设置区 schema 免依赖写法 / 凭据联动
- 开发步骤:标准目录结构、package.json、cordis.patch.yml、lib/index.js、lib/client.js、SKILL.md、.gitattributes
- 验证矩阵:node --check + mock 单测(含门禁/设置/凭据监听)+ scratch 组合测试(⚠️ 不能跑任务)+ headless 运行时测试(off/on)
- GitHub 发布:隐私扫描 → 建仓 → 打标签(可选)→ 推送 → 匿名/克隆验证
- 分发与启用:官方
dsh plugin安装 + 设置页图形化启用;不依赖任何第三方插件市场 - FAQ / 超时处理、授权与安全、免责声明
安装(官方路径)
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:akira399/dsh-plugin-publisher
安装完成后重启 DSH(重新运行 dsh web)。
启用状态与配置(图形化)
重启后打开 DSH Web GUI → 设置 → 插件配置 → dsh-plugin-publisher 卡片:
- 启用技能:默认勾选(启用),保存后刷新保持启用;要停用请取消勾选 → 点「保存」,技能即注销。
- GitHub PAT(可选):在「GitHub PAT」输入框粘贴你的 Fine-grained Personal Access Token(PAT) → 点「保存」。插件会自动把它同步到系统 Git 凭据管理器,之后
git push/git clone直接可用;内容永不回显,只写入 DSH 凭据存储与系统凭据管理器。
效果即时生效;可用性说明:
- 技能启用时,会话技能目录中即出现
dsh-plugin-publishing;用它时 AI 仍会先征得你对每次发布操作的明确同意。 - 若未填 PAT,技能照常可用——AI 会优先使用系统已有的 Git 凭据,没有则向你询问。