Logo von Codex Image

Codex Image

Community
IanShaw027
codex-image

Use when generating or editing raster images and the built-in image_gen tool is not exposed in the current Codex session, when Codex is running in API key mode, or when the user explicitly asks for codex-image, saved PNG/JPEG/WebP output, Images API, custom OPENAI_BASE_URL, exact output path, exact size, aspect ratio, or local image CLI workflow.

Übersicht

HerausgeberIanShaw027
Repositorycodex-image
Skill-Namecodex-image
Sterne
32
Forks
5
Mitgelieferte Dateien
16
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 16 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von IanShaw027 auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Codex Image in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/IanShaw027/codex-image/tree/main/skills/codex-image
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/IanShaw027/codex-image.git /tmp/codex-image
mkdir -p .claude/skills
cp -r /tmp/codex-image/skills/codex-image .claude/skills/codex-image
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Codex Image in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Codex Image automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Codex Image nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Codex Image Skill

Local saved-file raster image workflow backed by scripts/codex_image.py, shell launchers, and thin OpenAI-compatible image HTTP calls.

Core rules

  • Use built-in/system imagegen first when the current session actually exposes image_gen and the user wants the normal native image workflow: current-turn image context, fastest simple generation/editing, or natural multi-turn follow-up without explicit local file/output-path control.
  • Use this skill as the fallback when built-in image_gen is absent, hidden, unavailable, already ruled out by the user, or failed before producing an image.
  • This skill is CLI-only. Do not describe it as built-in image support.
  • Use the installed launcher path directly, not a repo-relative path: on POSIX bash "${CODEX_HOME:-$HOME/.codex}/skills/codex-image/scripts/codex-image"; on Windows use %CODEX_HOME%\skills\codex-image\scripts\codex-image.cmd or %USERPROFILE%\.codex\skills\codex-image\scripts\codex-image.cmd.
  • Once this skill is selected, usually run the installed launcher first. Preflight config, auth, or --help only when the launcher is missing or its failure still leaves a real decision to make.
  • When a launcher call fails with a deterministic local parse or input-shape error and the safe retry is obvious, retry once immediately in the same turn before sending commentary.
  • Do not fall back to SVG, Pillow sketches, screenshots, or one-off scripts unless the user explicitly wants code-native graphics.
  • OPENAI_BASE_URL or provider base_url must exist in API-key mode.

When to use

  • Generate a new raster image and save it to disk
  • Edit one or more real input images through /v1/images/edits
  • Use exact output paths, exact sizes, aspect ratios, PNG/JPEG/WebP, or custom provider endpoints
  • Use this path in API-key mode, with custom OPENAI_BASE_URL, or for direct Images API workflows even if built-in image_gen is exposed
  • Use explicit Responses API image-generation state only when the caller really needs it
  • Batch-generate many prompts through generate-batch

When not to use

  • The built-in/system imagegen path is available and the user wants the normal built-in experience
  • The user wants native current-turn image context or the fastest simple multi-turn image follow-up and does not need explicit local file/output-path control
  • The task is better solved as SVG, HTML/CSS, canvas, or another code-native asset
  • The task is extending an existing repo-native icon or illustration system

Intent rules

  • If the model must see any real image input, treat the task as edit.
  • If the user only describes references in text and provides no image files, treat the task as generate.
  • Prefer --prompt over a long trailing positional prompt when shell quoting would be awkward.
  • For simple one-shot generate, keep the prompt close to the user's wording. Only expand it into a longer art brief when the user explicitly asks for richer art direction or stricter visual constraints.
  • generate and edit default to the Images API. Use --transport responses only for explicit multi-turn image-generation state such as --previous-response-id or --response-image-id.
  • In responses mode, edit may omit local image inputs when the follow-up should continue from prior response state alone.
  • Attachment placeholders and image-set selectors only work inside a Codex thread with CODEX_THREAD_ID or CODEX_SESSION_ID.
  • These placeholders are an explicit local thread workflow, not the same thing as built-in imagegen's native current-turn runtime image context.
  • In that Codex-thread mode, [Image #N] resolves against the most recent attachment-bearing user turn. It is the current turn only when the current turn actually carries attachments; otherwise treat it as a historical reference, not native current-turn image context.
  • Previous attachment-bearing turns can be referenced as [Turn -K Image #N].
  • Stable thread-wide attachment numbering can be referenced as [Thread Image #N].
  • The previous saved result for the thread can be referenced as [Last Output] or [Last Output #N].
  • After a follow-up that adds only one new attachment, that new file is [Image #1]. Older images do not remain addressable as [Image #2] or [Image #3]; switch to [Turn -1 Image #N], [Thread Image #N], or explicit --image-set.
  • In that Codex-thread mode, the active image set is the previous edit call's resolved input image list for the thread, not prior generated outputs.
  • Use --image-set last-output when the user wants to continue refining the previously generated result image itself.
  • Attachment placeholders resolve only from rollout-recorded paths for that turn; they do not fall back to the current shell working directory.
  • Use --image-set to select active, last-output, latest-turn, turn:-K, or thread:1,2,5 explicitly.
  • edit does not implicitly inherit prior thread state. Reuse requires explicit --image-set active or explicit image references.
  • Harmless placeholder variants such as [Image#1] and [image # 1] are normalized automatically.
  • If generate is called with --image, the CLI emits a warning and reroutes it to edit.

Output rules

  • Default output base is ${CODEX_HOME:-~/.codex}/generated_images/.
  • Inside Codex, the default subdirectory uses CODEX_THREAD_ID or CODEX_SESSION_ID.
  • Outside Codex, the default subdirectory is manual/.
  • Use --out for an exact final path.
  • Use --out-dir for batch or multi-output jobs.
  • Use --name for a readable prefix with an automatic random suffix.
  • For project-bound assets, save or move the final image into the workspace before finishing.
  • Keep edits non-destructive by default unless the user explicitly asked to overwrite.
  • Successful responses calls record the latest response ids under the thread output directory for follow-up reuse.

Workflow

  1. Decide generate, edit, or generate-batch.
  2. Collect prompt, exact text, constraints, output target, and any input images.
  3. If the user mainly wants the normal native image conversation path and does not need saved-file, exact output path, explicit placeholder references, or API/CLI control, do not use this skill; let built-in imagegen handle it.
  4. Keep the default transport on the Images API. Reach for --transport responses only when explicit prior-response image state is part of the task.
  5. In a Codex thread with CODEX_THREAD_ID or CODEX_SESSION_ID, use [Image #N] for the most recent attachment-bearing turn, [Turn -K Image #N] for earlier attachment-bearing turns, [Thread Image #N] for stable thread-wide references, [Last Output] for the previous saved result image, or --image-set active / --image-set last-output / --image-set latest-turn for explicit reuse. A follow-up that adds one new image should usually look like [Turn -1 Image #1], [Turn -1 Image #2], and [Image #1] rather than [Image #1], [Image #2], [Image #3]. A follow-up that says "use the last result as the base and refine it" should usually include [Last Output] or --image-set last-output, then describe that image as the base result to refine in the prompt.
  6. Normalize the size request:
    • keep explicit WIDTHxHEIGHT unchanged
    • convert ratio forms such as 16:9 or 9:16@1k into direct API sizes
    • preserve the requested final delivery size as the post-save target
  7. Run the bundled launcher.
  8. Validate subject, composition, text, and invariants.
  9. Report the final saved path.

Size and post-processing policy

  • Pass explicit non-standard sizes such as 1000x1800 to the API unchanged.
  • If the returned image has the same aspect ratio but different pixels, resize locally to the requested final size.
  • If the returned aspect ratio differs materially, stop instead of stretching automatically.

Prompt guidance

  • Structure prompts as backdrop -> subject -> details -> constraints.
  • Quote exact text when text matters.
  • Repeat invariants for edits.
  • Add only useful detail; do not invent extra objects, brands, or layout constraints.

For prompt schema, taxonomy, examples, and CLI detail, use:

  • references/prompting.md
  • references/sample-prompts.md
  • references/cli.md
  • references/image-api.md
  • references/codex-network.md

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Codex Image?

Use when generating or editing raster images and the built-in image_gen tool is not exposed in the current Codex session, when Codex is running in API key mode, or when the user explicitly asks for codex-image, saved PNG/JPEG/WebP output, Images API, custom OPENAI_BASE_URL, exact output path, exact size, aspect ratio, or local image CLI workflow.

Warum Codex Image in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Codex Image besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Codex Image in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/IanShaw027/codex-image/tree/main/skills/codex-image ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Codex Image nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Codex Image verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Codex Image damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Codex Image kostenlos?

Ja. Der Skill wird von IanShaw027 auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇