Logo Gen Images

Gen Images

Cộng đồng
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.

Tổng quan

Nhà phát hànhdancolta
Kho mãgen-images-skill
Tên kỹ nănggen-images
Sao
32
Bản fork
2
Tệp đi kèm
5
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được dancolta công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Gen Images trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/dancolta/gen-images-skill/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dancolta/gen-images-skill.git \
  .claude/skills/gen-images
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Gen Images trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Gen Images ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Gen Images với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Gen Images làm được gì?

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.

Vì sao nên dùng Gen Images trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Gen Images là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Gen Images trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/dancolta/gen-images-skill/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Gen Images?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Gen Images với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Gen Images với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Gen Images có miễn phí không?

Kỹ năng này được dancolta phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇