This wraps OpenRouter's FLUX and Gemini models for image generation and editing directly from the command line. You pass a prompt and get a PNG back, or feed it an existing image with editing instructions. The docs are clear about when to use this versus the scientific-schematics skill, which matters since you don't want FLUX trying to render your circuit diagrams. It handles the API key setup through dotenv and gives you three model options with actual tradeoffs listed (quality vs speed vs cost). Honestly the most useful part is that it just works as a simple Python script you can drop into any project that needs visual assets without setting up a whole generation pipeline.

skills.sh installs
1.4K
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill generate-image --agent claude-code

Installs into .claude/skills of the current project.

Files

Generate Image

Generate and edit high-quality images using OpenRouter's image generation models including FLUX.2 Pro and Gemini 3 Pro.

When to Use This Skill

Use generate-image for:

  • Photos and photorealistic images
  • Artistic illustrations and artwork
  • Concept art and visual concepts
  • Visual assets for presentations or documents
  • Image editing and modifications
  • Any general-purpose image generation needs

Use scientific-schematics instead for:

  • Flowcharts and process diagrams
  • Circuit diagrams and electrical schematics
  • Biological pathways and signaling cascades
  • System architecture diagrams
  • CONSORT diagrams and methodology flowcharts
  • Any technical/schematic diagrams

Quick Start

Use the scripts/generate_image.py script to generate or edit images:

# Generate a new image
python scripts/generate_image.py "A beautiful sunset over mountains"

# Edit an existing image
python scripts/generate_image.py "Make the sky purple" --input photo.jpg

This generates/edits an image and saves it as generated_image.png in the current directory.

API Key Setup

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Design & UI/UX, Generative Media

More from davila7/claude-code-templates

All 618
1jezweb avatarai-image-generatorjezweb/claude-skillsGenerate AI images using Gemini or GPT APIs directly. Covers model selection (Gemini for scenes; GPT Image 2 for text rendering, batch variations, multi-referen1.4Kskills.sh installs
2webup avatarwebup-statuslinewebup/skills-ccGenerate and install a custom Claude Code status line with selectable columns (model, context, effort level, git, dir, worktree, vim) and a color theme. Context1.4Kskills.sh installs
3itechmeat avatarreact-testing-libraryitechmeat/llm-codeReact Testing Library: user-centric component testing with queries, user-event simulation, async utilities, and accessibility-first API. Use when writing React 1.4Kskills.sh installs
4minimax-ai avatarminimax-music-playlistminimax-ai/skillsGenerate personalized music playlists by analyzing the user's music taste and generation feedback history. Triggers on any request involving playlist generation1.4Kskills.sh installs
5microsoftdocs avatarazure-container-appsmicrosoftdocs/agent-skillsExpert knowledge for Azure Container Apps development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quota1.4Kskills.sh installs
6quodsoler avatarue-actor-component-architecturequodsoler/unreal-engine-skillsUse this skill when working with Actor and component design in Unreal Engine. Triggers on: Actor, component, BeginPlay, Tick, SpawnActor, lifecycle, CreateDefau1.4Kskills.sh installs