image-generation SKILL.md skillA
image-generation from zrong/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add zrong/skills/image-generation@v26.37.59Pins v26.37.59 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- zrong/skills
- Path
image-generation/SKILL.md- Versions recorded
- 4
- Latest version
- v26.37.59, committed Sep 9, 2026
- First version recorded
- Mar 29, 2026
- Size
- 9,506 bytes
- Repository stars
- 13
- License
- none declared
AI 图片生成、编辑与透明背景后处理。使用统一 CLI 调用 OpenAI Images(含 gpt-image-2 原生透明背景)、Google Gemini 原生图片 API、火山方舟 Seedream 及 API易兼容网关(gpt-image-2-vip、Grok Imagine、Nano Banana),支持多参考图、mask、批量生成、Seedream 5.0 Pro 点选/框选连续编辑,并在配置可用时调用独立 matting skill 自动选择算法抠图;未配置或服务不可用时回退现有 chroma-key。用户提到生成图片、画图、封面图、配图、AI 生图、改图、修图、去背景、透明底、参考图编辑、Gemini 生图、Seedream、Grok 生图或交互编辑时使用。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Image Generation
通过一个严格配置的 CLI 生成或编辑位图。不要按模型名称猜协议,不要绕过配置 allowlist,也不要把远端 `/models` 返回的未配置模型视为可调用。
## 路径
- `{SKILL_DIR}`:本文件所在目录
- `{SCRIPTS_DIR}`:`{SKILL_DIR}/scripts`
- CLI 前缀:`uv run --project {SCRIPTS_DIR} imggen`
## 必须遵守
1. 优先使用本 skill 的 CLI 路径完成图片生成与编辑。
2. adapter 仅由 `provider/endpoint` 配置决定,只能是 `openai`、`gemini`、`seedream`。
3. 调用模型前,必须在所选 endpoint 的 `models.<exact-model-id>` 表中命中;未命中立即停止。
4. 每个 endpoint 独立配置 `adapter`、`base_url`、`api_key`/`api_key_env` 和模型 allowlist。禁止跨 endpoint 借用凭据或静默回退。
5. 只发送模型 policy 中明确声明的 capability。CLI 的显式参数不受支持时必须报错,不能丢弃。
6. `imggen models` 仅用于诊断远端可见性;远端可见但本地未配置的模型仍然被阻止。
7. 不输出、记录或回显 key。需要新 key、base URL 或模型授权时,请用户修改配置。
配置结构和迁移方式见 [references/configuration.md](references/configuration.md),adapter/模型差异见 [references/capability-matrix.md](references/capability-matrix.md)。
## 工作流
### 1. 判断操作
- 纯文字新建图片:`generate`
- 一张或多张参考图上的语义修改:`edit`
- OpenAI alpha mask 局部修改:`edit --mask`
- Seedream 5.0 Pro 点选/框选并连续迭代:`interactive`
- 多个独立生成任务:`generate-batch`
- 模型原生透明底(仅声明 `background` capability 的模型,如官方 gpt-image-2/gpt-image-1.5):`generate/edit --background transparent`
- 一般去背景/透明底:`remove-background`(优先 matting,配置不可用时回退 `chroma-key`)
…Read the whole file at its exact version.
How to install
mdr add zrong/skills/image-generation@sha256:5fe220a1d3100119The line at the top of this page pins the label v26.37.59, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_hixmwnonokouvuo4)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Mar 29, 2026 and Sep 9, 2026, about one every 55 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v26.37.59 latest | 2026-09-09 | c22e0bc | 9,506 B | A | view · diff |
| v26.36.56 | 2026-09-03 | b06997a | 7,631 B | A | view · diff |
| v26.29.14 | 2026-07-20 | 5a2869b | 6,729 B | A | view · diff |
| git:20260329.09a3d48 | 2026-03-29 | 09a3d48 | 2,923 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (9506 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
zrong/skills · 13 stars · license none declared · pushed 2026-10-29 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_hixmwnonokouvuo4 GET https://markdownregistry.com/api/v1/resolve?ref=zrong/skills/image-generation GET https://markdownregistry.com/api/v1/blob/5fe220a1d310011941ce2b190d1ff099bea5c9a39a2aa2475d1d3a373a4616b2
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.