← Back to list
🎨

gemini-image-skill Checked

A skill from the GitHub repository jykim/claude-obsidian-skills.
🎨 Design & Creative skills By jykim Version v1.0.0 Added 2026-10-21 Updated 2026-10-21 Source ↗
6.0Overall rating
0Views
3Downloads
49Stars

Installation

🤖 Install via AI

Copy the prompt below and send it to your AI assistant (e.g. Claude Code) — it will follow the instructions and install automatically.

Install the "gemini-image-skill" skill by following the instructions at https://skill123.me/install/gemini-image-skill?ref=detail
⌨️ Command line install

Run in your terminal — downloads and installs to ~/.claude/skills/.

curl -fsSL https://skill123.me/install/gemini-image-skill.sh?ref=detail | bash
📦 Download ZIP

Download the zip and extract it into your skills directory (e.g. ~/.claude/skills/), then restart your session.

⬇ Download v1.0.0 · 7 KB
📊 Static rating
6.0/10
Trigger
6.0
Structure
6.5
Workflow
5.0
Content
4.5
Engineering
3.0
Security
9.0

Six-dimension rubric with reviewer rationale.

View scorecard ↓
🛡 Dynamic test
—

Not live-tested yet — this skill is rated on static analysis only.

About this skill

A skill from the GitHub repository jykim/claude-obsidian-skills.

Documentation

Gemini Image Generation Skill

An image generation skill using the Google Gemini API. Generates images for slides and documents.

Purpose

Generates images needed for documents/slides using the Gemini 2.0 Flash or Imagen 3 model. Supports resolution and aspect ratio selection, and includes a user approval workflow.

When to Use This Skill

  • "Generate an image with Gemini"
  • "Create a picture for a slide using the Gemini API"
  • "Generate an illustration to put in a presentation"
  • When free-tier image generation is needed (Gemini 2.0 Flash)
  • When a specific aspect ratio is needed (16:9, 9:16, etc.)

Environment Setup


# 1. API 키 설정
export GEMINI_API_KEY="your-api-key"

# 2. 의존성 설치
pip install google-genai Pillow

Workflow

### Phase 1: Analysis

1. Read the target document/slides

2. Identify sections/slides that need images

3. Extract the core concept of each section

### Phase 2: Style & Configuration Selection

**Style options:**

| # | Style | Description | Suitable use |

|---|--------|------|-------------|

| 1 | **Infographic (default)** | Includes labels/text, dense | **Documents, presentations** |

| 2 | Technical Diagram | Clean lines, flowcharts | Technical documentation |

| 3 | Vibrant Modern Cartoon | Bright gradients, flat | Business, education |

| 4 | Professional Minimalist | Restrained colors, geometric | Official presentations |

| 5 | Bold Graphic | High contrast, pop art | Marketing |

| 6 | Custom | User-defined | Free |

> **Default**: Infographic style (includes text/labels)

**Model selection:**

| Model | Cost | Features |

|------|------|------|

| gemini-3-pro-image-preview | $0.06/image | **Default**, perfect Korean, highest quality |

| gemini-2.5-flash-image | $0.039/image | Aspect ratio support, fast |

| gemini-2.0-flash-exp | Free | Fast, for iteration (broken Korean) |

| imagen-4.0-generate-001 | $0.03/image | Imagen 4.0, high quality |

**Aspect ratio options:** 1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 21:9

> **For slides**: --aspect-ratio 16:9 (default model is gemini-3-pro-image-preview)

### Phase 3: Image Generation


python3 "generate_gemini_image.py" \
    "[상세 설명]" \
    --output-path "[경로]" \
    --style "[스타일]" \
    --model "[모델]" \
    --aspect-ratio "[종횡비]" \
    --auto-approve

### Phase 4: Integration

**Slides:**


![right fit](_files_/filename.png)

**Documents:**


![](path/to/image.png)

Style Descriptions for Script

View full documentation

| Style | --style value |

|--------|------------|

| **Infographic (default)** | "clean infographic with labeled sections, icons, and visual hierarchy" |

| Technical Diagram | "technical diagram with flowchart elements, arrows, and labeled components" |

| Vibrant Modern Cartoon | "vibrant modern minimalist cartoon illustration" |

| Professional Minimalist | "professional minimalist illustration with muted colors and clean geometric shapes" |

| Bold Graphic | "bold graphic illustration with high contrast colors and strong geometric shapes" |

**Prompt writing tips**:

  • ✅ "An infographic showing a 4-step process, with an icon and label for each step"
  • ✅ "Comparison chart: A vs B, showing pros and cons"
  • ❌ "An abstract illustration of two people connected" (hard to convey meaning)

File Naming Convention

**Slides:** [slide-topic-slug].png

  • Example: ai-changes-game.png, team-collaboration.png
  • Location: the same _files_/ directory as the slides

**Documents:** [section-number]-[topic-slug].png

  • Example: 01-introduction.png, 03-methodology.png

Cost Estimation

Cost guidance before generation:

  • Gemini 2.0 Flash: Free
  • Imagen 3: $0.03/image
  • Example: "Generating 10 images costs $0.30 (based on Imagen 3)"

Error Handling

| Error | Solution |

|------|-----------|

| No API key | Set the GEMINI_API_KEY environment variable |

| Blocked by safety filter | Modify the prompt and retry |

| Model not supported | Switch to an available model |

| Network error | Retry |

Example Invocation

### Basic usage


python3 generate_gemini_image.py "AI 지식 노동자가 책상에서 작업하는 모습" \
    --output-path "_files_/knowledge-worker.png"

### For 16:9 slides (recommended)


python3 generate_gemini_image.py "팀 협업 미팅" \
    --output-path "_files_/team-meeting.png" \
    --model "gemini-2.5-flash-image" \
    --aspect-ratio "16:9" \
    --style "professional minimalist illustration"

### High-quality images (Imagen 4.0)


python3 generate_gemini_image.py "제품 쇼케이스" \
    --output-path "_files_/product.png" \
    --model "imagen-4.0-generate-001"

### Batch processing (auto-approve)


python3 generate_gemini_image.py "혁신 컨셉" \
    --output-path "_files_/innovation.png" \
    --auto-approve

Best Practices

1. **Prefer infographic style**: Dense information visualization that includes text/labels

2. **Style consistency**: Keep the same style within the same document/slides

3. **Detailed prompts**: Include specific visual metaphors and concepts

4. **Batch generation**: Generate all images first, then insert them all at once

5. **Check costs**: Check the estimated cost before generating

> ⚠️ **Avoid**: Abstract illustrations (e.g., vague pictures of people connected)

> ✅ **Prefer**: Diagrams, flowcharts, infographics with labels

Comparison with DALL-E Skill

| Feature | DALL-E | Gemini |

|------|--------|--------|

| Free tier | X | O (Flash) |

| Aspect ratio | Square only | 5 options |

| Output format | JPEG | PNG/JPEG |

| Cost | $0.04 | $0~$0.03 |

**Selection criteria:**

  • **DALL-E**: Proven quality, existing workflow
  • **Gemini**: When a free option is needed, when various aspect ratios are needed

Score breakdown

Trigger
6.0
Trigger 6/10 — The SKILL.md lacks YAML frontmatter and references an absent generate_gemini_image.py script; content contains contradictions (aspect ratio says '5 options' but lists 8, cost summary says $0.03 max while model table lists $0.06) and the workflow lacks explicit confirmation/verification gates.
Structure
6.5
Structure 6.5/10
Workflow
5.0
Workflow 5/10
Content
4.5
Content 4.5/10
Engineering
3.0
Engineering 3/10
Security
9.0
Security 9/10

Assessment methodology

🧪
AI-assessed
Evaluated by automated analysis across quality, usability, and security dimensions. This is not a substitute for your own review — always inspect a skill before installing it.

Version history

v1.0.0 2026-10-21
7 KB

Imported from jykim/claude-obsidian-skills@main