yuzh1090/dsh-voice-prompt-compressor0

dsh-voice-prompt-compressor

DSH plugin: compress verbose voice-dictation text into token-efficient prompts, fully local.

AI 分析

核心用途是优化语音输入转文字后的提示词质量。适合习惯使用语音输入、希望减少 Token 消耗并提升 Agent 理解准确度的用户。提供 Skill 和 Tool 两种调用方式。

パッケージ
dsh-voice-prompt-compressor
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/19

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yuzh1090/dsh-voice-prompt-compressor

ドキュメント

README 全文を読む ↗

Usage

Skill (recommended): paste rambling voice dictation into the chat. The agent loads the voice-prompt-compressor skill, calls compress_voice_text, and presents a compressed four-section prompt (Context / Goal / Constraints / Deliverables).

Tool: the agent can call compress_voice_text directly with these parameters:

ParameterTypeDefaultDescription
textstring (required)The dictation / transcript text to compress
languageauto | zh | enautoWordlist language; auto detects by CJK ratio
modelight | balanced | aggressiveconfigCompression strength
keepPolitenessbooleanconfigKeep politeness phrases when true

The tool returns:

{
  "compressed": "…",
  "originalLength": 512,
  "compressedLength": 210,
  "estimatedTokensSaved": 76,
  "ratio": 0.59,
  "removedCategories": { "fillers": 18, "repeats": 3, "politeness": 2 }
}