Skip to content

Prompt as Code | GPT Image 2 / 2.5 提示词与案例库,530+ 个案例、20+ 套工业级模板与可复用 Skills,新增 2.5 同提示词对比专区,附完整提示词与生成记录,持续更新。

Add GPT-Image2 style library skill

freestyleflyc5769e5bb913
diff --git a/README.md b/README.md
index fcfe611..1a170b1 100644
--- a/README.md
+++ b/README.md
@@ -34,9 +34,21 @@ The core goal is simple: compress prose-style prompts into structured protocols.
- [Gallery Part 1: cases 1-165](docs/gallery-part-1.md)
- [Gallery Part 2: cases 166-401](docs/gallery-part-2.md)
- [Industrial prompt templates and pitfalls guide](docs/templates.md)
+- [Agent skill: GPT-Image2 Style Library](agents/skills/gpt-image-2-style-library/SKILL.md)
- [MIT License](LICENSE)
- [Full disclaimer](docs/disclaimer.md#section-disclaimer)
+## 🤖 Agent Skill
+
+This repository now includes a source-level Codex skill for choosing GPT-Image2 styles, templates, categories, and scene tags from the same data used by the website.
+
+```bash
+npm run generate:style-skill
+npm run install:skill
+```
+
+The skill source lives at [`agents/skills/gpt-image-2-style-library`](agents/skills/gpt-image-2-style-library/SKILL.md). Its generated reference comes from [`data/style-library.json`](data/style-library.json), so the website and Agent workflow share one style library.
+
## 🗂️ Category Overview
Start with the case album to find a visual direction, then open the prompt template categories to turn that direction into reusable structure.
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 080b2b5..89b84a7 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -34,9 +34,21 @@ GPT-Image2 全量开放后,AI 画图从“能不能出图”变成了“能不
- [案例画廊 Part 1:例 1-165](docs/gallery-part-1.md)
- [案例画廊 Part 2:例 166-378](docs/gallery-part-2.md)
- [工业级提示词模板与防坑指南](docs/templates.md#section-templates)
+- [Agent Skill:GPT-Image2 风格库](agents/skills/gpt-image-2-style-library/SKILL.md)
- [MIT License](LICENSE)
- [完整声明页](docs/disclaimer.md#section-disclaimer)
+## 🤖 Agent Skill
+
+仓库内新增了 Codex skill,用同一份风格库数据为 Agent 选择 GPT-Image2 模板、分类、风格和场景标签。
+
+```bash
+npm run generate:style-skill
+npm run install:skill
+```
+
+skill 源码位于 [`agents/skills/gpt-image-2-style-library`](agents/skills/gpt-image-2-style-library/SKILL.md)。生成索引来自 [`data/style-library.json`](data/style-library.json),网站和 Agent 工作流共用这一份风格库。
+
## 🗂️ 分类概览
先看案例画册,快速找到你想参考的视觉类型;再看提示词模板,把对应类型拆成可复用结构。
diff --git a/agents/skills/gpt-image-2-style-library/SKILL.md b/agents/skills/gpt-image-2-style-library/SKILL.md
new file mode 100644
index 0000000..4ef0d02
--- /dev/null
+++ b/agents/skills/gpt-image-2-style-library/SKILL.md
@@ -0,0 +1,51 @@
+---
+name: gpt-image-2-style-library
+description: Choose GPT-Image2 / gpt-image-2 visual styles and industrial prompt templates from the awesome-gpt-image-2 style library. Use when Codex needs to create, rewrite, classify, or improve image-generation prompts with repository-backed templates, categories, style tags, scene tags, pitfalls, and example cases.
+---
+
+# GPT-Image2 Style Library
+
+Use this skill to turn a user's image-generation intent into a production-ready GPT-Image2 prompt using the awesome-gpt-image-2 style library.
+
+## Reference
+
+- Read `references/style-library.md` before choosing a template or style.
+- The reference is generated from `data/style-library.json` in the repository.
+- Prefer the reference over memory when template names, categories, covers, or style tags matter.
+
+## Workflow
+
+1. Detect the user's language and answer in that language.
+2. Identify the user's target output: product, poster, UI, infographic, brand, photo, illustration, character, scene, history, document, or special task.
+3. Match the request in this order: template category, visual style tag, scene tag, then nearest example cases.
+4. If one template is clearly strongest, use it directly. If several are plausible, present 2-3 options with short reasons and ask the user to choose.
+5. Build the final prompt with these blocks:
+ - subject and task
+ - composition and layout
+ - visual style and materials
+ - text and label requirements
+ - aspect ratio and output format
+ - constraints and negative details
+6. Include the selected template name and any useful example case IDs.
+
+## Output Defaults
+
+- Provide a copyable prompt first.
+- Keep constraints concrete: exact text, aspect ratio, readable labels, layout hierarchy, and avoided artifacts.
+- For Chinese requests, write the final prompt in Chinese unless the user asks for English.
+- For English requests, write the final prompt in English unless the user asks for Chinese.
+- When the user asks for multiple concepts, reuse one template and vary subject, composition, palette, and scene.
+
+## Maintenance
+
+When the source repository changes, run:
+
+```bash
+npm run generate:style-skill
+```
+
+To install the skill into the local Codex skill folder, run:
+
+```bash
+npm run install:skill
+```
diff --git a/agents/skills/gpt-image-2-style-library/agents/openai.yaml b/agents/skills/gpt-image-2-style-library/agents/openai.yaml
new file mode 100644
index 0000000..cf1e45d
--- /dev/null
+++ b/agents/skills/gpt-image-2-style-library/agents/openai.yaml
@@ -0,0 +1,3 @@
+display_name: GPT-Image2 Style Library
+short_description: Choose GPT-Image2 templates, styles, and prompt constraints.
+default_prompt: Use the GPT-Image2 style library to create a production-ready image prompt.
diff --git a/agents/skills/gpt-image-2-style-library/references/style-library.md b/agents/skills/gpt-image-2-style-library/references/style-library.md
new file mode 100644
index 0000000..5693806
--- /dev/null
+++ b/agents/skills/gpt-image-2-style-library/references/style-library.md
@@ -0,0 +1,659 @@
+# GPT-Image2 Style Library Reference
+
+Generated from `data/style-library.json`. Use this file as the detailed index for choosing GPT-Image2 prompt templates, visual styles, categories, and scene tags.
+
+## Selection Rules
+
+- Match explicit product types to template categories first, such as product, poster, UI, infographic, brand, photography, character, or document.
+- Match visual words to style tags next, such as realistic, 3D, illustration, classical, brand, poster, or UI.
+- Match context words to scene tags next, such as commerce, education, social, food, travel, story, history, tech, or creative.
+- If a request is vague, offer 2-3 strong template directions and ask the user to choose before writing the final prompt.
+- Final output should include the selected template name, a copyable GPT-Image2 prompt, and concise constraints for text, aspect ratio, layout, and negative details.
+
+## Template Index
+
+### UI Screenshot System / UI 截图系统
+
+- ID: `ui-screenshot-system`
+- Category: UI & Interfaces
+- Styles: UI
+- Scenes: Tech, Social
+- Tags: UI, Dashboard, Screenshot
+- Cover: `/images/case17.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-ui
+- Example cases: case 17, case 2, case 4
+
+Use when:
+- EN: Use for app screens, dashboards, social screenshots, and live interface mockups.
+- ZH: 用于 App 截图、仪表盘、社媒截图和直播界面。
+
+Guidance:
+ - Lock platform, aspect ratio, layout hierarchy, and exact visible text.
+ - Specify UI chrome such as status bars, tabs, action rows, or comment layers.
+ - 锁定平台、比例、层级和画面文字。
+ - 明确状态栏、Tab、操作区、评论层等 UI 元素。
+
+Pitfalls:
+ - Avoid vague platform names and generic app mockups.
+ - Constrain text readability and platform-specific details.
+ - 避免平台描述过泛。
+ - 约束文字可读性和平台特征。
+
+### Infographic Engine / 信息图引擎
+
+- ID: `infographic-engine`
+- Category: Charts & Infographics
+- Styles: Infographic, Charts
+- Scenes: Education, Tech
+- Tags: Infographic, Chart, Education
+- Cover: `/images/case334.png`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-infographic
+- Example cases: case 334, case 1, case 8
+
+Use when:
+- EN: Use for explainer graphics, technical diagrams, timelines, and knowledge cards.
+- ZH: 用于解释图、技术图解、时间线和知识卡片。
+
+Guidance:
+ - Define 3-5 modules, information flow, visual hierarchy, and short labels.
+ - Use color groups, arrows, icons, and clean spacing to reduce clutter.
+ - 定义 3-5 个模块、信息流、层级和短标签。
+ - 用色块、箭头、图标和留白控制复杂度。
+
+Pitfalls:
+ - Avoid long paragraphs inside the image.
+ - Limit module count before adding visual detail.
+ - 避免把长段正文塞进画面。
+ - 先限制模块数量,再补视觉细节。
+
+### Scientific Scale Diagram / 科学尺度缩放图
+
+- ID: `scientific-scale-diagram`
+- Category: Charts & Infographics
+- Styles: Infographic, Charts, Realistic
+- Scenes: Education, Tech
+- Tags: Infographic, Chart, Education
+- Cover: `/images/case341.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-infographic
+- Example cases: case 341
+
+Use when:
+- EN: Use when the topic needs micro-to-macro scale comparison and labeled detail windows.
+- ZH: 用于需要从微观到宏观展示尺度变化的科普主题。
+
+Guidance:
+ - Use 6-8 scale frames and keep each label short.
+ - Show units, magnification, and distinct scale detail.
+ - 使用 6-8 个尺度框,每个标签保持短句。
+ - 展示单位、倍率和不同尺度的细节。
+
+Pitfalls:
+ - Avoid making every scale frame visually identical.
+ - Avoid generic magnifying glass icon layouts.
+ - 避免所有尺度框长得一样。
+ - 避免通用放大镜式布局。
+
+### Poster Layout System / 海报排版系统
+
+- ID: `poster-layout-system`
+- Category: Posters & Typography
+- Styles: Poster
+- Scenes: Commerce, Social
+- Tags: Poster, Typography, Campaign
+- Cover: `/images/case345.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-poster
+- Example cases: case 345, case 5, case 10
+
+Use when:
+- EN: Use for event posters, movie posters, covers, and social campaign visuals.
+- ZH: 用于活动海报、电影海报、封面和社媒传播视觉。
+
+Guidance:
+ - Lock subject, headline, layout, palette, and aspect ratio.
+ - Make the title hierarchy and primary visual clear.
+ - 锁定主体、标题、版式、配色和比例。
+ - 突出标题层级和主视觉。
+
+Pitfalls:
+ - Avoid mixed moodboards or process sheets when asking for one finished poster.
+ - Constrain extra text and decorative symbols.
+ - 需要成品海报时,避免生成拼贴展示板。
+ - 约束多余文字和装饰符号。
+
+### Sports Campaign Poster / 运动商业 Campaign
+
+- ID: `sports-campaign-poster`
+- Category: Posters & Typography
+- Styles: Poster, Realistic
+- Scenes: Commerce, Fashion
+- Tags: Poster, Campaign, Typography
+- Cover: `/images/case350.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-poster
+- Example cases: case 350, case 3
+
+Use when:
+- EN: Use for sports brand campaigns, athlete posters, and product-led sport visuals.
+- ZH: 用于运动品牌 Campaign、运动员海报和运动产品视觉。
+
+Guidance:
+ - Define sport, athlete pose, hero prop, title, and brand palette.
+ - Use dramatic light, clean composition, and readable data overlays.
+ - 定义运动项目、姿态、核心道具、标题和品牌色。
+ - 使用强光影、干净构图和可读数据层。
+
+Pitfalls:
+ - Avoid wrong equipment and noisy collage.
+ - Keep the athlete and hero prop visually dominant.
+ - 避免错误运动器材和杂乱拼贴。
+ - 让运动员和核心道具占据主导。
+
+### Conceptual Typography Poster / 概念字体海报
+
+- ID: `conceptual-typography-poster`
+- Category: Posters & Typography
+- Styles: Poster
+- Scenes: Creative, Social
+- Tags: Typography, Poster, Style
+- Cover: `/images/case355.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-poster
+- Example cases: case 355
+
+Use when:
+- EN: Use when the exact title must become the main visual structure.
+- ZH: 用于标题文字需要成为主视觉结构的海报。
+
+Guidance:
+ - Make typography the hero and spell the title exactly.
+ - Tie human figures, objects, or landscapes to the title meaning.
+ - 让字体成为画面主角,并保证标题拼写准确。
+ - 人物、物体或风景需要服务标题含义。
+
+Pitfalls:
+ - Avoid default word art, unrelated icons, and misspelled title text.
+ - Limit the color system to a restrained palette.
+ - 避免默认字效、无关图标和标题错字。
+ - 控制配色数量,保持克制。
+
+### Ink Double Exposure Poster / 水墨双重曝光海报
+
+- ID: `ink-double-exposure-poster`
+- Category: Posters & Typography
+- Styles: Poster, Illustration, Classical
+- Scenes: Story, History
+- Tags: Poster, Classical, Style
+- Cover: `/images/case359.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-poster
+- Example cases: case 359
+
+Use when:
+- EN: Use for poetic portrait posters, ink atmospheres, and layered cultural visuals.
+- ZH: 用于诗意人像海报、水墨氛围和文化主题视觉。
+
+Guidance:
+ - Blend portrait silhouette, ink texture, atmosphere, and negative space.
+ - Keep composition quiet, premium, and readable.
+ - 融合人像剪影、水墨质感、氛围和留白。
+ - 保持构图克制、高级、可读。
+
+Pitfalls:
+ - Avoid cheap fantasy collage and overloaded scenery.
+ - Use subtle text or no text unless required.
+ - 避免廉价奇幻拼贴和景物堆叠。
+ - 非必要时减少文字。
+
+### Nature Science Poster / 自然科普海报
+
+- ID: `nature-science-poster`
+- Category: Posters & Typography
+- Styles: Poster, Infographic
+- Scenes: Education
+- Tags: Poster, Education, Style
+- Cover: `/images/case339.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-poster
+- Example cases: case 339
+
+Use when:
+- EN: Use for natural subjects that need a premium, clean science poster feel.
+- ZH: 用于自然主题的高级、干净科普海报。
+
+Guidance:
+ - Use a clear subject, minimal copy, soft shadows, and disciplined whitespace.
+ - Keep the scientific label short and visible.
+ - 使用清晰主体、少量文案、柔和阴影和充足留白。
+ - 让科普标签短而清楚。
+
+Pitfalls:
+ - Avoid heavy advertising language.
+ - Avoid dense encyclopedia blocks.
+ - 避免广告感太重。
+ - 避免密集百科正文。
+
+### Product Commerce Visual / 商品商业视觉
+
+- ID: `product-commerce-visual`
+- Category: Products & E-commerce
+- Styles: Product, Realistic
+- Scenes: Commerce, Food
+- Tags: Product, Commerce, Packaging
+- Cover: `/images/case373.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-product
+- Example cases: case 373, case 358
+
+Use when:
+- EN: Use for product hero shots, packaging visuals, detail pages, and sales layouts.
+- ZH: 用于商品主图、包装视觉、详情页和销售卖点排版。
+
+Guidance:
+ - Define product, selling points, material, scene, lighting, and layout blocks.
+ - Separate hero product, benefit labels, and supporting props.
+ - 定义商品、卖点、材质、场景、光线和版块。
+ - 区分主商品、卖点标签和辅助道具。
+
+Pitfalls:
+ - Avoid random props that weaken product recognition.
+ - Constrain packaging text and claim wording.
+ - 避免无关道具削弱商品识别。
+ - 约束包装文字和卖点表达。
+
+### Personalized Beauty Report / 个性化美妆报告
+
+- ID: `personalized-beauty-report`
+- Category: Products & E-commerce
+- Styles: Product, UI
+- Scenes: Commerce, Fashion
+- Tags: Product, Layout, Style
+- Cover: `/images/case353.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-product
+- Example cases: case 353
+
+Use when:
+- EN: Use for beauty recommendations, skin reports, shopping assistants, and lifestyle product cards.
+- ZH: 用于美妆推荐、肤质报告、导购助手和生活方式商品卡片。
+
+Guidance:
+ - Use a report-like hierarchy with diagnosis, recommendation, and product cards.
+ - Keep product images, labels, and ratings aligned.
+ - 使用诊断、推荐和商品卡片的报告层级。
+ - 对齐商品图、标签和评分。
+
+Pitfalls:
+ - Avoid medical claims and unreadable dense notes.
+ - Keep recommendation logic simple.
+ - 避免医疗化结论和难读小字。
+ - 保持推荐逻辑清楚。
+
+### Brand Identity Package / 品牌身份包
+
+- ID: `brand-identity-package`
+- Category: Brand & Logos
+- Styles: Brand
+- Scenes: Commerce
+- Tags: Brand, Logo, Identity
+- Cover: `/images/case354.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-brand
+- Example cases: case 354
+
+Use when:
+- EN: Use for logo systems, brand boards, visual identity kits, and application mockups.
+- ZH: 用于 Logo 系统、品牌板、VI 套件和应用样机。
+
+Guidance:
+ - Define brand name, positioning, palette, typography, logo usage, and touchpoints.
+ - Ask for a coherent board with aligned applications.
+ - 定义品牌名、定位、配色、字体、Logo 用法和触点。
+ - 要求视觉板中的应用统一对齐。
+
+Pitfalls:
+ - Avoid unrelated logo variants and inconsistent palettes.
+ - Keep brand text accurate.
+ - 避免无关 Logo 变体和混乱配色。
+ - 保持品牌文字准确。
+
+### Brand Touchpoint Board / 品牌触点视觉板
+
+- ID: `brand-touchpoint-board`
+- Category: Brand & Logos
+- Styles: Brand, Product
+- Scenes: Commerce, Social
+- Tags: Brand, Identity, Campaign
+- Cover: `/images/case362.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-brand
+- Example cases: case 362
+
+Use when:
+- EN: Use for multi-touchpoint campaign boards and brand rollout previews.
+- ZH: 用于多触点 Campaign 展示和品牌落地预览。
+
+Guidance:
+ - Specify touchpoint list, shared visual rules, and mockup arrangement.
+ - Use one palette and one typography logic across all panels.
+ - 指定触点清单、统一视觉规则和样机排列。
+ - 让所有面板共享配色和字体逻辑。
+
+Pitfalls:
+ - Avoid mixing many unrelated campaign styles.
+ - Limit touchpoints if readability drops.
+ - 避免混入多个无关 Campaign 风格。
+ - 可读性下降时减少触点数量。
+
+### Architecture & Space / 建筑与空间
+
+- ID: `architecture-space`
+- Category: Architecture & Spaces
+- Styles: Architecture
+- Scenes: Travel, Commerce
+- Tags: Architecture, Interior, Map
+- Cover: `/images/case331.png`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-architecture
+- Example cases: case 331, case 11
+
+Use when:
+- EN: Use for interiors, architecture renders, city maps, spatial plans, and environment concepts.
+- ZH: 用于室内、建筑表现、城市地图、空间规划和环境概念图。
+
+Guidance:
+ - Define viewpoint, scale, material, lighting, and spatial function.
+ - For maps, specify landmarks, labels, border decoration, and visual accuracy level.
+ - 定义视角、尺度、材质、光线和空间功能。
+ - 地图需要指定地标、标签、边框装饰和准确度。
+
+Pitfalls:
+ - Avoid impossible perspectives unless the output is conceptual.
+ - Lock map label language and relative placement.
+ - 概念图之外要避免不合理透视。
+ - 锁定地图标签语言和相对位置。
+
+### Realistic Photography / 写实摄影
+
+- ID: `realistic-photography`
+- Category: Photography & Realism
+- Styles: Photography, Realistic
+- Scenes: Fashion, Commerce
+- Tags: Photography, Realistic, Lens
+- Cover: `/images/case377.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-photo
+- Example cases: case 377
+
+Use when:
+- EN: Use for portraits, street photos, product photography, and cinematic realism.
+- ZH: 用于人像、街拍、商品摄影和电影感写实。
+
+Guidance:
+ - Specify camera distance, lens, light source, texture, background, and motion.
+ - Use believable imperfections for documentary realism.
+ - 指定机位、镜头、光源、质感、背景和动作。
+ - 加入可信的小瑕疵增强纪实感。
+
+Pitfalls:
+ - Avoid over-polished plastic skin unless commercial beauty is required.
+ - Add negative constraints for hands, text, and anatomy when needed.
+ - 商业美妆之外,避免过度磨皮。
+ - 需要时加入手部、文字、结构类负面约束。
+
+### Street Accident Moment / 街头意外瞬间摄影
+
+- ID: `street-accident-moment`
+- Category: Photography & Realism
+- Styles: Photography, Realistic
+- Scenes: Travel, Social
+- Tags: Photography, Realistic, Scene
+- Cover: `/images/case376.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-photo
+- Example cases: case 376
+
+Use when:
+- EN: Use for candid street moments, accidental spills, documentary phone shots, and fast action.
+- ZH: 用于街头抓拍、意外泼洒、手机纪实和快速动作。
+
+Guidance:
+ - Describe the exact moment, camera height, motion blur, and street context.
+ - Add negative constraints for staged poses and fake ad lighting.
+ - 描述具体瞬间、机位高度、运动模糊和街景。
+ - 加入避免摆拍和广告棚拍感的限制。
+
+Pitfalls:
+ - Avoid too-clean compositions.
+ - Keep the event plausible and grounded.
+ - 避免画面过于干净。
+ - 让事件看起来可信。
+
+### Illustration & Art Style / 插画与艺术风格
+
+- ID: `illustration-art-style`
+- Category: Illustration & Art
+- Styles: Illustration
+- Scenes: Story, Creative
+- Tags: Illustration, Art, Style
+- Cover: `/images/case346.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-illustration
+- Example cases: case 346, case 6
+
+Use when:
+- EN: Use for anime, watercolor, ink, decorative art, and style experiments.
+- ZH: 用于动漫、水彩、水墨、装饰画和风格实验。
+
+Guidance:
+ - Define composition, subject, palette, brush material, mood, and rendering depth.
+ - For reference images, state what must be preserved.
+ - 定义构图、主体、配色、笔触材质、情绪和完成度。
+ - 参考图任务需要说明保留哪些特征。
+
+Pitfalls:
+ - Avoid style-only prompts without composition.
+ - Lock character identity when using references.
+ - 避免只写风格,不写构图。
+ - 使用参考图时锁定角色识别。
+
+### Character Design Sheet / 角色设定表
+
+- ID: `character-design-sheet`
+- Category: Characters & People
+- Styles: Character, Illustration
+- Scenes: Story
+- Tags: Character, Pose, Style
+- Cover: `/images/case347.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-character
+- Example cases: case 347
+
+Use when:
+- EN: Use for character sheets, pose grids, action breakdowns, and identity references.
+- ZH: 用于角色设定表、动作网格、动作拆解和一致性参考。
+
+Guidance:
+ - Define identity anchors, outfit, proportions, pose count, and sheet layout.
+ - Keep face, hairstyle, and costume details consistent.
+ - 定义身份锚点、服装、比例、动作数量和版式。
+ - 保持脸、发型和服装细节一致。
+
+Pitfalls:
+ - Avoid changing costume details between poses.
+ - Limit pose count if the sheet becomes crowded.
+ - 避免不同动作里服装细节变化。
+ - 画面拥挤时减少动作数量。
+
+### 3D Collectible Toy / 3D 收藏玩具
+
+- ID: `3d-collectible-toy`
+- Category: Characters & People
+- Styles: 3D, Character
+- Scenes: Commerce, Creative
+- Tags: Character, 3D, Style
+- Cover: `/images/case378.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-character
+- Example cases: case 378
+
+Use when:
+- EN: Use for premium collectible figures, avatar toys, blind-box characters, and 3D display renders.
+- ZH: 用于高级收藏玩具、头像公仔、潮玩角色和 3D 展示图。
+
+Guidance:
+ - Preserve face and outfit anchors from the reference.
+ - Specify material, packaging, base, lighting, and collectible scale.
+ - 保留参考图中的脸和服装锚点。
+ - 指定材质、包装、底座、光线和收藏比例。
+
+Pitfalls:
+ - Avoid generic toy bodies without identity details.
+ - Keep packaging text minimal and accurate.
+ - 避免没有身份细节的通用玩具。
+ - 包装文字保持少量且准确。
+
+### Scene Storytelling / 场景叙事
+
+- ID: `scene-storytelling`
+- Category: Scenes & Storytelling
+- Styles: Scenes, Illustration
+- Scenes: Story, Social
+- Tags: Scene, Story, Storyboard
+- Cover: `/images/case330.png`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-scene
+- Example cases: case 330
+
+Use when:
+- EN: Use for storyboards, worldbuilding, live scenes, and emotional narrative frames.
+- ZH: 用于分镜、世界观、直播场景和情绪叙事画面。
+
+Guidance:
+ - Define who, where, when, conflict, emotion, and camera framing.
+ - Use scene details to support narrative rather than decoration.
+ - 定义人物、地点、时间、冲突、情绪和机位。
+ - 让场景细节服务故事。
+
+Pitfalls:
+ - Avoid generic fantasy backgrounds.
+ - Keep narrative cues visible in the frame.
+ - 避免通用幻想背景。
+ - 让故事线索在画面里可见。
+
+### History & Classical Themes / 历史与古风题材
+
+- ID: `history-classical-themes`
+- Category: History & Classical Themes
+- Styles: History, Classical, Illustration
+- Scenes: History, Story
+- Tags: History, Classical, Scroll
+- Cover: `/images/case375.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-history
+- Example cases: case 375, case 338
+
+Use when:
+- EN: Use for ancient Chinese themes, scrolls, dynasty clothing, poetry visuals, and historical scenes.
+- ZH: 用于古风题材、长卷、朝代服饰、诗词视觉和历史场景。
+
+Guidance:
+ - Specify dynasty, clothing system, object references, layout format, and cultural mood.
+ - Use scroll, album page, or poster format deliberately.
+ - 指定朝代、服饰制度、器物参考、版式和文化气质。
+ - 明确长卷、册页或海报形式。
+
+Pitfalls:
+ - Avoid mixing dynasties when historical accuracy matters.
+ - Constrain random modern props.
+ - 需要历史准确时,避免朝代混搭。
+ - 约束随机现代物件。
+
+### Document & Publishing / 文档与出版物
+
+- ID: `document-publishing`
+- Category: Documents & Publishing
+- Styles: Documents, Infographic
+- Scenes: Education, Tech
+- Tags: Document, Publishing, Layout
+- Cover: `/images/case360.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-document
+- Example cases: case 360
+
+Use when:
+- EN: Use for white papers, manuals, encyclopedic plates, report pages, and publication systems.
+- ZH: 用于白皮书、手册、百科图鉴、报告页面和出版系统。
+
+Guidance:
+ - Define page size, columns, table of contents, figure system, and typography hierarchy.
+ - Use readable headings, tables, labels, and page rhythm.
+ - 定义页面尺寸、分栏、目录、图表系统和字体层级。
+ - 使用可读标题、表格、标签和页面节奏。
+
+Pitfalls:
+ - Avoid tiny dense text.
+ - Keep charts and captions aligned to the page grid.
+ - 避免密集小字。
+ - 让图表和说明对齐页面网格。
+
+### Concept Product Breakdown / 概念产品研发拆解
+
+- ID: `concept-product-breakdown`
+- Category: Other Use Cases
+- Styles: Other Use Cases, Product
+- Scenes: Creative, Tech
+- Tags: Creative, R&D, Special
+- Cover: `/images/case370.jpg`
+- Template source: https://github.com/freestylefly/awesome-gpt-image-2/blob/main/docs/templates.md#tpl-other
+- Example cases: case 370, case 361
+
+Use when:
+- EN: Use for experimental prompt tasks, R&D boards, exploded diagrams, and unusual visual systems.
+- ZH: 用于实验型任务、研发视觉板、拆解图和特殊视觉系统。
+
+Guidance:
+ - Define the artifact type, components, labels, material logic, and final presentation format.
+ - Use clear callouts and a controlled technical style.
+ - 定义产物类型、组件、标签、材质逻辑和展示格式。
+ - 使用清晰标注和受控技术风格。
+
+Pitfalls:
+ - Avoid unspecified mixed tasks.
+ - Keep labels short and component relationships visible.
+ - 避免任务边界过泛。
+ - 标签要短,组件关系要清楚。
+
+## Categories
+
+- UI & Interfaces: UI 与界面 | Apps, websites, dashboards, social screenshots, and product interfaces.
+- Charts & Infographics: 图表与信息可视化 | Infographics, knowledge maps, technical explainers, and structured diagrams.
+- Posters & Typography: 海报与排版 | Event posters, covers, type-driven visuals, and strong layout compositions.
+- Products & E-commerce: 商品与电商 | Product shots, detail pages, packaging, selling points, and ads.
+- Brand & Logos: 品牌与标志 | Logos, identity systems, brand touchpoints, and campaign visuals.
+- Architecture & Spaces: 建筑与空间 | Architecture renders, interiors, city maps, and spatial concepts.
+- Photography & Realism: 摄影与写实 | Portraits, phone photography, film texture, and commercial photography.
+- Illustration & Art: 插画与艺术 | Illustration, art styles, material experiments, and decorative images.
+- Characters & People: 人物与角色 | Character design, pose references, cards, and 3D toys.
+- Scenes & Storytelling: 场景与叙事 | Storyboards, narrative scenes, livestream frames, and worldbuilding.
+- History & Classical Themes: 历史与古风题材 | Classical scrolls, historical figures, traditional themes, and poetry visuals.
+- Documents & Publishing: 文档与出版物 | White papers, manuals, encyclopedic plates, and publishing layouts.
+- Other Use Cases: 其他应用场景 | Creative experiments, special tasks, mixed workflows, and practical cases.
+
+## Styles
+
+- 3D: 3D | Keywords: 3d, toy, render, 玩具
+- Architecture: 建筑 | Keywords: None
+- Brand: 品牌 | Keywords: brand, logo, identity, 品牌, 标志
+- Character: 角色 | Keywords: character, avatar, pose, 角色, 人物
+- Characters: 人物 | Keywords: None
+- Charts: 图表 | Keywords: None
+- Classical: 古典 | Keywords: classical, dynasty, history, 古风, 历史
+- Documents: 文档 | Keywords: None
+- History: 历史 | Keywords: None
+- Illustration: 插画 | Keywords: illustration, painting, watercolor, 插画, 绘画
+- Infographic: 信息图 | Keywords: infographic, diagram, 信息图, 图解
+- Other Use Cases: 其他应用场景 | Keywords: None
+- Photography: 摄影 | Keywords: None
+- Poster: 海报 | Keywords: poster, cover, typography, 海报, 封面
+- Product: 商品 | Keywords: product, packaging, 商品, 包装
+- Products: 商品 | Keywords: None
+- Realistic: 写实 | Keywords: photo, realistic, camera, 写真, 写实
+- Scenes: 场景 | Keywords: None
+- UI: 界面 | Keywords: ui, interface, dashboard, 界面, 截图
+
+## Scenes
+
+- Creative: 创意 | Keywords: None
+- Tech: 科技 | Keywords: ai, rag, tech, data, 技术, 数据
+- Commerce: 商业 | Keywords: product, brand, ad, campaign, 商品, 商业, 广告
+- Education: 教育 | Keywords: guide, atlas, science, learning, 学习, 科普
+- Social: 社媒 | Keywords: social, x , wechat, 朋友圈, 社媒
+- Fashion: 时尚 | Keywords: fashion, clothing, portrait, 服饰, 写真
+- Food: 食品饮品 | Keywords: food, drink, coffee, tea, 餐厅, 咖啡, 茶
+- Travel: 旅行 | Keywords: city, map, street, 城市, 地图, 街头
+- Story: 叙事 | Keywords: story, scene, world, 故事, 场景
+- History: 历史 | Keywords: history, dynasty, ancient, 历史, 古希腊, 唐
+
diff --git a/data/cases.json b/data/cases.json
index 09952cc..4682c08 100644
--- a/data/cases.json
+++ b/data/cases.json
@@ -565,6 +565,7 @@
"category": "Characters & People",
"styles": [
"Realistic",
+ "Brand",
"3D"
],
"scenes": [
@@ -586,6 +587,7 @@
"category": "Photography & Realism",
"styles": [
"Realistic",
+ "Brand",
"Character"
],
"scenes": [
@@ -713,8 +715,8 @@
"category": "Characters & People",
"styles": [
"Realistic",
- "Character",
- "3D"
+ "Brand",
+ "Character"
],
"scenes": [
"Tech",
@@ -1852,7 +1854,7 @@
"styles": [
"Realistic",
"Product",
- "Character"
+ "Brand"
],
"scenes": [
"Tech",
@@ -1875,7 +1877,7 @@
"styles": [
"Realistic",
"Product",
- "Character"
+ "Brand"
],
"scenes": [
"Tech",
@@ -3901,7 +3903,8 @@
"promptPreview": "[中文] 9:16 竖版 — 一个 3x3 网格拼贴(九张图片)形成一系列韩国偶像肖像摄影。每一帧都呈现同一位年轻的韩国女性偶像,在所有九张镜头中保持 100% 一致的面部特征、比例、发型和身份。自然、超逼真的皮肤纹理,无修图,无磨皮。干净的偶像风格极简妆容,柔和的光泽,微妙的瑕疵。发型:长发、蓬松的黑发,微乱,在所有帧中保持一致(自然松散的垂落,轻微的动感)。服装:连贯的韩国偶像摄影造型 — 白色衬衫 + 短款下装(或简单的中性色调服",
"category": "Photography & Realism",
"styles": [
- "Realistic"
+ "Realistic",
+ "Brand"
],
"scenes": [
"Tech",
@@ -4032,6 +4035,7 @@
"promptPreview": "[中文] 帮我生成一个以《金瓶梅》为主题的古代 ARPG MMO 开放世界游戏的截图 [English] Help me generate a screenshot of an ancient ARPG MMO open-world game themed around Jin Ping Mei.",
"category": "UI & Interfaces",
"styles": [
+ "UI",
"Classical"
],
"scenes": [
@@ -4781,7 +4785,7 @@
"promptPreview": "[中文] 苏轼被贬第一天小红书截图 [English] Su Shi's first day of exile Xiaohongshu screenshot",
"category": "History & Classical Themes",
"styles": [
- "History"
+ "UI"
],
"scenes": [
"Social"
@@ -5706,8 +5710,8 @@
"category": "UI & Interfaces",
"styles": [
"UI",
- "Infographic",
- "Brand"
+ "Brand",
+ "3D"
],
"scenes": [
"Tech",
@@ -6359,7 +6363,6 @@
"category": "Posters & Typography",
"styles": [
"UI",
- "Infographic",
"Brand"
],
"scenes": [
@@ -7212,7 +7215,6 @@
"promptPreview": "{\"type\": \"2x2 grid of promotional banner ads\", \"theme\": \"{argument name=\\\"course theme\\\" default=\\\"Social Media Content Creation School\\\"}\", \"panels\": [{\"position\": \"top-left\", \"color_palette\": \"light blue and pink paste",
"category": "Posters & Typography",
"styles": [
- "Infographic",
"Poster",
"Realistic"
],
@@ -7256,7 +7258,6 @@
"promptPreview": "{ \"type\": \"2x2 grid of banner advertisements\", \"theme\": \"{argument name=\\\"school name\\\" default=\\\"SNSスクール\\\"}\", \"target_audience\": \"{argument name=\\\"target audience\\\" default=\\\"学生\\\"}\", \"layout\": { \"grid\": \"2x2",
"category": "Posters & Typography",
"styles": [
- "Infographic",
"Poster",
"Realistic"
],
@@ -7972,7 +7973,8 @@
"category": "Photography & Realism",
"styles": [
"UI",
- "Realistic"
+ "Realistic",
+ "Brand"
],
"scenes": [
"Tech",
diff --git a/data/style-library.json b/data/style-library.json
new file mode 100644
index 0000000..fc564fe
--- /dev/null
+++ b/data/style-library.json
@@ -0,0 +1,819 @@
+{
+ "version": 1,
+ "repository": "https://github.com/freestylefly/awesome-gpt-image-2",
+ "templateDocument": "docs/templates.md",
+ "tagLabels": {
+ "Art": { "en": "Art", "zh": "艺术" },
+ "Campaign": { "en": "Campaign", "zh": "商业 Campaign" },
+ "Chart": { "en": "Chart", "zh": "图表" },
+ "Classical": { "en": "Classical", "zh": "古典" },
+ "Creative": { "en": "Creative", "zh": "创意" },
+ "Dashboard": { "en": "Dashboard", "zh": "仪表盘" },
+ "Document": { "en": "Document", "zh": "文档" },
+ "Education": { "en": "Education", "zh": "教育" },
+ "Identity": { "en": "Identity", "zh": "身份系统" },
+ "Interior": { "en": "Interior", "zh": "室内" },
+ "Layout": { "en": "Layout", "zh": "版式" },
+ "Lens": { "en": "Lens", "zh": "镜头" },
+ "Logo": { "en": "Logo", "zh": "Logo" },
+ "Map": { "en": "Map", "zh": "地图" },
+ "Packaging": { "en": "Packaging", "zh": "包装" },
+ "Pose": { "en": "Pose", "zh": "动作" },
+ "Publishing": { "en": "Publishing", "zh": "出版" },
+ "R&D": { "en": "R&D", "zh": "研发" },
+ "Scene": { "en": "Scene", "zh": "场景" },
+ "Screenshot": { "en": "Screenshot", "zh": "截图" },
+ "Scroll": { "en": "Scroll", "zh": "长卷" },
+ "Special": { "en": "Special", "zh": "特殊输出" },
+ "Storyboard": { "en": "Storyboard", "zh": "分镜" },
+ "Style": { "en": "Style", "zh": "风格" },
+ "Typography": { "en": "Typography", "zh": "字体" }
+ },
+ "categories": [
+ {
+ "id": "cat-ui",
+ "value": "UI & Interfaces",
+ "anchor": "cat-ui",
+ "templateAnchor": "tpl-ui",
+ "cover": "/images/category-covers/ui.jpg",
+ "title": { "en": "UI & Interfaces", "zh": "UI 与界面" },
+ "description": {
+ "en": "Apps, websites, dashboards, social screenshots, and product interfaces.",
+ "zh": "App、网页、仪表盘、社媒截图与产品界面。"
+ }
+ },
+ {
+ "id": "cat-infographic",
+ "value": "Charts & Infographics",
+ "anchor": "cat-infographic",
+ "templateAnchor": "tpl-infographic",
+ "cover": "/images/category-covers/infographic.jpg",
+ "title": { "en": "Charts & Infographics", "zh": "图表与信息可视化" },
+ "description": {
+ "en": "Infographics, knowledge maps, technical explainers, and structured diagrams.",
+ "zh": "信息图、知识图谱、技术解释与结构化图解。"
+ }
+ },
+ {
+ "id": "cat-poster",
+ "value": "Posters & Typography",
+ "anchor": "cat-poster",
+ "templateAnchor": "tpl-poster",
+ "cover": "/images/category-covers/poster.jpg",
+ "title": { "en": "Posters & Typography", "zh": "海报与排版" },
+ "description": {
+ "en": "Event posters, covers, type-driven visuals, and strong layout compositions.",
+ "zh": "活动海报、封面、字体视觉和强排版画面。"
+ }
+ },
+ {
+ "id": "cat-product",
+ "value": "Products & E-commerce",
+ "anchor": "cat-product",
+ "templateAnchor": "tpl-product",
+ "cover": "/images/category-covers/product.jpg",
+ "title": { "en": "Products & E-commerce", "zh": "商品与电商" },
+ "description": {
+ "en": "Product shots, detail pages, packaging, selling points, and ads.",
+ "zh": "商品图、详情页、包装卖点和商业广告。"
+ }
+ },
+ {
+ "id": "cat-brand",
+ "value": "Brand & Logos",
+ "anchor": "cat-brand",
+ "templateAnchor": "tpl-brand",
+ "cover": "/images/category-covers/brand.jpg",
+ "title": { "en": "Brand & Logos", "zh": "品牌与标志" },
+ "description": {
+ "en": "Logos, identity systems, brand touchpoints, and campaign visuals.",
+ "zh": "Logo、VI、品牌触点和 Campaign 视觉系统。"
+ }
+ },
+ {
+ "id": "cat-architecture",
+ "value": "Architecture & Spaces",
+ "anchor": "cat-architecture",
+ "templateAnchor": "tpl-architecture",
+ "cover": "/images/category-covers/architecture.jpg",
+ "title": { "en": "Architecture & Spaces", "zh": "建筑与空间" },
+ "description": {
+ "en": "Architecture renders, interiors, city maps, and spatial concepts.",
+ "zh": "建筑表现、室内空间、城市地图和空间概念。"
+ }
+ },
+ {
+ "id": "cat-photo",
+ "value": "Photography & Realism",
+ "anchor": "cat-photo",
+ "templateAnchor": "tpl-photo",
+ "cover": "/images/category-covers/photo.jpg",
+ "title": { "en": "Photography & Realism", "zh": "摄影与写实" },
+ "description": {
+ "en": "Portraits, phone photography, film texture, and commercial photography.",
+ "zh": "人像、手机纪实、胶片质感和商业摄影。"
+ }
+ },
+ {
+ "id": "cat-illustration",
+ "value": "Illustration & Art",
+ "anchor": "cat-illustration",
+ "templateAnchor": "tpl-illustration",
+ "cover": "/images/category-covers/illustration.jpg",
+ "title": { "en": "Illustration & Art", "zh": "插画与艺术" },
+ "description": {
+ "en": "Illustration, art styles, material experiments, and decorative images.",
+ "zh": "插画、艺术风格、材质实验和装饰画面。"
+ }
+ },
+ {
+ "id": "cat-character",
+ "value": "Characters & People",
+ "anchor": "cat-character",
+ "templateAnchor": "tpl-character",
+ "cover": "/images/category-covers/character.jpg",
+ "title": { "en": "Characters & People", "zh": "人物与角色" },
+ "description": {
+ "en": "Character design, pose references, cards, and 3D toys.",
+ "zh": "角色设定、动作参考、卡牌和 3D 玩具。"
+ }
+ },
+ {
+ "id": "cat-scene",
+ "value": "Scenes & Storytelling",
+ "anchor": "cat-scene",
+ "templateAnchor": "tpl-scene",
+ "cover": "/images/category-covers/scene.jpg",
+ "title": { "en": "Scenes & Storytelling", "zh": "场景与叙事" },
+ "description": {
+ "en": "Storyboards, narrative scenes, livestream frames, and worldbuilding.",
+ "zh": "分镜、故事场景、直播画面和世界观叙事。"
+ }
+ },
+ {
+ "id": "cat-history",
+ "value": "History & Classical Themes",
+ "anchor": "cat-history",
+ "templateAnchor": "tpl-history",
+ "cover": "/images/category-covers/history.jpg",
+ "title": { "en": "History & Classical Themes", "zh": "历史与古风题材" },
+ "description": {
+ "en": "Classical scrolls, historical figures, traditional themes, and poetry visuals.",
+ "zh": "古风长卷、历史人物、传统题材和诗词画面。"
+ }
+ },
+ {
+ "id": "cat-document",
+ "value": "Documents & Publishing",
+ "anchor": "cat-document",
+ "templateAnchor": "tpl-document",
+ "cover": "/images/category-covers/document.jpg",
+ "title": { "en": "Documents & Publishing", "zh": "文档与出版物" },
+ "description": {
+ "en": "White papers, manuals, encyclopedic plates, and publishing layouts.",
+ "zh": "白皮书、手册、百科图鉴和出版页设计。"
+ }
+ },
+ {
+ "id": "cat-other",
+ "value": "Other Use Cases",
+ "anchor": "cat-other",
+ "templateAnchor": "tpl-other",
+ "cover": "/images/category-covers/other.jpg",
+ "title": { "en": "Other Use Cases", "zh": "其他应用场景" },
+ "description": {
+ "en": "Creative experiments, special tasks, mixed workflows, and practical cases.",
+ "zh": "创意实验、特殊任务、混合玩法和实用场景。"
+ }
+ }
+ ],
+ "styles": [
+ { "id": "3d", "value": "3D", "title": { "en": "3D", "zh": "3D" }, "keywords": ["3d", "toy", "render", "玩具"] },
+ { "id": "architecture", "value": "Architecture", "title": { "en": "Architecture", "zh": "建筑" }, "keywords": [] },
+ { "id": "brand", "value": "Brand", "title": { "en": "Brand", "zh": "品牌" }, "keywords": ["brand", "logo", "identity", "品牌", "标志"] },
+ { "id": "character", "value": "Character", "title": { "en": "Character", "zh": "角色" }, "keywords": ["character", "avatar", "pose", "角色", "人物"] },
+ { "id": "characters", "value": "Characters", "title": { "en": "Characters", "zh": "人物" }, "keywords": [] },
+ { "id": "charts", "value": "Charts", "title": { "en": "Charts", "zh": "图表" }, "keywords": [] },
+ { "id": "classical", "value": "Classical", "title": { "en": "Classical", "zh": "古典" }, "keywords": ["classical", "dynasty", "history", "古风", "历史"] },
+ { "id": "documents", "value": "Documents", "title": { "en": "Documents", "zh": "文档" }, "keywords": [] },
+ { "id": "history", "value": "History", "title": { "en": "History", "zh": "历史" }, "keywords": [] },
+ { "id": "illustration", "value": "Illustration", "title": { "en": "Illustration", "zh": "插画" }, "keywords": ["illustration", "painting", "watercolor", "插画", "绘画"] },
+ { "id": "infographic", "value": "Infographic", "title": { "en": "Infographic", "zh": "信息图" }, "keywords": ["infographic", "diagram", "信息图", "图解"] },
+ { "id": "other", "value": "Other Use Cases", "title": { "en": "Other Use Cases", "zh": "其他应用场景" }, "keywords": [] },
+ { "id": "photography", "value": "Photography", "title": { "en": "Photography", "zh": "摄影" }, "keywords": [] },
+ { "id": "poster", "value": "Poster", "title": { "en": "Poster", "zh": "海报" }, "keywords": ["poster", "cover", "typography", "海报", "封面"] },
+ { "id": "product", "value": "Product", "title": { "en": "Product", "zh": "商品" }, "keywords": ["product", "packaging", "商品", "包装"] },
+ { "id": "products", "value": "Products", "title": { "en": "Products", "zh": "商品" }, "keywords": [] },
+ { "id": "realistic", "value": "Realistic", "title": { "en": "Realistic", "zh": "写实" }, "keywords": ["photo", "realistic", "camera", "写真", "写实"] },
+ { "id": "scenes", "value": "Scenes", "title": { "en": "Scenes", "zh": "场景" }, "keywords": [] },
+ { "id": "ui", "value": "UI", "title": { "en": "UI", "zh": "界面" }, "keywords": ["ui", "interface", "dashboard", "界面", "截图"] }
+ ],
+ "scenes": [
+ { "id": "creative", "value": "Creative", "title": { "en": "Creative", "zh": "创意" }, "keywords": [] },
+ { "id": "tech", "value": "Tech", "title": { "en": "Tech", "zh": "科技" }, "keywords": ["ai", "rag", "tech", "data", "技术", "数据"] },
+ { "id": "commerce", "value": "Commerce", "title": { "en": "Commerce", "zh": "商业" }, "keywords": ["product", "brand", "ad", "campaign", "商品", "商业", "广告"] },
+ { "id": "education", "value": "Education", "title": { "en": "Education", "zh": "教育" }, "keywords": ["guide", "atlas", "science", "learning", "学习", "科普"] },
+ { "id": "social", "value": "Social", "title": { "en": "Social", "zh": "社媒" }, "keywords": ["social", "x ", "wechat", "朋友圈", "社媒"] },
+ { "id": "fashion", "value": "Fashion", "title": { "en": "Fashion", "zh": "时尚" }, "keywords": ["fashion", "clothing", "portrait", "服饰", "写真"] },
+ { "id": "food", "value": "Food", "title": { "en": "Food", "zh": "食品饮品" }, "keywords": ["food", "drink", "coffee", "tea", "餐厅", "咖啡", "茶"] },
+ { "id": "travel", "value": "Travel", "title": { "en": "Travel", "zh": "旅行" }, "keywords": ["city", "map", "street", "城市", "地图", "街头"] },
+ { "id": "story", "value": "Story", "title": { "en": "Story", "zh": "叙事" }, "keywords": ["story", "scene", "world", "故事", "场景"] },
+ { "id": "history", "value": "History", "title": { "en": "History", "zh": "历史" }, "keywords": ["history", "dynasty", "ancient", "历史", "古希腊", "唐"] }
+ ],
+ "templates": [
+ {
+ "id": "ui-screenshot-system",
+ "anchor": "tpl-ui",
+ "cover": "/images/case17.jpg",
+ "title": { "en": "UI Screenshot System", "zh": "UI 截图系统" },
+ "description": {
+ "en": "High-fidelity app, web, dashboard, and social interface prompts.",
+ "zh": "生成 App、网页、仪表盘、社媒截图等高保真界面。"
+ },
+ "category": "UI & Interfaces",
+ "styles": ["UI"],
+ "scenes": ["Tech", "Social"],
+ "tags": ["UI", "Dashboard", "Screenshot"],
+ "useWhen": {
+ "en": "Use for app screens, dashboards, social screenshots, and live interface mockups.",
+ "zh": "用于 App 截图、仪表盘、社媒截图和直播界面。"
+ },
+ "guidance": {
+ "en": ["Lock platform, aspect ratio, layout hierarchy, and exact visible text.", "Specify UI chrome such as status bars, tabs, action rows, or comment layers."],
+ "zh": ["锁定平台、比例、层级和画面文字。", "明确状态栏、Tab、操作区、评论层等 UI 元素。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid vague platform names and generic app mockups.", "Constrain text readability and platform-specific details."],
+ "zh": ["避免平台描述过泛。", "约束文字可读性和平台特征。"]
+ },
+ "exampleCases": [17, 2, 4]
+ },
+ {
+ "id": "infographic-engine",
+ "anchor": "tpl-infographic",
+ "cover": "/images/case334.png",
+ "title": { "en": "Infographic Engine", "zh": "信息图引擎" },
+ "description": {
+ "en": "Structured diagrams, timelines, knowledge maps, and explainers.",
+ "zh": "生成结构化图解、时间线、知识图谱和技术解释图。"
+ },
+ "category": "Charts & Infographics",
+ "styles": ["Infographic", "Charts"],
+ "scenes": ["Education", "Tech"],
+ "tags": ["Infographic", "Chart", "Education"],
+ "useWhen": {
+ "en": "Use for explainer graphics, technical diagrams, timelines, and knowledge cards.",
+ "zh": "用于解释图、技术图解、时间线和知识卡片。"
+ },
+ "guidance": {
+ "en": ["Define 3-5 modules, information flow, visual hierarchy, and short labels.", "Use color groups, arrows, icons, and clean spacing to reduce clutter."],
+ "zh": ["定义 3-5 个模块、信息流、层级和短标签。", "用色块、箭头、图标和留白控制复杂度。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid long paragraphs inside the image.", "Limit module count before adding visual detail."],
+ "zh": ["避免把长段正文塞进画面。", "先限制模块数量,再补视觉细节。"]
+ },
+ "exampleCases": [334, 1, 8]
+ },
+ {
+ "id": "scientific-scale-diagram",
+ "anchor": "tpl-infographic",
+ "cover": "/images/case341.jpg",
+ "title": { "en": "Scientific Scale Diagram", "zh": "科学尺度缩放图" },
+ "description": {
+ "en": "Multi-scale science visuals with readable labels and hierarchy.",
+ "zh": "生成多尺度科学信息图,强调层级、标签和可读性。"
+ },
+ "category": "Charts & Infographics",
+ "styles": ["Infographic", "Charts", "Realistic"],
+ "scenes": ["Education", "Tech"],
+ "tags": ["Infographic", "Chart", "Education"],
+ "useWhen": {
+ "en": "Use when the topic needs micro-to-macro scale comparison and labeled detail windows.",
+ "zh": "用于需要从微观到宏观展示尺度变化的科普主题。"
+ },
+ "guidance": {
+ "en": ["Use 6-8 scale frames and keep each label short.", "Show units, magnification, and distinct scale detail."],
+ "zh": ["使用 6-8 个尺度框,每个标签保持短句。", "展示单位、倍率和不同尺度的细节。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid making every scale frame visually identical.", "Avoid generic magnifying glass icon layouts."],
+ "zh": ["避免所有尺度框长得一样。", "避免通用放大镜式布局。"]
+ },
+ "exampleCases": [341]
+ },
+ {
+ "id": "poster-layout-system",
+ "anchor": "tpl-poster",
+ "cover": "/images/case345.jpg",
+ "title": { "en": "Poster Layout System", "zh": "海报排版系统" },
+ "description": {
+ "en": "Event, product, movie, and social poster compositions.",
+ "zh": "生成活动、产品、电影和社媒传播海报。"
+ },
+ "category": "Posters & Typography",
+ "styles": ["Poster"],
+ "scenes": ["Commerce", "Social"],
+ "tags": ["Poster", "Typography", "Campaign"],
+ "useWhen": {
+ "en": "Use for event posters, movie posters, covers, and social campaign visuals.",
+ "zh": "用于活动海报、电影海报、封面和社媒传播视觉。"
+ },
+ "guidance": {
+ "en": ["Lock subject, headline, layout, palette, and aspect ratio.", "Make the title hierarchy and primary visual clear."],
+ "zh": ["锁定主体、标题、版式、配色和比例。", "突出标题层级和主视觉。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid mixed moodboards or process sheets when asking for one finished poster.", "Constrain extra text and decorative symbols."],
+ "zh": ["需要成品海报时,避免生成拼贴展示板。", "约束多余文字和装饰符号。"]
+ },
+ "exampleCases": [345, 5, 10]
+ },
+ {
+ "id": "sports-campaign-poster",
+ "anchor": "tpl-poster",
+ "cover": "/images/case350.jpg",
+ "title": { "en": "Sports Campaign Poster", "zh": "运动商业 Campaign" },
+ "description": {
+ "en": "Commercial sports visuals with athletes, props, and brand color.",
+ "zh": "生成运动员、道具、品牌色统一的商业运动海报。"
+ },
+ "category": "Posters & Typography",
+ "styles": ["Poster", "Realistic"],
+ "scenes": ["Commerce", "Fashion"],
+ "tags": ["Poster", "Campaign", "Typography"],
+ "useWhen": {
+ "en": "Use for sports brand campaigns, athlete posters, and product-led sport visuals.",
+ "zh": "用于运动品牌 Campaign、运动员海报和运动产品视觉。"
+ },
+ "guidance": {
+ "en": ["Define sport, athlete pose, hero prop, title, and brand palette.", "Use dramatic light, clean composition, and readable data overlays."],
+ "zh": ["定义运动项目、姿态、核心道具、标题和品牌色。", "使用强光影、干净构图和可读数据层。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid wrong equipment and noisy collage.", "Keep the athlete and hero prop visually dominant."],
+ "zh": ["避免错误运动器材和杂乱拼贴。", "让运动员和核心道具占据主导。"]
+ },
+ "exampleCases": [350, 3]
+ },
+ {
+ "id": "conceptual-typography-poster",
+ "anchor": "tpl-poster",
+ "cover": "/images/case355.jpg",
+ "title": { "en": "Conceptual Typography Poster", "zh": "概念字体海报" },
+ "description": {
+ "en": "Premium title-led posters with strong typographic systems.",
+ "zh": "生成以标题文字为主视觉的高级字体海报。"
+ },
+ "category": "Posters & Typography",
+ "styles": ["Poster"],
+ "scenes": ["Creative", "Social"],
+ "tags": ["Typography", "Poster", "Style"],
+ "useWhen": {
+ "en": "Use when the exact title must become the main visual structure.",
+ "zh": "用于标题文字需要成为主视觉结构的海报。"
+ },
+ "guidance": {
+ "en": ["Make typography the hero and spell the title exactly.", "Tie human figures, objects, or landscapes to the title meaning."],
+ "zh": ["让字体成为画面主角,并保证标题拼写准确。", "人物、物体或风景需要服务标题含义。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid default word art, unrelated icons, and misspelled title text.", "Limit the color system to a restrained palette."],
+ "zh": ["避免默认字效、无关图标和标题错字。", "控制配色数量,保持克制。"]
+ },
+ "exampleCases": [355]
+ },
+ {
+ "id": "ink-double-exposure-poster",
+ "anchor": "tpl-poster",
+ "cover": "/images/case359.jpg",
+ "title": { "en": "Ink Double Exposure Poster", "zh": "水墨双重曝光海报" },
+ "description": {
+ "en": "Chinese ink, portrait, and layered atmosphere composition.",
+ "zh": "生成水墨、人像与层叠氛围结合的视觉海报。"
+ },
+ "category": "Posters & Typography",
+ "styles": ["Poster", "Illustration", "Classical"],
+ "scenes": ["Story", "History"],
+ "tags": ["Poster", "Classical", "Style"],
+ "useWhen": {
+ "en": "Use for poetic portrait posters, ink atmospheres, and layered cultural visuals.",
+ "zh": "用于诗意人像海报、水墨氛围和文化主题视觉。"
+ },
+ "guidance": {
+ "en": ["Blend portrait silhouette, ink texture, atmosphere, and negative space.", "Keep composition quiet, premium, and readable."],
+ "zh": ["融合人像剪影、水墨质感、氛围和留白。", "保持构图克制、高级、可读。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid cheap fantasy collage and overloaded scenery.", "Use subtle text or no text unless required."],
+ "zh": ["避免廉价奇幻拼贴和景物堆叠。", "非必要时减少文字。"]
+ },
+ "exampleCases": [359]
+ },
+ {
+ "id": "nature-science-poster",
+ "anchor": "tpl-poster",
+ "cover": "/images/case339.jpg",
+ "title": { "en": "Nature Science Poster", "zh": "自然科普海报" },
+ "description": {
+ "en": "Minimal product-style science posters for natural subjects.",
+ "zh": "生成极简产品感自然科普海报。"
+ },
+ "category": "Posters & Typography",
+ "styles": ["Poster", "Infographic"],
+ "scenes": ["Education"],
+ "tags": ["Poster", "Education", "Style"],
+ "useWhen": {
+ "en": "Use for natural subjects that need a premium, clean science poster feel.",
+ "zh": "用于自然主题的高级、干净科普海报。"
+ },
+ "guidance": {
+ "en": ["Use a clear subject, minimal copy, soft shadows, and disciplined whitespace.", "Keep the scientific label short and visible."],
+ "zh": ["使用清晰主体、少量文案、柔和阴影和充足留白。", "让科普标签短而清楚。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid heavy advertising language.", "Avoid dense encyclopedia blocks."],
+ "zh": ["避免广告感太重。", "避免密集百科正文。"]
+ },
+ "exampleCases": [339]
+ },
+ {
+ "id": "product-commerce-visual",
+ "anchor": "tpl-product",
+ "cover": "/images/case373.jpg",
+ "title": { "en": "Product Commerce Visual", "zh": "商品商业视觉" },
+ "description": {
+ "en": "Product shots, packaging, detail pages, and selling-point layouts.",
+ "zh": "生成商品图、包装、详情页和卖点排版。"
+ },
+ "category": "Products & E-commerce",
+ "styles": ["Product", "Realistic"],
+ "scenes": ["Commerce", "Food"],
+ "tags": ["Product", "Commerce", "Packaging"],
+ "useWhen": {
+ "en": "Use for product hero shots, packaging visuals, detail pages, and sales layouts.",
+ "zh": "用于商品主图、包装视觉、详情页和销售卖点排版。"
+ },
+ "guidance": {
+ "en": ["Define product, selling points, material, scene, lighting, and layout blocks.", "Separate hero product, benefit labels, and supporting props."],
+ "zh": ["定义商品、卖点、材质、场景、光线和版块。", "区分主商品、卖点标签和辅助道具。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid random props that weaken product recognition.", "Constrain packaging text and claim wording."],
+ "zh": ["避免无关道具削弱商品识别。", "约束包装文字和卖点表达。"]
+ },
+ "exampleCases": [373, 358]
+ },
+ {
+ "id": "personalized-beauty-report",
+ "anchor": "tpl-product",
+ "cover": "/images/case353.jpg",
+ "title": { "en": "Personalized Beauty Report", "zh": "个性化美妆报告" },
+ "description": {
+ "en": "Recommendation-report layouts for beauty and lifestyle products.",
+ "zh": "生成美妆与生活方式产品的推荐报告版式。"
+ },
+ "category": "Products & E-commerce",
+ "styles": ["Product", "UI"],
+ "scenes": ["Commerce", "Fashion"],
+ "tags": ["Product", "Layout", "Style"],
+ "useWhen": {
+ "en": "Use for beauty recommendations, skin reports, shopping assistants, and lifestyle product cards.",
+ "zh": "用于美妆推荐、肤质报告、导购助手和生活方式商品卡片。"
+ },
+ "guidance": {
+ "en": ["Use a report-like hierarchy with diagnosis, recommendation, and product cards.", "Keep product images, labels, and ratings aligned."],
+ "zh": ["使用诊断、推荐和商品卡片的报告层级。", "对齐商品图、标签和评分。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid medical claims and unreadable dense notes.", "Keep recommendation logic simple."],
+ "zh": ["避免医疗化结论和难读小字。", "保持推荐逻辑清楚。"]
+ },
+ "exampleCases": [353]
+ },
+ {
+ "id": "brand-identity-package",
+ "anchor": "tpl-brand",
+ "cover": "/images/case354.jpg",
+ "title": { "en": "Brand Identity Package", "zh": "品牌身份包" },
+ "description": {
+ "en": "Logo, palette, typography, applications, and brand touchpoints.",
+ "zh": "生成 Logo、配色、字体、应用触点与品牌系统。"
+ },
+ "category": "Brand & Logos",
+ "styles": ["Brand"],
+ "scenes": ["Commerce"],
+ "tags": ["Brand", "Logo", "Identity"],
+ "useWhen": {
+ "en": "Use for logo systems, brand boards, visual identity kits, and application mockups.",
+ "zh": "用于 Logo 系统、品牌板、VI 套件和应用样机。"
+ },
+ "guidance": {
+ "en": ["Define brand name, positioning, palette, typography, logo usage, and touchpoints.", "Ask for a coherent board with aligned applications."],
+ "zh": ["定义品牌名、定位、配色、字体、Logo 用法和触点。", "要求视觉板中的应用统一对齐。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid unrelated logo variants and inconsistent palettes.", "Keep brand text accurate."],
+ "zh": ["避免无关 Logo 变体和混乱配色。", "保持品牌文字准确。"]
+ },
+ "exampleCases": [354]
+ },
+ {
+ "id": "brand-touchpoint-board",
+ "anchor": "tpl-brand",
+ "cover": "/images/case362.jpg",
+ "title": { "en": "Brand Touchpoint Board", "zh": "品牌触点视觉板" },
+ "description": {
+ "en": "Campaign boards across packaging, social, web, and display contexts.",
+ "zh": "生成包装、社媒、网页和展示场景里的品牌触点板。"
+ },
+ "category": "Brand & Logos",
+ "styles": ["Brand", "Product"],
+ "scenes": ["Commerce", "Social"],
+ "tags": ["Brand", "Identity", "Campaign"],
+ "useWhen": {
+ "en": "Use for multi-touchpoint campaign boards and brand rollout previews.",
+ "zh": "用于多触点 Campaign 展示和品牌落地预览。"
+ },
+ "guidance": {
+ "en": ["Specify touchpoint list, shared visual rules, and mockup arrangement.", "Use one palette and one typography logic across all panels."],
+ "zh": ["指定触点清单、统一视觉规则和样机排列。", "让所有面板共享配色和字体逻辑。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid mixing many unrelated campaign styles.", "Limit touchpoints if readability drops."],
+ "zh": ["避免混入多个无关 Campaign 风格。", "可读性下降时减少触点数量。"]
+ },
+ "exampleCases": [362]
+ },
+ {
+ "id": "architecture-space",
+ "anchor": "tpl-architecture",
+ "cover": "/images/case331.png",
+ "title": { "en": "Architecture & Space", "zh": "建筑与空间" },
+ "description": {
+ "en": "Interior, exterior, city, map, and spatial concept visuals.",
+ "zh": "生成室内、建筑、城市地图和空间概念视觉。"
+ },
+ "category": "Architecture & Spaces",
+ "styles": ["Architecture"],
+ "scenes": ["Travel", "Commerce"],
+ "tags": ["Architecture", "Interior", "Map"],
+ "useWhen": {
+ "en": "Use for interiors, architecture renders, city maps, spatial plans, and environment concepts.",
+ "zh": "用于室内、建筑表现、城市地图、空间规划和环境概念图。"
+ },
+ "guidance": {
+ "en": ["Define viewpoint, scale, material, lighting, and spatial function.", "For maps, specify landmarks, labels, border decoration, and visual accuracy level."],
+ "zh": ["定义视角、尺度、材质、光线和空间功能。", "地图需要指定地标、标签、边框装饰和准确度。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid impossible perspectives unless the output is conceptual.", "Lock map label language and relative placement."],
+ "zh": ["概念图之外要避免不合理透视。", "锁定地图标签语言和相对位置。"]
+ },
+ "exampleCases": [331, 11]
+ },
+ {
+ "id": "realistic-photography",
+ "anchor": "tpl-photo",
+ "cover": "/images/case377.jpg",
+ "title": { "en": "Realistic Photography", "zh": "写实摄影" },
+ "description": {
+ "en": "Lens, lighting, film texture, and documentary-style photo prompts.",
+ "zh": "控制镜头、光线、胶片质感和纪实摄影效果。"
+ },
+ "category": "Photography & Realism",
+ "styles": ["Photography", "Realistic"],
+ "scenes": ["Fashion", "Commerce"],
+ "tags": ["Photography", "Realistic", "Lens"],
+ "useWhen": {
+ "en": "Use for portraits, street photos, product photography, and cinematic realism.",
+ "zh": "用于人像、街拍、商品摄影和电影感写实。"
+ },
+ "guidance": {
+ "en": ["Specify camera distance, lens, light source, texture, background, and motion.", "Use believable imperfections for documentary realism."],
+ "zh": ["指定机位、镜头、光源、质感、背景和动作。", "加入可信的小瑕疵增强纪实感。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid over-polished plastic skin unless commercial beauty is required.", "Add negative constraints for hands, text, and anatomy when needed."],
+ "zh": ["商业美妆之外,避免过度磨皮。", "需要时加入手部、文字、结构类负面约束。"]
+ },
+ "exampleCases": [377]
+ },
+ {
+ "id": "street-accident-moment",
+ "anchor": "tpl-photo",
+ "cover": "/images/case376.jpg",
+ "title": { "en": "Street Accident Moment", "zh": "街头意外瞬间摄影" },
+ "description": {
+ "en": "Realistic phone-photo scenes with negative constraints.",
+ "zh": "生成手机纪实风街头瞬间,并加入负面约束。"
+ },
+ "category": "Photography & Realism",
+ "styles": ["Photography", "Realistic"],
+ "scenes": ["Travel", "Social"],
+ "tags": ["Photography", "Realistic", "Scene"],
+ "useWhen": {
+ "en": "Use for candid street moments, accidental spills, documentary phone shots, and fast action.",
+ "zh": "用于街头抓拍、意外泼洒、手机纪实和快速动作。"
+ },
+ "guidance": {
+ "en": ["Describe the exact moment, camera height, motion blur, and street context.", "Add negative constraints for staged poses and fake ad lighting."],
+ "zh": ["描述具体瞬间、机位高度、运动模糊和街景。", "加入避免摆拍和广告棚拍感的限制。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid too-clean compositions.", "Keep the event plausible and grounded."],
+ "zh": ["避免画面过于干净。", "让事件看起来可信。"]
+ },
+ "exampleCases": [376]
+ },
+ {
+ "id": "illustration-art-style",
+ "anchor": "tpl-illustration",
+ "cover": "/images/case346.jpg",
+ "title": { "en": "Illustration & Art Style", "zh": "插画与艺术风格" },
+ "description": {
+ "en": "Anime, watercolor, ink, material experiments, and art direction.",
+ "zh": "生成动漫、水彩、水墨、材质实验和艺术风格图。"
+ },
+ "category": "Illustration & Art",
+ "styles": ["Illustration"],
+ "scenes": ["Story", "Creative"],
+ "tags": ["Illustration", "Art", "Style"],
+ "useWhen": {
+ "en": "Use for anime, watercolor, ink, decorative art, and style experiments.",
+ "zh": "用于动漫、水彩、水墨、装饰画和风格实验。"
+ },
+ "guidance": {
+ "en": ["Define composition, subject, palette, brush material, mood, and rendering depth.", "For reference images, state what must be preserved."],
+ "zh": ["定义构图、主体、配色、笔触材质、情绪和完成度。", "参考图任务需要说明保留哪些特征。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid style-only prompts without composition.", "Lock character identity when using references."],
+ "zh": ["避免只写风格,不写构图。", "使用参考图时锁定角色识别。"]
+ },
+ "exampleCases": [346, 6]
+ },
+ {
+ "id": "character-design-sheet",
+ "anchor": "tpl-character",
+ "cover": "/images/case347.jpg",
+ "title": { "en": "Character Design Sheet", "zh": "角色设定表" },
+ "description": {
+ "en": "Characters, pose sheets, action grids, and identity consistency.",
+ "zh": "生成角色设定、动作分解和一致性参考。"
+ },
+ "category": "Characters & People",
+ "styles": ["Character", "Illustration"],
+ "scenes": ["Story"],
+ "tags": ["Character", "Pose", "Style"],
+ "useWhen": {
+ "en": "Use for character sheets, pose grids, action breakdowns, and identity references.",
+ "zh": "用于角色设定表、动作网格、动作拆解和一致性参考。"
+ },
+ "guidance": {
+ "en": ["Define identity anchors, outfit, proportions, pose count, and sheet layout.", "Keep face, hairstyle, and costume details consistent."],
+ "zh": ["定义身份锚点、服装、比例、动作数量和版式。", "保持脸、发型和服装细节一致。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid changing costume details between poses.", "Limit pose count if the sheet becomes crowded."],
+ "zh": ["避免不同动作里服装细节变化。", "画面拥挤时减少动作数量。"]
+ },
+ "exampleCases": [347]
+ },
+ {
+ "id": "3d-collectible-toy",
+ "anchor": "tpl-character",
+ "cover": "/images/case378.jpg",
+ "title": { "en": "3D Collectible Toy", "zh": "3D 收藏玩具" },
+ "description": {
+ "en": "Reference photo to premium 3D collectible figure prompts.",
+ "zh": "把参考图转换成高级 3D 收藏玩具效果。"
+ },
+ "category": "Characters & People",
+ "styles": ["3D", "Character"],
+ "scenes": ["Commerce", "Creative"],
+ "tags": ["Character", "3D", "Style"],
+ "useWhen": {
+ "en": "Use for premium collectible figures, avatar toys, blind-box characters, and 3D display renders.",
+ "zh": "用于高级收藏玩具、头像公仔、潮玩角色和 3D 展示图。"
+ },
+ "guidance": {
+ "en": ["Preserve face and outfit anchors from the reference.", "Specify material, packaging, base, lighting, and collectible scale."],
+ "zh": ["保留参考图中的脸和服装锚点。", "指定材质、包装、底座、光线和收藏比例。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid generic toy bodies without identity details.", "Keep packaging text minimal and accurate."],
+ "zh": ["避免没有身份细节的通用玩具。", "包装文字保持少量且准确。"]
+ },
+ "exampleCases": [378]
+ },
+ {
+ "id": "scene-storytelling",
+ "anchor": "tpl-scene",
+ "cover": "/images/case330.png",
+ "title": { "en": "Scene Storytelling", "zh": "场景叙事" },
+ "description": {
+ "en": "Storyboards, worldbuilding, narrative scenes, and emotional pacing.",
+ "zh": "生成分镜、世界观、故事场景和情绪节奏。"
+ },
+ "category": "Scenes & Storytelling",
+ "styles": ["Scenes", "Illustration"],
+ "scenes": ["Story", "Social"],
+ "tags": ["Scene", "Story", "Storyboard"],
+ "useWhen": {
+ "en": "Use for storyboards, worldbuilding, live scenes, and emotional narrative frames.",
+ "zh": "用于分镜、世界观、直播场景和情绪叙事画面。"
+ },
+ "guidance": {
+ "en": ["Define who, where, when, conflict, emotion, and camera framing.", "Use scene details to support narrative rather than decoration."],
+ "zh": ["定义人物、地点、时间、冲突、情绪和机位。", "让场景细节服务故事。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid generic fantasy backgrounds.", "Keep narrative cues visible in the frame."],
+ "zh": ["避免通用幻想背景。", "让故事线索在画面里可见。"]
+ },
+ "exampleCases": [330]
+ },
+ {
+ "id": "history-classical-themes",
+ "anchor": "tpl-history",
+ "cover": "/images/case375.jpg",
+ "title": { "en": "History & Classical Themes", "zh": "历史与古风题材" },
+ "description": {
+ "en": "Dynasty clothing, scroll narrative, poetry, and traditional motifs.",
+ "zh": "生成朝代服饰、长卷叙事、诗词和传统题材。"
+ },
+ "category": "History & Classical Themes",
+ "styles": ["History", "Classical", "Illustration"],
+ "scenes": ["History", "Story"],
+ "tags": ["History", "Classical", "Scroll"],
+ "useWhen": {
+ "en": "Use for ancient Chinese themes, scrolls, dynasty clothing, poetry visuals, and historical scenes.",
+ "zh": "用于古风题材、长卷、朝代服饰、诗词视觉和历史场景。"
+ },
+ "guidance": {
+ "en": ["Specify dynasty, clothing system, object references, layout format, and cultural mood.", "Use scroll, album page, or poster format deliberately."],
+ "zh": ["指定朝代、服饰制度、器物参考、版式和文化气质。", "明确长卷、册页或海报形式。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid mixing dynasties when historical accuracy matters.", "Constrain random modern props."],
+ "zh": ["需要历史准确时,避免朝代混搭。", "约束随机现代物件。"]
+ },
+ "exampleCases": [375, 338]
+ },
+ {
+ "id": "document-publishing",
+ "anchor": "tpl-document",
+ "cover": "/images/case360.jpg",
+ "title": { "en": "Document & Publishing", "zh": "文档与出版物" },
+ "description": {
+ "en": "White papers, manuals, encyclopedic plates, and page systems.",
+ "zh": "生成白皮书、手册、百科图鉴和页面系统。"
+ },
+ "category": "Documents & Publishing",
+ "styles": ["Documents", "Infographic"],
+ "scenes": ["Education", "Tech"],
+ "tags": ["Document", "Publishing", "Layout"],
+ "useWhen": {
+ "en": "Use for white papers, manuals, encyclopedic plates, report pages, and publication systems.",
+ "zh": "用于白皮书、手册、百科图鉴、报告页面和出版系统。"
+ },
+ "guidance": {
+ "en": ["Define page size, columns, table of contents, figure system, and typography hierarchy.", "Use readable headings, tables, labels, and page rhythm."],
+ "zh": ["定义页面尺寸、分栏、目录、图表系统和字体层级。", "使用可读标题、表格、标签和页面节奏。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid tiny dense text.", "Keep charts and captions aligned to the page grid."],
+ "zh": ["避免密集小字。", "让图表和说明对齐页面网格。"]
+ },
+ "exampleCases": [360]
+ },
+ {
+ "id": "concept-product-breakdown",
+ "anchor": "tpl-other",
+ "cover": "/images/case370.jpg",
+ "title": { "en": "Concept Product Breakdown", "zh": "概念产品研发拆解" },
+ "description": {
+ "en": "R&D boards, exploded views, mixed tasks, and special outputs.",
+ "zh": "生成研发板、拆解图、混合任务和特殊输出。"
+ },
+ "category": "Other Use Cases",
+ "styles": ["Other Use Cases", "Product"],
+ "scenes": ["Creative", "Tech"],
+ "tags": ["Creative", "R&D", "Special"],
+ "useWhen": {
+ "en": "Use for experimental prompt tasks, R&D boards, exploded diagrams, and unusual visual systems.",
+ "zh": "用于实验型任务、研发视觉板、拆解图和特殊视觉系统。"
+ },
+ "guidance": {
+ "en": ["Define the artifact type, components, labels, material logic, and final presentation format.", "Use clear callouts and a controlled technical style."],
+ "zh": ["定义产物类型、组件、标签、材质逻辑和展示格式。", "使用清晰标注和受控技术风格。"]
+ },
+ "pitfalls": {
+ "en": ["Avoid unspecified mixed tasks.", "Keep labels short and component relationships visible."],
+ "zh": ["避免任务边界过泛。", "标签要短,组件关系要清楚。"]
+ },
+ "exampleCases": [370, 361]
+ }
+ ]
+}
diff --git a/package.json b/package.json
index ddab3c3..b14dada 100644
--- a/package.json
+++ b/package.json
@@ -4,9 +4,12 @@
"version": "1.0.0",
"type": "module",
"scripts": {
- "predev": "node scripts/generate-site-data.mjs",
+ "generate:site-data": "node scripts/generate-site-data.mjs",
+ "generate:style-skill": "node scripts/generate-style-skill.mjs",
+ "install:skill": "node scripts/install-style-skill.mjs",
+ "predev": "npm run generate:site-data && npm run generate:style-skill",
"dev": "vite",
- "prebuild": "node scripts/generate-site-data.mjs",
+ "prebuild": "npm run generate:site-data && npm run generate:style-skill",
"build": "vite build",
"preview": "vite preview"
},
diff --git a/scripts/generate-site-data.mjs b/scripts/generate-site-data.mjs
index cc5c3ee..fa3f793 100644
--- a/scripts/generate-site-data.mjs
+++ b/scripts/generate-site-data.mjs
@@ -5,27 +5,17 @@ import { fileURLToPath } from 'node:url';
const root = dirname(dirname(fileURLToPath(import.meta.url)));
const docsDir = join(root, 'docs');
const outFile = join(root, 'data', 'cases.json');
+const styleLibraryFile = join(root, 'data', 'style-library.json');
+const styleLibrary = JSON.parse(readFileSync(styleLibraryFile, 'utf8'));
const galleryFiles = [
{ file: 'gallery-part-1.md', part: 1 },
{ file: 'gallery-part-2.md', part: 2 }
];
-const categoryLabels = {
- 'cat-ui': 'UI & Interfaces',
- 'cat-infographic': 'Charts & Infographics',
- 'cat-poster': 'Posters & Typography',
- 'cat-product': 'Products & E-commerce',
- 'cat-brand': 'Brand & Logos',
- 'cat-architecture': 'Architecture & Spaces',
- 'cat-photo': 'Photography & Realism',
- 'cat-illustration': 'Illustration & Art',
- 'cat-character': 'Characters & People',
- 'cat-scene': 'Scenes & Storytelling',
- 'cat-history': 'History & Classical Themes',
- 'cat-document': 'Documents & Publishing',
- 'cat-other': 'Other Use Cases'
-};
+const categoryLabels = Object.fromEntries(
+ styleLibrary.categories.map((category) => [category.anchor, category.value])
+);
const featuredIds = new Set([
1, 2, 6, 17, 166, 310, 330, 334, 338, 341, 344, 346, 350, 353, 354, 359, 360,
@@ -108,29 +98,18 @@ function inferCategory(caseItem) {
function inferTags(caseItem) {
const text = `${caseItem.title} ${caseItem.prompt}`.toLowerCase();
- const styleRules = [
- ['UI', ['ui', 'interface', 'dashboard', '界面']],
- ['Infographic', ['infographic', 'diagram', 'chart', '信息图', '图解']],
- ['Poster', ['poster', 'cover', 'typography', '海报', '封面']],
- ['Realistic', ['photo', 'realistic', 'camera', '写真', '写实']],
- ['Illustration', ['illustration', 'painting', 'watercolor', '插画', '绘画']],
- ['Product', ['product', 'packaging', '商品', '包装']],
- ['Brand', ['brand', 'logo', '品牌', '标志']],
- ['Character', ['character', 'avatar', 'pose', '角色', '人物']],
- ['Classical', ['classical', 'dynasty', 'history', '古风', '历史']],
- ['3D', ['3d', 'toy', 'render', '玩具']]
- ];
- const sceneRules = [
- ['Tech', ['ai', 'rag', 'tech', 'data', '技术', '数据']],
- ['Commerce', ['product', 'brand', 'ad', 'campaign', '商品', '商业', '广告']],
- ['Education', ['guide', 'atlas', 'science', 'learning', '学习', '科普']],
- ['Social', ['social', 'x ', 'wechat', '朋友圈', '社媒']],
- ['Fashion', ['fashion', 'clothing', 'portrait', '服饰', '写真']],
- ['Food', ['food', 'drink', 'coffee', 'tea', '餐厅', '咖啡', '茶']],
- ['Travel', ['city', 'map', 'street', '城市', '地图', '街头']],
- ['Story', ['story', 'scene', 'world', '故事', '场景']],
- ['History', ['history', 'dynasty', 'ancient', '历史', '古希腊', '唐']]
- ];
+ const styleOrder = ['UI', 'Infographic', 'Poster', 'Realistic', 'Illustration', 'Product', 'Brand', 'Character', 'Classical', '3D'];
+ const sceneOrder = ['Tech', 'Commerce', 'Education', 'Social', 'Fashion', 'Food', 'Travel', 'Story', 'History', 'Creative'];
+ const styleByValue = new Map(styleLibrary.styles.map((style) => [style.value, style]));
+ const sceneByValue = new Map(styleLibrary.scenes.map((scene) => [scene.value, scene]));
+ const styleRules = styleOrder.map((value) => [
+ value,
+ (styleByValue.get(value)?.keywords || []).map((key) => key.toLowerCase())
+ ]);
+ const sceneRules = sceneOrder.map((value) => [
+ value,
+ (sceneByValue.get(value)?.keywords || []).map((key) => key.toLowerCase())
+ ]);
const pick = (rules, fallback) => {
const tags = rules
diff --git a/scripts/generate-style-skill.mjs b/scripts/generate-style-skill.mjs
new file mode 100644
index 0000000..b34091d
--- /dev/null
+++ b/scripts/generate-style-skill.mjs
@@ -0,0 +1,169 @@
+import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
+import { dirname, join } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const root = dirname(dirname(fileURLToPath(import.meta.url)));
+const libraryFile = join(root, 'data', 'style-library.json');
+const templatesFile = join(root, 'docs', 'templates.md');
+const skillDir = join(root, 'agents', 'skills', 'gpt-image-2-style-library');
+const referenceFile = join(skillDir, 'references', 'style-library.md');
+
+function readJson(file) {
+ return JSON.parse(readFileSync(file, 'utf8'));
+}
+
+function localImagePath(src) {
+ if (!src.startsWith('/images/')) return '';
+ return join(root, 'data', src.replace(/^\/images\//, 'images/'));
+}
+
+function assertUnique(items, field, label) {
+ const seen = new Set();
+ for (const item of items) {
+ const value = item[field];
+ if (!value) throw new Error(`${label} is missing ${field}`);
+ if (seen.has(value)) throw new Error(`${label} has duplicate ${field}: ${value}`);
+ seen.add(value);
+ }
+}
+
+function assertNoPattern(text, label) {
+ const disallowedPattern = new RegExp(`\\u4e0d\\u662f[\\s\\S]{0,80}\\u800c\\u662f`);
+ if (disallowedPattern.test(text)) {
+ throw new Error(`${label} contains a disallowed Chinese contrast pattern`);
+ }
+}
+
+function validateLibrary(library) {
+ const templateText = readFileSync(templatesFile, 'utf8');
+ const templateAnchors = new Set([...templateText.matchAll(/<a name="([^"]+)"><\/a>/g)].map((match) => match[1]));
+
+ if (!Array.isArray(library.templates) || library.templates.length === 0) {
+ throw new Error('style-library.json must include templates');
+ }
+
+ assertUnique(library.templates, 'id', 'templates');
+ assertUnique(library.categories, 'value', 'categories');
+ assertUnique(library.styles, 'value', 'styles');
+ assertUnique(library.scenes, 'value', 'scenes');
+
+ const templateCovers = new Set();
+ for (const template of library.templates) {
+ if (!templateAnchors.has(template.anchor)) {
+ throw new Error(`template anchor not found in docs/templates.md: ${template.anchor}`);
+ }
+ const cover = localImagePath(template.cover);
+ if (!cover || !existsSync(cover)) {
+ throw new Error(`template cover missing: ${template.cover}`);
+ }
+ if (templateCovers.has(template.cover)) {
+ throw new Error(`template cover is duplicated: ${template.cover}`);
+ }
+ templateCovers.add(template.cover);
+ }
+
+ for (const category of library.categories) {
+ const cover = localImagePath(category.cover);
+ if (!cover || !existsSync(cover)) {
+ throw new Error(`category cover missing: ${category.cover}`);
+ }
+ if (!templateAnchors.has(category.templateAnchor)) {
+ throw new Error(`category template anchor not found: ${category.templateAnchor}`);
+ }
+ }
+}
+
+function label(value, language = 'en') {
+ if (!value) return '';
+ if (typeof value === 'string') return value;
+ return value[language] || value.en || value.zh || '';
+}
+
+function linkForTemplate(library, template) {
+ return `${library.repository}/blob/main/${library.templateDocument}#${template.anchor}`;
+}
+
+function list(values) {
+ return values?.length ? values.join(', ') : 'None';
+}
+
+function bulletList(values, language) {
+ return (values || []).map((value) => ` - ${label(value, language)}`).join('\n');
+}
+
+function renderReference(library) {
+ const lines = [
+ '# GPT-Image2 Style Library Reference',
+ '',
+ 'Generated from `data/style-library.json`. Use this file as the detailed index for choosing GPT-Image2 prompt templates, visual styles, categories, and scene tags.',
+ '',
+ '## Selection Rules',
+ '',
+ '- Match explicit product types to template categories first, such as product, poster, UI, infographic, brand, photography, character, or document.',
+ '- Match visual words to style tags next, such as realistic, 3D, illustration, classical, brand, poster, or UI.',
+ '- Match context words to scene tags next, such as commerce, education, social, food, travel, story, history, tech, or creative.',
+ '- If a request is vague, offer 2-3 strong template directions and ask the user to choose before writing the final prompt.',
+ '- Final output should include the selected template name, a copyable GPT-Image2 prompt, and concise constraints for text, aspect ratio, layout, and negative details.',
+ '',
+ '## Template Index',
+ ''
+ ];
+
+ for (const template of library.templates) {
+ lines.push(`### ${label(template.title, 'en')} / ${label(template.title, 'zh')}`);
+ lines.push('');
+ lines.push(`- ID: \`${template.id}\``);
+ lines.push(`- Category: ${template.category}`);
+ lines.push(`- Styles: ${list(template.styles)}`);
+ lines.push(`- Scenes: ${list(template.scenes)}`);
+ lines.push(`- Tags: ${list(template.tags)}`);
+ lines.push(`- Cover: \`${template.cover}\``);
+ lines.push(`- Template source: ${linkForTemplate(library, template)}`);
+ lines.push(`- Example cases: ${list((template.exampleCases || []).map((id) => `case ${id}`))}`);
+ lines.push('');
+ lines.push('Use when:');
+ lines.push(`- EN: ${label(template.useWhen, 'en')}`);
+ lines.push(`- ZH: ${label(template.useWhen, 'zh')}`);
+ lines.push('');
+ lines.push('Guidance:');
+ lines.push(bulletList(template.guidance?.en, 'en'));
+ lines.push(bulletList(template.guidance?.zh, 'zh'));
+ lines.push('');
+ lines.push('Pitfalls:');
+ lines.push(bulletList(template.pitfalls?.en, 'en'));
+ lines.push(bulletList(template.pitfalls?.zh, 'zh'));
+ lines.push('');
+ }
+
+ lines.push('## Categories');
+ lines.push('');
+ for (const category of library.categories) {
+ lines.push(`- ${category.value}: ${label(category.title, 'zh')} | ${label(category.description, 'en')}`);
+ }
+ lines.push('');
+
+ lines.push('## Styles');
+ lines.push('');
+ for (const style of library.styles) {
+ lines.push(`- ${style.value}: ${label(style.title, 'zh')} | Keywords: ${list(style.keywords)}`);
+ }
+ lines.push('');
+
+ lines.push('## Scenes');
+ lines.push('');
+ for (const scene of library.scenes) {
+ lines.push(`- ${scene.value}: ${label(scene.title, 'zh')} | Keywords: ${list(scene.keywords)}`);
+ }
+ lines.push('');
+
+ const output = `${lines.join('\n')}\n`;
+ assertNoPattern(output, 'generated style-library reference');
+ return output;
+}
+
+const library = readJson(libraryFile);
+validateLibrary(library);
+const reference = renderReference(library);
+mkdirSync(dirname(referenceFile), { recursive: true });
+writeFileSync(referenceFile, reference);
+console.log(`Generated GPT-Image2 style skill reference at ${referenceFile}`);
diff --git a/scripts/install-style-skill.mjs b/scripts/install-style-skill.mjs
new file mode 100644
index 0000000..37d48cc
--- /dev/null
+++ b/scripts/install-style-skill.mjs
@@ -0,0 +1,21 @@
+import { cpSync, existsSync, mkdirSync, rmSync } from 'node:fs';
+import { dirname, join } from 'node:path';
+import { homedir } from 'node:os';
+import { fileURLToPath } from 'node:url';
+
+const root = dirname(dirname(fileURLToPath(import.meta.url)));
+const skillName = 'gpt-image-2-style-library';
+const source = join(root, 'agents', 'skills', skillName);
+const codexHome = process.env.CODEX_HOME || join(homedir(), '.codex');
+const targetRoot = join(codexHome, 'skills');
+const target = join(targetRoot, skillName);
+
+if (!existsSync(join(source, 'SKILL.md'))) {
+ throw new Error(`Skill source is missing: ${source}`);
+}
+
+mkdirSync(targetRoot, { recursive: true });
+rmSync(target, { recursive: true, force: true });
+cpSync(source, target, { recursive: true });
+
+console.log(`Installed ${skillName} to ${target}`);
diff --git a/src/main.jsx b/src/main.jsx
index 3607fff..1aa1465 100644
--- a/src/main.jsx
+++ b/src/main.jsx
@@ -84,141 +84,6 @@ const copy = {
}
};
-const templateCards = [
- {
- anchor: 'tpl-ui',
- cover: '/images/case17.jpg',
- en: ['UI Screenshot System', 'High-fidelity app, web, dashboard, and social interface prompts.'],
- zh: ['UI 截图系统', '生成 App、网页、仪表盘、社媒截图等高保真界面。']
- },
- {
- anchor: 'tpl-infographic',
- cover: '/images/case334.png',
- en: ['Infographic Engine', 'Structured diagrams, timelines, knowledge maps, and explainers.'],
- zh: ['信息图引擎', '生成结构化图解、时间线、知识图谱和技术解释图。']
- },
- {
- anchor: 'tpl-infographic',
- cover: '/images/case341.jpg',
- en: ['Scientific Scale Diagram', 'Multi-scale science visuals with readable labels and hierarchy.'],
- zh: ['科学尺度缩放图', '生成多尺度科学信息图,强调层级、标签和可读性。']
- },
- {
- anchor: 'tpl-poster',
- cover: '/images/case345.jpg',
- en: ['Poster Layout System', 'Event, product, movie, and social poster compositions.'],
- zh: ['海报排版系统', '生成活动、产品、电影和社媒传播海报。']
- },
- {
- anchor: 'tpl-poster',
- cover: '/images/case350.jpg',
- en: ['Sports Campaign Poster', 'Commercial sports visuals with athletes, props, and brand color.'],
- zh: ['运动商业 Campaign', '生成运动员、道具、品牌色统一的商业运动海报。']
- },
- {
- anchor: 'tpl-poster',
- cover: '/images/case355.jpg',
- en: ['Conceptual Typography Poster', 'Premium title-led posters with strong typographic systems.'],
- zh: ['概念字体海报', '生成以标题文字为主视觉的高级字体海报。']
- },
- {
- anchor: 'tpl-poster',
- cover: '/images/case359.jpg',
- en: ['Ink Double Exposure Poster', 'Chinese ink, portrait, and layered atmosphere composition.'],
- zh: ['水墨双重曝光海报', '生成水墨、人像与层叠氛围结合的视觉海报。']
- },
- {
- anchor: 'tpl-poster',
- cover: '/images/case339.jpg',
- en: ['Nature Science Poster', 'Minimal product-style science posters for natural subjects.'],
- zh: ['自然科普海报', '生成极简产品感自然科普海报。']
- },
- {
- anchor: 'tpl-product',
- cover: '/images/case373.jpg',
- en: ['Product Commerce Visual', 'Product shots, packaging, detail pages, and selling-point layouts.'],
- zh: ['商品商业视觉', '生成商品图、包装、详情页和卖点排版。']
- },
- {
- anchor: 'tpl-product',
- cover: '/images/case353.jpg',
- en: ['Personalized Beauty Report', 'Recommendation-report layouts for beauty and lifestyle products.'],
- zh: ['个性化美妆报告', '生成美妆与生活方式产品的推荐报告版式。']
- },
- {
- anchor: 'tpl-brand',
- cover: '/images/case354.jpg',
- en: ['Brand Identity Package', 'Logo, palette, typography, applications, and brand touchpoints.'],
- zh: ['品牌身份包', '生成 Logo、配色、字体、应用触点与品牌系统。']
- },
- {
- anchor: 'tpl-brand',
- cover: '/images/case362.jpg',
- en: ['Brand Touchpoint Board', 'Campaign boards across packaging, social, web, and display contexts.'],
- zh: ['品牌触点视觉板', '生成包装、社媒、网页和展示场景里的品牌触点板。']
- },
- {
- anchor: 'tpl-architecture',
- cover: '/images/case331.png',
- en: ['Architecture & Space', 'Interior, exterior, city, map, and spatial concept visuals.'],
- zh: ['建筑与空间', '生成室内、建筑、城市地图和空间概念视觉。']
- },
- {
- anchor: 'tpl-photo',
- cover: '/images/case377.jpg',
- en: ['Realistic Photography', 'Lens, lighting, film texture, and documentary-style photo prompts.'],
- zh: ['写实摄影', '控制镜头、光线、胶片质感和纪实摄影效果。']
- },
- {
- anchor: 'tpl-photo',
- cover: '/images/case376.jpg',
- en: ['Street Accident Moment', 'Realistic phone-photo scenes with negative constraints.'],
- zh: ['街头意外瞬间摄影', '生成手机纪实风街头瞬间,并加入负面约束。']
- },
- {
- anchor: 'tpl-illustration',
- cover: '/images/case346.jpg',
- en: ['Illustration & Art Style', 'Anime, watercolor, ink, material experiments, and art direction.'],
- zh: ['插画与艺术风格', '生成动漫、水彩、水墨、材质实验和艺术风格图。']
- },
- {
- anchor: 'tpl-character',
- cover: '/images/case347.jpg',
- en: ['Character Design Sheet', 'Characters, pose sheets, action grids, and identity consistency.'],
- zh: ['角色设定表', '生成角色设定、动作分解和一致性参考。']
- },
- {
- anchor: 'tpl-character',
- cover: '/images/case378.jpg',
- en: ['3D Collectible Toy', 'Reference photo to premium 3D collectible figure prompts.'],
- zh: ['3D 收藏玩具', '把参考图转换成高级 3D 收藏玩具效果。']
- },
- {
- anchor: 'tpl-scene',
- cover: '/images/case330.png',
- en: ['Scene Storytelling', 'Storyboards, worldbuilding, narrative scenes, and emotional pacing.'],
- zh: ['场景叙事', '生成分镜、世界观、故事场景和情绪节奏。']
- },
- {
- anchor: 'tpl-history',
- cover: '/images/case375.jpg',
- en: ['History & Classical Themes', 'Dynasty clothing, scroll narrative, poetry, and traditional motifs.'],
- zh: ['历史与古风题材', '生成朝代服饰、长卷叙事、诗词和传统题材。']
- },
- {
- anchor: 'tpl-document',
- cover: '/images/case360.jpg',
- en: ['Document & Publishing', 'White papers, manuals, encyclopedic plates, and page systems.'],
- zh: ['文档与出版物', '生成白皮书、手册、百科图鉴和页面系统。']
- },
- {
- anchor: 'tpl-other',
- cover: '/images/case370.jpg',
- en: ['Concept Product Breakdown', 'R&D boards, exploded views, mixed tasks, and special outputs.'],
- zh: ['概念产品研发拆解', '生成研发板、拆解图、混合任务和特殊输出。']
- }
-];
-
const labelMap = {
zh: {
'Architecture & Spaces': '建筑与空间',
@@ -263,111 +128,41 @@ const labelMap = {
}
};
-const templateVisuals = {
- 'tpl-ui': {
- cover: '/images/category-covers/ui.jpg',
- category: 'UI & Interfaces',
- tags: ['UI', 'Dashboard', 'Screenshot']
- },
- 'tpl-infographic': {
- cover: '/images/category-covers/infographic.jpg',
- category: 'Charts & Infographics',
- tags: ['Infographic', 'Chart', 'Education']
- },
- 'tpl-poster': {
- cover: '/images/category-covers/poster.jpg',
- category: 'Posters & Typography',
- tags: ['Poster', 'Typography', 'Campaign']
- },
- 'tpl-product': {
- cover: '/images/category-covers/product.jpg',
- category: 'Products & E-commerce',
- tags: ['Product', 'Commerce', 'Packaging']
- },
- 'tpl-brand': {
- cover: '/images/category-covers/brand.jpg',
- category: 'Brand & Logos',
- tags: ['Brand', 'Logo', 'Identity']
- },
- 'tpl-architecture': {
- cover: '/images/category-covers/architecture.jpg',
- category: 'Architecture & Spaces',
- tags: ['Architecture', 'Interior', 'Map']
- },
- 'tpl-photo': {
- cover: '/images/category-covers/photo.jpg',
- category: 'Photography & Realism',
- tags: ['Photography', 'Realistic', 'Lens']
- },
- 'tpl-illustration': {
- cover: '/images/category-covers/illustration.jpg',
- category: 'Illustration & Art',
- tags: ['Illustration', 'Art', 'Style']
- },
- 'tpl-character': {
- cover: '/images/category-covers/character.jpg',
- category: 'Characters & People',
- tags: ['Character', 'Pose', '3D']
- },
- 'tpl-scene': {
- cover: '/images/category-covers/scene.jpg',
- category: 'Scenes & Storytelling',
- tags: ['Scene', 'Story', 'Storyboard']
- },
- 'tpl-history': {
- cover: '/images/category-covers/history.jpg',
- category: 'History & Classical Themes',
- tags: ['History', 'Classical', 'Scroll']
- },
- 'tpl-document': {
- cover: '/images/category-covers/document.jpg',
- category: 'Documents & Publishing',
- tags: ['Document', 'Publishing', 'Layout']
- },
- 'tpl-other': {
- cover: '/images/category-covers/other.jpg',
- category: 'Other Use Cases',
- tags: ['Creative', 'R&D', 'Special']
- }
-};
-
function cx(...classes) {
return classes.filter(Boolean).join(' ');
}
-function localizeLabel(value, language) {
+function textFor(value, language) {
+ if (!value) return '';
+ if (typeof value === 'string') return value;
+ return value[language] || value.en || value.zh || '';
+}
+
+function localizeLabel(value, language, styleLibrary) {
+ const libraryItems = [
+ ...(styleLibrary?.categories || []),
+ ...(styleLibrary?.styles || []),
+ ...(styleLibrary?.scenes || [])
+ ];
+ const match = libraryItems.find((item) => item.value === value || item.id === value);
+ if (match) return textFor(match.title, language);
return labelMap[language]?.[value] || value;
}
-function localizeTemplateTag(value, language) {
- const zhTags = {
- Art: '艺术',
- Campaign: '商业 Campaign',
- Chart: '图表',
- Classical: '古典',
- Creative: '创意',
- Dashboard: '仪表盘',
- Document: '文档',
- Education: '教育',
- Identity: '身份系统',
- Interior: '室内',
- Layout: '版式',
- Lens: '镜头',
- Logo: 'Logo',
- Map: '地图',
- Packaging: '包装',
- Pose: '动作',
- Publishing: '出版',
- 'R&D': '研发',
- Scene: '场景',
- Screenshot: '截图',
- Scroll: '长卷',
- Special: '特殊输出',
- Storyboard: '分镜',
- Style: '风格',
- Typography: '字体'
- };
- return language === 'zh' ? zhTags[value] || localizeLabel(value, language) : value;
+function localizeTemplateTag(value, language, styleLibrary) {
+ const tagLabel = styleLibrary?.tagLabels?.[value];
+ if (tagLabel) return textFor(tagLabel, language);
+ return localizeLabel(value, language, styleLibrary);
+}
+
+function orderByLibrary(values, libraryItems = []) {
+ const order = new Map(libraryItems.map((item, index) => [item.value, index]));
+ return [...values].sort((a, b) => {
+ const aOrder = order.has(a) ? order.get(a) : Number.MAX_SAFE_INTEGER;
+ const bOrder = order.has(b) ? order.get(b) : Number.MAX_SAFE_INTEGER;
+ if (aOrder !== bOrder) return aOrder - bOrder;
+ return a.localeCompare(b);
+ });
}
function useCopy() {
@@ -472,9 +267,10 @@ function LanguageSwitch({ language, setLanguage }) {
);
}
-function TemplateSection({ language }) {
+function TemplateSection({ language, styleLibrary }) {
const t = copy[language];
- const repoDocsUrl = `${fallbackRepoUrl}/blob/main/docs/templates.md`;
+ const repoDocsUrl = `${styleLibrary.repository || fallbackRepoUrl}/blob/main/${styleLibrary.templateDocument}`;
+ const templates = styleLibrary.templates || [];
return (
<section className="templateSection" id="templates">
@@ -490,19 +286,18 @@ function TemplateSection({ language }) {
</a>
</div>
<div className="caseGrid templateCaseGrid">
- {templateCards.map((item, index) => {
- const [title, description] = item[language];
- const visual = templateVisuals[item.anchor] || templateVisuals['tpl-other'];
- const cover = item.cover || visual.cover;
+ {templates.map((item, index) => {
+ const title = textFor(item.title, language);
+ const description = textFor(item.description, language);
return (
- <article className="caseCard templateVisualCard" key={`${item.anchor}-${title}`}>
+ <article className="caseCard templateVisualCard" key={item.id}>
<a
className="caseImage templateImage"
href={`${repoDocsUrl}#${item.anchor}`}
target="_blank"
rel="noreferrer"
>
- <img src={cover} alt={title} loading="lazy" />
+ <img src={item.cover} alt={title} loading="lazy" />
<span className="caseBadge">
{language === 'zh' ? '模板' : 'Template'} {String(index + 1).padStart(2, '0')}
</span>
@@ -510,13 +305,13 @@ function TemplateSection({ language }) {
<div className="caseBody">
<div className="caseMeta">
<span>{t.templateKind}</span>
- <span>{localizeLabel(visual.category, language)}</span>
+ <span>{localizeLabel(item.category, language, styleLibrary)}</span>
</div>
<h3>{title}</h3>
<p>{description}</p>
<div className="tagRow">
- {visual.tags.map((tag) => (
- <span key={`${item.anchor}-${tag}`}>{localizeTemplateTag(tag, language)}</span>
+ {(item.tags || []).map((tag) => (
+ <span key={`${item.id}-${tag}`}>{localizeTemplateTag(tag, language, styleLibrary)}</span>
))}
</div>
<div className="cardActions singleAction">
@@ -534,7 +329,7 @@ function TemplateSection({ language }) {
);
}
-function PromptCard({ caseItem, copied, language, onCopy }) {
+function PromptCard({ caseItem, copied, language, onCopy, styleLibrary }) {
const t = copy[language];
const tags = [...new Set([...caseItem.styles, ...caseItem.scenes])].slice(0, 4);
@@ -546,7 +341,7 @@ function PromptCard({ caseItem, copied, language, onCopy }) {
</a>
<div className="caseBody">
<div className="caseMeta">
- <span>{localizeLabel(caseItem.category, language)}</span>
+ <span>{localizeLabel(caseItem.category, language, styleLibrary)}</span>
{caseItem.sourceUrl ? (
<a href={caseItem.sourceUrl} target="_blank" rel="noreferrer">
{caseItem.sourceLabel}
@@ -559,7 +354,7 @@ function PromptCard({ caseItem, copied, language, onCopy }) {
<p>{caseItem.promptPreview}</p>
<div className="tagRow">
{tags.map((tag) => (
- <span key={`${caseItem.id}-${tag}`}>{localizeLabel(tag, language)}</span>
+ <span key={`${caseItem.id}-${tag}`}>{localizeLabel(tag, language, styleLibrary)}</span>
))}
</div>
<div className="cardActions">
@@ -578,6 +373,7 @@ function PromptCard({ caseItem, copied, language, onCopy }) {
function App() {
const [siteData, setSiteData] = useState(null);
+ const [styleLibrary, setStyleLibrary] = useState(null);
const [language, setLanguage] = useState(() => localStorage.getItem('language') || 'en');
const [query, setQuery] = useState('');
const [category, setCategory] = useState('All');
@@ -589,10 +385,15 @@ function App() {
useEffect(() => {
let cancelled = false;
- fetch('/cases.json')
- .then((response) => response.json())
- .then((payload) => {
- if (!cancelled) setSiteData(payload);
+ Promise.all([
+ fetch('/cases.json').then((response) => response.json()),
+ fetch('/style-library.json').then((response) => response.json())
+ ])
+ .then(([payload, library]) => {
+ if (!cancelled) {
+ setSiteData(payload);
+ setStyleLibrary(library);
+ }
});
return () => {
cancelled = true;
@@ -627,9 +428,22 @@ function App() {
});
}, [siteData, query, category, style, scene]);
+ const orderedCategories = useMemo(
+ () => (siteData && styleLibrary ? orderByLibrary(siteData.categories, styleLibrary.categories) : []),
+ [siteData, styleLibrary]
+ );
+ const orderedStyles = useMemo(
+ () => (siteData && styleLibrary ? orderByLibrary(siteData.styles, styleLibrary.styles) : []),
+ [siteData, styleLibrary]
+ );
+ const orderedScenes = useMemo(
+ () => (siteData && styleLibrary ? orderByLibrary(siteData.scenes, styleLibrary.scenes) : []),
+ [siteData, styleLibrary]
+ );
+
const visibleCases = filteredCases.slice(0, 72);
- if (!siteData) {
+ if (!siteData || !styleLibrary) {
return (
<main>
<div className="loadingScreen">
@@ -676,7 +490,7 @@ function App() {
))}
</section>
- <TemplateSection language={language} />
+ <TemplateSection language={language} styleLibrary={styleLibrary} />
<section className="gallerySection" id="gallery">
<div className="sectionHead">
@@ -699,9 +513,9 @@ function App() {
<strong>{t.category}</strong>
<div className="filterRow">
<FilterPill active={category === 'All'} onClick={() => setCategory('All')}>{t.all}</FilterPill>
- {siteData.categories.map((item) => (
+ {orderedCategories.map((item) => (
<FilterPill key={item} active={category === item} onClick={() => setCategory(item)}>
- {localizeLabel(item, language)}
+ {localizeLabel(item, language, styleLibrary)}
</FilterPill>
))}
</div>
@@ -710,9 +524,9 @@ function App() {
<strong>{t.style}</strong>
<div className="filterRow">
<FilterPill active={style === 'All'} onClick={() => setStyle('All')}>{t.all}</FilterPill>
- {siteData.styles.map((item) => (
+ {orderedStyles.map((item) => (
<FilterPill key={item} active={style === item} onClick={() => setStyle(item)}>
- {localizeLabel(item, language)}
+ {localizeLabel(item, language, styleLibrary)}
</FilterPill>
))}
</div>
@@ -721,9 +535,9 @@ function App() {
<strong>{t.scene}</strong>
<div className="filterRow">
<FilterPill active={scene === 'All'} onClick={() => setScene('All')}>{t.all}</FilterPill>
- {siteData.scenes.map((item) => (
+ {orderedScenes.map((item) => (
<FilterPill key={item} active={scene === item} onClick={() => setScene(item)}>
- {localizeLabel(item, language)}
+ {localizeLabel(item, language, styleLibrary)}
</FilterPill>
))}
</div>
@@ -745,6 +559,7 @@ function App() {
copied={copiedId === caseItem.id}
language={language}
onCopy={copyPrompt}
+ styleLibrary={styleLibrary}
key={caseItem.id}
/>
))}