dsh-go-plugin

Installation
SKILL.md

给 dsh-go 写一个本地小插件

插件是一个放在主机上的 npm 包目录:package.json 里的 dshGo 清单声明 App 里出现什么,lib/index.js 在引擎里处理点按、推数据。App 只画声明和 JSON 视图,不执行插件代码。

和官方技能的分工(先判断界面载体)

这个技能只负责 dsh-go 手机 App 的原生界面。创造模式里还会加载官方的 cordis-plugin-development,它负责 Harness Web UI / 桌面端的插件,两套的目录、清单和安装入口都不同。先确定界面载体,再选技能;不要按加载顺序、也不要混着用:

用户要的 用哪个 目录 / 安装
手机 App 里加胶囊、菜单项、状态条、原生面板、工具结果卡片、朗读 / 字幕 本技能 $DSH_HOME/dsh-go/plugins/<name>/,dsh plugin --profile web add <目录>
改 dsh-go App 自己的样子(顶栏按钮、主题、隐藏元素) dsh-go-ui(ui.json) $DSH_HOME/dsh-go/ui.json
Cordis / Harness Web UI 插件、装饰、槽位、MCP、页面 官方 cordis-plugin-development 工作区建包 + plugin_manager → install_bundle
Agent 预设、Cordis 组合 官方组合类技能 官方流程
  • 用户没点名界面载体时:在本 App 里默认目标是 dsh-go 手机原生界面(AGENTS.md 也这么写);但如果用户明确要网页版 / 桌面端,就按官方技能走。
  • 官方技能里的「不要在工作区外建包、不要在 $DSH_HOME 下建包、不要手写 profile 的 package.json / cordis.patch.yml」针对的是 Cordis bundle。dsh-go 原生插件不是 Cordis bundle:它就是放在 $DSH_HOME/dsh-go/plugins/ 下的 npm 包,用 dsh plugin --profile web add 装。两条规则各管各的,不冲突,也不能互换目录和安装方式。
  • 同一个「加个按钮」两边都能做时:在 dsh-go 里先做原生版本;用户还要网页版,再让官方技能另做一份。
Installs
1
GitHub Stars
27.9K
First Seen
2 days ago