dsh-hongbao
在终端中运行以下命令:
dsh plugin install uckkk/dsh-hongbao
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在终端执行 dsh plugin install uckkk/dsh-hongbao 完成安装,插件源码地址为 https://github.com/uckkk/dsh-hongbao,安装后即可在会话中直接调用红包计算工具。
插件介绍
Splitting a red envelope into a fixed number of portions within set limits looks trivial, yet producing an exact, verifiable breakdown by hand is easy to get wrong. dsh-hongbao turns that step into a single, deterministic call inside an AI conversation, turning vague requirements into a concrete allocation list.
The plugin exposes a hongbao tool that performs exact calculations based on the parameters you supply and returns a detailed result for each portion. The entire implementation is written in plain Node.js with zero external network dependencies, so it runs locally, responds instantly, and needs no extra deployment or configuration.
It is well suited for users who frequently need red-envelope distribution plans in chat, as well as developers who want to embed the calculation into automated workflows. Transparent logic, zero dependencies, ready to use out of the box.
使用场景
- 在对话中按人数和限额快速算出每人分到的精确金额
- 把分配逻辑嵌入自动化脚本或机器人工作流中复用
- 发红包前校验每份金额是否合规且总和正确
适合人员
- 需要在 AI 对话中获取红包分配方案的用户
- 希望零依赖、本地运行的 Node.js 开发者
- 需要可审计、确定性分配结果的运营或测试团队