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ファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    dancoltaがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Gen Images」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/dancolta/gen-images-skill/tree/main
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dancolta/gen-images-skill.git \
  .claude/skills/gen-images
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGen Imagesを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGen Imagesを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Gen Imagesは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでGen Imagesを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Gen Imagesはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGen Imagesをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/dancolta/gen-images-skill/tree/mainを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Gen Imagesを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Gen Imagesで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGen Imagesを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Gen Images」は無料ですか?

dancoltaがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇