Fectivnfy112357 / dsh-dual-plugin-guide

已收录

Dual-format plugin development guide: DSH static plugin package (dsh plugin --profile add) + Agent Plugins 1.0 (plugin.json + skills/). Not DSH-only — installs through both formats.

main工具技能 查看源代码

安装

npx skills add Fectivnfy112357/dsh-dual-plugin-guide

此命令根据 GitHub 仓库地址生成。运行前请检查上游 README 与源代码;需要可复现安装时,请固定 release 或 commit。

README

维护者编写的文档快照。

在 GitHub 查看 ↗
提交版本 a4305cf同步于 2026年8月17日

dsh-dual-plugin-guide

Dual-format plugin development guide. This plugin teaches an agent how to build plugins that are compatible with both ecosystems from one directory:

  • DSH static plugin package — installable via dsh plugin --profile <name> add <spec>
  • Agent Plugins 1.0plugin.json + skills/, loadable by compatible clients (Codex, Cursor, VS Code, …)
  • (bonus) Standard agent skillsnpx skills add discovers the same skills/ tree

Not DSH-only: this package itself installs through both formats.

Install

# DSH — register the guidance skill into the agent catalog (pick one source)
dsh plugin --profile web add dsh-dual-plugin-guide                          # npm (recommended)
dsh plugin --profile web add github:Fectivnfy112357/dsh-dual-plugin-guide   # GitHub

# Agent Plugins 1.0 — point a compatible client at the npm package or the repo:
#   https://www.npmjs.com/package/dsh-dual-plugin-guide
#   https://github.com/Fectivnfy112357/dsh-dual-plugin-guide
# Standard skills
npx skills add Fectivnfy112357/dsh-dual-plugin-guide

After the DSH install and a profile restart, the dsh-dual-plugin-guide skill shows up in the agent's skill catalog; the agent then follows it to build dual-format plugins. The bundled skills/dsh-dual-plugin-guide/scripts/scaffold.mjs generates a valid dual-format skeleton in one command.

Structure

dsh-dual-plugin-guide/
├── package.json       # "dsh": {"bundle": {"patch": "./cordis.patch.yml"}}
├── plugin.json        # Agent Plugins 1.0 manifest
├── cordis.patch.yml   # dsh bundle insert (id: dsh-dual-plugin-guide-skill)
├── lib/index.js       # Cordis entry: registers skills/dsh-dual-plugin-guide/SKILL.md into ctx.skills
└── skills/dsh-dual-plugin-guide/
    ├── SKILL.md       # the guidance (single source of content)
    ├── references/    # verified fact catalog (events, services, slots, tools, packaging, agent-plugins)
    └── scripts/       # scaffold.mjs — dual-format skeleton generator

How it works

lib/index.js is a minimal Cordis plugin (inject: ['skills']) that reads skills/dsh-dual-plugin-guide/SKILL.md (Agent Skills format) and registers it with ctx.skills via resourceBase, so relative references resolve. The same skills/ tree is what Agent Plugins clients and npx skills read — one content source, three loaders.

License

MIT

项目文件与信号

以下项目是目录快照中检测到的公开仓库信号。

插件清单已检测

仓库信息

开发语言
JavaScript
许可证
MIT
最后更新
2026年8月17日 07:16

谨慎安装

请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。