
Generate Image
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-codeInstalls 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- Marketing Strategy Pmm1.4K
- Senior Devops1.4K
- Mermaid Diagram Specialist1.4K
- 3d Web Experience1.4K
- Ux Researcher Designer1.3K
- Senior Qa1.2K
- Senior Architect1.2K
- Scientific Schematics1.2K
- Jira1.2K
- Senior Fullstack1.2K
- Senior Computer Vision1.2K
- Google Analytics1.2K
- Video Downloader1.2K
- Scientific Critical Thinking1.1K
- Matplotlib1.1K
- Clean Code1.1K
- Scientific Brainstorming1.1K
- Mui1.1K
- Modal Serverless Gpu1.1K
- Ceo Advisor1.1K
- Plotly1.1K
- Conversation Memory1K
- Senior Prompt Engineer1K
- Agile Product Owner987