Логотип Gen Images

Gen Images

Сообщество
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.

Обзор

Издательdancolta
Репозиторийgen-images-skill
Название навыкаgen-images
Звёзды
32
Форки
2
Файлы в комплекте
5
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 5

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — dancolta. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Gen Images в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/dancolta/gen-images-skill/tree/main
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dancolta/gen-images-skill.git \
  .claude/skills/gen-images
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Gen Images в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Gen Images, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Gen Images не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ 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.

Зачем использовать Gen Images в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Gen Images — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Gen Images в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/dancolta/gen-images-skill/tree/main. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Gen Images?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Gen Images?

С любым количеством. В TypingMind вы можете использовать Gen Images с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Gen Images?

Навык опубликован на GitHub. Издатель — dancolta. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇