og-images

Generate branded Open Graph and Twitter share images with next/og ImageResponse in Next.js routes.

69|11|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/richtabor/agent-skills --skill og-images
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: og-images
Source: https://github.com/richtabor/agent-skills/tree/main/skills/og-images
Command: npx skills add https://github.com/richtabor/agent-skills --skill og-images

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate dynamic OpenGraph (1200x630) and Twitter (1200x600) share images using next/og ImageResponse, enabling consistent social previews across pages and posts without manual design work.

Core Features & Use Cases

  • Dynamic OG/Twitter images: Generate OpenGraph and Twitter share images (1200x630 / 1200x600) for pages, posts, and marketing pages.
  • Flexible routing options: Implement a file-based route or a dynamic API route and reference in metadata via generateMetadata().
  • Typography & assets support: Include custom fonts, avatars, and asset management to maintain a cohesive brand look, following Satori rules.

Quick Start

Add a Next.js route using next/og ImageResponse to render dynamic social preview images.

Frequently Asked Questions about og-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?

Generate dynamic OpenGraph images in Next.js using the next/og ImageResponse API. It renders 1200x630 share images dynamically for your pages and posts without manual design work.

What is the best way to create Twitter card images for Next.js blog posts?

Create Twitter card images for Next.js by using next/og ImageResponse to render 1200x600 social previews. You can implement a file-based route or a dynamic API route to serve these images.

Can I use custom fonts with next/og ImageResponse for branded social previews?

You can use custom fonts with next/og ImageResponse by following Satori layout rules. This allows you to include typography and brand assets to maintain a cohesive look across social previews.

How do I reference dynamic OpenGraph images in Next.js metadata?

Reference dynamic OpenGraph images in Next.js by implementing a file-based route or API route, then linking it within the generateMetadata() function to apply the generated social preview to your pages.

Does next/og support generating share images for documentation and landing pages?

The next/og ImageResponse supports generating share images for documentation and landing pages. It applies consistent OpenGraph and Twitter social previews across various page types in your Next.js application.

What are the Satori layout rules I need to follow when creating OG images?

Satori layout rules are constraints required by next/og ImageResponse to render HTML and CSS into images. Following these rules ensures your custom fonts, avatars, and assets display correctly on generated social previews.