image-generation

Mandalorian007's avatarfrom Mandalorian007

Generate images using OpenAI's GPT Image model. Use for creating images from text prompts. Keywords: image, generate, openai, gpt-image, dalle, picture, art, create.

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 3, 2026⬇️1downloads

When & Why to Use This Skill

This Claude skill enables seamless AI image generation directly within your workflow using OpenAI's advanced GPT Image models. It empowers users to transform text prompts into high-quality visual assets and custom Discord emojis, featuring automated naming conventions and file size optimization for professional creative pipelines.

Use Cases

  • Marketing & Content Creation: Generate high-quality illustrations and visual assets for blog posts, social media, or presentations directly from text descriptions.
  • Discord Community Management: Create and automatically format custom Discord-ready emojis that adhere to specific naming conventions and file size constraints.
  • Rapid Prototyping: Quickly iterate on visual concepts, character designs, or brand imagery during the early stages of creative direction and design projects.
  • Automated Asset Naming: Ensure consistent file organization using built-in rules for source images (underscores) and emoji versions (hyphens).
nameImage Generation
descriptionGenerate images using OpenAI's GPT Image model. Use for creating images from text prompts. Keywords: image, generate, openai, gpt-image, dalle, picture, art, create.

Image Generation

AI image generation powered by OpenAI's GPT Image model (chatgpt-image-latest).

Variables

  • IMAGE_GEN_CLI_PATH: .claude/skills/image-gen/image_gen_cli/

Instructions

Run from IMAGE_GEN_CLI_PATH:

cd .claude/skills/image-gen/image_gen_cli/
uv run img --help                  # Discover all commands
uv run img generate --help         # Image generation options
uv run img emojify --help          # Discord emoji conversion

Naming Convention

Images and emojis follow a strict naming convention:

Type Format Example
Source images word_word.png (underscores) town_guard.png
Discord emojis word-word.png (hyphens) town-guard.png

Rules:

  • Names must have at least 2 words
  • Source images use underscores (_)
  • Emoji versions use hyphens (-)
  • The emojify command auto-converts naming

Rules

  • Requires OPENAI_API_KEY - must be set in environment or .env
  • Cost aware - high quality + large size = more tokens = higher cost
  • Discord emoji limits - 128x128px recommended, 256KB max file size

Troubleshooting

  • "OPENAI_API_KEY not found": Add OPENAI_API_KEY=sk-... to .env
  • "Rate limit exceeded": Wait and retry, or upgrade API tier
  • Emoji too large: Use --max-size to target smaller file size