Skip to content
Back to skills

Image Gen

ASecurity

Generate or edit images with Codex's built-in image tool and place them in the site repo. Use when the owner asks to generate, create, or illustrate an image, icon, hero graphic, or artwork for the site.

  • 6 stars
  • 0 votes
  • 1 copy
  • 5 views
  • Added September 2, 2026
ai-agentspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add vibhasjain/agent-keyboard --skill image-gen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Image Gen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Image Gen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vibhasjain-image-gen/badge)](https://www.skillsdirectory.com/skills/vibhasjain-image-gen)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: image-gen
description: Generate or edit images with Codex's built-in image tool and place them in the site repo. Use when the owner asks to generate, create, or illustrate an image, icon, hero graphic, or artwork for the site.
---

# image-gen

Generate images with Codex's built-in image tool (billed to the box's ChatGPT
subscription — no API key) and drop them into the site checkout. If the helper
fails, run `codex login status`; if it isn't "Logged in using ChatGPT", say
plainly: "Image generation isn't available — Codex on this deployment isn't
logged in to ChatGPT."

## How

```bash
sh ~/.claude/skills/image-gen/generate.sh "<prompt>" <output.png> [input-image ...]
```

Takes ~1 minute per image.

- `<prompt>` — what to generate. Optional input images (paths) are sent along
  for editing/variation.
- `<output.png>` — where the PNG lands. Generate to a neutral temp name first
  (e.g. `/tmp/gen-<random>.png`), then move/rename it into the repo.

After generating: move the image into the repo, reference it from the page,
compress if large (a hero image should be < 300 KB — use `python3` + whatever
is available, or request smaller dimensions in the prompt), commit, push.

## Privacy rules (always apply)

The API provider can see request content. Treat every call as semi-public:

1. **Strip identifying context from prompts.** No names, domains, brand or
   project names, or recognizable proper nouns. Describe the *visual content
   only*: "minimalist illustrated bowl of greens, flat design, white
   background" — not "hero image for <the site>".
2. **Generate to a neutral temp filename** (random id), then rename into the
   repo after generation.

Files in this skill

  • SKILL.md1.7 KB
  • generate.mjs2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.