Skip to content
image-generator logo

Image Generator

image-generator

Generate branded images using Google Gemini's image generation API. Supports multiple formats (LinkedIn headers, Medium headers, square concepts, vertical explainers). Reads brand guidelines from the project's BRAND.md file for consistent visual identity.

SKILL.md

Full skill instructions

<!-- Original source: Sandhya Simhan's blog repo Generalized for claude-code-quickstart SDK -->

Image Generator

Generates professional branded images using Google Gemini's image generation API. Automatically reads brand guidelines from the target project to ensure visual consistency.

How It Works

  1. Brand Discovery: Looks for brand guidelines in the project (see Brand Configuration below)
  2. Format Selection: User chooses image format (LinkedIn, Medium, Square, Vertical)
  3. Prompt Crafting: Combines user request + brand guidelines + format specs
  4. Generation: Calls Gemini API to generate the image
  5. Output: Saves to configured output directory

Brand Configuration

The skill looks for brand guidelines in this order:

  1. BRAND.md in project root
  2. .claude/​BRAND.md
  3. docs/​BRAND.md

If no brand file exists, the skill will prompt you to create one (see BRAND_TEMPLATE.md).

Minimal BRAND.md Example

# Brand Guidelines

## Colors
- **Primary:** #0078AA (Teal)
- **Background:** #F4F1EB (Off-white)
- **Accent:** #F69F22 (Yellow)

## Style
- Modern minimalist
- Hand-drawn/​illustrated feel
- Generous whitespace

## Tone
- Professional but friendly
- Approachable, not corporate

Image Formats

FormatDimensionsAspect RatioBest For
LinkedIn1200×63016:9Social sharing, OG tags, blog headers
Medium1200×4003:1Substack/​Medium headers, newsletters
Square1080×10801:1Instagram, Twitter, concept cards
Vertical1080×19209:16Stories, mobile-first, Pinterest

See IMAGE_FORMATS.md for detailed layout tips.

Instructions

When the user requests an image:

1. Find Brand Guidelines

Read BRAND.md (or alternative locations) to understand:
- Color palette (primary, accent, neutral colors)
- Visual style (minimalist, illustrated, corporate, etc.)
- Emotional tone (friendly, professional, playful, etc.)
- Design elements to include/​avoid

If no brand file exists, ask if they want to create one or proceed with defaults.

2. Determine Format & Output

  • Ask which format they need (or default to LinkedIn 1200×630)
  • Determine output directory:
    • Default: assets/​images/ or _assets/​images/
    • Use existing image directory if one exists
    • Or ask user preference

3. Gather Requirements

  • Blog post topic/​title
  • Key themes or concepts to visualize
  • Specific elements to include
  • Level of detail (high-level concept vs detailed)

4. Craft Brand-Aligned Prompt

Build a detailed prompt that includes:

  • Exact dimensions for the chosen format
  • Background color from brand guidelines
  • Primary and accent colors from brand palette
  • Visual style from brand guidelines
  • Composition appropriate for the format
  • Emotional tone matching brand voice

Prompt Template:

Create a [style] image ([dimensions]) for [topic].

Background: Use [background color] as the background.

Visual style: [brand style description]. Use [primary color] as the
primary anchor color with subtle accents of [accent colors]. Include
[design elements from brand].

Composition: [format-specific layout guidance].

Mood: [brand emotional tone]. [Additional mood guidance].

5. Generate Image

Run the generator script:

python [skill-path]/​generate_image.py \
  --prompt "your detailed prompt" \
  --output "filename.png" \
  --output-dir "assets/​images" \
  --image-type linkedin

6. Provide Output

  • Show the generated image path
  • Provide markdown snippet: ![Alt text](path/​to/​image.png)
  • Offer to regenerate with adjustments
  • Offer additional formats if needed

Setup Requirements

1. Google Gemini API Key

export GEMINI_API_KEY="your-api-key-here"

Get a key at: https://aistudio.google.com/apikey

2. Python Dependencies

pip install google-genai pillow

3. Output Directory

The skill will create the output directory if it doesn't exist.

Tips for Great Images

Format-Specific:

  • LinkedIn: Horizontal flow, leave left/​right third for text
  • Medium: Wide cinematic feel, text at top/​bottom
  • Square: Centered, icon-like clarity, standalone
  • Vertical: Top-to-bottom flow, can show progression

General:

  • Clarity over complexity
  • Generous whitespace
  • Intentional color use (don't use all accent colors at once)
  • Match the brand's visual metaphor style

Example Session

User: "Generate a header for my post about API design patterns"

Skill:

  1. Reads BRAND.md → finds teal primary, illustrated style
  2. Asks: "Which format? LinkedIn (default), Medium, Square, or Vertical?"
  3. User: "LinkedIn"
  4. Asks: "Key visual metaphor? (e.g., building blocks, pipelines, contracts)"
  5. User: "Building blocks connecting"
  6. Crafts prompt with brand colors + dimensions + metaphor
  7. Generates image → saves to assets/​images/​api-design-linkedin.png
  8. Returns: ![API Design Patterns](assets/​images/​api-design-linkedin.png)

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View