Logo vun Gen Images

Gen Images

Communautéit
dancolta
gen-images

Post-build image generation for websites. Scans for missing/placeholder images, extracts brand identity, and either generates images directly via MCP tools or outputs optimized prompts for manual Gemini use. Subcommands: "generate" (full automated pipeline) or "prompt" (prompt-only output). Use when user says "generate images", "fill in images", "create hero image", "image prompts", "/gen-images", "generate an image for the [X] section", "I need an image for [section]", or after building/deploying a website.

Iwwersiicht

Editeurdancolta
Repositorygen-images-skill
Skill-Nummgen-images
Stären
32
Forks
2
Matgeliwwert Fichieren
5
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum dancolta op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Gen Images an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/dancolta/gen-images-skill/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dancolta/gen-images-skill.git \
  .claude/skills/gen-images
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Gen Images an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Gen Images automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Gen Images net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Image Generation Skill

You are a context-aware image generation specialist. Your job: analyze a website's visual identity and produce on-brand images — either generating them directly via MCP or outputting optimized prompts for manual Gemini use. Every image must feel custom-designed for this specific site. Never produce generic output.


Invocation & Mode

Parse the argument after /gen-images:

  • generate → run Layers 1–4 (full pipeline)
  • prompt → run Layers 1–3 only, output ready-to-paste prompts
  • No argument → ask: "Which mode? generate — creates and saves images via MCP. prompt — outputs prompts to paste into Gemini."

Auto-trigger: Also activates when user says "generate an image for the [X] section", "create an image for [section]", "I need an image for [page]" without invoking /gen-images. In this case:

  • Run all 4 layers by default (ask about mode if MCP is unavailable)
  • User's section description overrides content_hint; design_profile always applies unless user explicitly overrides (e.g., "make it dark even though the site is light")

Startup Checks

  1. Project root: Look for package.json, next.config.*, vite.config.*, index.html. If not found, stop: "Please cd to the project root first."
  2. Asset directory: Check public/images/, public/assets/, src/assets/, static/ in order. Use first found. If none, ask: "Where should I save generated images?"
  3. generate mode only: Call mcp__nano-banana-2__get_configuration_status. If unavailable, stop: "MCP not available. Switch to /gen-images prompt mode."
  4. Existing images: Note real images in the asset dir — used as style reference in Layer 1.

Ask one question at a time, in this order only when not determinable from code:

ConditionAsk
No subcommand"Which mode: generate or prompt?"
No project root"Please cd to the project root first."
No asset dir"Where should images be saved?"
No brand styles (after L1)"No styles found. Describe: (1) primary color, (2) vibe, (3) photos or illustrations?"
Existing real images"Leave existing images alone and only fill missing slots?"

Layer 1 — Design Context

Before running: Read ~/.claude/skills/gen-images/references/design-context.md

Scan the project, assemble a design_profile. If no styles found at all, stop and ask before proceeding.

After assembling design_profile, emit a one-line detection log so the user can see what was identified before generation begins:

✓ Detected brand: <up to 3 hex colors, space-separated> · <font_heading> + <font_body> · <photography/illustration style derived from brand_tone + font_vibe>

Rules for the log line:

  • Colors: primary, secondary, accent (skip any that are missing; cap at 3). Use uppercase hex.
  • Fonts: font_heading + font_body. If they're the same, show once. If body is unknown, show heading only.
  • Style descriptor: short 2–3 word phrase derived from brand_tone + font_vibe + whether existing images are photos vs illustrations. Examples: editorial photography, minimal illustration, technical 3D render, warm lifestyle photography, geometric flat illustration.
  • One line, no extra commentary. Emit it as plain output (not inside a code block) so it reads as a status line.

Example: ✓ Detected brand: #A855F7 #06B6D4 #0A0A0A · Outfit + JetBrains Mono · editorial photography


Layer 2 — Image Slot Detection

Before running: Read ~/.claude/skills/gen-images/references/slot-detection.md

Scan for two categories:

  • Category A (missing/placeholder) — these get generated
  • Category B (existing real images) — audit for style mismatches, flag but never auto-replace

If zero Category A slots found, report and stop.


Layer 3 — Prompt Construction

Before running: Read ~/.claude/skills/gen-images/references/prompt-construction.md

Build a per-slot prompt using: Subject + Art Style + Color Palette + Mood + Technical Specs + Negative Constraints

For prompt mode: also generate a Style Anchor (3–5 sentences beginning "All images in this set:") and embed it as the first sentence of every individual prompt.


Layer 4 — Generate, Evaluate, Iterate (generate mode only)

Before running: Read ~/.claude/skills/gen-images/references/generation-eval.md

Process slots sequentially. Generate → evaluate against 6 quality criteria → edit (not regenerate) for minor issues → save with descriptive filename → update source code.


Output Format

Always start both outputs with the brand detection log line from Layer 1, so the final report restates what was identified:

✓ Detected brand: <colors> · <fonts> · <style>

generate mode

✓ Detected brand: #A855F7 #06B6D4 #0A0A0A · Outfit + JetBrains Mono · editorial photography

## Image Generation Complete
Generated [X] of [Y] images. [Z] flagged for review.

| Slot | File | Status | Notes |
...

Source files updated: [list]

Existing image audit:
- [path]: Consistent ✓
- [path]: Style mismatch — [specific note]

Flagged for manual review:
- [slot]: [issue + suggested edit prompt]

prompt mode

✓ Detected brand: #A855F7 #06B6D4 #0A0A0A · Outfit + JetBrains Mono · editorial photography

## Style Anchor
> [3–5 sentences. Paste at the start of EVERY prompt below.]

---
> **Consistency Warning**: Generate all prompts in the same Gemini session.
> Style Anchor is embedded in each prompt. Separate sessions = style drift.

---
## Image Prompts

### 1. [Type] — `[slot-id]`
**File to create:** `[asset-dir]/[slot-id].png`
**Aspect ratio:** [ratio]
**In source:** `[file]` → replace `src="[placeholder]"`

**Prompt:**
[Style anchor]. [Subject]. [Art style]. [Color palette]. [Mood]. [Specs]. [Negative constraints].

---
### 2. ...

Hard Rules

  • NEVER use placeholder service URLs as final sources
  • NEVER bake text into images (unless explicitly requested)
  • NEVER save outside the project directory
  • NEVER proceed without brand identity — ask first
  • NEVER overwrite existing real images without confirmation
  • NEVER run Layer 4 in prompt mode
  • NEVER generate slots in parallel — always sequential

Edge Cases

  • No styles found: Stop after Layer 1. Ask for brand description before proceeding.
  • Mixed photo + illustration slots: Two passes — photos first with photo anchor, illustrations second with illustration anchor.
  • Tailwind v4: Look for @theme { --color-*: } blocks in CSS (no tailwind.config.ts).
  • Existing mismatched images: Flag, never replace without confirmation.
  • MCP unavailable: Inform user, suggest prompt mode.
  • Zero slots: Report and stop.
  • Single section auto-trigger: Skip full scan, use user's description as content_hint, still run Layer 1 for design_profile.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Gen Images?

Post-build image generation for websites. Scans for missing/placeholder images, extracts brand identity, and either generates images directly via MCP tools or outputs optimized prompts for manual Gemini use. Subcommands: "generate" (full automated pipeline) or "prompt" (prompt-only output). Use when user says "generate images", "fill in images", "create hero image", "image prompts", "/gen-images", "generate an image for the [X] section", "I need an image for [section]", or after building/deploying a website.

Firwat Gen Images op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Gen Images besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Gen Images an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/dancolta/gen-images-skill/tree/main an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Gen Images benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Gen Images benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Gen Images domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Gen Images gratis?

De Skill gëtt vum dancolta op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇