dsh-image-gen

作者 shanliuling已验证

Generate images directly in DeepSeek Harness chats

147
Stars
7
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/shanliuling/dsh-image-gen

快速入门

使用 dsh-image-gen 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

dsh-image-gen 宣传海报



🎨 dsh-image-gen

让 DeepSeek Harness 像 ChatGPT 一样在对话中直接生成图片,支持画廊汇总,全屏预览、快捷复制与一键下载。

npm version DSH Plugin npm downloads License: MIT

English | 简体中文


💬 直接对你的 DeepSeek Harness Agent 发送以下提示词:

帮我安装生图插件,执行命令:pnpm dsh plugin --profile web add dsh-image-gen@latest

(也可以手动在终端执行:pnpm dsh plugin --profile web add dsh-image-gen@latest


安装完成后,在 DSH 设置中填入自己的 API Key,就可以直接对 Agent 说:

帮我画一张雨夜霓虹街头的赛博朋克猫咪。

Agent 会自动调用 generate_image,生成图片并直接显示在当前对话中。


对话生图效果预览

💡 它解决什么问题?

dsh-image-gen 是专为 DeepSeek Harness (DSH) 打造的开源图像生成插件。

DeepSeek Harness 已经可以让 Agent 调用不同工具完成任务,本项目为它补上了原生的多模态生图能力

graph LR
    A[用户 Prompt] --> B[DeepSeek Harness Agent]
    B --> C[generate_image 工具]
    C --> D[Gemini / OpenAI / Seedream]
    D --> E[图片数据]
    E --> F[当前 Conversation 对话流]

🚀 快速安装与使用

1. 安装插件

在你的 DeepSeek Harness 项目根目录下运行:

# 推荐方式:安装或升级到最新版本
pnpm dsh plugin --profile web add dsh-image-gen@latest

# 若已将 dsh 安装为系统全局命令:
dsh plugin --profile web add dsh-image-gen@latest
🛠️ 其他安装方式(Git 仓库直装 / 本地调试)
# 方式 B:从 GitHub 仓库直接安装最新代码
pnpm dsh plugin --profile web add git+https://github.com/shanliuling/dsh-image-gen.git

# 方式 C:本地克隆源码开发安装
git clone https://github.com/shanliuling/dsh-image-gen.git
pnpm dsh plugin --profile web add ./dsh-image-gen

2. 配置 API Key

打开 DSH Web 页面(默认 http://localhost:3080):

  1. 进入 Settings → Plugins → Image generation
  2. 选择 Provider,填写 API Key,点击 保存 即可。
设置面板预览

3. 开始对话生图

现在直接在聊天框输入:

生成一张极简主义的现代建筑客厅插画。

当前 Agent 就会自动调用 generate_image 工具并在对话流中返回图片。

4. 查看原生生图画廊

点击会话顶栏的 [画廊] Tab,即可集中查看和搜索所有对话生成的历史图片:

原生生图画廊预览

✨ 主要能力

  • 💬 对话中直接生图:不需要切换到其他网站,也不需要手动复制 Prompt,直接告诉 Agent 你想画什么即可。
  • 🖼️ 历史生图画廊:顶栏自带「画廊」Tab,自动汇总所有历史生成的图片,支持关键词搜索、厂商筛选与一键复制/下载。
  • 🔍 交互式图片工具:支持点击全屏大图预览、一键复制图片到剪贴板、本地下载与新标签页打开。
  • 🎨 多 Provider 支持:目前支持 Google Gemini、OpenAI Images、OpenAI Compatible API 以及 ByteDance Seedream / Volcengine Ark。Provider、模型和 Endpoint 都可以在设置界面中自由修改。
  • 🔑 BYOK (自带 Key):插件使用你自己的 API Key。API Key 通过 DeepSeek Harness 的 credentials 服务管理,采用写保护隔离,不需要写进项目源码或配置文件,前端不存明文。
  • 🖼️ 图片跟随会话保存:生成结果会接入 DeepSeek Harness 的 Attachment / Conversation 体系,重新打开历史会话后,仍然可以看到之前生成的图片。
  • ⚙️ 原生设置界面:Provider、API Key、模型和 Endpoint 都可以直接在 DSH Web 设置中修改,不需要手动编辑配置文件。

📦 支持的 Provider

Provider默认模型默认 Endpoint / Base URL
Google Geminigemini-3.1-flash-imagehttps://generativelanguage.googleapis.com/v1beta/interactions
OpenAI Imagesgpt-image-2https://api.openai.com/v1
OpenAI Compatible自定义自定义 Base URL
ByteDance Seedream / 火山方舟doubao-seedream-5-0-260128https://ark.cn-beijing.volces.com/api/v3

🛠️ 本地开发 (Development)

# 克隆仓库
git clone https://github.com/shanliuling/dsh-image-gen.git
cd dsh-image-gen

# 安装依赖与构建
pnpm install
pnpm run typecheck
pnpm run test
pnpm run build

# 检查 npm 打包内容
pnpm run pack:check

📄 开源协议 (License)

本项目基于 MIT License 开源。

如果这个插件对你有用,欢迎点一个 ⭐️ Star 支持!

常见问题

What is dsh-image-gen?

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. Generate images directly in DeepSeek Harness chats. It has 147 GitHub stars.

Is dsh-image-gen safe to use?

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.

How do I install dsh-image-gen?

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).

What programming language is dsh-image-gen written in?

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.

Are there alternatives to dsh-image-gen?

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.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情