Community图像github.com

hanimaru1121/image-asset-generator

This skill should be used when the user wants the actual image files for the landing page generated and placed in the implementation folder — based on the specs from `image-asset-planner`. If the user has an image generation MCP (DALL-E, Imagen, Stable Diffusion, Midjourney bridge) it calls that; otherwise produces a usable placeholder (labeled SVG with correct dimensions, or a CSS gradient with text). Triggers include "画像生成して", "画像を作って", "ヒーロー画像", "OG画像作成", "generate images", "create hero image", "make placeholder images", "image assets", "画像アセット", or when the orchestrator (`lp-maker`) reaches Tier 4. Note that founder/customer/real-person portraits MUST NOT be AI-generated and are flagged for the user to provide real photos. Make sure to use this skill whenever the LP has image slots that need files, so `lp-coder-*` can reference real paths.

image-asset-generator 是什么?

image-asset-generator is a Claude Code agent skill that this skill should be used when the user wants the actual image files for the landing page generated and placed in the implementation folder — based on the specs from `image-asset-planner`. If the user has an image generation MCP (DALL-E, Imagen, Stable Diffusion, Midjourney bridge) it calls that; otherwise produces a usable placeholder (labeled SVG with correct dimensions, or a CSS gradient with text). Triggers include "画像生成して", "画像を作って", "ヒーロー画像", "OG画像作成", "generate images", "create hero image", "make placeholder images", "image assets", "画像アセット", or when the orchestrator (`lp-maker`) reaches Tier 4. Note that founder/customer/real-person portraits MUST NOT be AI-generated and are flagged for the user to provide real photos. Make sure to use this skill whenever the LP has image slots that need files, so `lp-coder-*` can reference real paths.

兼容平台✓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 是做什么的?

This skill turns the image plan (from image-asset-planner) into actual files on disk. The plan tells us each slot: filename, dimensions, format, alt text, style direction, and the AI-generation prompt. This skill executes:

  1. If image-generation MCPs are connected (DALL-E, Imagen, Stable Diffusion, Midjourney bridge, etc.) — call them with the prompts and save the outputs.
  2. If no generation MCPs are available — produce a usable labeled SVG placeholder at the exact dimensions, OR a CSS-only gradient placeholder using brand colors with the slot name as text. The implementation files will reference these so the LP renders end-to-end, with a clear visual signal that the image is a placeholder.
  3. For any spec describing a real person (founder portraits, customer testimonial photos, team shots) — refuse to generate, and flag for the user to provide a real photo. WHY: AI-generated photos masquerading as real people are dishonest, often legally risky (Japan's 個人情報保護法 + 不正競争防止法 in some contexts), and create a brand-trust crater the moment a visitor reverse-image-searches and finds a synthetic origin.

The output of this skill is the directory lp-workspace/04-implementation/images/, which lp-coder-html / lp-coder-nextjs / responsive-optimizer reference by filename. Even if every image is a placeholder, the page must render correctly — placeholders should match the spec's dimensions so layout shifts don't appear when real images later replace them.

When to use this skill

Run this skill when:

  • lp-workspace/03-design/image-spec.json exists
  • The orchestrator reaches Tier 4 (often in parallel with lp-coder-*)
  • The user says "画像生成して" / "create the images" / "make placeholders" / "generate hero image" / "OG画像作って"

Do NOT use this skill when:

  • image-spec.json doesn't exist — route to image-asset-planner
  • The user wants to define what images to generate (that's image-asset-planner)
  • The user wants to optimize existing images (that's asset-optimizer in Tier 5)

Inputs

Required:

  1. lp-workspace/03-design/image-spec.json — per-image: id, filename, width, height, format (png/webp/avif/svg/jpg), slot (e.g. hero-main, social-proof-avatar-1, og-image), purpose, alt, prompt, optional style (matched to brand). WHY: this is the contract; we generate per spec.

Optional: 2. lp-workspace/03-design/design-tokens.json — brand colors for fallback placeholder gradients. 3. lp-workspace/00-brief.json — for product name and tagline used in OG placeholder text. 4. lp-workspace/02-strategy/copy.json — for hero copy used to label hero placeholder. 5. Image-generation MCPs: any tool surface named like generate_image, dalle3, imagen, stable_diffusion, midjourney, or general image capability. The skill probes for available tools at runtime.

If image-spec.json is missing, halt:

画像生成には仕様ファイルが必要です:
- lp-workspace/03-design/image-spec.json [不足 → image-asset-planner]

Process

Step 1. Validate and load inputs

Read image-spec.json. Read design-tokens.json for brand color (color.primary.500, color.neutral.100, color.neutral.900) to drive placeholder styling. Read brief for product name fallback.

Step 2. Categorize each image by generation strategy

For each spec, classify into ONE of these buckets:

A. SAFE TO GENERATE — illustrative, conceptual, abstract:

  • Hero abstract illustrations, dashboard mockups, abstract patterns
  • Product photography of generic objects (notebook, coffee cup, laptop screen with placeholder UI)
  • Icon variations, decorative shapes
  • OG image (designed graphic with logo + tagline, NOT a real photo)
  • Background gradients, textures

B. MUST NOT BE AI-GENERATED — REAL PHOTO REQUIRED:

  • Founder / CEO / team portrait
  • Customer testimonial photo (head shot of named person)
  • Real customer logo (brand identity — never invent)
  • Office photo of the actual company
  • Anything that implies "this real person endorses / uses the product"

For category B, do NOT generate. Create a labeled placeholder AND flag prominently in the report so the user knows to upload a real photo.

C. STUB ONLY — image generation explicitly NOT desired (e.g. user said "I'll source the hero image myself"):

  • Produce a placeholder; do not attempt generation.

WHY this strict separation: AI photos of real-seeming people on commercial LPs are an emerging trust problem. Some platforms reject them; some users reverse-image-search and lose trust; Japanese 不正競争防止法 may apply if the AI photo is presented as a real customer/employee. The rule "no AI for real people" is conservative and safe.

Step 3. Probe for available image-generation tools

Check if any image-generation MCP is connected. Look for tool names matching patterns like:

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

If found, use the first available tool. State which tool will be used in the report.

If NONE found, skip AI generation entirely and proceed to placeholder mode for every category-A spec. State this clearly in the report and provide the prompts so the user can paste them into their preferred external tool.

Step 4. Generate or stub each image

For each spec, follow the matching path:

Path A — Generate via MCP: Call the image-generation tool with:

  • prompt from the spec (already engineered by image-asset-planner)
  • width, height from the spec (or aspect ratio if the tool only takes ratio)
  • style directive incorporated into the prompt
  • Save the returned image to lp-workspace/04-implementation/images/{filename}

If the tool returns a URL, download and save. If it returns bytes, write directly. If it fails, fall through to Path B (placeholder) and note the failure in the report.

Path B — Generate SVG placeholder: For any spec that should have been generated but couldn't (no tool, generation failed, or spec is in category C):

Produce an SVG with:

  • The exact width and height from the spec
  • Brand-color gradient background (primary-100 → primary-300 or neutral-100 → neutral-200 for muted)
  • Centered text label: filename, dimensions, slot purpose
  • Dashed border to visually signal "placeholder"

Example 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} (placeholder)
  </text>
</svg>

Save with the spec's filename (even if the original format was png/webp, save as the spec filename ending in .svg only if format conversion isn't possible — otherwise keep the requested extension and embed the SVG inside or convert). Practical approach: write {filename-stem}.placeholder.svg AND a copy at the original filename so <img src="/images/{filename}"> resolves. WHY: the implementation already references {filename}; keeping the original path live prevents broken links.

Path C — Category B (real person flag): Produce a placeholder SVG with explicit text: "REAL PHOTO REQUIRED — {slot}". Do NOT generate AI. Add a flagged: true entry in the report.

Path D — OG image (special case): Generate a 1200×630 PNG (or SVG fallback) with:

  • Brand primary background
  • Product name + tagline from copy.json.meta.title / brief.business.tagline
  • Logo wordmark
  • Brand-color accent shape Use AI if available (with a tightly engineered prompt for designed graphics, NOT photo). Otherwise produce an SVG with brand colors and text — usable as-is for launch.

Step 5. Provide the prompts as fallback documentation

In the report, ALWAYS include the original AI prompt for each image — even when generation succeeded. WHY: the user may want to regenerate variations later in their preferred tool (Midjourney, custom Stable Diffusion finetune). The prompts are the most reusable artifact.

Include for each:

  • promptForDallE3 / promptForMidjourney / promptForImagen variants if the planner provided them; otherwise a single generic prompt.
  • The brand-color hex codes embedded for tools that accept them
  • Negative prompts if relevant (e.g. for Stable Diffusion: --no text, watermark, low quality)

Step 6. Place files and verify paths

Write every image (real or placeholder) to lp-workspace/04-implementation/images/. If lp-workspace/04-implementation/html/assets/images/ exists (from lp-coder-html), copy files there too OR document that the user should cp -r them. For Next.js, copy to lp-workspace/04-implementation/nextjs/public/images/.

WHY duplicating: each implementation framework expects its own canonical path. Centralizing in 04-implementation/images/ is the source of truth; copies enable the framework to serve them.

Step 7. Write the image-generation report

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

{
  "generatedAt": "2026-05-29T..",
  "toolUsed": "dalle-3 via <image-generation 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": "...full prompt as used...",
      "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": "Real founder photo required; AI-generated portraits of supposed-real people are not allowed",
      "placeholder": "lp-workspace/04-implementation/images/founder.jpg (SVG placeholder)",
      "actionRequired": "User to provide real photo of founder; replace file at this path",
      "promptForUserReference": "(not used — real photo required)"
    },
    {
      "specId": "feature-icon-1",
      "filename": "feature-icon-1.svg",
      "dimensions": "64x64",
      "category": "A_safe_to_generate",
      "status": "placeholder",
      "reason": "No image-generation MCP available; SVG placeholder created",
      "path": "lp-workspace/04-implementation/images/feature-icon-1.svg",
      "promptForUserReference": "minimalist line icon of a checkmark inside a circle, brand color #5b8def, transparent background, 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": "{product name} — {tagline}"
    }
  ],
  "actionsRequired": [
    "Provide real photo for: founder, customer-testimonial-1, customer-testimonial-2",
    "Optional: regenerate placeholders (feature-icon-1..6) using prompts in your preferred AI tool, then drop files into lp-workspace/04-implementation/images/"
  ]
}

Step 8. Report back

画像生成が完了しました:
仕様総数: [N]
- AI生成成功: [N] 件 (tool: {dalle-3 / imagen / etc. / "なし"})
- プレースホルダーのみ: [N] 件 (生成MCP未接続 — プロンプトはレポートに添付)
- 実写要請フラグ: [N] 件 (founder / testimonial 等 — 必ず実写を用意)

ディレクトリ: lp-workspace/04-implementation/images/
レポート: lp-workspace/04-implementation/image-generation-report.json

要対応:
- 実写要請の N 件: 実物の写真を上記パスに上書き保存してください
- プレースホルダー: そのままでもLPは動きますが、本番前に差し替えを推奨
- OG画像: テキストが正しいか確認 (on-page-seo が後でメタタグを最終確定)

次のステップ: lp-coder-* が参照 → asset-optimizer (Tier 5) でサイズ最適化 → performance-optimizer

Output

Files written:

  • lp-workspace/04-implementation/images/{...} — every spec's image (real or placeholder), at the spec's filename and dimensions.
  • lp-workspace/04-implementation/image-generation-report.json — per-spec status, prompts, action items.
  • Optionally also copied to 04-implementation/html/assets/images/ or 04-implementation/nextjs/public/images/.

Quality checks

Before declaring done:

  • Every spec in image-spec.json has a corresponding file at lp-workspace/04-implementation/images/{filename} (real or placeholder)
  • No image-spec is silently skipped
  • Placeholder dimensions match spec dimensions exactly (no layout shift later)
  • No category-B spec (real person) has an AI-generated image; all are flagged with placeholder + action item
  • Every report item includes the prompt (so the user can regenerate externally)
  • Tool used is documented in the report root
  • OG image (1200×630) exists, even if as a placeholder
  • If implementation folders exist (html/, nextjs/), files are copied to their assets/images/ or public/images/
  • actionsRequired lists every flagged real-photo replacement
  • Report JSON is valid

If any check fails, do NOT report success — fix it.

References

  • ${CLAUDE_PLUGIN_ROOT}/skills/lp-maker/references/workspace-schema.md
  • skills/image-asset-planner/SKILL.md — upstream; produces the spec
  • skills/design-system-builder/SKILL.md — upstream; brand colors for placeholders
  • skills/copywriting-generator/SKILL.md — upstream; copy used in OG image
  • skills/lp-coder-html/SKILL.md, skills/lp-coder-nextjs/SKILL.md — downstream consumers; reference these files by path
  • skills/asset-optimizer/SKILL.md

…

[truncated for translation]

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

相关技能