by shanliuling
AI image studio for DeepSeek Harness — generate, edit & compare images in chat, with 500+ prompts, gallery, multi-model workflows and ComfyUI.
# 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 is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by shanliuling. AI image studio for DeepSeek Harness — generate, edit & compare images in chat, with 500+ prompts, gallery, multi-model workflows and ComfyUI. It has 402 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!
⚠️ 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.
为 DeepSeek Harness 带来完整的 AI 图像创作工作流。
dsh-image-gen 不只是简单的对话生图,而是为 DSH 补齐了从自然语言连续修图、Studio 批量创作、多模型横向对比,到 500+ Prompt 灵感库与本地 ComfyUI 的全流程能力。支持 Google Gemini、OpenAI Images / Compatible、ByteDance Seedream、Aliyun DashScope、xAI Grok Imagine、智谱 GLM-Image 及本地私有化工作流,采用 BYOK(自带 Key)模式,生成结果支持按工作区隔离存储。
pnpm dsh plugin --profile web add dsh-image-gen@latest
版本更新提示: 本次版本变化较大,老用户请更新至最新版本。
| 入口 | 最适合 | 你可以做什么 |
|---|---|---|
| 💬 对话 | 让 Agent 理解自然语言需求 | 文生图、图生图、多图参考、连续编辑、原位重新生成 |
| 🎛️ 工作台 | 精确控制创作参数 | 批量生成、多张参考图、高级画布 |
| ✨ 灵感 | 找构图、风格与 Prompt | 500+ 案例、搜索筛选、收藏、复制、一键带入工作台 |
| 🖼️ 图库 | 整理与复用生成结果 | 搜索、筛选、收藏、重新生成、下载、批量管理、工作区隔离 |
环境要求: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 后进入:
设置 → 插件 → 插件配置 → 图像生成
选择 Provider,填写自己的 API Key,并按需调整模型、Endpoint / Base URL 与工作区保存选项。填好 Key 后可点击**「测试连接」验证可用性,或点击「拉取模型」**一键获取该厂商支持的全部生图模型,无需手动查文档。使用 ComfyUI 时,请填写 DSH Host 可访问的服务地址,并导入 API Format Workflow JSON。
在聊天框中直接描述你想要的图片:
画一张雨夜霓虹街头的赛博朋克猫咪,电影感光线,16:9。
也可以直接上传参考图,让 Agent 进行风格重构或局部编辑:
保持角色与构图不变,给猫咪戴上一副黑色墨镜。
需要更细的参数控制时,点击会话顶部的 画廊 入口,进入 图库 / 工作台 / 灵感 / 收藏。
使用同一组 Prompt 和参考图并发调用多个模型,在一张画布中比较并保存结果。
灵活调用本地 GPU 算力,让私有化绘图无缝融入 Agent 对话。
ComfyUI 暂未接入 Studio 和多模型对比。
| Provider | 对话生图 | 对话编辑 | Studio | 多模型对比 |
|---|---|---|---|---|
| Google Gemini | ✅ | ✅ 多图 | ✅ | ✅ |
| OpenAI Images | ✅ | ✅ 多图 | ✅ | ✅ |
| OpenAI Compatible(中转站) | ✅ | ✅ 多图 | ✅ | ✅ |
| ByteDance Seedream / 火山方舟 | ✅ | ✅ 多图 | ✅ | ✅ |
| Aliyun DashScope / Qwen Image | ✅ | ✅ 多图 | ✅ | ✅ |
| xAI Grok Imagine | ✅ | ⚠️ 有限 | ✅ | ✅ |
| 智谱 GLM-Image | ✅ | — | ✅ | ✅ |
| Local ComfyUI | ✅ | ✅ 单图 | — | — |
Studio 与多模型对比目前只支持云端 Provider;多模型对比调用的是各 Provider 在设置中已配置的模型。 智谱 GLM-Image 上游本身不支持图生图;xAI 图生图走 OpenAI 兼容协议(multipart),部分网关可能需等待后续适配。
| Provider | 默认模型 | 默认 Endpoint / Base URL |
|---|---|---|
| Google Gemini | gemini-3.1-flash-image |
https://generativelanguage.googleapis.com/v1beta/interactions |
| OpenAI Images | gpt-image-2 |
https://api.openai.com/v1 |
| OpenAI Compatible | 自定义 | 自定义 Base URL |
| ByteDance Seedream | doubao-seedream-5-0-260128 |
https://ark.cn-beijing.volces.com/api/v3 |
| Aliyun DashScope | qwen-image-3.0 |
https://dashscope.aliyuncs.com/api/v1 |
| xAI Grok Imagine | grok-imagine-image |
https://api.x.ai/v1 |
| 智谱 GLM-Image | glm-image |
https://open.bigmodel.cn/api/paas/v4 |
| Local ComfyUI | 用户导入的 API Workflow | http://127.0.0.1:8188 |
先完全重启当前 DSH Profile,再检查插件配置:
dsh --profile web --dump-config
如果输出中没有 dsh-image-gen,请重新执行安装命令。提交 Issue 时请附 DSH 版本、插件版本和错误日志,不要上传 API Key。
开启“保存到工作区”后,对话生成结果默认保存在当前工作区的 dsh-image-gen/ 子目录,也可以在设置中修改。Studio 候选图先留在临时画布,只有用户选中的结果才会进入图库并保存。
当前 Studio 与多模型对比仅支持云端 Provider,暂未接入 ComfyUI。ComfyUI 已支持在 Agent 对话中进行文生图、单图编辑以及多个命名工作流。
不会。删除图库记录不会修改原聊天消息。你可以额外选择是否清理工作区中的本地图片文件;文件删除通常无法恢复,请确认后操作。
pnpm dsh plugin --profile web add dsh-image-gen@latest
升级后重启对应的 DSH Profile。
git clone https://github.com/shanliuling/dsh-image-gen.git
cd dsh-image-gen
pnpm install
pnpm run typecheck
pnpm test
pnpm run build
pnpm run pack:check
欢迎通过 Issues 反馈问题,或阅读 CONTRIBUTING.md 后提交 Pull Request。
本项目基于 MIT License 开源。
如果 dsh-image-gen 对你的工作流有所帮助,欢迎在 GitHub 点亮一颗 ⭐ Star 支持持续维护。
查看 Releases · 提交 Issue · 参与贡献