AgentSkillsCN

og-card

使用 Satori 生成基于模板的确定性 Open Graph 卡片。 适用场景:为博客文章、产品页面、更新日志或对比页面创建 OG 图像。通过一致且品牌化的模板,与 /og-hero-image(AI 创意生成)相辅相成。关键词:OG 图像、Open Graph、Satori、社交卡片、元数据图像、Twitter 卡片。

SKILL.md
--- frontmatter
name: og-card
description: |
  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]"

/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