Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions skills/image-prompt-style-library/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
name: image-prompt-style-library
category: 演示与设计
description: 基于 22 套工业级图像提示词模板的风格库技能:根据用户需求匹配模板并生成生产级图像提示词,默认可直接调用 NanoBanana 生图闭环交付。当用户要生成/改写/优化图像提示词、制作海报/信息图/UI截图/商品图/摄影图/插画/角色设定/古风图/出版文档图,或提到 image-prompt-style-library、图像风格库时使用。
---

# Image Prompt Style Library(图像提示词风格库)

## 目标

把用户的图像生成意图,通过结构化模板匹配,转化为生产级图像提示词(Prompt as Code),并可调用 NanoBanana 直接生图交付。

适用:制作海报、信息图、UI 截图、商品图、品牌视觉、摄影写实图、插画、角色设定、场景叙事、古风题材、文档出版物图等。

## 数据源与参考文件

本技能目录下有两个参考文件:

- `style-library-index.md`:22 套模板总览表 + 选择规则 + 风格/场景标签关键词表(选模板时先读这个)
- `style-library-full.md`:22 套模板的完整字段(Use when / Guidance / Pitfalls / 案例图 Cover URL / 模板源链接),构建最终提示词时按需读取对应模板条目

案例图 Cover 为 GitHub 原始 URL,需要给用户展示风格效果时可给出链接。

## 工作流

1. 检测用户语言,用相同语言回复。
2. 判断目标产物类型:海报 / 信息图 / UI / 商品 / 品牌 / 摄影 / 插画 / 角色 / 场景 / 古风 / 文档 / 其他。
3. 先读 `style-library-index.md`,按顺序匹配:模板分类 → 风格标签 → 场景标签 → 最近似案例。
4. 若某个模板明显最强,直接使用;若多个都合理,给出 2-3 个候选及简短理由,让用户选择。
5. 读取 `style-library-full.md` 中所选模板的 Guidance 和 Pitfalls,按六段式组装最终提示词:
- 主体与任务
- 构图与布局
- 视觉风格与材质
- 文字与标签要求(精确到每一句画面内文字)
- 画幅与输出格式
- 约束与负面细节
6. 最终提示词末尾注明所选模板名,便于追溯。
7. 中文请求默认输出中文提示词,英文请求默认输出英文提示词(除非用户另有要求)。
8. 用户一次要多个概念时,复用同一模板,变化主体、构图、配色和场景。

## 生图交付(默认动作)

生成提示词后,默认询问用户是否直接生成图片:

- 若用户要求生图或确认生图:调用 `nanobanana_image` 工具,把完整提示词作为 prompt,按需求选 ratio(海报 3:4 或 4:3、社媒竖图 9:16、横幅 16:9、UI 截图 16:9,未指定时默认 16:9);用户提供参考图时把绝对路径传入 `reference_image_paths`(最多 5 张)。
- 提交后必须立即在同一轮调用 `check_nanobanana_image` 等待结果。
- 生图失败或效果不符时,根据 Pitfalls 调整提示词后重试。

## 参数优先级

用户明确给出的参数(画幅、风格、主体、配色、文字内容、是否生图)始终优先于模板默认值和本技能默认行为。

## 输出规范

- 先给可直接复制的提示词,再给简短约束说明。
- 约束要具体:精确文字、画幅、可读标签、版式层级、需避免的瑕疵。
- 引用模板 ID(如 `infographic-engine`)便于追溯。

## Pitfalls 通用注意事项

- 避免画面内出现长段正文(信息图/海报尤其)。
- 需要成品图时,避免生成拼贴展示板。
- 约束多余文字、装饰符号、错别字。
- 人物类需要锁定脸型、发型、服装一致性;用参考图时说明保留哪些特征。
- NanoBanana 对画面内文字渲染较可靠,但仍要求把每句文字用引号精确写出。

## 来源与许可

- 改造自 https://github.com/freestylefly/awesome-gpt-image-2 (MIT License © 2026 liyue-aigc / freestylefly)
- 遵循原仓库 MIT 许可证署名要求,本技能同样以 MIT 方式分发。
14 changes: 14 additions & 0 deletions skills/image-prompt-style-library/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions skills/image-prompt-style-library/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"schemaVersion": 1,
"skill": {
"name": "image-prompt-style-library",
"displayName": {
"zh": "图像提示词风格库",
"en": "Image Prompt Style Library"
},
"version": "1.0.0",
"source": "git-sync",
"active": true,
"deleted": false,
"usageExample": "用 image-prompt-style-library 技能做一张 AI 大模型原理的信息图,或者把这张商品照片改成水墨古风海报提示词。",
"description": {
"zh": "基于 22 套工业级图像提示词模板的风格库技能:根据用户需求匹配模板并生成生产级图像提示词,默认可直接调用 NanoBanana 生图闭环交付。当用户要生成/改写/优化图像提示词、制作海报/信息图/UI截图/商品图/摄影图/插画/角色设定/古风图/出版文档图,或提到 image-prompt-style-library、图像风格库时使用。",
"en": "A style-library skill backed by 22 industrial-grade image prompt templates: match the user's intent to a template and produce production-ready image prompts, with a default closed loop that calls NanoBanana to render images directly. Use when the user wants to create, rewrite, or improve image-generation prompts, or make posters, infographics, UI screenshots, product shots, photography, illustrations, character sheets, classical Chinese art, or publishing graphics."
}
},
"storage": {
"packageKey": "skills/image-prompt-style-library/image-prompt-style-library_1.0.0.zip"
},
"media": {
"icon": {
"path": "assets/icon.svg",
"sourceKey": "skills/icons/image-prompt-style-library.svg"
},
"previews": [
{
"path": "assets/previews/0.webp",
"sourceKey": "skills/previews/image-prompt-style-library-0.webp"
},
{
"path": "assets/previews/1.webp",
"sourceKey": "skills/previews/image-prompt-style-library-1.webp"
}
],
"previewThumbnails": [
{
"path": "assets/preview-thumbnails/0.webp",
"sourceKey": "skills/preview-thumbnails/image-prompt-style-library-0.webp",
"isLong": false
},
{
"path": "assets/preview-thumbnails/1.webp",
"sourceKey": "skills/preview-thumbnails/image-prompt-style-library-1.webp",
"isLong": false
}
],
"examples": []
}
}
Loading
Loading