nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:NOOBCG/DSH-Prompt-Optimizer
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English — A DeepSeek Harness (DSH) bundle that adds an Optimize button to the chat composer. It rewrites the current draft into a structured, ready-to-use prompt (role / task / input / output / examples / steps) and writes the result back into the input box without sending it. Ships a breathing progress bar above or below the composer, selectable button icons, a Ctrl+right-click shortcut, and a settings page.
client.jsis prebuilt, so no build step is needed: install this directory through Plugins → Add plugin.
一个 DeepSeek Harness(DSH)的本地 bundle 插件:在聊天输入框工具条上加一个「优化」按钮,把当前草稿改写成一份结构化、可直接执行的提示词,并写回输入框继续编辑。
本仓库是插件的源码与可安装产物(
client.js为已构建文件)。插件只安装在当前电脑的 DSH profile 里,不随账号同步。
pointer-events: none,不遮挡输入与按钮。前提:DSH Desktop 或 Web(本插件在 0.2.2-rc.x 上开发与验证)。
C:\Users\<用户名>\Documents\dsh-plugins\prompt-optimizer
(安装会把 profile 链接到这个目录,之后不要移动或删除它。)plugin_manager 的 install_bundle,target 填该目录的绝对路径。详细安装说明见 INSTALL.md。
| 半 | 文件 | 职责 |
|---|---|---|
| Host | index.js |
注册认证路由 /api/prompt-optimizer/optimize,用 ctx.llm.stream() 与 profile 默认模型完成改写 |
| Client | client.js |
工具条按钮、光带与加载态、错误气泡、inputActions.setDraft 回填、设置页 |
| 清单 | package.json |
dsh.bundle.patch + dsh.client(web、立即加载) |
| 层 | cordis.patch.yml |
往 profile 插入 Host 行 composer-prompt-optimizer |
改写不写会话日志:草稿在发送前不是模型可见消息,插件只做 UI 侧变换。
0.2.1-rc.5 上开发与验证(见 INSTALL.md),当前已在 0.2.2-rc.3 上加载运行。conversation.input.activity、inputActions.setDraft、认证 /api 精确 Fetch 路由、Host 的 ctx.llm 与 ctx.agentDefaultModel。client.js # 浏览器半(已构建,window.__ModuleLoader__.load 形式)
index.js # Host 半:/api 路由 + 模型调用
cordis.patch.yml # Host 行插入
package.json # bundle 清单
locale/en.json # 插件名与描述(en)
locale/zh.json # 插件名与描述(zh)
icon.svg # 插件图标
INSTALL.md # 安装与设置说明(中文)
client.js 是构建产物,DSH 运行时不做打包;修改后需重新构建再刷新页面。index.js 是普通 ESM 模块,改动后由 DSH 的 HMR 重载 Host 插件。
包里没有构建脚本与依赖:客户端通过宿主的模块加载器 require('react'),不额外引入第三方包。
@文件 引用芯片会被一并替换(宿主未暴露只替换文本的接口)。@local/composer-prompt-optimizer,仅供本地安装;若要发布到 npm,需要先改成自己的公共包名。1.0.0 — 首个正式版本:图标可选、光带统一为原地呼吸、光带设置合并为三选一、旧配置自动迁移。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: prompt、角色、提示词。