Generates and edits raster images via Codex's built-in image_gen tool, driven headlessly through codex exec. No API key needed — billed through the user's ChatGPT/Codex login.
Ships in giulioco-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate and edit bitmap images from Claude Code by driving Codex's built-in image_gen tool through a one-shot codex exec run.
Codex ships a $imagegen skill with two modes:
image_gen tool (this skill uses it) — runs against Codex's own backend using the user's ChatGPT/Codex login (~/.codex/auth.json). No OPENAI_API_KEY required, no per-image API billing. It's the default Codex mode.scripts/image_gen.py) — hits the OpenAI Image API directly, needs OPENAI_API_KEY. This skill does not use it.The built-in tool is internal to Codex's agent runtime — there is no codex image subcommand. But a headless codex exec "<prompt>" run can invoke it. The wrapper script builds a tightly-scoped prompt that forces Codex to use only the built-in tool, runs codex exec, then locates the PNG Codex just wrote under $CODEX_HOME/generated_images/ and copies it into the working directory with a clean filename.
Source it wraps: ~/.codex/skills/.system/imagegen/ (Codex's installed skill).
codex CLI on PATH and logged in (codex login). Verify: codex login status or just run a generation — the wrapper reports a clear error if Codex isn't authed.The wrapper lives at scripts/codex_imagegen.py (resolve its absolute path relative to this SKILL.md).
python3 scripts/codex_imagegen.py generate \
--prompt "a minimal hero image of a ceramic coffee mug, soft studio lighting, lots of negative space" \
--out ./hero.png
--out accepts a file (./hero.png), a directory (./images/ → auto-named from the prompt), or is omitted (lands in cwd, named from a slug of the prompt).-n 3 generates 3 distinct images (one built-in call each). With -n>1 and a file --out, outputs are suffixed -1, -2, -3.--force; otherwise a -v2 sibling is written.python3 scripts/codex_imagegen.py edit \
--image ./photo.png \
--prompt "change the background to a warm sunset gradient; keep the subject unchanged" \
--out ./photo-sunset.png
The wrapper makes Codex load the local file with its built-in view_image tool first, then edit it. Default output (no --out) is <name>-edited.png in cwd.
On success the script prints [codex-imagegen] wrote <path> lines and then the absolute path(s) on their own line(s). Each run takes ~30–90s (it spins up a Codex agent). Report the final path(s) to the user and, when useful, Read the PNG to show it inline.
The built-in tool renders well from a structured spec. Shape the user's request into: scene/backdrop → subject → details → constraints, plus intended use for the right polish level.
Use cases the built-in tool handles well: photorealistic scenes, product mockups, UI mockups, infographics, ads/marketing creatives, logos, illustrations, stylized concept art, and edits (object swap, lighting/weather, background replace, restyle, composite).
The built-in tool has no native transparency control. For a transparent cutout of a simple opaque subject: generate it on a flat #00ff00 chroma-key background (#ff00ff if the subject is green), then key it out locally with Codex's helper:
python3 "${CODEX_HOME:-$HOME/.codex}/skills/.system/imagegen/scripts/remove_chroma_key.py" \
--input <source.png> --out <final.png> \
--auto-key border --soft-matte --transparent-threshold 12 --opaque-threshold 220 --despill
Truly hard cases (hair, fur, glass, smoke, soft shadows) need real transparency, which only the OpenAI-API CLI fallback (gpt-image-1.5 --background transparent) provides — that requires OPENAI_API_KEY and is out of scope for this skill. Tell the user if a request needs it.
codex login.$CODEX_HOME/generated_images/ before/after the run, so this usually only happens on refusal or a true failure; check the printed Codex output.--timeout to extend (default 300s).What SKILL.md sets; muted values are Claude Code's defaults
/giulioco-skills:codex-imagegenfrom giulioco-skills
giulioco-skills@cascade-content-creation-misc-1 is listed by joshuarweaver/cascade-content-creation-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-content-creation-misc-1 --plugin giulioco-skills8 skills in this plugin
/galloway-storytellingRewrite any piece of writing to be more engaging, punchy, and story-driven using Scott Galloway's (Prof G) storytelling playbook — the Wow Test, Data Elevation, the Hook, Assume Intimacy, More Drama, Zoom Out, and Anchored Provocation. Use this whenever the user wants writing to hit harder: newsletters, LinkedIn/X posts, build-in-public updates, pitch decks, cold emails, essays, landing-page copy, launch announcements, or any draft they call boring, flat, dry, corporate, forgettable, or "needs more punch." Trigger it when someone says "make this more engaging," "sharpen this," "add drama," "why is this boring," "hook the reader," "elevate this number," or shares a draft asking for feedback on how it reads. Also use it proactively when you notice a draft opening with throat-clearing, burying its best line, or stating big numbers raw./growth-hackerDiagnose the real growth bottleneck and prescribe the next move, using the unified frameworks from Ryan Holiday's Growth Hacker Marketing, Sean Ellis & Morgan Brown's Hacking Growth, and Weinberg & Mares' Traction. Use whenever the user is thinking about how to grow a startup, increase signups, fix a leaky funnel, pick a marketing channel, run growth experiments, find product-market fit, increase activation, retain users, build virality, or hit a revenue milestone. Also trigger on "stuck at $X MRR", "should I run ads on Y", "my conversion is 0%", "how do I get my first 100 users", "marketing strategy", "go-to-market", "ICE score", "Bullseye", "aha moment", "PMF", "viral loop", "referral program", "retention curve", or any situation where a founder is choosing between growth tactics. Refuses to recommend a tactic before diagnosing the stage — founders picking the channel they're comfortable with, not the one their stage needs, is the/learn-craftGenerate a deep, book-grounded skill for any subject the user wants to master. Researches the canonical books on the topic, downloads them as PDFs (using the bundled `scripts/libgen.py` downloader), reads them in parallel via subagents, then synthesizes the books across each other into a concept-organized knowledge base — not a shelf of book summaries. Output is a tight `SKILL.md` plus per-concept `frameworks/` files (the working knowledge base, organized by idea) plus per-book `references/` deep-dives (the citation layer). Trigger whenever the user says they want to "learn X", "master X", "build a skill for X", "study X", "get smarter at X", "make me a skill on X", "I want to be good at X", "teach me X", "create a coach for X", or asks for help internalizing the canonical thinking on a craft, discipline, methodology, or domain. Don't trigger for "make a skill that does Y" (workflow automation — use /skill-creator). Trigger for "make a skill that helps me think like Y" (knowledge synthesis — that's this skill)./nano-banana-promptCraft highly effective prompts for Nano Banana Pro (Gemini image generation). Use when generating images with Nano Banana Pro for any purpose including photorealistic portraits, product photography, creative experiments, e-commerce mockups, social media content, editorial layouts, 3D renders, era-specific aesthetics (Y2K, 2000s, 1990s), miniature/diorama effects, or any advanced image generation task. Provides proven prompt patterns, technical specifications, JSON structuring, identity preservation techniques, and style-specific templates./postbridge-social-growthOrganic social media growth coach using the Post Bridge methodology (500M+ views, 132K+ downloads, $33K+ revenue). Act as a personalized growth coach for apps, products, and businesses seeking organic traffic from TikTok and Instagram short-form video. Use when users ask about growing on TikTok/Instagram, creating viral content, getting more views organically, converting social media views to app downloads or customers, warming up new social accounts, finding winning content formats, or scaling organic social media presence. Also use when users need help with social media bios, content-market fit, trend riding, or building a repeatable content system without paid ads./social-growth-engineerMaster viral app growth engineering using proven social media strategies. Provides comprehensive guidance on TikTok/Instagram Reels marketing, UGC networks, viral hooks, content formats, monetization, and scaling tactics based on 100+ real case studies generating billions of views and millions in revenue.Other plugins' skills for the same job