brand-assets
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/brand-assets
/brand-assets
Generate branded visual assets from templates.
从模板生成品牌化视觉资产。
What This Does
功能说明
Renders 1200x630 PNG images using brand tokens from . Templates consume the brand palette, typography, and identity for consistent visuals.
brand.yaml使用中的品牌标识渲染1200x630尺寸的PNG图片。模板会调用品牌配色、排版和品牌标识,以确保视觉效果的一致性。
brand.yamlAvailable Templates
可用模板
| Template | Use Case |
|---|---|
| Blog post OG cards |
| Product announcement cards |
| Version release cards |
| Generic fallback OG card |
| Social media announcements |
| Quote cards for social |
| Blog post hero images |
| Product launch hero images |
| 模板 | 使用场景 |
|---|---|
| 博客文章OG卡片 |
| 产品发布卡片 |
| 版本更新卡片 |
| 通用备用OG卡片 |
| 社交媒体公告图片 |
| 社交媒体引用卡片 |
| 博客文章首图 |
| 产品发布首图 |
Process
操作流程
- Ensure exists in project root (run
brand.yamlfirst if needed)/brand-compile - Determine which assets are needed from context:
- Blog post → +
og-blogblog-header - Product launch → +
launch-hero+social-announceog-product - Changelog →
og-changelog - General →
og-default
- Blog post →
- Render each asset:
bash
node ~/Development/brand-kit/dist/src/cli.js render og-blog \ --title "Post Title" \ --author "Author Name" \ --date "2026-02-12" \ --out ./public/og-blog.png - For bulk generation:
bash
node ~/Development/brand-kit/dist/src/cli.js render-all --out ./public/brand-assets
- 确保项目根目录下存在(如有需要,先运行
brand.yaml)/brand-compile - 根据场景确定所需资产:
- 博客文章 → +
og-blogblog-header - 产品发布 → +
launch-hero+social-announceog-product - 更新日志 →
og-changelog - 通用场景 →
og-default
- 博客文章 →
- 渲染单个资产:
bash
node ~/Development/brand-kit/dist/src/cli.js render og-blog \ --title "Post Title" \ --author "Author Name" \ --date "2026-02-12" \ --out ./public/og-blog.png - 批量生成资产:
bash
node ~/Development/brand-kit/dist/src/cli.js render-all --out ./public/brand-assets
Template Options
模板参数
All templates accept:
- (required)
--title "..." --subtitle "..."--author "..."--date "..."--version "..."- (required)
--out file.png
所有模板均支持以下参数:
- (必填)
--title "..." --subtitle "..."--author "..."--date "..."--version "..."- (必填)
--out file.png
Context-Aware Generation
场景感知生成
When invoked without arguments, infer what's needed:
- If recent shows a version tag → render
git logog-changelog - If a blog post draft exists → render +
og-blogblog-header - If exists → render
product-hunt-kit.md+launch-herosocial-announce - Otherwise → render
og-default
当不带参数调用时,工具会自动推断所需资产:
- 如果最近的显示版本标签 → 渲染
git logog-changelog - 如果存在博客文章草稿 → 渲染+
og-blogblog-header - 如果存在→ 渲染
product-hunt-kit.md+launch-herosocial-announce - 其他情况 → 渲染
og-default
Related Skills
相关技能
- — Compile brand.yaml to tokens (prerequisite)
/brand-compile - — Legacy card generation (superseded)
/og-card - — AI-generated hero images (complementary)
/og-hero-image - — Full launch asset orchestration
/launch-assets - — 50+ AI models (FLUX Dev, Seedream 4K, Gemini 3 Pro, Reve with text rendering) for non-brand-template image generation
/ai-image-generation
- — 编译brand.yaml为标识文件(前置依赖)
/brand-compile - — 旧版卡片生成工具(已被替代)
/og-card - — AI生成首图(补充工具)
/og-hero-image - — 完整发布资产生成编排
/launch-assets - — 50+ AI模型(FLUX Dev、Seedream 4K、Gemini 3 Pro、支持文字渲染的Reve),用于非品牌模板的图片生成
/ai-image-generation