opengraph-image

Generate 1200x630 Open Graph images for Nuxt pages via html2png.dev.

3|1|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/nsheaps/ai-mktpl --skill opengraph-image
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opengraph-image
Source: https://github.com/nsheaps/ai-mktpl/tree/main/plugins/og-image/skills/og-image
Command: npx skills add https://github.com/nsheaps/ai-mktpl --skill opengraph-image

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generating consistent, readable Open Graph images for Nuxt pages is time consuming and often inconsistent across a project; this Skill automates discovery, design, rendering, and storage of social preview images so pages have professional OG previews without manual design or screenshot workflows.

Core Features & Use Cases

  • Automated Discovery: Scans app/pages/ for Vue pages, skips dynamic routes, and identifies pages missing og images to present actionable options.
  • Design-First HTML Templates: Produces single-file 1200x630 HTML templates using Tailwind and Google Fonts, following brand guidance when available, and preserves the HTML source for iteration.
  • Headless Rendering & Preservation: Converts HTML to PNG via the html2png.dev API, downloads the resulting image, saves it to public/og-images/, and stores the source in keep/og-images/ for reproducibility and future edits.

Quick Start

Generate an OG image for the about page and save the HTML source to keep/og-images/about.html and the PNG to public/og-images/about.png.

Frequently Asked Questions about opengraph-image

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

FAQPage Schema
How do I automatically generate Open Graph images for Nuxt pages?

To generate Open Graph images for Nuxt pages, this Skill scans your app/pages/ directory, creates Tailwind-styled HTML templates, and converts them to 1200x630 PNGs. It then saves the final images to public/og-images/ and the source HTML to keep/og-images/ for future edits.

Can I create social preview images for dynamic Nuxt routes?

You cannot create social preview images for dynamic Nuxt routes using this Skill. The automated discovery feature specifically scans static Vue pages within the app/pages/ directory and skips dynamic routes to ensure reliable HTML template generation and PNG conversion.

How does converting HTML to PNG work for OG image generation?

Converting HTML to PNG for OG image generation works by building a single-file 1200x630 HTML template styled with Tailwind and Google Fonts, then sending it to the html2png.dev API. The API renders the HTML and returns a downloaded PNG image saved to your project.

What is the best way to find missing OG images in a Nuxt project?

The best way to find missing OG images in a Nuxt project is to use the automated discovery feature, which scans the app/pages/ directory to identify Vue pages lacking social preview images and presents actionable options to generate them.

Do I need to manually design HTML templates for my social preview images?

You do not need to manually design HTML templates for your social preview images. The Skill produces design-first HTML templates automatically, following brand guidance when available, and preserves the source code in keep/og-images/ for reproducibility and iteration.

Are there limitations when using Tailwind to style Open Graph images?

A limitation when using Tailwind to style Open Graph images is that the output is strictly fixed to a 1200x630 pixel PNG format. The source HTML relies on Google Fonts and is rendered headlessly via the html2png.dev API, requiring network access for conversion.