by shanliuling
可在对话内生成、编辑、对比图像;内置 500 + 提示词、图库、多模型工作流,支持 ComfyUI。AI image studio for DeepSeek Harness — generate, edit & compare images in chat, with 500+ prompts, gallery, multi-model workflows and ComfyUI.
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
# Add to your Claude Code skills
git clone https://github.com/shanliuling/dsh-image-genGuides for using ai agents skills like dsh-image-gen.
Last scanned: 8/19/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-08-19T04:36:42.162Z",
"npmAuditRan": false,
"pipAuditRan": true,
"promptInjectionRan": true
}See how dsh-image-gen compares with popular alternatives.
dsh-image-gen 是 DeepSeek Harness 的原生图像创作插件。它不是在对话框里塞一个生图按钮,而是让 Agent 本身学会画图:它能一次规划并生成一整组图,能看懂你在画布上的涂鸦和圈选,能自己去灵感库里找合适的风格模板。需要精细控制时,还有 Studio 工作台、多模型对比和图库。
已有 ChatGPT、Grok 或 Google 订阅?直接登录即可生图,无需额外购买 API Key。
支持:Gemini · OpenAI / Compatible · Seedream · DashScope · Grok Imagine · GLM-Image · 本地 ComfyUI
pnpm dsh plugin --profile web add dsh-image-gen@latest
每个版本的更新内容见 Releases。
不用学参数,也不用切页面,直接在 DSH 对话里说:
| 你在对话里说 | 插件会做什么 |
|---|---|
| 「给《咖啡店开业》这篇文章配 4 张插图,统一扁平插画风,16:9」 | 🔁 对话批量生图:Agent 把需求拆成 4 个 Prompt 逐张生成,一条消息收齐整组图 |
| 「用手绘风格 #123 画一张咖啡店菜单」 | ✨ 自动套用灵感:Agent 先在 500+ 案例库里检索对应风格,再套用模板出图 |
| 「把我在画布上画的草图变成正式插画」 | ✏️ 看懂画布:Agent 读取画布选区,把草稿变成成图 |
| 「把我圈出来的剑换成斧头,其他不变」 | 🎯 圈哪改哪:只改你标出的局部 |
| 「保持这个角色不变,换到雪地场景」 | 🎭 角色一致性:图生图时保持同一个人物或物体,不会换成长得相似的另一个 |
| 「同一个 Prompt,GPT 和 Gemini 各出一张对比」 | ⚖️ 多模型对比:并发调用多个模型,放在同一张画布上比较 |
| 「把这个角色做成一段挥手的 GIF 动图」 | 🎞️ GIF 动图:直接生成循环动画,卡片里播放、调倍速,还能按帧写评论修改 |
两条可选设置加固离开本机的网络路径,默认全部关闭:
strictImageDownloads:结果 URL 必须是公网 HTTPS 443。DNS 解析结果会校验并固定用于本次请求,不跟随 provider 结果中的重定向,响应遵守图片字节上限。requireHostAdmission:宿主 connection admission 服务缺失或异常时,插件 Web 路由一律 503 拒绝,而不是裸奔。默认关闭是因为 TUN 代理或自定义企业解析器可能故意返回内网地址;开启任一设置即假定你的出口是直连。
环境要求:DeepSeek Harness 稳定版本,Node.js ^22.19.0 或 >= 24.0.0。
在你的 DeepSeek Harness 项目根目录下运行:
pnpm dsh plugin --profile web add dsh-image-gen@latest
💬 极客提示:你也可以直接把这句话发送给 DSH 对话中的 Agent:
帮我安装生图插件,在终端执行:pnpm dsh plugin --profile web add dsh-image-gen@latest
# 若已将 dsh 安装为系统全局命令:
dsh plugin --profile web add dsh-image-gen@latest
# 从 GitHub 仓库直接安装最新代码:
pnpm dsh plugin --profile web add git+https://github.com/shanliuling/dsh-image-gen.git
# 本地克隆源码开发安装:
git clone https://github.com/shanliuling/dsh-image-gen.git
pnpm dsh plugin --profile web add ./dsh-image-gen
重启 DSH 后,点击左侧边栏的 「插件」 图标打开插件面板,在 「已安装」 分区点击 dsh-image-gen,进入插件详情页即可看到「图像生成」配置表单:
插件面板 → 已安装 → dsh-image-gen
DSH 0.1.5 及更早版本没有插件面板,入口仍为「设置 → 插件 → 插件配置 → 图像生成」;插件已同时兼容两种入口。
选择 Provider,填写自己的 API Key,并按需调整模型、Endpoint / Base URL 与工作区保存选项。填好 Key 后可点击**「测试连接」验证可用性,或点击「拉取模型」**一键获取该厂商支持的全部生图模型,无需手动查文档。使用 ComfyUI 时,请填写 DSH Host 可访问的服务地址,并导入 API Format Workflow JSON;导入多个工作流后,可在对话输入框旁的生图按钮里直接切换。
已有 ChatGPT、Grok 或 Google 订阅?无需填写 API Key:展开对应的订阅 Provider 行,点击**「登录」**并在浏览器完成授权,即可直接开始文生图与图生图。
在聊天框中直接描述你想要的图片:
画一张雨夜霓虹街头的赛博朋克猫咪,电影感光线,16:9。
想要一整组图?直接说数量和统一风格:
给我的小红书笔记《周末露营清单》配 5 张图:帐篷、炉具、睡袋、照明、零食,统一日系手绘风,3:4。
也可以直接上传参考图,让 Agent 进行风格重构或局部编辑:
保持角色与构图不变,给猫咪戴上一副黑色墨镜。
需要更细的参数控制时,点击会话顶部的 画廊 入口,进入 图库 / 工作台 / 灵感 / 收藏。
配图、分镜、系列插画、同一主题的多个变体,不用一张一张地催。
对话批量和 Studio 批量有什么区别? 对话批量是 Agent 帮你规划一组不同的画面(例如 4 张不同场景的插图);Studio 批量是同一个 Prompt 出多张候选,由你挑选满意的保存。
在无限画布上画草图、摆参考图、圈出要改的地方,然后直接用对话告诉 AI 你想要什么。Agent 能看到画布上的内容和你当前的选区,不需要你截图、上传或者描述位置。
使用 GPT Image 2.6 等支持动图的模型时,直接在对话里说「做成 GIF / 动图」即可得到循环动画,也可以把参考图里的角色做成动图。帧数与帧时长可用 frame_count(2–16)、frame_duration_ms(20–2000 ms)指定。
生图时也可以要求矢量结果:generate_image 传 output_format: "svg"(仅 OpenAI 官方与兼容中转的文生图;图生图接口不支持 SVG)。
.svg、在侧栏打开保存的文件。DSH 附件层只保存 png/jpeg/webp/gif,所以卡片是用工具结果里的 SVG 源码渲染的,图库与版本历史仍只收录位图。size / aspect_ratio / image_size 不会发送,结果里会给出一条说明;frame_count / frame_duration_ms 只属于 GIF,与 SVG 一起传会直接报错。内置手绘风格手册(风格 / 排版 / 单色主题色)和 awesome-gpt-image-2 案例集,共 500+ 个可直接复用的 Prompt。
想精细控制时,打开会话顶部的 画廊 → 工作台,所有参数都摆在面前。
dsh-image-gen is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by shanliuling. 可在对话内生成、编辑、对比图像;内置 500 + 提示词、图库、多模型工作流,支持 ComfyUI。AI image studio for DeepSeek Harness — generate, edit & compare images in chat, with 500+ prompts, gallery, multi-model workflows and ComfyUI. It has 1,589 GitHub stars.
Yes. dsh-image-gen passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/shanliuling/dsh-image-gen" and add it to your Claude Code skills directory (see the Installation section above).
dsh-image-gen is primarily written in TypeScript. It is open-source under shanliuling on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh dsh-image-gen against similar tools.
No comments yet. Be the first to share your thoughts!