Borrowing it
Nothing to install: this file belongs to walker1211/codex-imgen. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/walker1211/codex-imgen/main/.agents/skills/imgen/SKILL.mdgit clone --depth 1 https://github.com/walker1211/codex-imgenWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/walker1211/codex-imgen/imgen)<a href="https://agentmods.dev/skills/walker1211/codex-imgen/imgen"><img src="https://agentmods.dev/badge/skills/walker1211/codex-imgen/imgen/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/walker1211/codex-imgen/imgen"><img src="https://agentmods.dev/badge/skills/walker1211/codex-imgen/imgen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00073 | $0.00867 |
| Opus 5.5 | $0.00029 | $0.00347 |
| Sonnet 5.5 | $0.00015 | $0.00173 |
| Haiku 4.5 | $0.00007 | $0.00087 |
Grade A, and why
imgen scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
imgen
Use this skill to operate the codex-imgen CLI, service jobs, realtime mode, and OpenClaw integration.
Route the request
Read only the references needed for the request:
references/imgen-usage.md: commands, configuration, backend behavior, service/realtime selection, and the OpenClaw delivery contract.references/prompt-patterns.md: prompt wording for text-to-image or image-to-image requests.references/troubleshooting.md: failed, slow, retried, stuck, or missing-image runs.
Combine references only when the request spans those concerns.
Ask only necessary questions
If the user gave enough information, provide the command or steps directly.
Ask one question only when a required value is missing:
- Missing image prompt for generation.
- Missing local image path for image-to-image.
- Missing job id for
status,get,cancel, or job-specific troubleshooting. - Missing choice between synchronous CLI, service job, or realtime only when the goal does not determine it.
Do not ask for preferences that are not needed to produce a safe minimal command.
Command rules
- Use the shortest command that satisfies the request.
- Default one-shot generation, including normal OpenClaw requests, to synchronous
./imgen --json ...from a discovered config working directory. - Use repeated
--image <local-path>flags for references; URLs are not supported. - Use
--count Nand--concurrency Mfor quantity while keeping the prompt about one image. - Use
submitonly for job management, polling, cancellation, or recovery. Use realtime only for live WebSocket events whileimgen serveis running. - Treat success as returned image paths: text path lines, or
ok: truewith non-emptyimages[].path. Exit code 0 alone is insufficient. - For OpenClaw, follow the full contract in
references/imgen-usage.md; never substituteimage_generate, directcodex exec, or stale paths.
Safety and configuration rules
- Treat
.envas the only place for sensitive values such asEMAIL_SMTP_AUTH_CODE. - Treat
configs/config.yamlas the local structured configuration file. - Do not suggest committing
configs/config.yaml,.env, generated images, logs, or.data/imgen.db. - Do not suggest
0.0.0.0service binding unless the user explicitly asks for LAN access and understands the exposure. - Do not bypass Codex CLI login, permissions, or
$imagegenavailability checks. - Inspect
backend.modelandbackend.reasoning_effortbefore describing the active Codex agent configuration. The skill itself does not choose either value. - Do not call
backend.modelthe image-generation model; it selects the Codex agent that invokes$imagegen.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 79 lines · 73 tokens per session scan A 3ed846158f62
imgen is a skill published in the GitHub repository walker1211/codex-imgen (2 stars, last pushed 19d ago), licensed MIT. It adds 73 tokens to every session and 867 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
imgen compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| imgenwalker1211/codex-imgen | Skill | 2 | 19d ago | MIT | A | 73 | Claude Code, Codex |
| goericrisco/rsc-harness | Skill | 573 | today | MIT | A | 86 | Claude Code, Codex |
| homebutlerHigangssh/homebutler | Skill | 317 | today | MIT | A | 56 | Claude Code, Codex |
| code-guidelines-godimetron/pi-go | Skill | 224 | today | MIT | A | 124 | Claude Code, Codex |
| go-127dimetron/pi-go | Skill | 224 | today | MIT | A | 177 | Claude Code, Codex |
| bubbletea-testingdimetron/pi-go | Skill | 224 | today | MIT | A | 139 | Claude Code, Codex |
| gographozgurcd/gograph | Skill | 231 | 3d ago | MIT | A | 69 | Claude Code |