Skip to content
Back to skills

Image Gen

ASecurity

Generate technical diagrams, infographics, and UI graphics using Gemini Flash Image. Trigger via /image-gen.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentspythongobashdatabasedocumentation

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add ksprashu/agent-skill-forge --skill image-gen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Image Gen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Image Gen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ksprashu-image-gen/badge)](https://www.skillsdirectory.com/skills/ksprashu-image-gen)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: image-gen
description: Generate technical diagrams, infographics, and UI graphics using Gemini Flash Image. Trigger via /image-gen.
disable-model-invocation: true
---

# Image-Gen: Gemini Flash Image Generation Expert

Generate diagrams, UI graphics, and hero banners using Gemini image models with style consistency.

---

## 🎯 Goal
Synthesize high-fidelity visual assets, charts, and technical diagrams with cohesive art direction.

---

## 📋 Step-by-Step Workflow

1. **Identify Asset Type**: Determine required dimensions (`16:9` hero banner, `4:3` architecture diagram, `1:1` icon).
2. **Generate Primary Asset**:
   ```bash
   python3 scripts/image_gen.py --prompt "Modern cloud infrastructure network topology" --ar "16:9" --output "hero.png"
   ```
3. **Ground Series Style**: For subsequent figures, pass the primary image as a style reference:
   ```bash
   python3 scripts/image_gen.py --prompt "Database replication flow" --references "hero.png" --ar "4:3" --output "fig2.png"
   ```
4. **Iterate & Refine**: Modify images by passing the target file as reference with delta instructions.

---

## 💡 Concrete Example

### Generating Cohesive Documentation Graphics
```bash
# Step 1: Create Hero
python3 scripts/image_gen.py \
  --prompt "Isometric vector diagram of an AI agent coordination engine, clean dark mode aesthetic" \
  --ar "16:9" \
  --output "docs/assets/hero.png"

# Step 2: Create Sub-figure matching hero palette
python3 scripts/image_gen.py \
  --prompt "Close-up diagram of task DAG dispatch queue" \
  --references "docs/assets/hero.png" \
  --ar "4:3" \
  --output "docs/assets/task_dag.png"
```

---

## 🚫 Hard Constraints

*   **NEVER** generate un-referenced follow-up images in a series—always pass previous images as references.
*   **NEVER** hardcode absolute machine file paths into public markdown image embeds.

Files in this skill

  • README.md280 B
  • SKILL.md1.8 KB
  • assets/README.md581 B
  • references/aspect_ratio_cheatsheet.md1.6 KB
  • references/prompt_recipes.md2.1 KB
  • scripts/image_gen.py10.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.