AI-Scarlett/build-dsh-plugin

可复用Agent技能与DSH技能提供者捆绑包,用于安全、基于证据的DeepSeek Harness插件开发

Project Overview项目介绍

This repository is a DSH-native bundle for DSH plugin development, and it also works as a cross-agent skill for any agent that supports the SKILL.md convention, including Codex, Claude, and Grok. To install the skill on a general agent, you first download the latest release ZIP and matching SHA-256 file from GitHub Releases, verify the checksum with shasum, then unzip the archive into your agent’s skills directory. For DSH installation, you add the cloned repository directly as a DSH plugin bundle, and it uses DSH’s native skill registration API to mount the skill.

This tool is built for plugin developers targeting the DSH ecosystem, and it streamlines the entire plugin development workflow from initial idea to published release. A developer only needs to provide three core pieces of information: the problem to solve, the expected outcome, and at least one observable success criterion. The tool then fills in security defaults, assesses the risk level of the plugin from R0 to R3, compares available implementation options, and outputs a clear plan with steps and evidence requirements for auditing. For plugins intended for DSH STORE listing, it maintains a store-compatible structure from the first day of development to simplify approval.

This project is released under the open-source MIT license, which allows free use, modification, and redistribution as long as original copyright and license notices are retained. The DSH bundle requires a DSH version between 0.1.0-rc.8 and 0.2.0, and the cross-agent skill requires Node.js 18 or newer. It does not modify DSH core code or official packages, and all testing is done with isolated temporary profiles to avoid altering your local DSH configuration. The current 0.5.0 release dynamically pulls the three latest supported DSH versions from official GitHub and npm sources, and requires manual checksum verification before installation to ensure release integrity.

本仓库是面向DeepSeek Harness(DSH)插件开发的原生工具包,同时也可作为兼容SKILL.md规范的Agent技能,部署到Codex、Claude、Grok等支持该规范的通用智能体平台。它可将开发者提供的自然语言需求brief转换为符合DSH规范的插件源码工程、工具卡片契约,内置插件开发全流程的审计、发行、安装和验收规范,还会固化宿主边界、风险等级、权限等安全约束为可执行规则。

本工具面向计划开发DSH插件的开发者,典型工作流程是开发者只需提供待解决问题、预期结果、可观测成功标准三个核心信息,工具就会自动补全安全默认配置,评估插件风险等级,对比不同技术方案的优劣势,输出完整的实施步骤和证据门槛要求。对于计划上架DSH STORE的插件,工具会从开发初期就保持商城兼容的项目结构,方便后续合规上架。

本项目采用MIT许可证开源,可免费使用修改。DSH版本要求为0.1.0-rc.8到0.2.0之间,通用Agent技能需要Node.js 18及以上版本。当前0.5.0版本仅支持DSH 0.1.3-alpha.2、0.1.5-alpha.1、0.1.5-alpha.2三个版本,每次运行都会从官方源拉取最新支持版本,安装前需要验证ZIP包的SHA-256校验值确保完整性。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 github:AI-Scarlett/build-dsh-plugin

把 AI-Scarlett/build-dsh-plugin 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

build-dsh-plugin

面向 DeepSeek Harness(DSH)插件开发的可复用 Agent Skill 与 DSH 原生 Skill Provider Bundle。它把自然语言或结构化 Brief 转换为标准插件方案、源码工程、工具卡片契约、审计、发行、安装和验收流程,同时把宿主边界、风险等级、权限、变更授权与证据门槛固化为可执行约束。

官网:DSH STORE Build Lab

仓库现在同时提供两种宿主入口:

  • build-dsh-plugin/ 是可部署到 Codex、Claude、Grok 等兼容 SKILL.md 的 Agent Skill;
  • 仓库根目录的 package.json + cordis.patch.yml 是标准 DSH Bundle;Patch 只插入插件自有的 dsh-build-plugin Host 适配器,再由适配器通过 0.1.2-alpha.4、0.1.2-alpha.5 和 0.1.2-rc.1 都提供的公开 ctx.skills.register() 服务接口,将同一份 Skill 挂载到 DSH。

DSH Bundle 0.5.2 将受支持范围扩展到已验证的 0.2.0-rc.1,并继续从官方 GitHub Releases 与 npm 动态推导 active 最新三版本;官方 next 通道另设独立兼容矩阵,不取代 active latest-three。当前 active 窗口为 0.1.7-alpha.2、0.1.7-rc.1、0.1.7-rc.2,next 为 0.2.0-rc.1;两条矩阵均已在 GitHub Actions run 36516937038 的 Linux、macOS、Windows 隔离 Profile 中通过。适配层不安装其他 Agent 运行时,不修改 DSH 核心或官方 Skill Provider,也不包含安装期生命周期脚本。

用户最低只需提供三项信息:

  1. 当前要解决的问题;
  2. 希望达到的结果;
  3. 至少一条可观察的成功标准。

Skill 会补齐安全默认值,判断 DSH 宿主兼容性与 R0–R3 风险,比较 Host、Client、Skill Adapter、ApiProxy 或生命周期管理方案,并输出目的、原因、优势、劣势、适用条件、替代方案、执行步骤与证据门槛。

对于注册模型 Tool 的插件,Skill 会同时设计 DSH 卡片契约:把规范 JSON 输出、模型可见渲染、presentCall/presentResult 卡片意图、presentationMeta 持久化投影和可选 Client 自定义卡片分开;要求 live/replay 一致、通用降级、字段限额、截断状态真实且不泄露凭据、完整私有文件或模型推理。

对于准备进入 DSH STORE 的插件,Skill 会从开发第一天保持商城兼容结构,并把第三方仓库分流为 direct、monorepo、adapter-required 或 blocked。0.2.0 起先生成与可信安装库物理分离的发现候选:候选没有包名、安装路径、Entry ID、权限、兼容性或安装操作;只有完成独立晋级审查后才生成 Catalog 提案。0.5.2 的模板和审计器在每次运行时从官方 GitHub Releases 与 npm 双源权威刷新 active latest-three,并在更高版本存在时独立测试官方 next 通道;当前观察到 active 0.1.7-alpha.2、0.1.7-rc.1、0.1.7-rc.2,next 0.2.0-rc.1。可信提案会显式记录固定源更新时间、发现/可安装/运行/安全审查四级证据,以及每个单独测试过的 DSH 版本之安装/启动/卸载/回滚证据。推荐、推广或赞助不会改变验证等级。

对于已上架插件的源更新,Skill 遵循 DSH-Store 的本机决策模型:低风险候选使用 source-verified 生成固定 SHA 计划;具备文件、网络、命令、凭据或生命周期能力的合法插件使用 user-reviewed,由商城展示实际变化并让用户逐次确认;只有修改 DSH 原生代码、冒用官方命名空间、干预受保护组件等硬边界才使用 external-only。版本发现来自用户本机对 canonical GitHub 的有限检查,不要求服务端巡检,也不安装浮动 main。

核心边界

  • 构建标准 DSH Bundle,不修改 DSH 源码或 @deepseek-ai/* 包。
  • 不禁用、替换或遮蔽官方插件清单。
  • 只读优先;真实 Profile、重启、凭据、设备及公网操作必须单独满足条件并授权。
  • 测试只使用一次性 Profile/夹具,不写入真实 ~/.dsh。
  • 区分规划、源码、自动化测试、发行、真实安装、运行时与外部验收,不用低层证据替代高层验收。
  • Profile/package 变更采用单次计划、精确确认、前置哈希、备份、原子提交、健康检查和回滚。
  • 商城上架要求公开 GitHub、40 位固定 Commit、匹配的 manifest/Patch/Entry ID/生命周期/许可证和保守权限元数据;候选、Registry CI、合并与公开页面分别验收。
  • 候选发现库与可信安装库严格分离;候选永远 installable: false 且没有允许操作,晋级必须重新审核。
  • compatibility.dshReleases 只表示版本声明,不能替代每个版本的安装、启动、卸载和回滚证据。
  • Tool 展示优先使用 DSH 的 provider-neutral 卡片契约;Presenter 不做 I/O、不读当前会话/Profile、不依赖时钟或随机数,也不覆盖官方 Tool 卡片 key。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-always-require-tools-approval 下一个 Next dsh-model-sync →