qiaomu-codex-imagegen skill

Skill, MCP server and CLI that let any agent call Codex image generation, after picking a style from several directions

  • 136 ★ on the repository
  • Last commit
Skill

Extended access

Why this level

  • Launches the local Codex CLI and spends your Codex and OpenAI account quota on every image
  • Saves images and prompt JSON files into a folder on disk you choose
All reasons and checks

joeseesun/qiaomu-codex-imagegen

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/qiaomu-codex-imagegen

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Launches the local Codex CLI and spends your Codex and OpenAI account quota on every image
  • Saves images and prompt JSON files into a folder on disk you choose

This is third-party code. Review the repository files before installing.

What it does

qiaomu-codex-imagegen takes Codex built-in image generation outside Codex: it works in Claude Code, Cursor and any agent through an MCP server, a command line or a skill with a shared core. Before every generation the agent offers at least four style directions with different mechanisms, you pick, and only then is the prompt built. Inside are 24 scene templates with 48 presets and 20 Mondo poster designer styles. The first step is suggest_directions: it gives directions from different families, free and instant. compose_prompt expands the chosen template into a full prompt with a list of things to avoid, acceptance criteria and missing information. generate_image creates or edits a picture and writes a JSON with the actual prompt beside it so the result can be repeated. Then the agent checks the image against the criteria and, if needed, regenerates only the relevant phrase. There is a search over a local corpus of 689 reference prompts. The server calls the Codex CLI installed on your machine through codex app-server --listen stdio://, so images are created in your Codex account and spend its quota.

Who it is for. Designers, content makers and marketers who make covers, posters and social images and want Claude Code and Cursor to use Codex generation with a style choice.

Good fit when

  • You need a 16:9 video cover with room for a title and several style options to choose from
  • Images for Xiaohongshu at 3:4 with the main subject shifted up and room for text at the top
  • A poster in the manner of several Mondo designers, one image per designer
  • The background of a finished image has to be replaced while keeping the main subject
  • A series of images should keep one style: the first fixes the style and the rest repeat it

Not a fit when

  • Codex CLI is not installed or signed in: the server calls it and no images are created without it
  • The Codex account has no image generation permission: the server returns an explicit error
  • You need many images at once: each spends account quota and the count parameter up to four multiplies spending
  • You want generation without options: the agent proposes directions first, and the step can be skipped by asking it to generate right away

Example request

Make a 16:9 cover for a video about a library and propose three style directions first, then generate the chosen one

Limitations

  • An installed and signed-in Codex CLI and a Codex account with image generation access are required; the program path is set by QIAOMU_CODEX_BIN.
  • Each image takes 30–60 seconds and spends the quota of your Codex and OpenAI account, and count up to four runs generations in parallel.
  • Search across the 689 reference prompts needs a local data pack.
  • Examples and templates name styles of real poster designers; events, brands and characters in the samples are fictional and the rights to the result stay with you.

How to disable. Delete the skill from the agent skills directory and remove the qiaomu-codex-imagegen entry from MCP settings, for example with claude mcp remove qiaomu-codex-imagegen.

FAQ

How do I install qiaomu-codex-imagegen?

Install the skill with npx skills add joeseesun/qiaomu-codex-imagegen. In Claude Code register the MCP server with claude mcp add --scope user qiaomu-codex-imagegen -- node /absolute/path/scripts/mcp-server.mjs.

What do I need to run it?

An installed and signed-in Codex CLI and a Codex account with image generation permission. Generate one image in Codex itself first to be sure.

Which tools does the MCP server provide?

Seven: suggest_directions, compose_prompt, generate_image, search_prompts, get_prompt, build_prompt and list_catalog. The first two are free.

How much time and quota does an image take?

Roughly half a minute to a minute, charged to your account. Check the built prompt at no cost with --show-prompt.

Can I work without MCP, from a terminal?

Yes, node scripts/cli.mjs "description" --preset xiaohongshu creates an image from a repository clone without MCP.

Discussion

No questions or reviews yet.

Skills

A Codex skill that builds an animated companion from two or more of your photos and generates it on your own machine

SkillExtended access294Repository stars

A skill that adds image generation to Claude Code and Cursor through the Codex CLI on a ChatGPT subscription, no API key.

SkillExtended access84Repository stars

A set of skills for Claude Code and Codex that assemble detailed image prompts from an element library and composition schemes

SkillExtended access1.5KRepository stars

Image generation and editing from any agent: the imagegen-agent CLI and a skill with the Codex prompt library for compatible APIs

CLIExtended access233Repository stars

A plugin that draws and edits images in Claude Code through the built-in image_gen of local Codex on a ChatGPT login, no API key.

PluginExtended access126Repository stars

Skills and a CLI that take Codex or Claude Code from a novel text to finished manga: script, storyboard, art, lettering and PDF.

SkillExtended access168Repository stars

README in short

The page explains the idea: built-in Codex generation works only in Codex and the project moves it into MCP, a command line and a skill. Then it describes the options-first order, a task table, samples of one theme in five directions, install, phrases for the agent, command line examples and time and quota limits.

README badge

Original SKILL.md

---
name: qiaomu-codex-imagegen
description: |
  Generate or edit images with Codex's built-in image generation from any agent, through an MCP tool or a plain CLI. For every image request it first proposes at least four divergent style directions (24 distilled templates, 48 presets, 20 Mondo poster artists), lets the user pick, expands the prompt, generates, and checks the result. Scenario craft for 视频封面, 视频海报, 小红书配图, 公众号封面, X 封面, 朋友圈海报, 书籍封面, 专辑封面, 产品海报, 人物写真, 节气海报, 展览海报, PPT 页面, 图生图. Use for 生图, 配图, 海报, 封面, "给我几个风格", "用 Codex 画一张". Excludes: editing photos with local tools, charts or diagrams from data, UI mockups, video generation, or anything that needs an API key-based image service.
license: MIT
metadata:
  version: 0.3.0
  author: 向阳乔木 (https://x.com/vista8)
---

# Qiaomu Codex ImageGen

Codex ships an image generator that other agents cannot call. This package relays to it (`codex app-server`) and adds the craft that makes the pictures usable: a library of 24 templates (48 presets) distilled from 689 reference prompts, Mondo poster techniques, scenario presets, and a rule set for facts, text and identity.

## How to call it

1. **MCP tools present** (`suggest_directions`, `compose_prompt`, `generate_image`, `search_prompts`, `get_prompt`, `build_prompt`, `list_catalog`; in Claude Code `mcp__qiaomu-codex-imagegen__*`): use them.
2. **No MCP**: run the CLI from this skill's folder: `node scripts/cli.mjs suggest|compose|generate|search|prompt|list` (see `--help`).
3. Neither available: tell the user to install (README). Requires the Codex CLI, logged in. Never fake an image with code.

## The workflow: suggest, choose, compose, generate, check

### 1. Intake (no tool call yet)

Extract: **topic**, **deliverable** (what it is for), ratio, **text mode**, facts that must be exact, references and the role of each (`identity` person, `product` real packaging, `style`, `layout`), must-keep, must-avoid.

- Text mode: `none` (no text), `exact_short` (only the short text you list), `typeset_later` (text-free base with room for the title).
- **Posters, covers, cards and slides need a typographic layer.** A finished poster has a hierarchy: headline, subtitle, one or two info lines, a small tag. With only a headline, or none, the result is concept art, not a poster. So for these deliverables use `exact_short` and give a complete short copy set: `headline` plus `copy` as lines separated by `|`. Take the lines from the user's facts. If they gave none, ask, or write clearly fictional sample lines and say so; never invent real prices, dates of real events, names, statistics.
- `none` fits portraits and photos (T09–T11), product macros that carry no information, and base images the user will typeset. Keep every string short and read the result: models misspell, especially long Chinese.
- Ask only blocking questions, at most three: a missing subject, a real person's identity reference, or facts that must appear. Fill low-risk gaps with a stated default.

### 2. Suggest at least four divergent directions

Call `suggest_directions` with the topic, deliverable and any headline/text mode. It returns **four or more directions with different visual mechanisms** (typography-led, graphic structure, photographic, product macro, material/space, plus a Mondo artist option for poster-like work). Never mix two mechanisms into one image.

Present them to the user briefly, one numbered item each:

- name and template id,
- **one concrete sentence of what this topic would look like in that mechanism** (write it yourself from `mechanism` and the topic, not a copy of the lock text),
- what you still need from them (subject, data, reference photo),

Report a problem