nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:mihoojj/dsh-prompt-spark
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
One-click draft rewriting inside the DeepSeek Harness composer: a sparkle button next to the input toolbar turns a rough draft into a clear message, with instant undo. No settings page, no config file — the useful choices are gestures.

Ctrl+Shift+O (Cmd+Shift+O on macOS) in DSH Desktop, or
Ctrl+Alt+Shift+O on the Web build; both are remappable in the built-in
Keyboard shortcuts panel. (Web reserves Ctrl+Shift+O for the official
"open in app" command, so the Web default adds Alt.)The control hides itself when the draft is empty/whitespace or the composer is
busy (adjudicating / submitting), and failures leave the draft untouched
while the button tooltip reports the reason code.

In DSH Desktop open Plugins, choose Add plugin, enter the package name or this repository's absolute path, then enable it:
dsh-prompt-spark
Or from a terminal for a named profile:
dsh plugin --profile <profile> add dsh-prompt-spark
Editing client.js only needs a page refresh; editing index.js (the host
half) needs an app restart.
| File | Role |
|---|---|
package.json |
npm bundle: dsh.bundle.patch → cordis.patch.yml, dsh.client.platform: web → client.js |
cordis.patch.yml |
one insert row whose name is this package |
index.js |
host half: inject = ['webServer','connection'], exact POST /dsh-prompt-spark/rewrite behind the Connection trust fence, bounded body, llm.stream call |
client.js |
browser half: window.__ModuleLoader__.load({ id, factory }) returning { inject: ['slots','locale'], apply(ctx) } |
locale/*.json |
plugin-page display metadata |
The browser resolves the route relative to the document
(new URL('dsh-prompt-spark/rewrite', document.baseURI)), so a mounted prefix
works. The host never touches provider keys or endpoints: it streams through the
composition's llm service with the session's own provider/model (falling back
to the configured default). Styles are fixed instruction suffixes; there is no
configuration surface at all.
npm test # node test/host.test.mjs && node test/client.test.mjs
npm run check # syntax check both halves
npm run pack:check
test/host.test.mjs exercises the route fence, method/body limits, style and
selection request shaping, and the LLM stream outcomes.
test/client.test.mjs drives the component through a small React harness:
visibility rules, rewrite/undo lifecycle, style menu, long-press, selection
replacement, failure tooltips and registration shape.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: prompt。