Logo di 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.

Panoramica

AutoreIanShaw027
Repositorycodex-image
Nome della skillcodex-image
Stelle
32
Fork
5
File inclusi
16
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 16 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da IanShaw027 su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Codex Image in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/IanShaw027/codex-image/tree/main/skills/codex-image
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Codex Image in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Codex Image non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Codex Image non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Codex Image su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Codex Image è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Codex Image in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/IanShaw027/codex-image/tree/main/skills/codex-image. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Codex Image?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Codex Image?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Codex Image: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Codex Image è gratuita?

Sì. È pubblicata su GitHub da IanShaw027 con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇