openai-image-gen

0xbigboss/claude-code · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/0xbigboss/claude-code --skill openai-image-gen
0 commentsdiscussion
summary

Generate images using OpenAI's DALL-E 3 API via command line.

skill.md

OpenAI Image Generation (DALL-E 3)

Generate images using OpenAI's DALL-E 3 API via command line.

Quick Usage

# Generate an image with a prompt
~/.claude/skills/openai-image-gen/generate.sh "your prompt here" output.png

# Generate with specific size
~/.claude/skills/openai-image-gen/generate.sh "your prompt here" output.png 1792x1024

# Generate with quality setting
~/.claude/skills/openai-image-gen/generate.sh "your prompt here" output.png 1024x1024 hd

Parameters

Parameter Options Default Description
prompt any text required The image description
output filepath required Where to save the image
size 1024x1024, 1792x1024, 1024x1792 1024x1024 Image dimensions
quality standard, hd standard Image quality (hd = more detail)

Size Guide

  • 1024x1024 - Square, good for icons, avatars, general use
  • 1792x1024 - Landscape/wide, good for headers, banners, hero images
  • 1024x1792 - Portrait/tall, good for mobile backgrounds, vertical banners

Gothic Cathedral Presets

Pre-made prompts for the 0xbigboss.github.io site:

Backgrounds

# Dark stone texture
~/.claude/skills/openai-image-gen/generate.sh "Dark cathedral stone wall texture, seamless tileable pattern, deep charcoal gray with subtle purple undertones, weathered medieval masonry, dramatic shadows, gothic architecture, 4k texture, dark moody atmosphere" stone-bg.png 1024x1024

# Vaulted ceiling
~/.claude/skills/openai-image-gen/generate.sh "Gothic cathedral ribbed vault ceiling view from below, deep blue-black with gold leaf accent lines on ribs, dramatic perspective, medieval architecture, dim candlelit glow, ornate stone carvings fading into darkness, atmospheric fog, 4k" vault-ceiling.png 1792x1024

Hero Images

# Homepage - Light rays
~/.claude/skills/openai-image-gen/generate.sh "Divine light rays streaming through gothic cathedral rose window, deep purple and blue stained glass, golden light beams cutting through darkness, dust particles floating in light, medieval stone interior, dramatic chiaroscuro, cinematic lighting, 4k" hero-home.png 1792x1024 hd

# Projects - Craftsman workshop
~/.claude/skills/openai-image-gen/generate.sh "Medieval craftsman's workshop, golden tools on dark wood workbench, gothic arched window in background, warm candlelight, scrolls and blueprints, brass instruments, artisan craftsmanship aesthetic, dramatic shadows, cinematic still life" hero-projects.png 1792x1024 hd

# Posts - Scriptorium
~/.claude/skills/openai-image-gen/generate.sh "Ancient scriptorium desk with illuminated manuscript, quill pen and gold ink pot, gothic window with blue light, leather-bound journals stacked, medieval monastery aesthetic, dramatic rim lighting, warm golden candlelight against cool window light" hero-posts.png 1792x1024 hd

# Contact - Cathedral door
~/.claude/skills/openai-image-gen/generate.sh "Gothic cathedral door slightly ajar with divine light streaming through crack, ornate iron hinges and handles, carved stone archway frame, welcoming yet mysterious, invitation to enter, dramatic lighting, medieval aesthetic" hero-contact.png 1792x1024 hd

Stained Glass Windows

# Projects window
~/.claude/skills/openai-image-gen/generate.sh "Gothic stained glass window design, geometric pattern, deep purple and blue glass with gold leading, hammer and gear symbols, craftsman iconography, backlit with divine rays, ornate pointed arch frame, dark background, digital art" window-projects.png 1024x1024 hd

# Posts window
~/.claude/skills/openai-image-gen/generate.sh "Gothic stained glass window design, open book and quill symbols, deep blue and purple glass with gold leading, medieval manuscript aesthetic, backlit glow, pointed arch frame, ornate tracery pattern, dark background, digital art" window-posts.png 1024x1024 hd

# Contact window
~/.claude/skills/openai-image-gen/generate.sh "Gothic stained glass window design, dove and reaching hand symbols, deep purple and gold glass, connection iconography, divine light streaming through, pointed arch frame, ornate leading pattern, dark background, digital art" window-contact.png 1024x1024 hd

Decorative Elements

# Logo monogram
~/.claude/skills/openai-image-gen/generate.sh "Medieval illuminated manuscript style monogram letters AE, gold leaf with deep blue and purple accents, ornate flourishes and Celtic knotwork, gothic calligraphy style, intricate detail, dark background, luxury heraldic aesthetic" logo-ae.png 1024x1024 hd

# Divider
~/.claude/skills/openai-image-gen/generate.sh "Medieval ornate horizontal divider, gold filigree on dark background, gothic scrollwork pattern, symmetrical design, thin elegant line with central medallion, Celtic knotwork accents, digital art, isolated element" divider.png 1792x1024

# Light ray overlay
~/.claude/skills/openai-image-gen/generate.sh "Divine light rays streaming from top, volumetric god rays, dust particles floating, golden warm light on pure black background, cathedral lighting effect, subtle and ethereal, digital art" light-overlay.png 1792x1024

Batch Generation

Generate all Gothic presets at once:

cd ~/path/to/your/project/public/images
~/.claude/skills/openai-image-gen/batch-gothic.sh

Tips for Better Results

  1. Be specific - More detail = better results
  2. Include style keywords - "4k", "cinematic", "digital art", "photorealistic"
  3. Specify lighting - "dramatic shadows", "rim lighting", "candlelit"
  4. Mention perspective - "from below", "bird's eye view", "close-up"
  5. Use quality=hd for hero images and important assets

Troubleshooting

"Invalid API key" - Check echo $OPENAI_API_KEY is set

"Content policy violation" - Rephrase prompt to avoid flagged content

Image looks wrong - DALL-E interprets prompts creatively; try multiple generations or refine prompt

Cost Reference

DALL-E 3 pricing (as of 2024):

  • Standard 1024x1024: ~$0.04/image
  • Standard 1792x1024 or 1024x1792: ~$0.08/image
  • HD 1024x1024: ~$0.08/image
  • HD 1792x1024 or 1024x1792: ~$0.12/image
how to use openai-image-gen

How to use openai-image-gen on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add openai-image-gen
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/0xbigboss/claude-code --skill openai-image-gen

The skills CLI fetches openai-image-gen from GitHub repository 0xbigboss/claude-code and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/openai-image-gen

Reload or restart Cursor to activate openai-image-gen. Access the skill through slash commands (e.g., /openai-image-gen) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.625 reviews
  • Pratham Ware· Dec 12, 2024

    openai-image-gen reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Aanya Jackson· Dec 4, 2024

    We added openai-image-gen from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Daniel Jain· Dec 4, 2024

    openai-image-gen reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Amelia Huang· Nov 23, 2024

    I recommend openai-image-gen for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Yash Thakker· Nov 3, 2024

    I recommend openai-image-gen for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Dhruvi Jain· Oct 22, 2024

    Useful defaults in openai-image-gen — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Amelia Rahman· Oct 14, 2024

    Useful defaults in openai-image-gen — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Oshnikdeep· Sep 13, 2024

    openai-image-gen is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Hana Okafor· Sep 1, 2024

    openai-image-gen reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Daniel Zhang· Aug 24, 2024

    Keeps context tight: openai-image-gen is the kind of skill you can hand to a new teammate without a long onboarding doc.

showing 1-10 of 25

1 / 3