Home / yan-labs / yan-skills · imagegen/SKILL.md · GitHub

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

Latest version
mdr add yan-labs/yan-skills/imagegen@v1.0.0
Exact content
mdr add yan-labs/yan-skills/imagegen@sha256:2fee09fe73f14ff7

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

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_vnsi5syrmvdfabdr.svg)](https://markdownregistry.com/a/art_vnsi5syrmvdfabdr)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
v1.0.0 latest2026-09-12 cc47c93 16,477 BA view · diff
v1.0.02026-09-02 8ebc9dc 15,848 BA view · diff
git:20260902.76767742026-09-02 7676774 15,535 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • 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

GitHub

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

agent-fleet skill
yan-labs/yan-skills · agent-fleet/SKILL.md · 通用多模型子任务执行工具。用户想把一个任务派给别的模型(Gemini、DeepSeek、Kimi/Moonshot,或任何 Anthropic 兼容端点)去跑,尤其是想同时并行跑好几个不同模型的任务("同时起一个 Gemini…
git:20260922.7a67fde · audit A · 203 stars
agent-fleet skill
yan-labs/yan-skills · agent-fleet/skill/SKILL.md · 把机械化、大批量、对模型能力要求不高的子任务派给第三方模型(DeepSeek、Kimi/Moonshot,以及用户自备网关接入的 Gemini 或任何 Anthropic 兼容端点)去跑,省下 Claude 自己的 token…
git:20260923.16c2bb7 · audit A · 203 stars
autopilot skill
yan-labs/yan-skills · autopilot/SKILL.md · 接收一句模糊指令,自动调查、分类、拆解为 XML 阶段计划、选 skill、定完成判定, 然后以无人值守模式通过 loop/goal + agent-mode 完整执行到底—— 包括自动部署、自动 E2E 测试、自动代码…
git:20260912.2c2f140 · audit A · 203 stars
backlink skill
yan-labs/yan-skills · backlink/SKILL.md · OpenCLI-first backlink discovery, profile analysis, opportunity qualification, safe browser-assisted form filling…
git:20260913.4f244b1 · audit B · 203 stars
codex skill
yan-labs/yan-skills · codex/SKILL.md · **Generate images** with Codex's built-in OpenAI image-generation tool — route every "生成图片 / 配图 / 插图 / image gen / 画一张…
git:20260822.e230bea · audit A · 203 stars
game-opportunity skill
yan-labs/yan-skills · game-opportunity/SKILL.md · Rankup 的小游戏机会专项 Skill。用于监测游戏平台 sitemap、发现 24 小时游戏新词、建立多语言关键词需求簇、核对 KD/SERP/近 7 天趋势/独立需求/可玩供给并生成每日决策报告;通用规则和脚本随 Rankup…
git:20260921.28c4148 · audit A · 203 stars
opencli skill
yan-labs/yan-skills · opencli/SKILL.md · 用 OpenCLI 驱动用户本机那个真实的、已登录的 Chrome,或调用它的 160+ 站点 adapter。任何需要登录态的页面操作都从这里开始——读登录后的后台、抓没有 API…
v1.5.0 · audit A · 203 stars
rankup skill
yan-labs/yan-skills · rankup/SKILL.md · 网站从零到一与长期增长的总控 Skill。用于新建网站、SaaS、工具站或内容站,规划或初始化 TanStack Start Monorepo,使用 Cloudflare Workers、D1、R2 部署全栈应用,接入支付,执行…
v3.16.1 · audit A · 203 stars
skill-link-check skill
yan-labs/yan-skills · skill-link-check/SKILL.md · Audit project and global .agents/skills and .claude/skills layouts. Verify that .agents/skills contains the real source…
git:20260801.45daefe · audit A · 203 stars
skillsmp skill
yan-labs/yan-skills · skillsmp/SKILL.md · 在 SkillsMP(1.6M+ 公开 SKILL.md 的索引,覆盖 Claude Code / Codex / ChatGPT)里搜 Agent Skill,按关键词、分类、职业、语言过滤,并专门挖那些「写得好但没人知道」的冷门…
git:20260830.f8ac2dd · audit A · 203 stars

Every file in yan-labs/yan-skills

Other files named imagegen

imagegen skill
blockrunai/clawrouter · skills/imagegen/SKILL.md · Generate or edit images via BlockRun's image API. Trigger when the user asks to generate, create, draw, make an image —…
git:20260905.317761a · audit A · 6,612 stars
imagegen skill
bruc3van/agent-skills-guard · test/test-skills/positive-real/codex-system-imagegen/SKILL.md · Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations…
git:20260608.9f59278 · audit A · 389 stars
imagegen skill
jurybu/mcp-skill-rules_packages · skills/imagegen/SKILL.md · Use when the user asks to generate or edit images via the OpenAI Image API (for example: generate image…
git:20260606.4f12f4d · audit A · 48 stars
imagegen skill
andersonlimahw/lemon-ai-hub · plugins/imagegen/SKILL.md · Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations…
git:20260801.d400e34 · audit A · 14 stars
imagegen skill
ethanyoq/skill-hub · skills/07-media-content/imagegen/SKILL.md · Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations…
git:20260704.a768ef4 · audit A · 10 stars
imagegen skill
firzus/agent-skills · skills/engineering/imagegen/SKILL.md · Generates or edits raster images with AI (photos, illustrations, textures, sprites, mockups, logos, infographics)…
git:20260919.d2ee4b6 · audit A · 3 stars

Browse by kind, by grade A, or by owner.