cs-codex-image

cs-codex-image is a skill for Codex from ChenShuo2004/cs-skills. It costs 85 tokens per session (840 once invoked), scanned A, original, MIT.

An image-generation bridge that lets Codex create or edit images and connect that ability to Claude or another local agent through MCP, a way for software tools to call one another. It can save generated images into a project folder and check the finished result.

In plain words
What is it for?
Use it to make or edit project images, including images requested from Claude through the MCP connection. It helps wait for generation jobs, inspect the resulting pixels, and report the saved file and its real dimensions.
Why use it?
It lets supported agents use an existing Codex or ChatGPT login instead of a separate image API key. It also distinguishes a connected tool or queued job from an image that was actually generated successfully.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex; $skill-name invocation.

Good fit Use it to make or edit project images, including images requested from Claude through the MCP connection. It helps wait for generation jobs, inspect the resulting pixels, and report the saved file and its real dimensions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chenshuo2004/cs-skills/cs-codex-image
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ChenShuo2004/cs-skills --skill cs-codex-image
Clone the repo
git clone --depth 1 https://github.com/ChenShuo2004/cs-skills

Made for: Codex.

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 cs-codex-image

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/chenshuo2004/cs-skills/cs-codex-image"><img src="https://agentmods.dev/badge/skills/chenshuo2004/cs-skills/cs-codex-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 840 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 original No closer match found 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.00085 $0.00840
Opus 5.5 $0.00034 $0.00336
Sonnet 5.5 $0.00017 $0.00168
Haiku 4.5 $0.00009 $0.00084

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

Security

Grade A, and why

cs-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 18d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/install.mjs, scripts/runtime.mjs, scripts/server.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

cs-codex-image/SKILL.md · 38 lines

What it actually says

CS Codex Image

交付真实图片与保存路径,或可验证的 Claude 生图连接。使用已有 ChatGPT/Codex 登录;不切换到图片 API。复制 Skill 说明不会自动赋予其他宿主内置工具,Claude 需要下面的 MCP 桥接。

按当前宿主执行

  • Codex 已提供内置图片工具:直接调用内置工具。新图描述主体、构图、用途、画风和文字;编辑图先查看目标,明确参考图角色与保持项。生成后查看图片,并将项目资产保存进项目目录。
  • Claude 或其他本地 Agent:已连接 codex-image 时直接用 MCP;需要接入或工具缺失时,读取 安装与恢复,运行随 Skill 提供的安装器。安装 Skill 本身不自动改 MCP 配置、不安装依赖或消耗出图额度。
  • 只有 Skill,没有内置工具或可用 Codex:完成只读预检并说明实际缺口。不要用 SVG、程序绘图或其他服务冒充内置生成,不索取 API Key。

品牌任务保留 cs-kai-cover 或 cs-xiaohuang-skill 的角色和排版规范;本 Skill 只承担内置出图与连接。生成流程不附加上传、发布或视频渲染。

MCP 出图流程

  1. 调用 generate_image:prompt、aspect_ratio(square / portrait / landscape)、transparent_background、可选的 reference_images 与 output_dir。每次一张;编辑时目标图放第一张,用绝对路径并在 prompt 指明保持项。
  2. 保存 job_id,用 get_image_job(job_id, wait_seconds=20) 等待到 completed 或 failed。约一至三分钟是操作参考,实际以状态为准;任务会在八分钟后超时停止。
  3. completed 后调用 read_generated_image 查看真实像素,检查主体、文字、保持项及透明背景要求;报告真实尺寸与保存路径。原文件与已存在输出不覆盖。
  4. 作业失败先查看返回错误与已有任务。不要自动重提交相同请求;修正输入后再生成,或用户明确要求重试时继续。MCP 重连可查询原 job_id,不能因此重复出图。

queued、running、工具连接成功、配置已写入都不是出图成功。Skill 文件安装一致、MCP 可连接、Codex 实际生成和 Claude 模型真实调用分别报告。登录过期时由用户完成官方登录;已有任务未结束时不强制重启 Claude。

可复制调用

$cs-codex-image 使用 Codex 内置生图,画一张奶油色背景的小黄鸟插画,正方形,无文字。完成后检查图片并告诉我保存路径。
$cs-codex-image 把 Codex 内置生图接入 Claude,保留已有 MCP 配置;检查连接,并用一张图验证实际生成。使用当前登录,不使用 API Key。

交付:图片 / 已配置连接、实际后端、验证状态、保存路径和必要的恢复步骤。更详细的字段、检查命令与客户端边界见 安装与恢复。

Files

What ships with it

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

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. 18d ago First seen · 38 lines · 85 tokens per session scan A 0febb4b9ec5c

Subscribe to this mod's changes

cs-codex-image is a skill published in the GitHub repository ChenShuo2004/cs-skills (204 stars, last pushed 18d ago), licensed MIT. It adds 85 tokens to every session and 840 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-10-07.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens