Skill

google-image

Generate images using AI. Use `generate_image` for: create an image, generate a picture, draw, illustrate, visualize, make an image.

From google-image
Install
1
Run in your terminal
$
npx claudepluginhub yteruel31/claude-marketplace --plugin google-image
Tool Access

This skill uses the workspace's default tool permissions.

Skill Content

Google Image Skill

IMPORTANT: After calling generate_image, ALWAYS use the Read tool on the returned file_path to display the image inline to the user.

This skill provides the generate_image tool for AI image generation with Google Gemini.

Available Tools

generate_image

Generate an image from a text prompt using Google Gemini.

Use for:

  • Creating illustrations or concept art
  • Generating visual assets
  • Visualizing ideas or concepts
  • Creating placeholder images

Parameters:

  • prompt (required): Image description (5-2000 chars)
  • output_dir (optional): Custom output directory (default: generated-images/)
  • aspect_ratio (optional): 1:1 (default), 16:9, 9:16, 4:3, 3:4
  • model (optional): Gemini model to use

Latency: ~5-20 seconds

Workflow

  1. Call generate_image with the prompt
  2. Parse the JSON response to get file_path
  3. ALWAYS use the Read tool on file_path to display the image inline

Examples

Basic Image

Use generate_image with prompt: "A serene mountain lake at sunset with reflections"

Wide Format

Use generate_image with:
  prompt: "Panoramic view of a futuristic city skyline"
  aspect_ratio: "16:9"

Custom Output Directory

Use generate_image with:
  prompt: "Logo design for a coffee shop"
  output_dir: "assets/images"

Response Format

Returns JSON:

  • file_path: Absolute path to the saved PNG file
  • message: Instruction to use Read tool for inline display
  • metadata: Model, aspect ratio, prompt, execution time, file size

Configuration

Requires GEMINI_API_KEY environment variable. Get your key at: https://aistudio.google.com/apikey

Similar Skills
cache-components

Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.

138.5k
Stats
Parent Repo Stars0
Parent Repo Forks0
Last CommitFeb 20, 2026