generate-brand-assets
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "generate-brand-assets":https://skillpi.com/zh/skills/deepskill-4584c42aa62033bd522e48a8716a946401481422f2b5191cb96427ba410d7704。安装前核对上游来源和版本:https://github.com/crafter-station/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
根据项目品牌生成 Open Graph 图片和网站图标。适用于需要社交媒体预览图、生成网站图标、为网站或应用准备品牌素材,或已有品牌色彩希望生成专业外观的 OG 图片。自动生成适合社交平台(Twitter、LinkedIn、Facebook)与网站图标尺寸的素材。
介绍来源: third_party · crafter-station · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: generate-brand-assets
version: 1.0.0
description: |
Generate OG images and favicon based on project branding. Use when: (1) user needs
social media preview images for their project, (2) user wants to generate a favicon,
(3) user is setting up branding assets for a website or app, (4) user has brand colors
and wants professional-looking Open Graph images. Automatically generates correctly
sized images optimized for social platforms (Twitter, LinkedIn, Facebook) and favicon
formats.generate-brand-assets
Generate branded OG (Open Graph) images and favicons for your project based on brand colors and identity.
Prerequisites
Check if you have the necessary tools:
node --version # Node.js 16+
The skill uses built-in image generation capabilities. No additional dependencies required beyond Node.js.
What It Generates
- OG Images: 1200×630px preview images for social media sharing (Twitter, LinkedIn, Facebook)
- Favicon: Multiple formats (16×16, 32×32, 64×64, 192×192, 512×512) and iOS touch icons
- Manifest Icons: Web app manifest-compatible icons
- Optimized: WebP, PNG, and ICO formats for maximum compatibility
Workflow
1. Identify Brand Colors
Ask the user for their brand colors. Typical palette includes:
- Primary color (hex:
#RRGGBB) - Accent color (optional)
- Text color (typically
#000000or#FFFFFFfor contrast) - Background patterns (optional)
2. Gather Project Details
Collect information for the OG images:
- Project name
- Tagline or description (1-2 lines)
- Logo path or text-based logo preference
3. Generate Assets
Command structure:
npx generate-brand-assets \
--name "Your Project Name" \
--tagline "Brief project description" \
--primary-color "#3B82F6" \
--accent-color "#1E40AF" \
--output-dir ./public/brand-assets
4. Customization Options
| Option | Example | Purpose |
|---|---|---|
--name |
"My Project" | Project name for OG images |
--tagline |
"Build faster" | Subtitle/description on images |
--primary-color |
"#3B82F6" | Main brand color |
--accent-color |
"#1E40AF" | Secondary brand color |
--text-color |
"#FFFFFF" | Text contrast color |
--logo-path |
"./logo.png" | Custom logo file |
--pattern |
"dots" | "grid" | Background pattern style |
--output-dir |
"./public" | Where to save generated assets |
--format |
"png,webp,ico" | Image formats to generate |
5. Integration
For Next.js/React projects:
// next.config.js or next-seo.config.js
{
openGraph: {
images: [
{
url: '/brand-assets/og-image.png',
width: 1200,
height: 630,
}
]
},
icons: {
icon: '/brand-assets/favicon.ico',
apple: '/brand-assets/apple-touch-icon.png'
}
}
For HTML projects:
<!-- index.html -->
<meta property="og:image" content="/brand-assets/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<link rel="icon" href="/brand-assets/favicon.ico" />
<link rel="apple-touch-icon" href="/brand-assets/apple-touch-icon.png" />
6. Verification
Test generated images:
# Check file sizes and formats
ls -lh ./public/brand-assets/
# Preview in browser
open ./public/brand-assets/og-image.png
Test social preview:
7. Report Results
Provide the user with:
- List of generated files with dimensions
- Output directory path
- Integration instructions for their framework
- Preview links if hosting is set up
Common Patterns
Gradient Backgrounds
npx generate-brand-assets \
--name "My App" \
--gradient "from-#3B82F6 to-#1E40AF" \
--text-color "#FFFFFF"
Dark Mode Support
Generate both light and dark variants:
# Light version
npx generate-brand-assets --theme light --primary-color "#3B82F6"
# Dark version
npx generate-brand-assets --theme dark --primary-color "#60A5FA"
Multiple Locale Variants
For multi-language projects:
npx generate-brand-assets \
--name "My Project" \
--locale es \
--tagline "Construir más rápido"
Troubleshooting
| Issue | Solution |
|---|---|
| Colors look wrong | Verify hex format is exactly #RRGGBB (6 chars) |
| Text not readable | Ensure sufficient contrast; text-color should differ from background by >50% brightness |
| Images too large | Use --optimize flag to reduce file size (trades some quality) |
| Favicon not showing | Clear browser cache and hard-refresh (Cmd+Shift+R / Ctrl+Shift+F5) |
| Output directory error | Ensure output directory exists or use --create-dirs flag |
Next Steps
After generating assets:
- Commit generated files to version control
- Update social media preview URLs in deployment
- Test social sharing on each platform (links may cache old images)
- Monitor OG image performance in analytics
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决用户为项目生成社交媒体预览图片和网站图标的实际需求
- 属于明确场景的通用工具,受众广泛(开发者、产品经理、设计师等)
- 实用性强,能显著提升日常高频场景的效率
亮点
- description 详细列出了四种适用场景
- 覆盖用户可能的需求变体,边界清晰
亮点
- 文档结构完整,包含 Phase/步骤划分
- 有端到端示例和命令结构,frontmatter 完整
待提升项
-
缺少对 npx 包不存在时的错误处理说明 原报告严重程度:轻微
未说明当 npx generate-brand-assets 包不存在或安装失败时的处理方式
改进建议:建议在 troubleshooting 部分添加对 npx 包不存在或安装失败的处理建议
亮点
- 工具来源明确(npx generate-brand-assets),参数说明详尽
- 覆盖了主要异常(颜色格式、文本对比度、输出目录等)
- 提供了 troubleshooting 表格和验证方法
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 56, 142, 154, 157, 165 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- cards-dev.twitter.com
- developers.facebook.com
- www.linkedin.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。