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:
- If image-generation MCPs are connected (DALL-E, Imagen, Stable Diffusion, Midjourney bridge, etc.) — call them with the prompts and save the outputs.
- 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.
- 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.jsonexists- 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.jsondoesn't exist — route toimage-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-optimizerin Tier 5)
Inputs
Required:
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, optionalstyle(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:
promptfrom the spec (already engineered byimage-asset-planner)width,heightfrom the spec (or aspect ratio if the tool only takes ratio)styledirective 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
widthandheightfrom 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/promptForImagenvariants if the planner provided them; otherwise a single genericprompt.- 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/or04-implementation/nextjs/public/images/.
Quality checks
Before declaring done:
- Every spec in
image-spec.jsonhas a corresponding file atlp-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 theirassets/images/orpublic/images/ -
actionsRequiredlists 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.mdskills/image-asset-planner/SKILL.md— upstream; produces the specskills/design-system-builder/SKILL.md— upstream; brand colors for placeholdersskills/copywriting-generator/SKILL.md— upstream; copy used in OG imageskills/lp-coder-html/SKILL.md,skills/lp-coder-nextjs/SKILL.md— downstream consumers; reference these files by pathskills/asset-optimizer/SKILL.md
…
[truncated for translation]