banner-creator by resciencelab/opc-skills
npx skills add https://github.com/resciencelab/opc-skills --skill banner-creator通过 AI 图像生成和迭代设计流程,创建专业的横幅。
必需的 API 密钥(在环境中设置):
GEMINI_API_KEY - 从 Google AI Studio 获取必需的技能:
nanobanana - AI 图像生成 (Gemini 3 Pro Image)所有生成的文件应保存到 .skill-archive 目录:
.skill-archive/banner-creator/<yyyy-mm-dd-summaryname>/
示例:
.skill-archive/banner-creator/2026-01-19-opc-banner/
banner-01.png
banner-02.png
...
banner-03-cropped.png
preview.html
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在生成之前,从用户那里收集需求:
询问以下内容:
* GitHub README
* Twitter/X 标题
* LinkedIn 横幅
* 网站英雄区域
* YouTube 频道艺术
2. 目标比例/尺寸 - 参见 references/formats.md:
* `2:1` (1280x640) - GitHub README
* `3:1` (1500x500) - Twitter 标题
* `16:9` (1920x1080) - 网站英雄区域
3. 风格偏好:
* 匹配现有徽标/品牌?
* 像素艺术 / 8 位复古
* 极简主义 / 扁平化设计
* 渐变 / 现代
* 插画 / 艺术风格
4. 内容元素:
* 品牌名称 / 项目名称?
* 标语 / 口号?
* 要包含的徽标角色?
5. 颜色偏好:
* 现有品牌颜色?
* 让 AI 决定?
在继续之前等待用户确认!
使用 nanobanana 技能生成 20 个横幅变体:
# 生成单个横幅
python3 <nanobanana_skill_dir>/scripts/generate.py "{style} banner for {brand}, {description}, {text elements}" \
--ratio 21:9 -o .skill-archive/banner-creator/<date-name>/banner-01.png
# 批量生成 20 个横幅
python3 <nanobanana_skill_dir>/scripts/batch_generate.py "{style} banner for {brand}, {description}, {text elements}" \
-n 20 --ratio 21:9 -d .skill-archive/banner-creator/<date-name> -p banner
指南:
21:9 比例(最宽可用)生成,稍后裁剪到目标比例banner-01.png、banner-02.png 等图像编辑(用于合并现有徽标):
python3 <nanobanana_skill_dir>/scripts/generate.py "add {logo character} to the left side of the banner" \
-i /path/to/existing-logo.png --ratio 21:9 -o banner-with-logo.png
复制预览模板并在浏览器中打开:
cp <skill_dir>/templates/preview.html .skill-archive/banner-creator/<yyyy-mm-dd-summaryname>/preview.html
然后在默认浏览器中打开:
open .skill-archive/banner-creator/<yyyy-mm-dd-summaryname>/preview.html
重要提示: 更新 HTML 以包含正确数量的已生成横幅。
询问用户喜欢哪些横幅:
根据反馈:
banner-{original}-v{n}.png(例如,banner-03-v1.png)用户批准横幅后,裁剪到目标尺寸:
python3 <skill_dir>/scripts/crop_banner.py {input.png} {output.png} --ratio 2:1 --width 1280
常见目标:
--ratio 2:1 --width 1280 → 1280x640--ratio 3:1 --width 1500 → 1500x500--ratio 16:9 --width 1920 → 1920x1080呈现最终交付成果:
## 最终横幅资源
| 文件 | 描述 | 尺寸 |
|------|-------------|------|
| banner-03.png | 原始 (21:9) | 2016x864 |
| banner-03-cropped.png | GitHub README (2:1) | 1280x640 |
所有文件保存至:`.skill-archive/banner-creator/<yyyy-mm-dd-summaryname>/`
将最终横幅复制到用户所需位置。
带文本:
Wide banner for {brand}, {style} style, featuring "{text}" prominently displayed, {colors}, {scene/elements}
带角色:
Wide banner featuring {character description}, {style} style, {scene}, text "{brand name}" on {position}, {colors}
抽象/渐变:
Abstract {style} banner, {colors} gradient, geometric patterns, modern tech feel, text "{brand}" centered
基于场景:
{Style} illustration banner, {scene description}, {character} in {action}, "{brand}" text overlay, {colors}
以最宽比例生成,然后裁剪:
21:9 - 超宽(推荐用于生成)16:9 - 宽屏3:2 - 标准宽屏每周安装量
732
仓库
GitHub 星标数
628
首次出现
2026 年 1 月 21 日
安全审计
安装于
opencode590
codex582
gemini-cli581
claude-code556
github-copilot549
cursor545
Create professional banners through AI image generation with an iterative design process.
Required API Keys (set in environment):
GEMINI_API_KEY - Get from Google AI StudioRequired Skills:
nanobanana - AI image generation (Gemini 3 Pro Image)All generated files should be saved to the .skill-archive directory:
.skill-archive/banner-creator/<yyyy-mm-dd-summaryname>/
Example:
.skill-archive/banner-creator/2026-01-19-opc-banner/
banner-01.png
banner-02.png
...
banner-03-cropped.png
preview.html
Before generating, gather requirements from user:
Ask about:
Purpose - Where will the banner be used?
Target ratio/size - See references/formats.md:
2:1 (1280x640) - GitHub README3:1 (1500x500) - Twitter header16:9 (1920x1080) - Website heroStyle preference :
Content elements :
Color preferences :
Wait for user confirmation before proceeding!
Generate 20 banner variations using the nanobanana skill:
# Generate single banner
python3 <nanobanana_skill_dir>/scripts/generate.py "{style} banner for {brand}, {description}, {text elements}" \
--ratio 21:9 -o .skill-archive/banner-creator/<date-name>/banner-01.png
# Batch generate 20 banners
python3 <nanobanana_skill_dir>/scripts/batch_generate.py "{style} banner for {brand}, {description}, {text elements}" \
-n 20 --ratio 21:9 -d .skill-archive/banner-creator/<date-name> -p banner
Guidelines:
21:9 ratio (widest available), crop later to targetbanner-01.png, banner-02.png, etc.Image Editing (for incorporating existing logo):
python3 <nanobanana_skill_dir>/scripts/generate.py "add {logo character} to the left side of the banner" \
-i /path/to/existing-logo.png --ratio 21:9 -o banner-with-logo.png
Copy the preview template and open in browser:
cp <skill_dir>/templates/preview.html .skill-archive/banner-creator/<yyyy-mm-dd-summaryname>/preview.html
Then open in default browser:
open .skill-archive/banner-creator/<yyyy-mm-dd-summaryname>/preview.html
IMPORTANT: Update the HTML to include the correct number of banners generated.
Ask user which banners they prefer:
Based on feedback:
banner-{original}-v{n}.png (e.g., banner-03-v1.png)Once user approves a banner, crop to target size:
python3 <skill_dir>/scripts/crop_banner.py {input.png} {output.png} --ratio 2:1 --width 1280
Common targets:
--ratio 2:1 --width 1280 → 1280x640--ratio 3:1 --width 1500 → 1500x500--ratio 16:9 --width 1920 → 1920x1080Present final deliverables:
## Final Banner Assets
| File | Description | Size |
|------|-------------|------|
| banner-03.png | Original (21:9) | 2016x864 |
| banner-03-cropped.png | GitHub README (2:1) | 1280x640 |
All files saved to: `.skill-archive/banner-creator/<yyyy-mm-dd-summaryname>/`
Copy final banner to user's desired location.
With Text:
Wide banner for {brand}, {style} style, featuring "{text}" prominently displayed, {colors}, {scene/elements}
With Character:
Wide banner featuring {character description}, {style} style, {scene}, text "{brand name}" on {position}, {colors}
Abstract/Gradient:
Abstract {style} banner, {colors} gradient, geometric patterns, modern tech feel, text "{brand}" centered
Scene-based:
{Style} illustration banner, {scene description}, {character} in {action}, "{brand}" text overlay, {colors}
Generate at widest ratio, then crop:
21:9 - Ultra-wide (recommended for generation)16:9 - Wide3:2 - Standard wideWeekly Installs
732
Repository
GitHub Stars
628
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykPass
Installed on
opencode590
codex582
gemini-cli581
claude-code556
github-copilot549
cursor545
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
53,500 周安装