og-image-creator

Generate 1200x630 Open Graph images from project brand assets and routes.

1|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/ari-ayvazyan/AISkills --skill og-image-creator-ari-ayvazyan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: og-image-creator
Source: https://github.com/ari-ayvazyan/AISkills/tree/main/skills/og-image-creator
Command: npx skills add https://github.com/ari-ayvazyan/AISkills --skill og-image-creator-ari-ayvazyan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill generates authentic, brand-aligned Open Graph images by analyzing a project's codebase to extract branding and content context.

Core Features & Use Cases

  • Discovers project routes and page types (landing, article, product, docs) by analyzing framework structures (Next.js, Astro, React, etc.)
  • Extracts brand assets (colors, fonts, logo) from the codebase to ensure visuals match the site
  • Renders per-route OG images using Playwright-based templates and outputs to public/og

Quick Start

Run the analyze_codebase.py script to generate og-analysis.json, then run the generate_og_images.py script to produce OG images.

Frequently Asked Questions about og-image-creator

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

FAQPage Schema
How do I automatically generate Open Graph images for my Next.js or Astro routes?

You can automatically generate Open Graph images by running scripts that analyze your Next.js or Astro codebase to discover routes, extract brand assets, and render 1200x630 PNGs using Playwright templates.

Can I create OG images that match my existing brand colors and fonts?

Yes, you can create OG images that match your brand by analyzing your project codebase to extract actual brand colors, fonts, and logos, then applying them directly to HTML-based image templates.

Does this OG image generation method work with static sites and React SPAs?

Yes, this OG image generation method works with static sites, React SPAs, Next.js, and Astro by analyzing framework structures to identify page types like landing pages, articles, products, and docs.

What is the best way to generate per-route Open Graph images from a codebase?

The best way to generate per-route Open Graph images is to use an automated analysis script to map routes and branding, then use Playwright to capture rendered HTML templates into 1200x630 PNG files.

How do I start generating brand-aligned OG images from my project?

To start generating brand-aligned OG images, run the analyze_codebase.py script to produce an og-analysis.json file, then execute the generate_og_images.py script to output images into the public/og directory.

Do I need Playwright to capture Open Graph images from HTML templates?

Yes, you need Playwright installed to capture Open Graph images, because it renders the HTML-based templates and captures the 1200x630 PNG screenshots required for the final output.