nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:lklkuu/dsh-prompt-optimizer
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
Adds an Optimize button to the DeepSeek Harness composer: it hands the current draft to the model you already selected, rewrites it with the "basic optimization" prompt from prompt-optimizer, and writes the result straight back into the input box.
No prompt-optimizer runtime, no Docker, no Bun, no browser extension, and no extra API key — it uses the model you have already picked inside DSH.
The core prompt is quoted verbatim from
linshenkx/prompt-optimizer (⭐ 41.5k), template
user-optimize/user-prompt-basic (v2.0.0). The plugin skeleton and slot wiring follow published DSH
plugins such as seven282/oss-prompt-optimizer
(⭐ 30, MIT) and @max-null/dsh-draft-polish
(MIT).
Code, tests, copy and icon are written for this repository. Upstream contributed prompt text and API usage only — no code was copied.
dsh plugin --profile desktop add @lklkuu/dsh-prompt-optimizer
Or from the tarball attached to the latest Release:
dsh plugin --profile desktop add https://github.com/lklkuu/dsh-prompt-optimizer/releases/latest/download/dsh-prompt-optimizer.tgz
Restart DSH (or reload the page) so the client module loads.
Requests are canceled automatically after 150 seconds.
| Step | Implementation |
|---|---|
| Button location | conversation.input.right slot, order: 12 (between image provider 10 and Codex quota 15) |
| Read the draft | Standard slot prop useInput(s => s.draft) |
| Call the model | Host half POST /api/prompt-optimizer/optimize → ctx.get('llm').stream() |
| Pick the model | agentDefaultModel.currentSelection() — whatever the current conversation uses |
| Write back | inputActions.setDraft(text) + persistDraft() |
The call is out of band: it does not enter the transcript, does not consume a conversation turn and
does not touch session files. The route rides DSH's own authenticated /api mount, reusing the host's
same-origin/login fence — the plugin opens no port, stores no credential and talks to nothing but the
host.
The prompt is prompt-optimizer's original text. The only change: the Mustache
{{#helpers.toJson}}{{{originalPrompt}}}{{/helpers.toJson}} placeholder becomes a local
JSON.stringify(draft) — same effect, no template engine.
None. To try a more aggressive rewrite (analytical, structured, output-format oriented, …), edit
SYSTEM_PROMPT and renderUserPrompt in index.js; upstream ships 144 templates to choose from.
npm test
Three layers, fully offline — no installs, no network:
window.__ModuleLoader__ / React loading the real client.js, asserting the
module id, the inject declaration, and that the button really registers into
conversation.input.right./api route is not registered and the front end never gets the button.llm, agentDefaultModel and connection services. If any is missing the button
is not rendered or the call errors out — it never fails silently.inputActions.setDraft replaces the whole draft, so the caret position is not preserved.dsh plugin --profile desktop remove @lklkuu/dsh-prompt-optimizer
MIT, see LICENSE.
The prompt template text comes from linshenkx/prompt-optimizer (AGPL-3.0) and is quoted here as prompt text, credited in the source comments and in this file. This repository contains none of its program code.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: prompt-optimizer。