ask-llm-codex-image

ask-llm-codex-image is a skill for Claude Code from Lykhoyda/ask-llm. It costs 98 tokens per session (2,262 once invoked), scanned A, a copy of codex-image, MIT.

An image-generation workflow that asks OpenAI's gpt-image-2 model, through the Codex command-line tool, to create an image file. It checks that the resulting file exists.

In plain words
What is it for?
Use it to create pictures, graphics, or other visual assets from a text request.
Why use it?
It provides a defined way to turn an image request into a saved file and exposes generation or filesystem failures.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool; mentions Claude Code; runs codex exec.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ask-llm plugin — 40 skills, 12 agents, 5 hooks, 8 MCP servers shipped together

Good fit Use it to create pictures, graphics, or other visual assets from a text request.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Lykhoyda/ask-llm
Claude Code
/plugin install ask-llm

Made for: Claude Code.

Or install ask-llm, the plugin that ships this one along with the rest of its 40 skills, 12 agents, 5 hooks, 8 MCP servers.

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

agentmods badge for ask-llm-codex-image

README.md
[![agentmods](https://agentmods.dev/badge/skills/lykhoyda/ask-llm/ask-llm-codex-image/github.svg)](https://agentmods.dev/skills/lykhoyda/ask-llm/ask-llm-codex-image)
Your own site
<a href="https://agentmods.dev/skills/lykhoyda/ask-llm/ask-llm-codex-image"><img src="https://agentmods.dev/badge/skills/lykhoyda/ask-llm/ask-llm-codex-image/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.

agentmods 80×15 button for ask-llm-codex-image

Your own site · 80×15
<a href="https://agentmods.dev/skills/lykhoyda/ask-llm/ask-llm-codex-image"><img src="https://agentmods.dev/badge/skills/lykhoyda/ask-llm/ask-llm-codex-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,262 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.02262
Opus 5.5 $0.00039 $0.00905
Sonnet 5.5 $0.00020 $0.00452
Haiku 4.5 $0.00010 $0.00226

Measured 7d ago against content hash 585bcb342a9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ask-llm-codex-image 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 7d 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.

Origin

This is a copy

86% identical to codex-image — 124 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

packages/llm-mcp/skills/ask-llm-codex-image/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Portable contract

Refine the requested image prompt without changing intent, select an explicit output path, invoke ask-codex-write with sandbox: "workspace-write" so its image tool may create the file, verify the resulting file on disk, and report the path and provider response. Surface feature, policy, timeout, and filesystem failures verbatim.

Host adapters

Pi adapter

Call native ask-codex-write with sandbox: "workspace-write". After it returns, use Pi's read-only filesystem tools to verify the output file. Do not claim automatic inline rendering in print mode.

Other hosts adapter

Codex, Cursor Agent, Antigravity, Grok Build, Gemini CLI and OpenCode get this skill from their skills folder, not from a plugin. Use the writable Codex call from ../ask-llm-review/transport.md with sandbox: "workspace-write" and the exact model the user named (gpt-6.2-sol otherwise), then read the output file to confirm it exists.

Claude Code adapter

The existing detailed workflow below is the Claude Code adapter. Its Agent, MCP, hook, CLAUDE_PLUGIN_ROOT, and AskUserQuestion mechanics apply only on Claude Code; they do not override the Pi adapter above.

Codex Image Generation

Generate an image by delegating to the ask-codex-write MCP tool with a prompt-engineered template that triggers Codex's built-in image_generation tool. The result is saved to disk and the path is returned to the user.

Model capabilities (gpt-image-2)

Codex's image_generation tool selects the image model server-side; as of 2026-04-21 that is gpt-image-2. Three capabilities are worth accounting for when building prompts:

  • Legible in-image text — per OpenAI's launch materials, gpt-image-2 renders text at ~99% accuracy across many scripts, so captions, labels, and UI copy are now reliable. gpt-image-1's weak text is no longer a reason to avoid asking for it.
  • High resolution — up to 4K and custom dimensions; ask for it explicitly in the prompt body when you need it. Default square renders observed in testing varied (1024×1024 and 1254×1254), so don't hard-code an expected size — read it back from the file if it matters.
  • Provenance + watermark — every render embeds a C2PA provenance manifest and an invisible AI-origin watermark. Flag this to the user when the image is destined for a context sensitive to AI-generated-content metadata.

Read the full file on GitHub · 125 lines

Changes

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.

  1. 7d ago Changed 585bcb342a9e
  2. 12d ago Changed 49c52dce0627
  3. 13d ago Changed a40193e14f70
  4. 14d ago Changed ff77fe32b26f
  5. 1mo ago First seen · 125 lines · 98 tokens per session scan A 8427d4efc3e8

Subscribe to this mod's changes

ask-llm-codex-image is a skill published in the GitHub repository Lykhoyda/ask-llm (20 stars, last pushed yesterday), licensed MIT. It adds 98 tokens to every session and 2,262 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to codex-image, differing in 124 lines, and is treated as a copy.

Related

ask-llm-codex-image compared with skills from other repositories

ask-llm-codex-image next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ask-llm-codex-imageLykhoyda/ask-llmSkill20yesterdayMITA98Claude Code
skill-provenancesnapsynapse/skill-provenanceSkill88d agoMITA99Claude Code, Codex
bootstrapsnapsynapse/skill-provenanceSkill88d agoMITA91Claude Code
handoffsnapsynapse/skill-provenanceSkill88d agoMITA93Claude Code
using-ccproxy-apistarbaser/ccproxySkill3623mo agononeA94Claude Code
using-ccproxy-inspectorstarbaser/ccproxySkill3623mo agononeA130Claude Code
offensive-c2-frameworksSnailSploit/Claude-RedSkill12k14d agoMITA250Claude Code, Codex