Marketing Skill

Marketing Image Generation

The image skill helps an agent create and optimize marketing images: blog heroes, social graphics, OG previews, profile and directory banners, product mockups, and brand assets. It picks between AI image generation, design tools, real screenshots, and stock, then writes the prompt, sets platform dimensions, and compresses the file for the web.

Maintained by Corey Hainesv2.0.8Updated 2026-11-191 references
npx skills add coreyhaines31/marketingskills

Installs the full library — Marketing Image Generation included

To create a marketing image, match the method to the job. Use AI generation for original heroes, social graphics, and lifestyle scenes; Canva or Figma for templated, brand-consistent assets and many size variants; and real screenshots for product UI, because AI models hallucinate interfaces. Write AI prompts as Subject + Setting + Style + Lighting + Composition + Technical, in 40–80 words, always with an aspect ratio. Keep any in-image text to 3–5 words and add the rest as an overlay. Blog heroes and OG images use 1200x630. Before publishing, serve WebP with a JPEG fallback, resize to display size, compress photos to 75–85% quality (under 200KB for a hero), lazy-load below the fold, set explicit width and height, and write descriptive alt text.

How the Marketing Image Generation skill works

  1. 1

    Gather goal and constraints

    The agent reads your product marketing context, then asks what the image is (blog hero, social graphic, mockup, banner, brand asset, OG image), where it will appear, which dimensions apply, whether you have a logo, colors, fonts, or style guide, photorealistic or illustrative style, one-off or repeatable template, which image API keys you have, and whether it needs web optimization.

  2. 2

    Choose the production approach

    Five approaches map to different jobs: AI generation for original images from text, AI editing for background removal and variations, design tools for templated brand work, screenshot plus overlay for product UI, and stock photography when speed matters more than uniqueness. Exact brand guidelines and 20 size variants point to design tools; a unique blog hero or abstract visual points to generation.

  3. 3

    Route to a model

    For AI work, a decision tree routes by need. Each need lists options to compare, not a single pick. Text in the image: Ideogram, Gemini image, GPT Image, or Recraft. Consistency across a set: Flux or Gemini image with multiple reference images, or Recraft's brand styles. In-place edits: Gemini image, Flux, or GPT Image. Vectors: Recraft. Art direction: Flux or Midjourney. Low-cost volume: Flux's Klein tier, Gemini's Lite image model, or self-hosted Stable Diffusion. The model table carries a check date and links to each vendor's docs, because versions and prices change every few months.

  4. 4

    Write the structured prompt

    The agent writes a 40–80 word prompt covering subject, setting, style, lighting, composition, and technical specs, pulling from keyword libraries such as rim lighting or soft directional light, negative space for text overlays, and commercial photography versus flat vector illustration. It avoids vague asks like "a professional image," paragraphs of in-image text, logo placement requests, and prompts with no aspect ratio.

  5. 5

    Size for each platform

    Dimensions come from the skill's spec tables: 1200x630 for blog heroes and OG images, 1200x675 for X, 1200x627 for LinkedIn feed, 1080x1080 or 1080x1350 for Instagram, 1584x396 for a LinkedIn cover, 1500x500 for an X header, 1270x760 for Product Hunt gallery images. The master image is made at the highest resolution needed, then cropped or resized, with critical content kept centered.

  6. 6

    Optimize and ship

    Every image runs through the optimization checklist: WebP with a JPEG or PNG fallback, resized to display size, 75–85% quality for photos and near-lossless for screenshots, lazy loading below the fold, explicit width and height to prevent layout shift, and descriptive alt text. Pages that get shared also get og:image and twitter:card meta tags, or dynamic OG images from a template.

When to use it

Your agent reaches for this skill when you ask for things like:

“AI image generation”“generate an image”“create a graphic”“product mockup”“hero image”“social media graphic”“banner image”“cover photo”“profile banner”“listing screenshot”

What's inside

The playbook covers

Before StartingChoosing Your ApproachAI Image GenerationDesign ToolsMarketing Image WorkflowsImage OptimizationOG & Social Preview ImagesCommon MistakesTask-Specific Questions

See it in action

You ask

I need a hero image for a blog post about email deliverability. Make it visually striking.

The skill delivers
Concept and model choice

Concept: a single glowing envelope threading through a dark maze of filters toward a lit inbox, the visual metaphor for getting past spam filters. Approach: AI generation. No text in the image (the post title is added as an HTML overlay), so any photoreal model works. Use Flux or Gemini for this; route to Ideogram only if you want the headline baked in. Size: 1200x630, so the same file works as the hero and the OG preview.

Prompt (1200x630)

A single glowing white envelope gliding through a dark geometric maze of translucent blue filter walls toward a softly lit inbox tray, deep navy background, dramatic rim lighting on the envelope edges, volumetric light rays from the inbox, isometric 3D render, clean modern tech aesthetic, negative space in the left third for a headline overlay, 1200x630, high resolution Generate 3–4 variants (try one flat vector version for contrast), pick the one that fits your brand, and save the exact prompt as the template for the rest of the deliverability series.

Before publishing

cwebp -q 80 hero.png -o hero.webp Target under 200KB. Serve WebP with a JPEG fallback in a <picture> element, set width="1200" height="630" to prevent layout shift, and don't lazy-load it, since it's above the fold. Alt text: "Envelope passing through spam filters into an inbox" Add og:image, og:image:width, og:image:height, and twitter:card summary_large_image pointing to the same file. Then share the URL in Slack to confirm the preview renders.

More things to ask

Real requests the skill is tested against:

  • Generate me an image of our app's dashboard.

  • Need a Twitter/X header banner for our company. We just want to show our product and tagline.

  • I need 5 versions of the same hero image for Twitter, LinkedIn, Instagram feed, Instagram stories, and Facebook. What's the fastest way?

  • What's the best image format for our website?

  • We're a SaaS that just launched. Need OG images for every blog post we ship — about 2 per week. Doing it manually is killing us.

FAQ

How do I write a good AI image prompt for marketing?

Use the formula Subject + Setting + Style + Lighting + Composition + Technical, and keep it to roughly 40–80 words, specific rather than exhaustive. Name a style ("commercial photography," "flat vector illustration," "isometric 3D render"), a lighting setup ("soft directional from the left"), a composition ("negative space for text overlay"), and always the aspect ratio or pixel size. Avoid vague asks like "make it look good" or "make it viral," which aren't visual instructions.

Can I use AI to generate an image of my product's dashboard?

No. AI models hallucinate interfaces, so the result won't match your real product. Capture real screenshots at 2x resolution with browser DevTools, Shottr, CleanShot X, or the screencapture CLI, frame them in a browser, laptop, or phone mockup, and add callout arrows, feature labels, or before-and-after comparisons. For directory listings like Product Hunt and G2, real UI with light annotation tends to work better than abstract graphics.

What size should a blog hero or OG image be?

Use 1200x630, a 1.91:1 ratio that works as both the blog hero and the social preview when the link is shared. For a full-width website header, use 1920x1080. Compress the hero to under 200KB and serve it as WebP with a JPEG fallback. Add og:image, og:image:width, og:image:height, and twitter:card summary_large_image meta tags, or links will share without a preview image.

How do I get text or a headline into an AI-generated image?

Keep it to 3–5 words. Most models can't render paragraphs, and longer text is where they garble letters. If the text must be baked in, use a model built for text rendering such as Ideogram, Gemini image, or GPT Image, and test your exact headline. For anything longer, or for logos, generate the image with negative space and add the text or logo as an overlay in post-processing, where placement is exact.

How do I keep a set of AI images visually consistent?

Generate 3–4 test images with different style prompts, pick the one that fits your brand, and save that exact prompt as a template. Then use a reference-image feature, such as Flux multi-image reference or Ideogram's style references (up to 10 images through its API), to carry the style across new subjects. References tend to beat long style descriptions and need fewer retries. Finish with text overlays, logos, and platform crops in post.

How do I optimize images for page speed?

Serve WebP (or AVIF) with a JPEG or PNG fallback, resize to the actual display size instead of shipping 4000px files into 800px containers, and compress photos to 75–85% quality while keeping screenshots near-lossless. Lazy-load anything below the fold, set explicit width and height attributes to prevent layout shift, and use a CDN with automatic format conversion. Commands like cwebp -q 80 or a batch mogrify handle the conversion.

Related skills

Use it in your agent

Marketing Image Generation is a plain SKILL.md folder, so the same skill loads in any agent that reads the skills format. Setup guides:

Build a tool for this workflow?

Marketers run this skill mid-task — the exact moment your tool matters. Partner tiers put your tool inside the skill their agent runs.

See partner tiers