Codex Imagesのロゴ

Codex Images

コミュニティ
Melvynx
codex-images

Codex(OpenAIのコーディングエージェントで、ChatGPTプランに含まれる組み込み画像ツール)で画像を生成します。YouTubeのサムネイル、カバー画像、Bロールの静止画、ボード画像、プロフィール写真などを、画像ごとにCodexのジョブを1つ使い、複数を並行して作成します。顔が重要な場合はクリエイターの写真を参考にし、生成した画像をマニフェストとともにプロジェクトにコピーします。ユーザーが「画像を生成して」「サムネイルを作って」「カバーを作って」「ビジュアルを作って」「codex images」「génère une image」「miniature」と言ったときや、publishまたはshort-editingで画像が必要なときに使います。

Add to TypingMind

概要

公開者Melvynx
リポジトリvideo-agent-skills
スキル名codex-images
スター
89
フォーク
17
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    MelvynxがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Codex Images」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Melvynx/video-agent-skills/tree/main/skills/codex-images
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Melvynx/video-agent-skills.git /tmp/video-agent-skills
mkdir -p .claude/skills
cp -r /tmp/video-agent-skills/skills/codex-images .claude/skills/codex-images
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCodex Imagesを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCodex Imagesを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Codex Imagesは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「Codex Images」では何ができますか?

Codex(OpenAIのコーディングエージェントで、ChatGPTプランに含まれる組み込み画像ツール)で画像を生成します。YouTubeのサムネイル、カバー画像、Bロールの静止画、ボード画像、プロフィール写真などを、画像ごとにCodexのジョブを1つ使い、複数を並行して作成します。顔が重要な場合はクリエイターの写真を参考にし、生成した画像をマニフェストとともにプロジェクトにコピーします。ユーザーが「画像を生成して」「サムネイルを作って」「カバーを作って」「ビジュアルを作って」「codex images」「génère une image」「miniature」と言ったときや、publishまたはshort-editingで画像が必要なときに使います。

TypingMindでCodex Imagesを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Codex Imagesはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCodex Imagesをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Melvynx/video-agent-skills/tree/main/skills/codex-imagesを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Codex Imagesを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Codex Imagesで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCodex Imagesを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Codex Images」は無料ですか?

はい。MelvynxがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇