DG

dancolta/gen-images-skill

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

33 stars 3 forks 品質 67 トレンド 4

Claude CodeのContext-awareイメージ生成スキル — ウェブサイトのブランドのアイデンティティを分析し、Gemini MCPによるオンブランド画像を生成

概要

ウェブサイトプロジェクトで欠落またはプレースホルダー画像を検出し、サイトの視覚的アイデンティティを分析し、Gemini画像生成MCPを介してオンブランド画像を生成するClaudeコードスキル。 各画像は、一般的なストックフォトフィラーではなく、サイトのカラー、タイポグラフィ、レイアウト、ブランドトーンに合わせて調整されます。 1. 欠落した画像、プレースホルダーのsrc値、グレーのskeleton divs 2.のコードベース ブランドの3とスタイルの一貫性のための既存の画像。 サイトのビジュアルアイデンティティ(ブランドカラー、フォント、UIスタイル、トーン)をTailwind config、CSS変数、コピー4からコピーします。 per-slot のイメージ生成は構造化された方式を使用して促します: 主題 + 芸術様式 + 色パレット + 気分 + 技術的なSpecs + 否定的な制約 5. オンブランドのイメージは直接または手動 Gemini の使用のためのプロンプト リストを出力します /gen-images を実行し、どのモードを望むかプロンプトが表示されません.

概要(AI 翻訳)

##Context-Aware ウェブサイトの画像生成スキル クロードコード

ウェブサイトプロジェクトで欠落またはプレースホルダー画像を検出するクロードコードスキル、 サイトの視覚的なアイデンティティを分析し、Geminiイメージ生成MCPを介してオンブランド画像を生成します。 各画像は、一般的なストックフォトフィラーではなく、サイトのカラー、タイポグラフィ、レイアウト、ブランドトーンに合わせて調整されます。

お問い合わせ

それが何をしているか

ウェブサイトの構築後、このスキル:

1.Scans 行方不明画像、プレースホルダー src] 値、グレーのスケルトンのdivsのコードベース 2.Auditsブランドとのスタイルの一貫性のための既存の画像 3。Extracts サイトのビジュアルアイデンティティ(ブランドカラー、フォント、UIスタイル、トーン)をTailwind config、CSS変数、コピーから抽出します 4。 ビルド 構造化された式を使用してイメージ生成プロンプトごとに**: 件名 + アートスタイル + カラーパレット + 気分 + 技術的な仕様 + 負の制約 5。** 生成** オンブランドイメージを直接または手動で使用するためのプロンプトリストを出力

お問い合わせ

2つのモード

| モード | コマンド | お問い合わせ | お問い合わせ |** | [/gen-images generate | 全自動パイプライン — MCP による画像生成と更新ソースファイル |

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。


What It Does

After building a website, this skill:

  1. Scans the codebase for missing images, placeholder src values, and gray skeleton divs
  2. Audits existing images for style consistency with the brand
  3. Extracts the site’s visual identity (brand colors, fonts, UI style, tone) from Tailwind config, CSS variables, and copy
  4. Builds per-slot image generation prompts using a structured formula: Subject + Art Style + Color Palette + Mood + Technical Specs + Negative Constraints
  5. Generates on-brand images directly or outputs a prompt list for manual Gemini use

Two Modes

Mode Command What it does
generate /gen-images generate Full automated pipeline — generates images via MCP and updates source files
prompt /gen-images prompt Outputs optimized prompts + Style Anchor for manual use in Gemini

Run /gen-images with no argument to be prompted for which mode you want.

The skill also auto-triggers when you say things like “generate an image for the hero section” or “I need an image for the about page” — no explicit command needed.


4-Layer Pipeline

Layer 1 — Design Context Extraction
  → Reads tailwind.config, globals.css, layout.tsx, page copy
  → Builds a design_profile: colors, fonts, tone, UI style, existing images

Layer 2 — Image Slot Detection & Classification
  → Scans all .tsx/.jsx/.html/.vue/.svelte files
  → Detects: empty src, placeholder URLs, skeleton divs
  → Audits: existing images for style mismatches
  → Classifies each slot: type, aspect ratio, content hint, text overlay needs

Layer 3 — Prompt Construction
  → Builds per-slot prompts using brand-matched style directives
  → Embeds Style Anchor in every prompt for cross-session consistency
  → Applies conditional negative constraints (no text-in-image, no stock poses, etc.)

Layer 4 — Generate, Evaluate, Iterate (generate mode only)
  → Generates sequentially (style reference chain)
  → Evaluates against 6 quality criteria
  → Edits (not re-generates) for minor issues
  → Saves with descriptive filenames and updates source code

Consistency in Prompt Mode

When using prompt mode, the output includes a Style Anchor — a shared paragraph that describes the visual system across all images. It is embedded in every individual prompt.

GitHub で README 全文を見る

インストール

npx -y @nano-banana/mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "nano-banana-2": { "command": "npx", "args": ["-y", "@nano-banana/mcp-server"], "env": { "GEMINI_API_KEY": "your-api-key-here" } } } }