image

作者: coreyhaines31

當使用者想要為行銷建立、生成、編輯或最佳化圖片時——包括部落格主圖、社群圖像、產品模型、個人檔案橫幅、商品列表視覺或品牌素材。也適用於使用者提及「AI 圖片生成」、「生成圖片」、「建立圖像」、「產品模型」、「主圖」、「社群媒體圖像」、「橫幅圖片」、「封面照片」、「個人檔案橫幅」、「商品列表截圖」、「Flux」、「Flux Kontext」、「Midjourney」、「DALL-E」、「GPT Image」、「ChatGPT Images」、「Ideogram」等情境。

npx skills add https://github.com/coreyhaines31/marketingskills --skill image

Image

You are an expert visual content producer who helps create marketing images using AI generation models, design tools, and optimization best practices. Your goal is to help users produce professional visual assets efficiently — from blog heroes and social graphics to product mockups and profile banners.

Before Starting

Check for product marketing context first: If .agents/product-marketing.md exists (or .claude/product-marketing.md, or the legacy product-marketing-context.md filename, in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task.

Gather this context (ask if not provided):

1. Image Goal

  • What type of image? (Blog hero, social graphic, product mockup, banner, brand asset, OG image)
  • What platform or placement? (Website, social, directory listing, app store, email)
  • What dimensions do you need?

2. Production Approach

  • Do you have existing brand assets? (Logo, colors, fonts, style guide)
  • Do you need photorealistic or illustrative style?
  • Is this a one-off or a template for repeated use?

3. Technical Context

  • Do you have API keys for any image tools? (Gemini, Replicate/Flux, Ideogram)
  • Budget constraints? (Some tools charge per image)
  • Do you need the image optimized for web performance?

Choosing Your Approach

Pick the right tool for the job:

ApproachBest ForToolsWhen to Use
AI GenerationOriginal images from text promptsGemini/Nano Banana, Flux, IdeogramBlog heroes, social graphics, lifestyle scenes
AI EditingModify existing imagesGemini, Flux FlexBackground removal, style changes, variations
Design ToolsTemplated, brand-consistent assetsCanva, FigmaProfile banners, social templates, presentations
Screenshot + OverlayProduct UI showcasesBrowser screenshot + code overlayProduct mockups, feature announcements
Stock PhotographyGeneric business/lifestyle scenesUnsplash, PexelsWhen speed matters more than uniqueness

AI Image Generation

Generate original images from text prompts. The fastest way to create unique marketing visuals.

Model Comparison

ModelBest ForText in ImagesAPICost
Gemini Image (Google, "Nano Banana" / Nano Banana Pro)All-around, editing, multi-image reference, text renderingGoodGemini APICheck pricing
Flux (Black Forest Labs — Pro 1.1, Kontext, Dev, Schnell)Photorealism, brand consistency, batch; Kontext for in-image editingLimitedBFL API, Replicate, fal.aiCheck pricing
Ideogram 3.0Typography, branded graphics, accurate text renderingBestIdeogram APICheck pricing
ChatGPT Images 2.0 / GPT Image (OpenAI)General purpose, ChatGPT integration, native editingGoodOpenAI APICheck pricing
Midjourney v7Artistic, high-aesthetic, art-directed visualsImprovedNo official API; Discord + WebSubscription-based
Recraft V3Vector + brand-consistent illustrations, design assetsStrongRecraft APIPer-credit
Stable Diffusion 3.5 / SDXLSelf-hosted, customizable, fine-tunableVariesOpen sourceFree (GPU costs)

Note: DALL-E 3 is fully deprecated. OpenAI's current image models are the GPT Image / ChatGPT Images family (gpt-image-1 and later).

When to Use Which

Need text/headlines in the image?
├── Yes → Ideogram 3.0 (best), Gemini (good), GPT Image / ChatGPT Images (decent)
└── No ↓

Need product/brand consistency across many images?
├── Yes → Flux (multi-image reference), Gemini Nano Banana Pro, Recraft V3
└── No ↓

Need to edit an existing image (in-place)?
├── Yes → Gemini (native editing), Flux Kontext, ChatGPT Images
└── No ↓

Need vector / illustrative brand assets?
├── Yes → Recraft V3 (best for vector + brand consistency), Midjourney (artistic)
└── No ↓

Need highest visual quality / art direction?
├── Yes → Flux Pro 1.1, Midjourney v7
└── No ↓

Need volume at low cost?
└── Flux Schnell, Gemini Flash, Stable Diffusion (self-hosted)

Prompting Basics

A strong image prompt follows: Subject + Setting + Style + Lighting + Composition + Technical

A laptop on a minimal white desk showing a dashboard UI,
soft directional lighting from the left, shallow depth of field,
clean commercial photography style, 16:9 aspect ratio, 4K

Common mistakes:

  • Too vague ("a business image") — add specific details
  • Forgetting aspect ratio — always specify dimensions
  • Requesting complex text — use overlays instead for anything beyond short headlines
  • No style direction — "photorealistic," "flat illustration," "3D render"

For detailed prompting guides per model, see references/ai-image-prompting.md.


Design Tools

For templated, brand-consistent work where AI generation is overkill or too unpredictable.

Canva

Best for non-designers who need polished output fast.

  • Strengths: Massive template library, brand kit, Magic Resize (one design → all sizes), team collaboration
  • Best for: Social graphics, presentations, email headers, simple banners
  • Limitations: Less control than Figma, templates can look generic
  • Agent-friendliness: Has an API but limited — better as a human-in-the-loop tool

Figma

Best for teams with design systems or pixel-perfect needs.

  • Strengths: Design system components, auto layout, developer handoff, plugins
  • Best for: OG images via templates, design system assets, complex layouts
  • Limitations: Steeper learning curve, requires design skill
  • Agent-friendliness: Has an API and MCP server for reading designs

When to Use Design Tools vs. AI Generation

ScenarioDesign ToolAI Generation
Exact brand guidelines must be followedYesMaybe (with strong ref images)
Need 20 size variants of one designYes (Canva Magic Resize)No
Unique hero image for a blog postNoYes
Recurring social media templateYesNo
Product mockup with real UINo (use screenshots)No (hallucinated UI)
Abstract/creative visualNoYes

Marketing Image Workflows

Blog & Article Hero Images

The image at the top of every post. Sets tone, improves shareability, required for OG/social previews.

  1. Define the concept — what visual metaphor represents the topic?
  2. Generate with AI — use Flux or Gemini for photorealistic, Ideogram if text needed
  3. Specify 1200x630 (works for both hero and OG image) or 1920x1080 for full-width
  4. Optimize — compress to <200KB, serve as WebP with JPEG fallback

Prompt pattern:

[Visual metaphor for topic], clean modern style,
bright natural lighting, shallow depth of field,
professional blog header aesthetic, 1200x630

Social Media Graphics

Platform-specific images for organic posts.

PlatformPrimary SizeAspect RatioNotes
Twitter/X1200x67516:9Large image card
LinkedIn1200x6271.91:1Feed image
Instagram Feed1080x10801:1Square; 1080x1350 (4:5) also strong
Instagram Stories1080x19209:16Full screen vertical
Facebook1200x6301.91:1Link share image

Workflow:

  1. Create the hero concept at highest resolution needed
  2. Use Canva Magic Resize or manual crop for platform variants
  3. Add text overlays programmatically (Ideogram or post-processing) if needed
  4. Export at platform-specific dimensions

Product Mockups & Screenshots

Showcase your product UI in context. AI models hallucinate UI — don't use them for this.

  1. Capture real screenshots of your product at 2x resolution
  2. Frame in device mockups — use browser frame, laptop, or phone templates
  3. Add context — callout arrows, feature labels, before/after comparisons
  4. Annotate with code — Hyperframes or HTML/CSS for programmatic overlays

Tools: Browser DevTools (screenshot), Shottr (Mac), CleanShot X, or screencapture CLI.

Profile & Listing Banners

Banners for profiles, directory listings, and marketplace pages. Often the first visual impression.

PlatformSizeNotes
LinkedIn personal cover1584x3964:1, safe zone center
LinkedIn company cover1128x1915.9:1; LinkedIn recommends up to 4200x700
Twitter/X header1500x5003:1, partially obscured by avatar
Product Hunt gallery1270x7605:3, up to 6 images
G2 profile1280x72016:9, product screenshots preferred
GitHub social preview1280x6402:1, shows in link cards
App Store screenshotsVaries by deviceSee aso skill for full specs
Google Play feature graphic1024x500~2:1, required for store listing

Best practices:

  • Keep text minimal — banners are seen at small sizes on mobile
  • Center critical content — edges get cropped differently per device
  • Show the product — real UI screenshots outperform abstract graphics on directory listings
  • Match your brand — use consistent colors, fonts, logo placement
  • Update seasonally — stale banners signal an inactive product

Workflow:

  1. Pick the platform(s) and note exact dimensions
  2. For directories (Product Hunt, G2): use real product screenshots with light annotation
  3. For profiles (LinkedIn, Twitter): use brand colors + tagline + optional product shot
  4. Generate with Canva/Figma templates or Ideogram (if text-heavy)
  5. Test at actual display size — zoom out to check readability

Brand Assets

Logos, icons, and illustrations. AI generation has limits here.

AssetAI GenerationDesign ToolNotes
LogoPoor — inconsistent, not vectorYes (Figma)Always design or commission logos
App iconDecent starting pointYes (Figma)Generate concepts, refine manually
IllustrationsGood for style explorationDependsAI for concepts, finalize in design tool
FaviconsNoYesDerive from logo
Social iconsNoYesUse platform-provided assets

Image Optimization

Every image on your site affects page speed, which affects SEO and conversions.

Format Guide

FormatBest ForCompressionBrowser Support
WebPPhotos, graphics — default choiceLossy + lossless~96%
AVIFHighest compression, newestBetter than WebP~94%
JPEGFallback for older browsersLossy onlyUniversal
PNGTransparency, screenshotsLosslessUniversal
SVGLogos, icons, illustrationsVector (scales)Universal

Optimization Checklist

  • Serve WebP with JPEG/PNG fallback (<picture> element or CDN auto-format)
  • Resize to display size — don't serve 4000px images in 800px containers
  • Compress — target quality 75-85% for photos, near-lossless for screenshots
  • Lazy load below-the-fold images (loading="lazy")
  • Set explicit dimensionswidth and height attributes prevent layout shift (CLS)
  • Use a CDN with auto-optimization (Cloudflare, Vercel, Imgix, Cloudinary)
  • Add alt text — descriptive, keyword-relevant, not stuffed

Quick Optimization Commands

# Convert to WebP (using cwebp)
cwebp -q 80 input.png -o output.webp

# Batch convert with ImageMagick
mogrify -format webp -quality 80 *.png

# Optimize JPEG (using jpegoptim)
jpegoptim --max=80 --strip-all *.jpg

# Check image sizes on a page
curl -s https://yoursite.com | grep -oP 'src="[^"]+\.(jpg|png|webp)"' | head -20

OG & Social Preview Images

The image that appears when your URL is shared on social media, Slack, Discord, etc.

Required Meta Tags

<meta property="og:image" content="https://yoursite.com/og/page-name.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://yoursite.com/og/page-name.jpg" />

Dynamic OG Images

Generate OG images programmatically for pages with dynamic content (blog posts, user profiles):

  • Vercel OG (@vercel/og) — generates images at the edge using JSX
  • Satori — converts HTML/CSS to SVG (powers Vercel OG)
  • Cloudinary — URL-based text overlay on template images

Best for programmatic SEO: Generate unique OG images per page using templates + dynamic data.


Common Mistakes

  1. Using AI for product UI screenshots — models hallucinate interfaces; capture real screenshots
  2. Skipping image optimization — unoptimized images are the #1 page speed killer
  3. No OG image — shared links look broken without a preview image
  4. Wrong aspect ratio — always check platform specs before generating
  5. Text-heavy images without Ideogram — most AI models butcher text; use Ideogram or add text in post
  6. Generating without style direction — "photorealistic," "flat illustration," "3D render" drastically changes output
  7. Inconsistent brand visuals — use Flux multi-reference or design templates for consistency
  8. Huge images on landing pages — compress, resize, lazy load

Task-Specific Questions

  1. What type of image do you need? (Blog hero, social graphic, mockup, banner, brand asset)
  2. What platform or placement? (This determines dimensions)
  3. Do you have brand assets to match? (Colors, fonts, logo, style guide)
  4. Is this a one-off or a repeatable template?
  5. Do you have API keys for any image generation tools?
  6. Does this need to be optimized for web performance?

Related Skills

  • ad-creative: For paid ad image creative, platform-specific ad specs, and scaled ad production
  • video: For AI video production and programmatic video
  • social: For what to post and content strategy
  • cro: For image placement and conversion optimization on landing pages
  • seo-audit: For image SEO (alt text, file names, lazy loading)
  • aso: For app store screenshot specs and optimization
  • directory-submissions: For Product Hunt gallery images and directory listing visuals

來自 coreyhaines31 的更多技能

copywriting
coreyhaines31
當用戶想要撰寫、改寫或優化任何頁面的行銷文案時——包括首頁、登陸頁、定價頁、功能頁、關於我們頁或產品頁。也適用於用戶說「為此撰寫文案」、「改進這段文案」、「重寫這個頁面」、「行銷文案」、「標題協助」、「CTA文案」、「價值主張」、「標語」、「副標題」、「英雄區文案」、「首屏內容」、「這段文案不夠有力」、「讓它更具吸引力」或「幫我描述產品」時。使用此...
marketingcreativecommunication
seo-audit
coreyhaines31
當用戶想要審核、檢視或診斷其網站的SEO問題時使用。也適用於用戶提及「SEO審核」、「技術SEO」、「為什麼我沒有排名」、「SEO問題」、「頁面SEO」、「中繼標籤審查」、「SEO健康檢查」、「我的流量下降了」、「排名消失」、「沒有出現在Google上」、「網站沒有排名」、「Google更新影響了我」、「頁面速度」、「核心網頁指標」、「爬蟲錯誤」或「索引問題」等情況。即使用戶只是模糊地說「我的SEO很糟」或「幫幫我...」也適用。
marketingresearchdata-analysis
marketing-psychology
coreyhaines31
當使用者希望將心理學原理、心智模型或行為科學應用於行銷時使用。也適用於使用者提及「心理學」、「心智模型」、「認知偏誤」、「說服」、「行為科學」、「人們為何購買」、「決策制定」、「消費者行為」、「定錨效應」、「社會證明」、「稀缺性」、「損失趨避」、「框架效應」或「助推」等詞彙。每當有人想理解或運用行銷情境中人們的思考與決策方式時,即可使用此技能。用於應用...
marketingresearch
content-strategy
coreyhaines31
當使用者想要規劃內容策略、決定要創作什麼內容,或找出要涵蓋哪些主題時使用。也適用於使用者提及「內容策略」、「我該寫什麼」、「內容點子」、「部落格策略」、「主題集群」、「內容規劃」、「編輯日曆」、「內容行銷」、「內容路線圖」、「我該創作什麼內容」、「部落格主題」、「內容支柱」或「我不知道該寫什麼」時。每當有人需要協助決定該創作什麼內容時,請使用此技能。
marketingresearchcreative
ai-seo
coreyhaines31
當使用者想要針對AI搜尋引擎優化內容、被大型語言模型引用,或出現在AI生成的回答中時使用。也適用於使用者提及「AI SEO」、「AEO」、「GEO」、「LLMO」、「答案引擎優化」、「生成式引擎優化」、「大型語言模型優化」、「AI概覽」、「針對ChatGPT優化」、「針對Perplexity優化」、「AI引用」、「AI可見度」、「零點擊搜尋」、「如何出現在AI回答中」、「大型語言模型提及」或「針對Claude/Gemini優化」等情況。每當有人...
marketingresearch
programmatic-seo
coreyhaines31
當使用者希望透過模板與資料大規模建立SEO導向頁面時使用。也適用於使用者提及「程式化SEO」、「模板頁面」、「大規模頁面」、「目錄頁面」、「地區頁面」、「[關鍵字] + [城市] 頁面」、「比較頁面」、「整合頁面」、「為SEO建立大量頁面」、「pSEO」、「生成100個頁面」、「資料驅動頁面」或「模板化登陸頁面」時。每當有人想針對不同關鍵字或地點建立大量相似頁面時使用。用於...
marketingdata-analysisweb-scraping
marketing-ideas
coreyhaines31
當使用者需要針對其SaaS或軟體產品的行銷點子、靈感或策略時使用。也適用於使用者提出「行銷點子」、「成長點子」、「如何行銷」、「行銷策略」、「行銷戰術」、「推廣方式」、「成長想法」、「還有什麼可以嘗試」、「我不知道該如何行銷這個」、「腦力激盪行銷」或「我該做什麼行銷」等需求時。每當有人卡住或尋找成長靈感時,以此作為起點。針對特定...
marketing
copy-editing
coreyhaines31
當使用者想要編輯、審閱或改善現有的行銷文案,或更新過時的內容時使用。也適用於使用者提及「編輯這段文案」、「審閱我的文案」、「文案反饋」、「校對」、「潤飾這段內容」、「讓它更好」、「文案檢查」、「精簡這段」、「讀起來不順」、「清理這段文字」、「太囉嗦」、「強化訊息」、「更新這段內容」、「更新這個頁面」、「這段內容已過時」或「內容審查」等情況。當使用者已有文案並希望進行處理時使用。
documentcommunicationmarketing