npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-plugin-builder

v0.2.3

Published

Guardrailed DSH plugin-development skill bundle: ships the cordis-plugin-development skill, a settings tab that drafts plugin prompts for the agent, and the scaffolding/validation toolkit the skill calls.

Readme

dsh-plugin-builder

DeepSeek Harness 里的插件制作工作台:一个设置页签,加上它交给 Agent 的 cordis-plugin-development 技能。

npm version license: MIT Node.js

English | 中文

它做什么

DSH 插件就是小而完整的 Cordis 包:Host 侧注册服务、工具或技能,浏览器侧按需加 UI。写对它需要知道当前运行宿主的真实接口,而不是某篇文章里的旧接口。

这个包把这件事搬进 DSH:

  • 全局注册内置的 cordis-plugin-development 技能,让 Agent 按「设计 → 原型 → 实现 → 验证 → 打包 → 安装」的门禁流程走;
  • 在设置 → 插件 → 制作器加一个页签:你在一处描述需求并选引擎(Claude Code 模式 / Cordis 模式 / 标准模式),它会新建一个独立会话并预填技能提示,不会劫持你当前的对话;
  • 附带技能会调用的脚手架与校验工具:inspect-target.mjs(读取真实宿主版本)、scaffold-package.mjs(生成可构建包)、validate-package.mjs(校验包契约),以及原型契约与验证矩阵参考。

页签本身不会安装任何东西:它创建会话、填入提示,确认门禁留给 Agent 和你。

环境要求

  • DeepSeek Harness 0.2.1-rc.5(Cordis 4.0.5)。本包按该版本线验证:类型检查跑在已发布的 @deepseek-ai/*@0.2.1-rc.5 声明上,客户端产物是 ModuleLoader closure factory,单元测试在 Node 22/24 上通过。
  • Node ^22.19.0 || ^24.0.0。
  • Profile 需要组合 skills 服务(标准 Web/Desktop profile 都满足)。

安装

dsh plugin --profile web add dsh-plugin-builder

重启该 profile。插件行由包自带的 cordis.patch.yml 挂载,不需要手改你的 profile 补丁层。

怎么用

  1. 打开设置 → 插件 → 制作器(页签文案跟随界面语言)。
  2. 描述你想要的插件并选引擎:Claude Code 模式(默认,在本机 Claude Code 上开独立会话)、Cordis 模式(Cordis 创造预设)、标准模式(宿主默认 Agent)。
  3. 点开始:它在当前工作区新建会话,把 /cordis-plugin-development … 加需求放进输入框,然后关闭自己;不会自动发送。
  4. 跟着技能的门禁走:先确认设计,再实现,再给验证证据,最后在你明确确认后才安装进 profile。

如果所选预设不存在或损坏,页签会在建会话之前报错,不会留下空会话。

包内容

| 路径 | 作用 | | --- | --- | | lib/index.js | Host 入口:解析内置 SKILL.md,通过 ctx.skills.register() 注册 | | lib/client.js | 浏览器产物:window.__ModuleLoader__.load closure factory,注册 settings.plugins.tab | | lib/client-helper.js | 共享 helper(placeSkillPromptInDraft、focusComposerSoon) | | skills/cordis-plugin-development/ | 技能本体:SKILL.md、原型契约、验证矩阵、三个工具脚本 | | lib/types/ | 生成的类型声明 |

兼容性说明

  • 插件运行时按 DSH 0.2.1-rc.5 验证:注册对象字段与 0.2.1 的 SkillRegistration 一致,客户端只注入宿主提供的模块。
  • 内置参考文档写于 0.1.5-rc.2 时代,技能会要求 Agent 先跑 inspect-target.mjs 读取当前宿主版本,把这些文档当背景资料而不是接口契约。

开发

npm install
npm run build
npm run typecheck
npm test           # 脚手架测试需要 DSH_SOURCE_CHECKOUT,见下
npm run validate:package

把 DSH_SOURCE_CHECKOUT 指向一个 deepseek-harness checkout 才会运行脚手架/校验测试;没有时整套跳过。

已知限制

  • 页签只负责「开一个会话」,真正的工作由 Agent 按技能执行。
  • 参考文档按设计保留旧版本语境,计划在 0.2.1 之后重写。
  • 生成的插件就是普通 DSH bundle,是否安装始终由你明确决定。

License

MIT © WilShi。