nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:HuiHuanYe/dsh-system-prompt
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
在 DSH → 设置 → 系统提示词 里直接编辑并替换每个会话的系统提示词;点「重置」恢复默认。 不追加、不叠加,就是替换本身。
English: Edits the actual system prompt in DSH Settings. The saved text replaces the assembled prompt for every session from the next model request; Reset restores the default prompt.
MIT · DSH 0.2.2-rc.1 · Node ≥ 24 · 21 tests passing
仓库:https://github.com/HuiHuanYe/dsh-system-prompt
| 操作 | 行为 |
|---|---|
| 打开设置页 | 编辑框显示当前系统提示词(默认内容来自最近一次真实请求的装配缓存,可整体编辑) |
| 保存 | 文本写入 $DSH_HOME/custom-system-prompt.md,从下一个模型请求起整体替换系统提示词,无需重启 |
| 重置 | 删除保存文件,系统提示词恢复默认;编辑框同步变回默认内容 |
| 不保存 | 插件不注册任何提示词内容,对默认行为零影响 |
| 实时反馈 | 使用默认/已启用、未保存修改、字节数(上限 256 KiB)、读取/保存失败原因 |
system-prompt/assemble 上注册最外层(prepend)监听:先让其余装配链跑完,再在存在保存内容时把 sections 换成单个字面段。agent-loop 的 step() 正是对装配结果调用 renderPrompt(),所以替换后的段就是模型收到的系统提示词。$DSH_HOME/custom-system-prompt.md # 未设置 DSH_HOME 时回退到 ~/.dsh
替换立即影响所有会话(包括当前会话)的下一个模型请求。若是想“在默认提示词之外补充几句”, 请把默认内容一起保留在替换文本里,或改用追加式的插件。
git clone https://github.com/HuiHuanYe/dsh-system-prompt.git
dsh plugin --profile <name> add 'link:<绝对路径>'(桌面 profile 由 Electron 独占管理,请用插件页)。dsh plugin --profile <name> add github:HuiHuanYe/dsh-system-prompt。$DSH_HOME/custom-system-prompt.md。本地目录安装是链接(junction)到仓库;开发时的 package.json 依赖与 bundle 选择形如:
"dependencies": { "dsh-system-prompt": "link:D:/path/to/dsh-system-prompt" },
"dsh": { "profile": { "bundles": [ "…", "dsh-system-prompt" ] } }
cordis.patch.yml 里的 id: custom-system-prompt 是 Loader 的行 id,不能与任何已存在的行 id 重复:Loader 按 id 覆盖(后层替换前层),不是按 id 追加。
system-prompt:那是内置核心行(@deepseek-ai/dsh-system-prompt,提供 systemPrompt 服务)的 id。复用它会把核心行整行替换成本插件,导致 systemPrompt 服务没有任何提供者,所有注入该服务的插件全部挂起,启动直接失败。tools、agent-loop 等核心行 id;用本插件自己的命名空间前缀。dsh-system-prompt/
├── index.js Host 半:assemble 替换监听 + 默认提示词缓存 + GET/POST 路由
├── client.js Client 半:settings.section 页面(纯 JS + React,仅用主题 token)
├── cordis.patch.yml bundle 行(行 id 必须唯一)
├── package.json dsh.bundle.patch + dsh.client(web, immediately)
├── locale/{en,zh}.json 插件管理器展示标题/描述
├── icon.svg 图标
└── test/
├── host.test.mjs Host 契约:替换、缓存、路由、保存/重置、校验、失败策略
└── client-wiring.test.mjs Client 契约:注册、加载、保存、重置、失败与重试
node --check index.js
node --check client.js
node test/host.test.mjs
node test/client-wiring.test.mjs
registrant=dsh-system-prompt, id=system-prompt, order=18, active=true);写入替换文本后,下一个模型请求的系统提示词只剩替换文本(默认身份/人设/框架指令全部消失,工具仍可调用);删除文件后下一个请求恢复完整默认提示词。DSH 0.2.2-rc.1(已验证)· Node ≥ 24 · Windows 已实测。需要 systemPrompt、connection 两个 Host 服务;
无构建步骤、无运行时依赖。设置页外观在浅色/深色主题下尚未人工目视确认。
MIT © 2026 dsh-system-prompt contributors
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: system-prompt。