home / skills / phrazzld / claude-config / og-card
/skills/og-card
This skill generates deterministic, branded Open Graph cards using Satori templates for blog, product, changelog, and comparison pages.
npx playbooks add skill phrazzld/claude-config --skill og-cardReview the files below or copy the command above to add this skill to your agents.
---
name: og-card
description: |
SUPERSEDED by /brand-assets (brand-kit). Use /brand-assets for new projects.
This skill remains for backward compatibility with projects not yet migrated
to brand.yaml.
Generate deterministic, template-based Open Graph cards with Satori.
Use when: creating OG images for blog posts, product pages, changelogs,
or comparison pages. Complements /og-hero-image (AI creative) with
consistent, branded templates. Keywords: og image, open graph, satori,
social card, meta image, twitter card.
argument-hint: "[template: blog, product, changelog] [title]"
effort: medium
---
# /og-card
## vs /og-hero-image
- /og-hero-image: AI creative via Gemini. Use for one-off hero art.
- /og-card: consistent templates via Satori. Use for branded systems.
## Templates
- blog: title + author + date + brand colors
- product: logo + tagline + screenshot
- changelog: version + highlights
- comparison: product vs competitor
## Process
1. Read `brand-profile.yaml` for colors/fonts when present.
2. Select a template and pass required fields.
3. Render via `skills/og-card/scripts/generate-card.ts`.
4. Emit a 1200x630 PNG.
## Prerequisites
`pnpm add @vercel/og satori sharp`
## Usage
`/og-card blog "Title" by Author`
`/og-card product for heartbeat`
## Output
`og-[template]-[slug].png` at 1200x630
This skill generates deterministic, template-based Open Graph cards using Satori for consistent, branded social images. It is kept for backward compatibility; use the newer brand-assets skill for new projects. The output is a 1200x630 PNG designed for reliable meta images across blogs, product pages, changelogs, and comparisons.
The skill reads brand profile details (colors and fonts) when available, selects a template, fills required fields, and renders a PNG via a Satori-based render step. Templates cover blog, product, changelog, and comparison layouts and produce predictable, repeatable results for branding systems. The render emits files named like og-[template]-[slug].png at 1200x630 pixels.
What dependencies are required?
Install @vercel/og, satori, and sharp (pnpm add @vercel/og satori sharp).
What output size is produced?
Exports a 1200x630 PNG suitable for Open Graph and social previews.
How do I pass content to a template?
Select the template and supply the required fields (e.g., title/author for blog).