---
name: "open-graph-image-satori-generator"
description: "Render dynamic social share and OpenGraph preview images from HTML and CSS."
metadata:
  author: "Vercel"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "generate opengraph images with satori"
  - "render jsx to png"
  - "create dynamic twitter cards nextjs"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Satori Dynamic OpenGraph Image Engine

Leverages Vercel Satori and resvg to generate PNG social cards: JSX syntax, Flexbox layout engine, custom web font rendering, and SVG-to-PNG rasterization on serverless edge runtimes.

## When to Invoke
Invoke this skill whenever you need to:
- generate opengraph images with satori
- render jsx to png
- create dynamic twitter cards nextjs

## Execution SOP & Rules
1. Structure templates using standard JSX with Flexbox styling (display: 'flex').
2. Load TrueType or OpenType font buffers explicitly and provide to Satori options.
3. Rasterize Satori vector SVG output to PNG buffers using @resvg/resvg-js.
4. Cache generated OpenGraph images with immutable CDN Cache-Control headers.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
