nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:qifenglun1/dsh-prompt
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Scene Prompt Flow is a DeepSeek Harness Web plugin that keeps reusable prompt templates one click away. It adds a searchable template library to the sidebar, a compact picker to the message composer, and a scene prompt flow above the composer in a blank new conversation. It ships with 55 work preset subscenes across 10 categories plus a one-card Prompt Flow Generator meta scene. Each work subscene has its own concise Simplified-Chinese System Prompt. Choosing a template inserts it at the caret, or starts a new conversation with the template already in the draft when no conversation is open.
Repository: https://github.com/qifenglun1/dsh-prompt npm: https://www.npmjs.com/package/dsh-plugin-prompt
The plugin is a bundle, not a standalone web page. Install it through DSH's plugin manager; do not try to open client.js directly.
The repository root is the installable package root. It contains package.json, cordis.patch.yml, index.js, and client.js; there is no monorepo subdirectory and no build step.
The package is published on npm as dsh-plugin-prompt.
In DSH, open Plugins.
Choose Add plugin → Install a third-party plugin.
Paste the package name:
dsh-plugin-prompt
Review the trust notice and confirm the installation.
With the CLI:
dsh plugin --profile web add dsh-plugin-prompt
To pin this release:
dsh plugin --profile web add dsh-plugin-prompt@3.0.0
In DSH, open Plugins.
Choose Add plugin → Install a third-party plugin.
Paste the repository address:
https://github.com/qifenglun1/dsh-prompt
Review the trust notice and confirm the installation. DSH reads package.json and installs the bundle.
If the prompt-library row remains off, enable it in Plugins.
If the sidebar bookmark does not appear, refresh the Web GUI once.
dsh plugin --profile <name> add ... forwards the install to pnpm in that profile. Use the profile you actually run (web, desktop, or a custom profile):
dsh plugin --profile web add github:qifenglun1/dsh-prompt
The equivalent GitHub URL form is accepted by pnpm-based installs:
dsh plugin --profile web add https://github.com/qifenglun1/dsh-prompt
A git install fetches sources, not a prebuilt artifact. This package is plain JavaScript with no prepare/build script, so pnpm does not need to run an install-time build and users are not asked to allow one.
Do not edit the profile's package.json or cordis.patch.yml by hand; the plugin manager owns those files.
Install the absolute path to this repository as a linked bundle:
dsh plugin --profile dev add /absolute/path/to/dsh-prompt
The plugin manager links the checkout into the profile, so edits to client.js are picked up after a page refresh. Replace dev with a disposable profile name; do not mix development links into a profile you rely on.
DSH upgrades non-official plugins by uninstalling and reinstalling them. Uninstall the bundle in Plugins, then install the new version. With the CLI (npm package):
dsh plugin --profile web remove dsh-plugin-prompt
dsh plugin --profile web add dsh-plugin-prompt
Upgrading from 1.x or 2.x: 3.0.0 is distributed on npm as
dsh-plugin-promptand changes the loader id. Remove the previously installed bundle first:# from 2.x (`dsh-prompt`) dsh plugin --profile web remove dsh-prompt dsh plugin --profile web add dsh-plugin-prompt # from 1.x (`dsh-plugin-prompt`) dsh plugin --profile web remove dsh-plugin-prompt dsh plugin --profile web add dsh-plugin-promptTemplates, categories, scene order, and card order saved in this browser are preserved.
Removing the bundle removes the sidebar entry and composer picker. Templates already saved in the browser are not deleted by uninstalling; clear the keys below if you want to remove them.
The plugin has no Config schema and no required settings. There is no API key, token, password, endpoint, or model selection to configure.
| Setting | Where |
|---|---|
| Templates | Managed in the library panel or the template editor. |
| Scenes | Created with New scene or by typing a new scene in the template editor; custom scenes can be renamed or deleted with Manage scenes. |
| Scene prompt flow | Shown above the composer in a blank new session; 10 work category capsules select or clear a category. Workplace Writing has 10 cards; Legal Workflow and the other 8 categories have 5. Scene and card order are adjusted from the left library's Reorder dialog; the new-session area only reflects the saved order. The Prompt Flow Generator is a dedicated strip at the top of the left library. |
| Scene System Prompt | Work preset prompts and the generator prompt are fixed in the catalog. Custom scenes can add optional extra instructions with Manage scenes → System Prompt. Selecting a category alone, leaving a custom prompt empty, or not choosing a category adds none. |
| Language | Follows the DSH language setting (English or 简体中文). |
| Built-in templates | 55 work presets plus 1 generator; Save as mine creates an editable copy of the starter prompt. |
| Generated scenes | Use Import generated scene in the library, paste the generator JSON, preview, and confirm. |
Templates, scenes, and scene System Prompts are stored in the Harness Web origin's localStorage:
dsh.prompt-library.templates.v1 — user templates.dsh.prompt-library.categories.v1 — scene names that exist independently of templates. When this key is missing, scene names already used by saved templates are migrated into it.dsh.prompt-library.scene-prompts.v1 — custom scene System Prompts.dsh.prompt-library.scene-selection.v1 — the last scene selected per Session; a UI hint only.dsh.prompt-library.scene-order.v1 — custom scene order set from the left library's Reorder dialog.dsh.prompt-library.card-order.v1 — custom card order per scene set from the same dialog.localStorage is scoped to the Web origin. A different origin, browser profile, or cleared browser storage has separate data. The plugin does not write templates to the session log, does not send data to a server, and does not read credentials. Applying a scene System Prompt uses an internal Session command, so the selected scene prompt is also recorded in that Session's command log for restore; it does not create a model message. When you send a message, its text reaches your configured model through DSH as usual.
The expected JSON is:
{
"version": 1,
"scene": {
"name": "Scene name",
"systemPrompt": "Scene-level System Prompt",
"templates": [
{ "title": "Card title", "body": "User prompt" }
]
}
}
The current client-only plugin cannot read the model's reply automatically, so the JSON must be copied into the import dialog. After confirmation, the parser and the three storage writes are automatic. No file is created at any point. Generated scenes reuse the custom-scene model: one scene-level System Prompt plus 1–6 cards; no per-card System Prompt or scene/card description is stored. A new name is rejected if it collides with an existing scene; an existing custom scene is replaced only when the update option is checked. Invalid JSON and built-in name collisions are always rejected.
The 55 work preset subscenes are fixed in the plugin and use Simplified Chinese content for Mainland users. Their titles, starter prompts, descriptions, System Prompts, and execution modes live in the PRESET_SCENES table in client.js; the one-card generator lives in META_SCENES. Preset System Prompts are read-only and are appended after the Harness system prompt; they never replace it.
| Category | Subscenes |
|---|---|
| 职场写作 | 通知公告、工作汇报、请示报告、讲话稿、工作方案、工作日报、工作周报、工作月报、年终总结、工作复盘 |
| 自媒体创作 | 小红书笔记、抖音短视频脚本、微信公众号文章、视频号文案、社交平台标题 |
| 文字润色 | 语言润色、文本改写、扩写与缩写、风格转换、错别字与语病检查 |
| 学习辅导 | 知识点讲解、题目解析、学习计划、考试复习、互动问答 |
| PPT 制作 | PPT 大纲、工作汇报 PPT、教学演示 PPT、产品介绍 PPT、演讲稿与讲解备注 |
| 编程助手 | 代码生成、Bug 排查、代码解释、代码优化、代码审查 |
| 求职助手 | 简历优化、岗位分析、求职信写作、面试模拟、面试问题准备 |
| 资料分析 | 长文总结、资料整理、关键信息提取、多方案对比、研究分析 |
| 生活规划 | 旅行行程规划、个人目标计划、购买决策、时间管理、生活问题分析 |
| 律师工作流 | 接案咨询、法律检索、证据梳理、诉讼策略、合同审查 |
| 提示流生成器(元场景) | 生成场景提示流(1 张) |
The stored execution mode is reflected in each subscene's System Prompt, not shown as a card badge:
The modes are prompt conventions, not a separate workflow engine.
Create a reusable review prompt:
Open the sidebar library.
Choose New template.
Set the title to Review a pull request, the scene to Code review, and the body to:
Review this change for correctness, edge cases, performance, security,
and maintainability. List issues by severity, then give concrete fixes.
Save. The template appears under My templates.
In any conversation, click the composer bookmark, choose the template, and it is inserted at the caret.
A newly created scene is selected immediately. Until it has templates, the panel shows No prompts in this scene yet and New template in this scene. That button opens the editor with the scene prefilled.
Scenes can be created, renamed, and deleted with Manage scenes. Built-in scenes are read-only. Deleting a custom scene moves its templates to No scene.
/prompt-library-scene UI bridge; the command is not an agent tool and creates no model message. It may appear in command discovery.engines.dsh: ">=0.2.1-rc.2 <0.3.0". Installation and profile startup refuse a bundle outside that range.sidebar.panellist, main, conversation.input.left, conversation.input.overlay, and conversation.input.dock, plus the composer's InputActions.captureInsertion() / insertText().localStorage. The selected scene prompt is also recorded in that Session's command log for restore.github:qifenglun1/dsh-prompt#<sha> if you need a fixed revision.| File | Purpose |
|---|---|
package.json |
Package metadata, bundle declaration, client entry, dsh.client inject list. |
index.js |
Host half: applies the selected scene System Prompt through an Agent-scoped prompt section and restores it from the session command log; degrades to a no-op when those services are unavailable. |
client.js |
Browser half: sidebar entry, library panel, composer picker, insertion, storage, locale dictionaries, the PRESET_SCENES catalog (10 categories, 55 work subscenes), the META_SCENES generator, and generated-scene JSON import. |
cordis.patch.yml |
Bundle patch inserting the prompt-library row. |
locale/en.json, locale/zh.json |
Plugin Manager title and description. |
icon.svg |
Plugin icon. |
README.md, README.zh.md |
Documentation. |
LICENSE |
MIT license. |
npm run check
npm test
npm pack --dry-run
npm run check runs node --check on index.js and client.js and requires Node.js only. npm test runs the preset/meta catalog, generated-scene parser/import, scene System Prompt storage, payload, recovery, and Host section tests. npm pack --dry-run prints the exact files npm would publish; confirm that package.json, cordis.patch.yml, index.js, client.js, the locale files, the icon, both READMEs, and LICENSE are present.
There are no runtime dependencies and no build step. The browser module uses the loader's baseline React and the host-provided client packages listed in dsh.client.inject.
package.json with dsh.bundle.patch; do not point the installer at a subdirectory. Check that the running DSH version satisfies engines.dsh. If GitHub is unreachable, use the plugin manager's mirror or another installation source.localStorage. Check that you are using the same GUI origin and browser profile, and that site data was not cleared.MIT. See LICENSE. Copyright (c) 2026 qifenglun1.
The plugin icon and built-in prompt text are original to this project.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: prompt-library、prompt-templates。