편집자 노트

提示词润色

A DeepSeek Harness (DSH) plugin that adds a ✨ sparkle button to the web composer's tool row. Click it, pick a rewrite style, and the already-connected LLM rewrites your draft prompt to be more professional and easier for an AI to understand — then replaces the draft so you can review before sending.

이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.

업스트림에서 중국어 README를 제공하지 않아 저장소 원본 내용을 표시합니다.

dsh-prompt-polish

English | 中文

A DeepSeek Harness (DSH) plugin that adds a ✨ sparkle button to the web composer's tool row. Click it, pick a rewrite style, and the already-connected LLM rewrites your draft prompt to be more professional and easier for an AI to understand — then replaces the draft so you can review before sending.

  • Icon-only button — a sparkle glyph in the composer tool row; no text, tooltip gives the full description.
  • Four rewrite styles — balanced / concise / detailed / code-oriented.
  • Multi-language UI — menu copy follows your browser language (zh, en, ja, ko, fr, de, es, pt, ru, it, tr, vi; falls back to English).
  • Uses your connected model — resolves the current default agent model (agentDefaultModel), or an explicit provider/model from config.

Requirements

  • DeepSeek Harness (@deepseek-ai/dsh) web profile running, with a model adapter configured (e.g. the DeepSeek provider with an API key in Settings).

Install

# from a checkout of this repository (or the directory containing it)
dsh plugin --profile web add ./dsh-prompt-polish

Then restart dsh web so the profile picks up the new bundle:

dsh web

Open the web UI, type a draft, and click the sparkle button in the composer tool row.

Configuration

The plugin accepts optional config in the profile's cordis.patch.yml (user layer, applied after the bundle layer):

- id: prompt-polish
  config:
    provider: deepseek-official   # explicit route (optional)
    model: deepseek-v4-flash      # must be paired with provider
    style: balanced               # default rewrite style: balanced | concise | detailed | code
    maxTokens: 2048               # output cap for the rewrite call
    # system: '...'               # custom rewrite instruction (replaces the built-in per-style prompts)

Without provider/model, the plugin uses agentDefaultModel.currentSelection() — the same default model the session uses.

How it works

HalfFileRole
Hostlib/index.jsRegisters POST /prompt-polish on the web server; streams one LLM rewrite via ctx.llm
Browserlib/client.jsRegisters the sparkle button into conversation.input.right; opens a style menu; posts the draft and replaces it with the polished text

The bundle's package.json declares both faces of the dual-face plugin:

  • dsh.bundle — the profile patch layer (cordis.patch.yml) that inserts the prompt-polish loader row.
  • dsh.client — the web boot row; client-modules serves lib/client.js at /plugins/dsh-prompt-polish/client.js.

Development

Edit lib/index.js (host) and lib/client.js (browser). The browser bundle is a hand-built closure-factory artifact (window.__ModuleLoader__.load({ id, factory })) — keep externals limited to the platform modules (react, @deepseek-ai/dsh-client-ui-primitives) and inline everything else, matching the loader's module-table rules.

Verify on a scratch port before touching the live profile:

dsh web --port 3099
curl -s http://127.0.0.1:3099/plugins/dsh-prompt-polish/client.js | head
curl -s -X POST http://127.0.0.1:3099/prompt-polish \
  -H 'content-type: application/json' \
  -d '{"text":"read a.csv and sort by b","style":"code"}'

License

MIT

REPOSITORY SIGNALS

보안 및 설치 증거

이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.

출처 추적 가능

공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.

라이선스

저장소가 MIT 라이선스를 선언했습니다.

유지보수 활동

최근 180일 내 코드 업데이트가 있습니다.

설치 증거

재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.

설치 라이프사이클 스크립트

검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.