dsh-plugin
DayuanJiang/next-ai-draw-iodsh 的 draw.io 绘图插件:通过 next-ai-drawio MCP 服务器作图,点回复里的链接在右侧栏打开实时预览,可以手动修改图,AI 的每次修改都是可以恢复的版本。需 Node.js 18+,首次使用由 npx 下载 MCP 服务器。
DSH 极简片段/命令工具箱:5 个工具,一个可手工编辑的 JSONL 文件,零 UI、零数据库、零网络,只有明确说存才存。
DeepSeek Harness 极简「常用片段/命令」工具箱:把高频命令、代码、网址、提示词存下来,任何会话里一条工具调用就能找回。
~/.dsh/snippets/snippets.jsonl),人类可读、可手工编辑、本身就是备份| 工具 | 作用 |
|---|---|
snippet_save | 保存或覆盖一条片段(同名覆盖并更新时间) |
snippet_search | 按子串搜索(匹配名称/正文/标签,不区分大小写) |
snippet_get | 按确切名字取回一条 |
snippet_delete | 删除一条 |
snippet_count | 统计总数 |
snippet_save(name: "docker-logs", text: "docker logs -f --tail 100 myapp", tags: ["ops"])snippet_search(query: "logs") → 返回 docker-logssnippet_get(name: "docker-logs") → 拿到全文直接执行~/.dsh/snippets/snippets.jsonl{"name","text","tags","updatedAt"}[A-Za-z0-9._-]{1,80},单条上限 2 万字符# 从 GitHub 安装(与 taxueseek 其他插件一致)
dsh plugin --profile web add "github:taxueseek/dsh-snippets#main&path:."
# 重启 dsh web
(本地开发:dsh plugin --profile web add /path/to/dsh-snippets)
- id: snippets-toolkit
name: 'dsh-snippets'
config:
snippetsDir: '~/.dsh/snippets' # 数据目录
maxEntryChars: 20000 # 单条片段字符上限
defaultLimit: 20 # search 默认返回条数
npm install --include=dev
npm test # node --test 单元测试(11 项)
npm run build # tsc 编译 host TS
MIT
```sh dsh plugin --profile web add taxueseek/dsh-snippets ```
欢迎提交 PR。