К основному содержанию
скилл CX Codex

codex-images — скилл для Claude Code: генерация изображений

Скилл codex-images для Claude Code создаёт изображения через встроенный генератор Codex. Запускается по просьбе сделать обложку, миниатюру или другой визуал для видео.

MIT 1 700 установок ★ 193 обновлён 2026-11-06

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add Melvynx/video-agent-skills --skill codex-images -a claude-code
Открыть на GitHub

Что делает codex-images

Скилл создаёт по одному изображению на задание Codex, затем копирует готовые файлы в папку проекта и записывает их в manifest.json. Можно запросить несколько вариантов; задания запускаются параллельно, не больше трёх одновременно. Перед генерацией агент показывает промпты и ждёт подтверждения: каждое изображение расходует лимит Codex в плане ChatGPT Plus или Pro.

Для изображений с лицом нужны от одной до трёх фотографий человека. Размер и пропорции проверяются через sips на macOS или ffprobe; миниатюру приводят к формату 1280x720 и сохраняют как JPG размером до 2 MB. Текст на картинке и сходство лица нужно проверять: генератор может ошибиться. Нужны установленный Codex и вход через codex login; ключ API не требуется.

Какие задачи решает

  • создать миниатюру для YouTube
  • сгенерировать несколько вариантов обложки
  • подготовить кадр для видеомонтажа
  • добавить референсные фото лица к заданию
  • сохранить изображения проекта с манифестом

Примеры запросов агенту

  • Создай миниатюру для видео и покажи промпт перед генерацией.
  • Сделай три разных варианта обложки, используя ref и фото portrait.jpg.
  • Подготовь кадр для видеодоски в проекте launch.

Как установить codex-images

1Через Skills CLI (Vercel)

npx skills add Melvynx/video-agent-skills --skill codex-images -a claude-code

2Вручную: положить файлы

~/.claude/skills/codex-images/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/codex-images/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о codex-images

Как установить codex-images в Claude Code?

Выполни npx skills add Melvynx/video-agent-skills --skill codex-images -a claude-code. Скилл появится по пути ~/.claude/skills/codex-images/SKILL.md.

Что делает codex-images?

Скилл поручает Codex создавать изображения по отдельному промпту, копирует результат в проект и формирует manifest.json. Он подходит для миниатюр, обложек и кадров для видео.

Что нужно для работы codex-images?

Нужны установленный Codex, вход через codex login и план ChatGPT Plus или Pro с лимитом Codex. Ключ API не нужен; для изображений с лицом нужны фотографии человека.

Исходный текст

SKILL.md · MIT
---
name: codex-images
description: Generates images with Codex (OpenAI's coding agent and its built-in image tool, included in a ChatGPT plan) - YouTube thumbnails, covers, B-roll stills, board images, profile pictures - one Codex job per image, several in parallel, with the creator's photos as reference when the face matters, then copies them into the project with a manifest. Use when the user says generate an image, a thumbnail, a cover, make me a visual, codex images, génère une image, miniature, or when publish or short-editing needs an image.
argument-hint: "<what to make> [x<count>] [ref <photo>...] [for <slug>]"
allowed-tools: Bash(codex --version) Bash(codex login status) Bash(ls *) Bash(cp *) Bash(sips *) Bash(ffprobe *)
---

# Codex Images

Images made by Codex's built-in image tool, run from the terminal: one `codex exec` per image, several at once. It uses their ChatGPT plan (Plus or Pro), no API key.

Talk to them in their language. `<out>` = the output folder: `video-agent/edits/<slug>/images/` for a video, else `video-agent/images/<name>/`.

## 1. Codex (once)

```bash
codex --version
codex login status
```

- Not installed: `npm i -g @openai/codex` (needs Node 20+), or `brew install codex` on macOS.
- Not logged in: they run `codex login` themselves (it opens the browser, "Sign in with ChatGPT"). Never ask for an OpenAI key or password in the chat.

## 2. The brief

One image = one prompt. Never pack several ideas into one job.

Ask only what is missing, in one message:

- **What for**: thumbnail (1280x720, 16:9), short cover (1080x1920, 9:16), square post (1:1), a still for an image board or B-roll (the video's format).
- **How many**: 1 by default; 3 variants for a thumbnail (a different idea each, not the same one three times).
- **Their face**: a thumbnail with them in it needs 1 to 3 clear photos (a frame of a take works: `ffmpeg -v error -y -ss <t> -i <take> -frames:v 1 -q:v 2 <out>/ref-face.jpg`). Pass the absolute paths.

Write each prompt in English, concrete: the subject, the framing, the background, the light, the colors, the text on the image (3 words at most, written exactly in quotes, in the video's language), and the format. For a thumbnail: one subject, big readable text, strong contrast, a face with a clear emotion, nothing in the bottom right corner (YouTube puts the duration there). Every claim on the image comes from the video.

Show the prompts in a numbered list and wait for a yes (each image uses some of their Codex usage limit).

## 3. Generate

One job per prompt, at most 3 at a time, each in the background. Always end with `< /dev/null` (without it `codex exec` waits for input forever), and keep the last message in a file:

```bash
mkdir -p <out>/logs
codex exec --skip-git-repo-check -s workspace-write -C "$PWD" \
  --output-last-message <out>/logs/<n>-<name>.txt \
  "Use your built-in image_gen tool to generate exactly one raster image for the prompt below. Do not edit any file. Do not ask questions. No SVG, no HTML, no placeholder.
Reference images (pass them to image_gen as referenced_image_paths): <absolute paths, or none>
When done, reply with exactly these two lines:
ASSET_NAME: <kebab-case-name>
IMAGE_PATH: <absolute path of the generated image>

Image prompt:
<the prompt>" \
  < /dev/null > <out>/logs/<n>-<name>.log 2>&1
```

A job takes about 1 to 3 minutes. When it ends, read its `.txt`, take `IMAGE_PATH` and copy the image:

```bash
cp "<IMAGE_PATH>" <out>/<n>-<name>.png
```

No `IMAGE_PATH` in the answer: the newest file in `~/.codex/generated_images/` (`ls -t ~/.codex/generated_images/*/* | head -3`) created after the job started. Nothing new there: the job failed, show the end of its `.log` (often a usage limit, or `codex login` needed) and run that one again once.

## 4. Check and hand over

- One image per prompt, and no two identical (`shasum <out>/*.png`).
- The size: `sips -g pixelWidth -g pixelHeight <file>` (macOS) or `ffprobe -v error -show_entries stream=width,height -of csv=p=0 <file>`. A thumbnail must be 16:9: crop or scale it to 1280x720 with ffmpeg (`-vf "scale=1280:720:force_original_aspect_ratio=increase,crop=1280:720"`), under 2 MB as JPG.
- Look at each image: the text spelled right, the face like them, nothing odd (hands, extra letters). A wrong one: fix the prompt and run that one again.

Write `<out>/manifest.json`: one entry per image with `file`, `prompt`, `refs`, `date`. Show the images, then:

- A thumbnail or cover: `/publish` uses `<edit>/images/` (they pick one, it is copied as `<edit>/cover.jpg`, the cover and the YouTube thumbnail).
- A still for a video: `/short-editing` can place it as an `img` item on a board (copy it into the short's `assets/images/`).

Delete `<out>/logs/` once everything is fine.

## Honest limits

- The image tool is OpenAI's, inside Codex: the result depends on it, and it changes. Text on the image can come out misspelled: always check it.
- A face from reference photos looks close, rarely perfect. Real photos of them stay the safest for a thumbnail.
- Each image counts against their ChatGPT plan's Codex limits; a limit reached means waiting or a bigger plan.
- Only use photos of people who agreed, and no logos or characters they don't own.

© Melvynx · MIT · Melvynx/video-agent-skills

Похожие скиллы

Каталог скиллов SKILL.md →
baoyu-xhs-images JimLiu Скилл baoyu-xhs-images превращает текст в серию карточек-инфографик с 12 стилями, 8 раскладками и 3 палитрами. Разбивает контент на 1–10 картинок для постов в соцсетях. CX Codex +1 32 100установок seo-images AgriciDaniel Скилл seo-images для Claude Code проверяет изображения для SEO и производительности. Аудит находит проблемы с alt-текстом, форматами, размерами и загрузкой. CX Codex +1 7 800установок xiaohongshu-images iamzifei Скилл xiaohongshu-images преобразует Markdown, HTML или текст в стилизованные изображения 3:4 для публикаций в Xiaohongshu. Создаёт обложку и последовательные скриншоты страницы. CX Codex +1 2 000установок unsplash-asset-images MengTo Скилл unsplash-asset-images подбирает фотографии Unsplash под аватары, хедшоты, фоны и обои и сразу называет нужные пропорции и разрешения. CX Codex +1 1 900установок aura-asset-images MengTo Скилл aura-asset-images для Claude Code ищет стоковые изображения Aura Assets по тегу и возвращает 5 прямых URL на категорию для дизайн-макетов. CX Codex +1 1 800установок images-search brave Скилл images-search для Claude Code ищет изображения через Brave Search API и возвращает заголовок, URL страницы и миниатюру. За запрос — до 200 результатов с фильтром SafeSearch. CX Codex +1 1 800установок

Из того же набора9

short-editing Скилл short-editing для Claude Code превращает запись с говорящей головой в короткий ролик с моушн-дизайном. Запускается по просьбе смонтировать видео, добавить титры или сделать шорт. CX Codex +1 2 000установок clips Скилл clips для Claude Code превращает длинное видео в вертикальные короткие ролики и новые сценарии. Запускается по ссылке на YouTube или запросу нарезать локальный файл. CX Codex +1 1 800установок studio-script Скилл studio-script для Claude Code пишет сценарии коротких видео на 30–60 секунд для Shorts, Reels и TikTok. Планирует сетку роликов на неделю, подбирает хуки и очищает текст от маркеров ИИ. CX Codex +1 1 800установок editing Скилл editing для Claude Code и других платформ, который управляет процессом видеопроизводства. Направляет задачи в профильные инструменты и продолжает работу над проектом, если она уже начата. CX Codex +1 1 700установок steal Скилл steal для Claude Code разбирает монтаж референсного ролика и сохраняет его как стиль. Затем применяет этот стиль к вашему видео и сравнивает результат с оригиналом. CX Codex +1 1 700установок broll Скилл broll для Claude Code, создающий доступную для поиска библиотеку видеофутажа. Индексирует клипы, выполняет их автоматическую разметку и поиск по запросу. CX Codex +1 1 700установок outliers Скилл outliers для Claude Code находит популярные Reels и TikTok-видео относительно обычных просмотров аккаунта. По запросу об идеях для роликов он составляет сценарии для повторной съёмки голосом автора. CX Codex +1 1 600установок short-translate Скилл short-translate для Claude Code переводит видео с клонированием голоса автора через ElevenLabs. Запускается по запросу перевести или адаптировать ролик на другой язык. CX Codex +1 1 600установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой