用途:og-card 用于按固定模板生成品牌化的 Open Graph 分享卡片,输出 1200x630 PNG。与 /og-hero-image 的区别是:后者通过 Gemini 生成一次性主视觉,而 og-card 使用 Satori 模板,适合需要一致性的品牌系统。
主要能力:内置 blog(标题+作者+日期+品牌色)、product(logo+标语+截图)、changelog(版本+亮点)、comparison(产品对比竞品)等模板。
使用方式:存在 brand-profile.yaml 时读取其中的颜色与字体;选择模板并传入所需字段;通过 skills/og-card/scripts/generate-card.ts 渲染;输出 og-[template]-[slug].png。示例命令:/og-card blog "Title" by Author;/og-card product for heartbeat。
依赖:pnpm add @vercel/og satori sharp。
限制:该技能已被 /brand-assets(brand-kit)取代,新项目应使用 /brand-assets,本技能仅为尚未迁移的项目保留向后兼容。