Agent skill · Backend & API

gemini-image-gen

Generate images directly from Claude Code CLI using Google's Gemini API.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill gemini-image-gen-freitasp1-claude-code-skills --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/ai-llm/gemini-image-gen-freitasp1-claude-code-skills/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

--- name: gemini-image-gen description: Image generation with Google Gemini API. Models: gemini-2.5-flash-image (fast) or gemini-3-pro-image-preview (quality). For social media graphics, marketing, infographics. --- # Gemini Image Generation Generate images directly from Claude Code CLI using Google's Gemini API. ## Setup **API Key:** https://aistudio.google.com/apikey **Environment Variable:** `GOOGLE_AI_API_KEY` **Install:** `pip install google-genai pillow python-dotenv` ## Basic Usage ```python import os from google import genai client = genai.Client(api_key=os.environ.get("GOOGLE_AI_API_KEY")) response = client.models.generate_content( model="gemini-2.5-flash-image", # Fast # model="gemini-3-pro-image-preview", # Quality contents=["Your image prompt here"] ) # Extract and save image from response for part in response.candidates[0].content.parts: if hasattr(part, 'inline_data') and part.inline_data: with open("output.png", "wb") as f: f.write(part.inline_data.data) ``` ## Models | Model | Speed | Quality | Use Case | |-------|-------|---------|----------| | `gemini-2.5-flash-image` | Fast (~5s) | Good | Drafts, iterations | | `gemini-3-pro-image-preview` | Slower (~15s) | Excel

What's inside
Steps it walks through
  1. Setup
  2. Basic Usage
  3. Models
  4. Use Cases
  5. Advanced: Manufacturing Dashboard Example
  6. Image Compression for PPTX
  7. Real-World Usage
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the gemini-image-gen skill do?

Generate images directly from Claude Code CLI using Google's Gemini API.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill gemini-image-gen-freitasp1-claude-code-skills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going