imagegen skillA
imagegen is agent-read markdown (skill) from yan-labs/yan-skills: 生成网站与内容所需的一切视觉素材——用户说 生成图片、配图、插图、画一张、出一套图、logo、吉祥物、封面、海报、og 图、分享图、favicon 源图、用户场景图、真人图("一个人坐在电脑前")、手绘/蜡笔/水彩风插画、产品宣传图、电影感画面、"网站需要配图"、image gen、imagegen 时必用。也覆盖 rankup 建站流程里的"页面缺图、还是占位图、og:image 没图、每页要独立分享图、favicon 还没做"——这些场景不许用占位图,必须真实生成,一律加载本 Skill。底层走 Codex 内置的 OpenAI 图像生成工具;本 Skill 负责把需求翻成好提示词、跑通、验收、压缩、落盘。.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# imagegen **一句话定位**:借 Codex agent 内置的图像生成能力出图;本 Skill 只管五件事——把需求翻成好提示词、把命令跑通、验收、压缩、放进项目该在的目录。 图像生成**不是 CLI 子命令**(没有 `codex image`;`codex exec --image` 是把图当输入附上)。它是 Codex agent 的内置工具 `image_gen`。不要翻 `codex --help` 找 flag,找不到就下结论"不能生图"——这个结论是错的。描述你要的图,让 agent 自己选方法。 ## 启动命令 ```bash mkdir -p <outdir> # 先建目录,提示词里写它的绝对路径 cat <outdir>/prompt.md | codex exec --skip-git-repo-check \ --config model_reasoning_effort="medium" \ --sandbox danger-full-access \ -C <outdir> -o <outdir>/final.md 2>/dev/null ``` | 要点 | 说明 | |---|---| | 后台跑 | `Bash` 的 `run_in_background: true`,两张图约 2–3 分钟,成套图更久;等完成通知,不要轮询。**注意:必须从主线程(而非 subagent)调用**——subagent 用 `run_in_background` 后 park 等通知,会被 harness 判定空闲并终止,通知永远送达不了 | | `--sandbox danger-full-access` | 生图要走网络。这个 flag 是否需要确认取决于当前机器的授权设置:有常设授权就直接跑,没有就按该机器的规则确认一次;无论哪种,启动那一行都要说明用了哪个 sandbox | | `-o <outdir>/final.md` | 最终报告写进文件,从这里读路径与方法;stdout 是进度噪音,别去解析 | | `2>/dev/null` | 压掉 stderr 的思考流;调试 Codex 本身时才拿掉 | | effort | `medium` 够用,这不是推理任务 | | 不传 `-m` | 用 `~/.codex/config.toml` 的默认模型,用户点名才覆盖 | | 原图在哪 | Codex 每次 `image_gen` 的原始输出都落在 `~/.codex/generated_images/<session-id>/exec-*.png`(0.7–1.5 MB/张);输出目录里的是它后处理过的版本,要原图去那里取 | …
Read the whole file at its exact version.
How to install
mdr add yan-labs/yan-skills/imagegen@v1.0.0mdr add yan-labs/yan-skills/imagegen@sha256:2fee09fe73f14ff7Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_vnsi5syrmvdfabdr)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.0.0 latest | 2026-09-12 | cc47c93 | 16,477 B | A | view · diff |
| v1.0.0 | 2026-09-02 | 8ebc9dc | 15,848 B | A | view · diff |
| git:20260902.7676774 | 2026-09-02 | 7676774 | 15,535 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 (16477 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
yan-labs/yan-skills · 203 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_vnsi5syrmvdfabdr GET https://markdownregistry.com/api/v1/resolve?ref=yan-labs/yan-skills/imagegen GET https://markdownregistry.com/api/v1/blob/2fee09fe73f14ff7c0c7ad8a14a44850e7011e3d32f48f1b7daaf98b4f80c108
Your agent 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.
More from yan-labs/yan-skills
Every file in yan-labs/yan-skills