Agent skill

Seedream Imagegen

by staruhub in staruhub/ClaudeSkills

用 ByteDance Seedream 4.0 API(经 Segmind)生成 AI 图像。当用户要从文字描述生成营销素材、海报、产品图、概念图、社交媒体配图等高质量图像,且环境配有 SEGMINDAPIKEY 时使用。支持 2K/4K、多比例、单次最多 15 张批量、最多 3 张参考图控风格。不用于:修改/编辑已有图片(用图像编辑类 skill)、视频生成、无 API 环境下的快速配图需求。

MITAuto-check passedMedia & Creative

Install Seedream Imagegen

skills CLI
$ npx skills add staruhub/ClaudeSkills --skill seedream-imagegen -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install staruhub/ClaudeSkills seedream-imagegen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/staruhub/ClaudeSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/lab/Geek-skills-seedream-imagegen .claude/skills/seedream-imagegen && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
seedream-imagegen
GitHub stars
728
Token cost
~641 tokens
SKILL.md length
183 words
Files
6 (incl. scripts, references)
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

用 ByteDance Seedream 4.0 API(经 Segmind)生成 AI 图像。当用户要从文字描述生成营销素材、海报、产品图、概念图、社交媒体配图等高质量图像,且环境配有 SEGMINDAPIKEY 时使用。支持 2K/4K、多比例、单次最多 15 张批量、最多 3 张参考图控风格。不用于:修改/编辑已有图片(用图像编辑类 skill)、视频生成、无 API 环境下的快速配图需求。

  • Works in 4 steps: 收集需求(缺什么问什么,不逐项走问卷) → 优化提示词 → 执行 → …
  • Tasks that involve Image generation
  • SKILL.md covers 验收标准(每次生成任务完成前自查), 不做什么, 工作流程 and 已知陷阱, plus 1 more section
  • Runs Python scripts from its folder; calls python; needs SEGMIND_API_KEY

What it does

Seedream Imagegen is an agent skill from staruhub/ClaudeSkills. 用 ByteDance Seedream 4.0 API(经 Segmind)生成 AI 图像。当用户要从文字描述生成营销素材、海报、产品图、概念图、社交媒体配图等高质量图像,且环境配有 SEGMINDAPIKEY 时使用。支持 2K/4K、多比例、单次最多 15 张批量、最多 3 张参考图控风格。不用于:修改/编辑已有图片(用图像编辑类 skill)、视频生成、无 API 环境下的快速配图需求。

Its SKILL.md is about 640 tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `evals/routing-evals.json`, `references/api_reference.md` and `references/prompt_engineering.md`).

It sits in Media & Creative, covering Image generation. The repository describes itself as: 13 curated Agent Skills for research, product decisions, decks, publishing, audits, and more — portable across skills-compatible agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Image generation

Example prompts

  • “/seedream-imagegen”

Requirements

  • Python 3
  • A credential in SEGMIND_API_KEY

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 收集需求(缺什么问什么,不逐项走问卷)
  2. 优化提示词
  3. 执行
  4. 迭代

What it can do on your machine

Read from SKILL.md and the folder at commit 66e02d2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • SEGMIND_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Seedream Imagegen loads about 641 tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 55 tokens; SKILL.md has 183 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~641
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from staruhub/ClaudeSkills at commit 66e02d2, republished under its MIT licence (© staruhub). 183 words, ~641 tokens.

Download SKILL.mdSave it as .claude/skills/seedream-imagegen/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
seedream-imagegen
description
用 ByteDance Seedream 4.0 API(经 Segmind)生成 AI 图像。当用户要从文字描述生成营销素材、海报、产品图、概念图、社交媒体配图等高质量图像,且环境配有 SEGMIND_API_KEY 时使用。支持 2K/4K、多比例、单次最多 15 张批量、最多 3 张参考图控风格。不用于:修改/编辑已有图片(用图像编辑类 skill)、视频生成、无 API 环境下的快速配图需求。
version
1.1.0

Seedream 4.0 图像生成

通过 scripts/generate_image.py 调用 Seedream 4.0 生成专业级图像。

验收标准(每次生成任务完成前自查)

  • 提示词经过结构化优化([主题]+[风格]+[细节]+[质量词]),不是用户原话直接透传
  • size / aspect_ratio 与用途匹配(见参数对照表),不是默认值裸跑
  • 图像已落盘并把实际文件路径回报给用户
  • 重要用途(海报/品牌)生成 ≥3 张供选择
  • 告知了本次消耗(张数×分辨率),4K 提前说明更耗时耗额度

不做什么

  • 不编辑、重绘、扩展已有图片——只做文生图(参考图仅用于风格指导)
  • 无 SEGMIND_API_KEY 时不硬试:告知用户去 segmind.com 获取,或改用环境内其他生图 skill
  • 不对生成内容的版权归属下结论
  • 用户只要一张随手配图时,不展开完整需求问卷,合理默认直接出

工作流程

1. 收集需求(缺什么问什么,不逐项走问卷)

必需:图像内容描述。推荐确认:尺寸(默认 2K)、比例(默认 1:1)、数量(默认 1)。

用途 → 参数对照表

用途sizeaspect_ratiomax_images
社交媒体2K1:1 或 9:161-3
网页横幅2K16:9 或 21:91
打印海报4K4:3 或自定义1-2
产品图2K3:2 或 4:33-5
概念设计2K16:95-10
2. 优化提示词

结构:[主题] + [风格] + [细节] + [质量修饰词],补光照与氛围;需要图内文字时明确指定文字内容与字体风格;建议 200-300 词内。 示例:"一只猫" → "A fluffy orange tabby cat on a wooden windowsill, golden hour lighting, cozy interior, warm palette, professional photography, detailed fur texture"。 风格关键词库与更多范式:references/prompt_engineering.md。

3. 执行
bash
python scripts/generate_image.py \
  --prompt "优化后的提示词" \
  --size 2K --aspect-ratio 16:9 --max-images 1 \
  --output-dir ./outputs
# API key 从环境变量 SEGMIND_API_KEY 读取,或用 --api-key 传入

高级用法(参考图 image_input ≤3 张 / 顺序批量 sequential=True 保持系列一致 / size=custom 自定义宽高): Python 调用示例见 references/quick_start.md,参数完整说明见 references/api_reference.md。

4. 迭代

不满意时先问具体不满意什么,再对症调整:细节不足→加描述;风格不对→换风格关键词或上参考图;清晰度→升 4K;选择面→加张数。

已知陷阱

陷阱具体表现应对
401 / 额度耗尽API 报 401 或 quota 错误检查 SEGMIND_API_KEY;额度问题如实告知用户,不静默重试烧额度
内容审核拒绝提示词含敏感元素被拒告知被拒原因类别,改写提示词规避后重试一次;连续被拒则停下与用户确认
图内文字模糊生成的海报文字发虚、错字提示词明确指定文字内容+字体风格,加 "high contrast, bold typography";升 4K;仍不行改"留位后期加字"
4K 时间预期用户以为卡住提前说明 2K 约 2 秒、4K 约 4-6 秒,批量线性叠加
超限参数静默失败>15 张或 >3 参考图生成前校验参数上限,超限先拆分或询问
直接透传短提示词"一只猫"直接发 API,出图平庸验收标准第一条:必须先优化

参考文档(按需加载)

文件何时读
references/prompt_engineering.md优化提示词、查风格关键词库时
references/api_reference.md需要完整参数说明、错误码、性能指标时
references/quick_start.md需要 Python 调用示例(参考图/批量/自定义尺寸)时

evals/routing-evals.json — 触发边界回归用例,改 description 后用仓库根 scripts/run_routing_evals.py 校验。

© staruhub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in lab/Geek-skills-seedream-imagegen of staruhub/ClaudeSkills.

  • SKILL.md
  • evals/routing-evals.json
  • references/api_reference.md
  • references/prompt_engineering.md
  • references/quick_start.md
  • scripts/generate_image.py

Open the folder on GitHubat commit 66e02d2

Compare with similar skills

Seedream Imagegen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Seedream Imagegen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Seedream Imagegen this skillstaruhub/ClaudeSkills728—~641Automated safety check: PassMIT
AI Image Generation and Editingzhayujie/CowAgent47k—~1.3kAutomated safety check: PassMIT
Structured Image Generationbytedance/deer-flow84k4 repos~2.9kAutomated safety check: PassMIT
Canghe Comicfreestylefly/canghe-skills4618 repos~3.2kAutomated safety check: PassNone
Generate Imageynulihao/AgentSkillOS61810 repos~1.7kAutomated safety check: NotesNone
GPT Image Generation CLIwuyoscar/GPT-Image2-Skill5.7k—~2.5kAutomated safety check: NotesMIT

Similar skills

  • Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.

    47k GitHub stars~1.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • Structured Image Generation

    bytedance/deer-flow

    Turns an image request into a structured JSON prompt and runs a bundled Python script to generate the picture, optionally guided by reference images.

    84k GitHub starsUsed in 4 repos~2.9k tokens
    Media & CreativeAuto-check passed
  • Canghe Comic

    freestylefly/canghe-skills

    Knowledge comic creator supporting multiple art styles and tones.

    461 GitHub starsUsed in 8 repos~3.2k tokens
    Media & CreativeAuto-check passed
  • Generate Image

    ynulihao/AgentSkillOS

    Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS.

    618 GitHub starsUsed in 10 repos~1.7k tokens
    Media & CreativeAuto-check: notes
  • GPT Image Generation CLI

    wuyoscar/GPT-Image2-Skill

    Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.

    5.7k GitHub stars~2.5k tokensUpdated 10 days ago
    Media & CreativeAuto-check: notes
  • Minimal Zine Poster Generator

    LiamGvchi/gc-minimal-zine-poster

    Creates or analyzes quiet, paper-texture zine posters with big negative space, one color accent and experimental type, returning an image prompt and the generated poster.

    7.3k GitHub stars~2.9k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed

More from staruhub/ClaudeSkills

All 20 skills in this repo
  • Deep Research

    staruhub/ClaudeSkills

    A skill your agent uses when the user wants an evidence-based research memo, literature review, market/policy/technical landscape, or a multi-source decision brief with citations, trade-offs, and a…

    728 GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Wechat Article Writer

    staruhub/ClaudeSkills

    专业微信公众号文章助手,支持四个独立且可组合模式:article 写正文;image-prompts 从文章生成版本化、provider-neutral 的图片提示词 manifest 与稳定占位符,但不调用生图;layout 把文章和 manifest 确定性转换为微信安全的内联 HTML;full-pipeline…

    728 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • A Share Analyst

    staruhub/ClaudeSkills

    A股分析研究助手,提供行情数据获取与技术面/基本面分析框架(仅供研究参考,不构成投资建议)。适用于:(1) 获取A股行情和历史数据,(2) 技术面分析(K线形态、MACD、KDJ、RSI、布林带等),(3) 基本面分析(财务指标、估值分析),(4) 板块热点追踪,(5) 选股策略筛选与量化因子分析,(6)…

    728 GitHub stars~871 tokensUpdated 1 mo ago
    Auto-check passed
  • C Drive Cleaner

    staruhub/ClaudeSkills

    Windows C盘清理和磁盘空间管理。当用户说C盘满了、磁盘空间不足、清理临时文件/缓存/回收站/系统日志、查找大文件、分析磁盘占用时使用。仅适用于 Windows 环境。不用于:macOS/Linux 磁盘清理、卸载软件(引导用户走系统卸载)、清理用户个人文件(只报告位置,删除决定权在用户)。

    728 GitHub stars~518 tokensUpdated 1 mo ago
    Auto-check passed
  • Gaokao Expert

    staruhub/ClaudeSkills

    资深高考命题专家助手,提供专业的命题指导和评审服务。适用于创作高考试题、评审试题质量、分析试卷结构、了解命题趋势等场景。结合文档工具提取解压文件,使用网络搜索了解当年最新命题趋势,使用分析工具评估题目质量和试卷结构。涵盖"一核四层四翼"评价体系、题型规范、评分标准、命题流程等多个维度。不用于:大学/考研/中考命题(体系不同,仅可借鉴)、日常作业题编写、直接替考生解题。

    728 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • LLM Wiki

    staruhub/ClaudeSkills

    Build and maintain a structured LLM-generated wiki for any codebase.

    728 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Seedream Imagegen

What does Seedream Imagegen do?

用 ByteDance Seedream 4.0 API(经 Segmind)生成 AI 图像。当用户要从文字描述生成营销素材、海报、产品图、概念图、社交媒体配图等高质量图像,且环境配有 SEGMINDAPIKEY 时使用。支持 2K/4K、多比例、单次最多 15 张批量、最多 3 张参考图控风格。不用于:修改/编辑已有图片(用图像编辑类 skill)、视频生成、无 API 环境下的快速配图需求。. Seedream Imagegen is an agent skill from staruhub/ClaudeSkills.

When should I use Seedream Imagegen?

Seedream Imagegen fits situations like: tasks that involve Image generation.

How do I install Seedream Imagegen in Claude Code?

Run `npx skills add staruhub/ClaudeSkills --skill seedream-imagegen -a claude-code`. Or copy the skill folder (lab/Geek-skills-seedream-imagegen in staruhub/ClaudeSkills) into .claude/skills/seedream-imagegen in your project. Claude Code loads it when a task matches its description.

How do I install Seedream Imagegen in Codex?

Run `npx skills add staruhub/ClaudeSkills --skill seedream-imagegen -a codex`. Or copy the skill folder (lab/Geek-skills-seedream-imagegen in staruhub/ClaudeSkills) into .agents/skills/seedream-imagegen in your project. Codex loads it when a task matches its description.

Can I use Seedream Imagegen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add staruhub/ClaudeSkills --skill seedream-imagegen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/seedream-imagegen, .gemini/skills/seedream-imagegen, .github/skills/seedream-imagegen and .opencode/skills/seedream-imagegen in your project.

What does Seedream Imagegen need to run?

Going by SKILL.md and its folder, Seedream Imagegen needs Python for the scripts in its folder, the command-line tools its instructions call (python) and credentials named SEGMIND_API_KEY. Our summary lists: Python 3; A credential in SEGMIND_API_KEY.

Does Seedream Imagegen access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Seedream Imagegen safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Seedream Imagegen use?

Seedream Imagegen is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Seedream Imagegen use?

About 641 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.6k tokens, read only when the agent opens those files.

What are the alternatives to Seedream Imagegen?

Skills that share tags, products or a category with Seedream Imagegen: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), Structured Image Generation (bytedance/deer-flow, 84k stars), Canghe Comic (freestylefly/canghe-skills, 461 stars) and Generate Image (ynulihao/AgentSkillOS, 618 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Seedream Imagegen?

staruhub (a GitHub user) maintains it in staruhub/ClaudeSkills, which has 728 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on August 13, 2026.

Source: staruhub/ClaudeSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.