creating-share-images

Generate OpenGraph and Twitter share images with next/og ImageResponse.

185|34|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/Dicklesworthstone/meta_skill --skill creating-share-images
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-share-images
Source: https://github.com/Dicklesworthstone/meta_skill/tree/main/skills/creating-share-images
Command: npx skills add https://github.com/Dicklesworthstone/meta_skill --skill creating-share-images

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill enables developers to generate OpenGraph and Twitter share images for Next.js applications, providing dynamic previews that enhance social sharing and link engagement.

Core Features & Use Cases

  • Generate 1200x630 OpenGraph and 1200x600 Twitter images using next/og ImageResponse.
  • Create consistent, branded social previews with gradients, SVG icons, and proper dimensions for pages, posts, and meta sections.
  • Use case: automatically render social preview cards for blog posts and product pages during build or on-demand.

Quick Start

Create app/opengraph-image.tsx in a Next.js project and implement an ImageResponse to render the share image at the specified routes. Then reference these routes in your pages or metadata.

Frequently Asked Questions about creating-share-images

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate dynamic OpenGraph images in a Next.js application?

You can generate dynamic OpenGraph images in Next.js by creating an opengraph-image.tsx file and using the next/og ImageResponse API to render social share images at the specified routes.

What dimensions should Twitter and OpenGraph share images use for Next.js pages?

Standard OpenGraph share images use 1200x630 dimensions, while Twitter share images typically use 1200x600 dimensions, both renderable via the next/og ImageResponse component in Next.js.

Can I use SVG icons and gradients in Next.js social preview cards?

Yes, you can create consistent, branded social preview cards with gradients and SVG icons by leveraging the next/og ImageResponse component to render custom image layouts.

Do I need any external libraries to create social share images for Next.js blog posts?

No external libraries are required beyond a standard Next.js environment, as the skill relies entirely on the built-in next/og ImageResponse module to render social preview cards dynamically.

How does Next.js automatically render social preview cards for product pages?

Next.js renders social preview cards by implementing an ImageResponse in an opengraph-image.tsx route file, which dynamically generates share images during build or on-demand when pages are requested.

What's the best way to add Twitter card images to Next.js routes without static assets?

The best way to add dynamic Twitter card images without static assets is using the next/og ImageResponse to render 1200x600 images directly within your Next.js route handlers.