Skip to content

mgiovani/ai-arsenal / skills/codex-imagegen

codex-imagegen

Verified

Generates images and polished raster art (logos, mascots, hero images, icons, characters, sprite sheets, illustrations, product mockups) by driving Codex CLI's $imagegen skill. This is the default image generator, use it for any request to generate or create an image or visual asset, including "generate an image", "create a hero image", "make a mascot", "design a logo", "draw an icon", "generate a sprite sheet", or "make an illustration". Requires the `codex` CLI installed and authenticated (ChatGPT auth). Not for architecture, flow, or sequence diagrams (use docs-diagram).

FileKindSize
SKILL.mdskill md9.3 KB
evals/evals.jsonconfig4.9 KB
evals/trigger-eval.jsonconfig2.0 KB
references/troubleshooting.mdmarkdown1.6 KB

references/troubleshooting.md

View on GitHub
# Troubleshooting: auth and manual chroma-key fixes

Load this file when Phase 1's environment check fails, or when Phase 5 QC finds a bad chroma removal that needs a manual re-run.

## Auth / binary gotchas

| Symptom | Cause | Fix |
|---|---|---|
| `-m gpt-6.2-sol` rejected with an auth/model-access error | ChatGPT-account auth rejects API-only models | Fall back to the config default model (`~/.codex/config.toml` → `model`, `model_reasoning_effort`) instead of forcing `gpt-6.2-sol` |
| `codex` on `PATH` behaves like an old/standalone build | `~/.local/bin/codex` resolves to a stale `~/.codex/packages/standalone` binary | Check `codex --version`; the current npm-installed binary is typically at `/opt/homebrew/bin/codex`: use that path explicitly if the two disagree |

## Manual chroma-key recovery

Use when Phase 5 QC finds visible spill/key-color fringe that the built-in flow didn't fully clean.

1. Raw generations persist in `$CODEX_HOME/generated_images/<session>/exec-*.png`: recover the original from there rather than re-running the whole generation.
2. Run the chroma-removal helper directly:
   ```bash
   uv run --with pillow python3 \
     $CODEX_HOME/skills/.system/imagegen/scripts/remove_chroma_key.py \
     --input raw.png --out clean.png --auto-key corners --soft-matte --force
   ```
3. **Do not** pass `--despill` or `--spill-cleanup` when the subject art is in the pink/magenta family: despill desaturates those hues toward gray (it has visibly killed pink blush/highlight tones in past runs).
4. Open `clean.png` and re-check edges before treating it as fixed: the helper can also silently under-correct.
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall