Community影像github.com

hanimaru1121/image-asset-generator

這個技能根據 image-asset-planner 的規格,在實作資料夾中產生或放置網頁所需的真實圖片檔案,並在有圖片生成 MCP(如 DALL-E、Imagen、Stable Diffusion、Midjourney bridge)時呼叫它,否則會產生可用的佔位符(標示尺寸的 SVG 或 CSS 漸層文字)。

image-asset-generator 是什麼?

這個技能是 AI 代理的圖片資產產生器,主要用於根據圖片資產規劃器(image-asset-planner)的規格,自動產生或提供網頁所需的圖片檔案。它支援多種圖片生成 MCP 工具,包括 DALL-E、Imagen、Stable Diffusion 和 Midjourney bridge,並能在沒有這些工具的情況下生成高品質的 SVG 或 CSS 佔位符,確保網頁渲染無縫銜接。此技能嚴格區分可AI生成的圖片(如抽象插畫、產品概念圖)和需要真實照片的圖片(例如創辦人肖像、客戶見證照片),後者會標記為「必須提供真實照片」,並拒絕生成AI版本,以避免法律風險(如日本個人情報保護法、不正競爭防止法)和品牌信任問題。輸出檔案會集中放置在 `lp-workspace/04-implementation/images/` 目錄中,並同步複製到實作框架(如 HTML 或 Next.js)的對應路徑,同時生成詳細的產出報告(`image-generation-report.json`),包含每張圖片的狀態、提示詞與待辦事項。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hanimaru1121/claude-skills/tree/HEAD/plugins/lp-maker/skills/image-asset-generator

Installed? Explore more 影像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

預覽

來自技能 README

image-asset-generator preview

說明文件

image-asset-generator 是做什麼的?

這個技能將圖片計畫(來自 image-asset-planner)轉換成磁碟上的實際檔案。該計畫告訴我們每個圖片插槽的資訊:檔名、尺寸、格式、替代文字、風格方向以及 AI 生成提示詞。此技能執行以下步驟:

  1. 如果圖片生成 MCP 已連線(DALL-E、Imagen、Stable Diffusion、Midjourney bridge 等)—— 使用提示詞呼叫它們並儲存輸出。
  2. 如果沒有任何圖片生成 MCP —— 產生一個可用且標示尺寸的 SVG 佔位符,或是使用品牌色彩的 CSS-only 漸層佔位符,並帶有插槽名稱作為文字。實作檔案會引用這些佔位符,使 LP 能端對端渲染,並清楚顯示該圖片為佔位符。
  3. 對於任何描述真實人物的規格(創辦人肖像、客戶見證照片、團隊合照)—— 拒絕生成,並標記要求使用者提供真實照片。原因:AI 生成的假真人照片不誠實,往往有法律風險(日本個人情報保護法 + 不正競爭防止法在某些情境下適用),而且一旦訪客透過以圖搜圖發現其合成來源,就會對品牌信任造成毀滅性打擊。

此技能的輸出目錄為 lp-workspace/04-implementation/images/,lp-coder-html / lp-coder-nextjs / responsive-optimizer 會依檔名參考這些檔案。即使每張圖片都是佔位符,頁面也必須正確渲染 —— 佔位符應符合規格的尺寸,以免後續替換真實圖片時發生版面位移。

何時使用此技能

在以下情況執行此技能:

  • lp-workspace/03-design/image-spec.json 存在
  • 協調器(orchestrator)達到第 4 層(通常與 lp-coder-* 並行)
  • 使用者說「画像生成して」/「建立圖片」/「製作佔位符」/「生成英雄圖片」/「製作OG圖片」

在以下情況不要使用此技能:

  • image-spec.json 不存在 —— 請轉向 image-asset-planner
  • 使用者想要定義要生成哪些圖片(那是 image-asset-planner 的工作)
  • 使用者想要最佳化現有圖片(那是第 5 層 asset-optimizer 的工作)

輸入

必要:

  1. lp-workspace/03-design/image-spec.json —— 每張圖片的:id、filename、width、height、format(png/webp/avif/svg/jpg)、slot(例如 hero-main、social-proof-avatar-1、og-image)、purpose、alt、prompt、可選 style(與品牌匹配)。原因:這是約定;我們根據規格生成。

可選: 2. lp-workspace/03-design/design-tokens.json —— 用於佔位符漸層回退的品牌色彩。 3. lp-workspace/00-brief.json —— 用於 OG 佔位符文字中的產品名稱和標語。 4. lp-workspace/02-strategy/copy.json —— 用於英雄佔位符標籤的英雄文案。 5. 圖片生成 MCP:任何名稱類似 generate_image、dalle3、imagen、stable_diffusion、midjourney 或一般 image 能力的工具。此技能會在執行時探測可用的工具。

如果 image-spec.json 缺失,則停止:

圖片生成需要規格檔案:
- lp-workspace/03-design/image-spec.json [缺失 → 請前往 image-asset-planner]

流程

步驟 1. 驗證並載入輸入

讀取 image-spec.json。讀取 design-tokens.json 以獲取品牌色彩(color.primary.500、color.neutral.100、color.neutral.900)來驅動佔位符樣式。讀取簡報以獲取產品名稱作為備用。

步驟 2. 根據生成策略分類每張圖片

對於每個規格,將其分類至下列其中一個類別:

A. 可安全生成 —— 插圖、概念、抽象:

  • 英雄抽象插畫、儀表板模型、抽象圖案
  • 通用物體的照片(筆記本、咖啡杯、帶有佔位符 UI 的筆記型電腦螢幕)
  • 圖示變體、裝飾形狀
  • OG 圖片(設計過的圖形,包含標誌 + 標語,不是真實照片)
  • 背景漸層、紋理

B. 不得使用 AI 生成 —— 需要真實照片:

  • 創辦人 / CEO / 團隊肖像
  • 客戶見證照片(具名人士的頭像)
  • 真實客戶標誌(品牌識別 —— 不得虛構)
  • 公司實際辦公室的照片
  • 任何暗示「這個真人背書 / 使用該產品」的內容

對於類別 B,不要生成。建立一個帶標籤的佔位符,並在報告中顯著標記,以便使用者知道要上傳真實照片。

C. 僅佔位符 —— 明確不希望生成圖片(例如使用者說「我會自己找英雄圖片」):

  • 產生佔位符;不要嘗試生成。

為何要如此嚴格區分:在商業 LP 上使用看似真人的 AI 照片是一個新興的信任問題。有些平台會拒絕這些內容;有些用戶會進行以圖搜圖進而失去信任;如果 AI 照片被呈現為真實客戶/員工,日本的不正競爭防止法可能適用。這條「真人不得使用 AI」的規則既保守又安全。

步驟 3. 探測可用的圖片生成工具

檢查是否有任何圖片生成 MCP 已連線。尋找符合下列模式的名稱:

  • *generate_image*
  • *dalle* / *dall_e*
  • *imagen*
  • *stable_diffusion* / *sd*
  • *midjourney*
  • *image_create*

如果找到,使用第一個可用的工具。在報告中說明將使用哪個工具。

如果完全沒有找到,跳過 AI 生成,並對所有類別 A 的規格直接進入佔位符模式。在報告中清楚說明這一點,並提供提示詞,以便使用者可以將其貼入自己偏好的外部工具。

步驟 4. 生成或建立每張圖片的佔位符

對於每個規格,依照匹配的路徑進行:

路徑 A — 透過 MCP 生成: 使用以下參數呼叫圖片生成工具:

  • 規格中的 prompt(已由 image-asset-planner 設計好)
  • 規格中的 width、height(或長寬比,如果工具只接受比例)
  • 將 style 指令合併到提示詞中
  • 將回傳的圖片儲存到 lp-workspace/04-implementation/images/{filename}

如果工具回傳 URL,下載並儲存。如果回傳位元組,直接寫入。如果失敗,回退到路徑 B(佔位符),並在報告中記錄失敗。

路徑 B — 生成 SVG 佔位符: 對於任何應該被生成但無法生成的規格(沒有工具、生成失敗,或規格屬於類別 C):

產生一個 SVG,包含:

  • 規格中的確切 width 和 height
  • 品牌色彩漸層背景(primary-100 → primary-300 或 muted 用 neutral-100 → neutral-200)
  • 置中文字標籤:檔名、尺寸、插槽用途
  • 虛線邊框,視覺上表示「佔位符」

SVG 範例:

<svg xmlns="http://www.w3.org/2000/svg" width="{W}" height="{H}" viewBox="0 0 {W} {H}">
  <defs>
    <linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
      <stop offset="0%" stop-color="{primary-100}"/>
      <stop offset="100%" stop-color="{primary-300}"/>
    </linearGradient>
  </defs>
  <rect width="100%" height="100%" fill="url(#g)"/>
  <rect width="100%" height="100%" fill="none" stroke="{primary-500}" stroke-width="4" stroke-dasharray="12 8"/>
  <text x="50%" y="50%" font-family="system-ui, sans-serif" font-size="24" font-weight="700" fill="{primary-700}" text-anchor="middle">
    {slot}
  </text>
  <text x="50%" y="50%" dy="32" font-family="system-ui, sans-serif" font-size="14" fill="{primary-700}" text-anchor="middle">
    {W} × {H} (佔位符)
  </text>
</svg>

使用規格的 filename 儲存(即使原始格式是 png/webp,如果無法轉換格式,則以規格檔名結尾為 .svg 儲存;否則保留要求的副檔名,並將 SVG 嵌入其中或進行轉換)。實務做法:寫入 {filename-stem}.placeholder.svg 以及一份副本在原始檔名路徑下,這樣 <img src="/images/{filename}"> 就能解析。原因:實作已經引用 {filename};保持原始路徑有效可以防止連結中斷。

路徑 C — 類別 B(真實人物標記): 產生一個 SVG 佔位符,帶有明確文字:「需要真實照片 — {slot}」。不要使用 AI 生成。在報告中新增一個 flagged: true 條目。

路徑 D — OG 圖片(特殊情況): 生成 1200×630 PNG(或 SVG 備用),包含:

  • 品牌主色背景
  • 來自 copy.json.meta.title / brief.business.tagline 的產品名稱 + 標語
  • 標誌字標
  • 品牌色彩強調形狀 如果 AI 可用,則使用 AI(使用嚴謹設計的提示詞,用於設計圖形,非照片)。否則產生帶有品牌色彩和文字的 SVG —— 可直接用於上線。

步驟 5. 提供提示詞作為備用文件

在報告中,務必包含每張圖片的原始 AI 提示詞 —— 即使生成成功也要包含。原因:使用者可能之後想在他們偏好的工具(Midjourney、自訂 Stable Diffusion 微調)中重新生成變體。提示詞是最可重複使用的資產。

為每張圖片包含:

  • 如果規劃器提供了 promptForDallE3 / promptForMidjourney / promptForImagen 的變體,否則使用單一通用 prompt。
  • 嵌入的品牌色彩十六進位碼(如果工具接受)
  • 負面提示詞(如果相關,例如 Stable Diffusion 的 --no text, watermark, low quality)

步驟 6. 放置檔案並驗證路徑

將每張圖片(真實或佔位符)寫入 lp-workspace/04-implementation/images/。如果 lp-workspace/04-implementation/html/assets/images/ 存在(來自 lp-coder-html),也將檔案複製到那裡,或者告知使用者應執行 cp -r 指令。對於 Next.js,複製到 lp-workspace/04-implementation/nextjs/public/images/。

原因:每個實作框架都預期自己的標準路徑。集中放在 04-implementation/images/ 是真相來源;複製到各框架可讓框架提供這些檔案。

步驟 7. 撰寫圖片生成報告

寫入 lp-workspace/04-implementation/image-generation-report.json:

{
  "generatedAt": "2026-05-29T..",
  "toolUsed": "dalle-3 via <圖片生成 MCP>",
  "totalSpecs": 14,
  "generated": 9,
  "placeholderOnly": 3,
  "flaggedRealPhoto": 2,
  "items": [
    {
      "specId": "hero-main",
      "filename": "hero-main.png",
      "dimensions": "1600x900",
      "category": "A_safe_to_generate",
      "status": "generated",
      "tool": "dalle-3",
      "prompt": "...實際使用的完整提示詞...",
      "path": "lp-workspace/04-implementation/images/hero-main.png",
      "alt": "一位女性在窗邊微笑,使用筆記型電腦工作的場景..."
    },
    {
      "specId": "founder-portrait",
      "filename": "founder.jpg",
      "dimensions": "800x800",
      "category": "B_real_photo_required",
      "status": "flagged",
      "reason": "需要真實創辦人照片;不允許生成假造真人的 AI 肖像",
      "placeholder": "lp-workspace/04-implementation/images/founder.jpg (SVG 佔位符)",
      "actionRequired": "使用者需提供創辦人的真實照片;取代此路徑的檔案",
      "promptForUserReference": "(未使用 — 需要真實照片)"
    },
    {
      "specId": "feature-icon-1",
      "filename": "feature-icon-1.svg",
      "dimensions": "64x64",
      "category": "A_safe_to_generate",
      "status": "placeholder",
      "reason": "無可用的圖片生成 MCP;已建立 SVG 佔位符",
      "path": "lp-workspace/04-implementation/images/feature-icon-1.svg",
      "promptForUserReference": "圓圈內勾號的極簡線條圖示,品牌色彩 #5b8def,透明背景,64x64 SVG"
    },
    {
      "specId": "og-image",
      "filename": "og-image.png",
      "dimensions": "1200x630",
      "category": "D_og",
      "status": "generated",
      "tool": "svg-fallback",
      "path": "lp-workspace/04-implementation/images/og-image.png",
      "alt": "{產品名稱} — {標語}"
    }
  ],
  "actionsRequired": [
    "提供創辦人、customer-testimonial-1、customer-testimonial-2 的真實照片",
    "可選:使用偏好的 AI 工具中的提示詞重新生成佔位符(feature-icon-1..6),然後將檔案放入 lp-workspace/04-implementation/images/"
  ]
}

步驟 8. 回報

圖片生成完成:
規格總數: [N]
- AI 生成成功: [N] 件 (工具: {dalle-3 / imagen / 等 / "無"})
- 僅佔位符: [N] 件 (生成 MCP 未連線 — 提示詞附於報告中)
- 真實照片標記: [N] 件 (創辦人 / 見證人等 — 請務必準備真實照片)

目錄: lp-workspace/04-implementation/images/
報告: lp-workspace/04-implementation/image-generation-report.json

待辦事項:
- 真實照片標記的 N 件: 請將實際照片覆蓋儲存至上述路徑
- 佔位符: 即使保持現狀 LP 也能運作,但建議在上線前替換
- OG 圖片: 請確認文字是否正確 (on-page-seo 稍後會最終確定 meta 標籤)

下一步: lp-coder-* 將參考 -> asset-optimizer (第 5 層) 進行尺寸最佳化 -> performance-optimizer

輸出

寫入的檔案:

  • lp-workspace/04-implementation/images/{...} —— 每個規格的圖片(真實或佔位符),使用規格的檔名和尺寸。
  • lp-workspace/04-implementation/image-generation-report.json —— 每個規格的狀態、提示詞、待辦事項。
  • 可選:同時複製到 04-implementation/html/assets/images/ 或 04-implementation/nextjs/public/images/。

品質檢查

在宣告完成之前:

  • image-spec.json 中的每個規格,都在 lp-workspace/04-implementation/images/{filename} 有對應的檔案(真實或佔位符)
  • 沒有規格被靜默跳過
  • 佔位符尺寸與規格尺寸完全一致(後續不會產生版面位移)
  • 沒有類別 B 的規格(真實人物)包含 AI 生成的圖片;全部以佔位符 + 待辦事項標記
  • 每個報告項目都包含提示詞(以便使用者可以在外部重新生成)
  • 報告根層級記錄了使用的工具
  • OG 圖片(1200×630)存在,即使只是佔位符
  • 如果實作資料夾存在(html/、nextjs/),檔案已複製到其 assets/images/ 或 public/images/
  • actionsRequired 列出了所有標記的真實照片替換項目
  • 報告 JSON 格式有效

如果任何檢查失敗,請不要報告成功 —— 修正它。

參考資料

  • ${CLAUDE_PLUGIN_ROOT}/skills/lp-maker/references/workspace-schema.md
  • skills/image-asset-planner/SKILL.md —— 上游;產生規格
  • skills/design-system-builder/SKILL.md —— 上游;佔位符的品牌色彩
  • skills/copywriting-generator/SKILL.md —— 上游;OG 圖片中使用的文案
  • skills/lp-coder-html/SKILL.md、skills/lp-coder-nextjs/SKILL.md —— 下游消費者;透過路徑參考這些檔案
  • skills/asset-optimizer/SKILL.md

...

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

hanimaru1121/animation-implementer

This skill should be used when the user wants the interaction specs from `ui-microinteraction-designer` actually wired into the running implementation — each spec implemented with the library best suited for it (vanilla CSS for simple hover, GSAP for complex scroll choreography, AOS for in-view reveals, Framer Motion for React) — with `prefers-reduced-motion` always respected and animations restricted to `transform`/`opacity` so they hit 60fps. Triggers include "アニメーション実装", "アニメーションを動かして", "scroll animation", "in-view reveal", "parallax", "GSAP入れて", "AOS入れて", "implement animations", "wire up motion", "60fps", or when the orchestrator (`lp-maker`) reaches Tier 4 after `lp-coder-*`. Make sure to use this skill whenever interactions are specified but not yet animated, because the LP without motion feels lifeless even with strong copy and design.

hanimaru1121/image-asset-planner

This skill should be used when the user wants a complete spec list of every image, illustration, and icon the LP needs — file names, exact dimensions (1x/2x/3x), formats, purposes, alt text, and ready-to-paste generative-AI prompts for Midjourney/DALL·E/Imagen/Adobe Firefly. Triggers include "画像仕様", "image plan", "画像リスト", "画像プロンプト", "AI画像", "Midjourneyプロンプト", "image spec", "what images do we need", "ヒーロー画像どうする", "アイコン仕様", or when the orchestrator (`lp-maker`) reaches Tier 3 Step 4. It reads `02-strategy/ia.json`, `02-strategy/copy.json`, and `03-design/design-tokens.json`, and writes `03-design/image-spec.json`. Make sure to use this skill BEFORE `image-asset-generator` in Tier 4 — without specs, generation is random and brand-inconsistent. Every needed image is enumerated so generation can be batched.

hanimaru1121/visual-mockup-designer

This skill should be used when the user wants a high-fidelity, openable HTML+Tailwind mockup of the entire landing page — colors applied from design tokens, real copy from `copy.json`, placeholder images sized correctly, and all sections from IA visible end-to-end. Triggers include "モックアップ", "mockup", "モックアップ作って", "プレビュー", "preview", "high-fidelity comp", "デザインカンプ", "デザイン案", "ビジュアル案見せて", or when the orchestrator (`lp-maker`) reaches Tier 3 Step 3. It reads `03-design/design-tokens.json`, `03-design/wireframe.svg`, `02-strategy/copy.json`, and `02-strategy/ia.json`, and writes a single-file `03-design/mockup.html` (CDN Tailwind, no build step) the user can open in any browser. This is NOT the final shippable code — it's a designed comp. Animations and interactions are marked with HTML comments for `ui-microinteraction-designer` and `animation-implementer` downstream. Make sure to use this skill whenever the user wants to "see what the LP would look like" BEFORE committing to production

相關技能