bugmaker2/dsh-plugin-template 预览 preview

bugmaker2/dsh-plugin-template

Plugin插件 Native原生 ⭐ 110 MIT Prompts & Skills提示词与技能

用于DeepSeek-Harness插件开发的模板。

Project Overview项目介绍

This repository is a complete starter template for building native DeepSeek Harness (DSH) plugins, designed exclusively for DSH plugin development. It includes preconfigured scaffolding for both the host plugin that exposes a remote service and the client plugin that mounts the remote to a React view. Out of the box, it comes with type checking, linting, unit tests, CI workflows, and all required publishing metadata already wired up. It already includes all required DSH-native manifest files in the repository root, so you don’t have to create these core configuration files from scratch.

The template includes a working sample greet remote service to demonstrate how the plugin system works. The host side combines a configurable prefix with an input name to generate the string "Hello, <name>", and the client side renders this result in a new "Greet" tab in the DSH session UI. This sample gives you a clear reference for how host and client plugins interact through DSH's remote system. After you fork the template, you can replace the sample code with your own plugin logic in just a few steps. Before you start writing your own code, you can install the sample plugin to test how it works in your local DSH instance.

To develop or use this template, you need to meet a few basic environment requirements. You must have Node.js version 22.19 or newer, pnpm version 9 or newer, and DeepSeek Harness version 0.1.0-rc.6 or newer installed on your system. If you are installing a forked copy of the template from Git with pnpm 10 or newer, you will need to add an entry to your pnpm workspace configuration to allow the build to run during installation. This repository is released under the permissive MIT open source license, so you can use it for any personal or commercial purpose free of charge.

这是一个用于创建原生 DeepSeek Harness 插件的完整模板,同时包含了暴露远程服务的宿主端插件,以及将远程服务挂载到 React 视图的客户端插件。开箱即用自带了类型检查、代码规范检测、单元测试、持续集成流程,以及完整的发布元数据配置,开发者可以直接基于它开发新的 DSH 插件,满足插件开发的全流程规范要求。

模板自带了一个示例 greet 远程服务,宿主端会根据可配置的前缀拼接生成问候语,客户端会在会话栏新增一个Greet标签页展示结果。如果你想要开发一个全新的DSH原生插件,只需要基于这个模板修改,替换示例代码,调整对应配置项即可快速起步,所有基础依赖都已经预先配置好,不需要开发者从零搭建项目结构。

使用本模板开发插件需要满足基础环境要求:Node.js 版本不低于 22.19,pnpm 版本不低于 9,DeepSeek Harness 版本不低于 0.1.0-rc.6。你可以从本地检出或者从Git仓库直接安装,也可以按照文档指引重命名包后发布自己的新DSH插件。本项目采用MIT许可证开源,免费供个人和商业使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
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:you/dsh-plugin-template

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

READMEREADME

dsh-plugin-template

English | 中文

dsh.so security dsh.so install

A complete dual-side DeepSeek Harness plugin template. It demonstrates the full plugin surface — a host plugin exposing a Typert Remote, and a client plugin mounting that Remote into a React view — with type-checking, linting, unit tests, CI, and publishing metadata wired up.

Out of the box it registers a greet Remote: the host composes "Hello, <name>" from a configurable prefix, and the client renders the result in a new "Greet" tab.

Structure

package.json           # dsh.bundle + dsh.client manifests, scripts, peer deps
cordis.patch.yml       # mounts the host plugin row into a profile
dsh.plugin.json        # dsh.so registry manifest
src/index.ts           # host entry: Config schema + Typert manifest registration
src/runtime.ts         # host Remote service (TypertRemoteService)
src/typert.ts          # Typert model manifest
src/contract.ts        # strict wire contract shared by host and client
src/types.ts           # shared host/client types
src/client/index.tsx   # client entry: mounts Remote + registers the view slot
src/client/remote.ts   # client Remote contribution + typed namespace
src/client/locales.ts  # zh / en dictionaries
src/client/view.tsx    # minimal React view
src/client/styles.ts   # theme-token stylesheet
tests/                 # vitest unit tests (contract + runtime)
build.mjs              # esbuild dual build (host ESM + client CJS)
.github/workflows/ci.yml

package.json is the only manifest Harness needs. dsh.bundle.patch makes the package an installable profile bundle; dsh.client declares the Web client bundle and the client packages it injects. The host entry is the ordinary Cordis name/apply export; the client entry is bundled to lib/client.js and loaded by the Web harness module loader.

Requirements

  • Node.js >= 22.19 (or >= 24)
  • pnpm >= 9
  • DeepSeek Harness >=0.1.0-rc.6

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-whale-musume 下一个 Next dsh-run2skill →