Community图像github.com

首屏英雄图样稿

做获奖水准的落地页首屏图像:一个冲出画框的主体、有名字的光、有纹理的底、贴着主体的大字、可读的界面,以及一种大胆的强调色。

首屏英雄图样稿 是什么?

这个技能让图像模型画出网站第一屏的样子,而不是写代码。每一稿都有一个醒目主体、真字、安静的界面和单一强调色,然后再检查并定点修改。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/TamizhSK/kiln-skills/tree/HEAD/skills/hero-mockups

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

头部页面模型设计

与 ui-color 配合评估渲染图的色彩,与 ui-award-craft 配合构建所选方向。

网站首页的图像,看起来像获奖海报:一个在纹理背景上的引人注目的主体,与主体相连的大号字体,一个安静但真实的界面,以及一个让页面跳脱的强调色。它们是网站的图像,而非代码:图像模型一次性构架字体、主体和光线,使标题能够位于面孔后方或捕捉物体的光泽。

在编写页面之前,请阅读 references/craft.md。它包含字体、标题和布局的决策树,色彩公式,以及导致头部页面看起来像自动生成的征兆。

评判标准

每一页都必须通过全部八条。每条标准的存在是因为打破它们会使真实的页面看起来像自动生成或平淡无奇。

  1. 真实的商业意图,一瞥即明。 陌生人能从图片、文字标志和按钮中识别出业务。导航和按钮使用行业自身的词汇(如“度假”、“预订度假”)。隐藏业务的巧妙隐喻会失败:没人能看清页面的用途。
  2. 一个海报主体,足够大且冲出画面。 一个产品、物品或人物。画面裁剪它,或者其一部分(丝绸、丝带、电缆、光线、玻璃管、水花、花瓣)横扫画面并延伸至边缘。正中悬浮并四周留白的产品会像产品目录照。运动场景应拍摄为海报:一位舞者腾空或一位皮划艇运动员划桨,充满画面,背景简单或舞台化。绝不要在小场景中的人物:微小的面孔、手和人群是图像模型暴露自身的破绽。
  3. 在安静背景上的一个大胆强调色。 强调色是页面中最鲜艳的颜色,在色轮上与另两种颜色相距 120-180°(至少 75°),覆盖画面 15-30% 的区域。背景最多保留其色度的 55%:一个几乎与强调色一样鲜艳的背景(如钴蓝色的墙衬托橙色太阳)会产生两个响亮颜色,没有一个主导。强调色应是主体自身的主色(其光线、油漆或材质),可延伸到标题。选择钴蓝色的遮阳伞,而非钴蓝和白色相间的遮阳伞:双色主体会削弱强调色。绝不要用细线或小物件,因为礼貌的强调色会使页面平淡无奇。当增加比例会暴露破绽时,就停下来:在 320 像素宽度下阅读感强烈的页面胜过数字更高的页面。craft.md 中的两条路径会改变这些规则:色调路径(tonal)中,强调色是光线本身,与背景同色系但远比其他内容亮;响亮背景路径(loud-field)中,背景是产品自身的颜色,全饱和度。
  4. 与主体相连的标题。 主体照亮、填充或穿过文字,或者其中一个字采用主体的强调色(craft.md 的决策树)。与图片无关联的标题会显得像是贴上去的。
  5. 在主体后均匀排版的文字。 将标题设置成主体仿佛后来才移动到其前面:移除主体后,文字会完美地间隔排列。绝不要在单词中为容纳主体而打开空隙;那看起来像是文字为头部而中断。主体可以隐藏一个仍能读出的字母(如 VIVID 中间的 V),绝不可多于一个。
  6. 材质感,而非纯色。 背景是品牌世界中的石膏、纸张、墨水、玻璃、金属或织物。平坦的数字色彩是第一个看起来像自动生成的迹象。
  7. 在具名灯光下拍摄而非渲染。 每页指定 craft.md 中的一个灯光配置。未告知模型的灯光会产生柔和均匀的光线,是平淡页面的目录感。人物应有真实皮肤和胶片颗粒。物体保持真实比例和清晰的小细节。不得有火、熔岩或闪电,除非这些是产品本身。
  8. 最多三个小字幕,每个为真实信息:日期、规格、价格、地点。每个角落都有的口号是填充物。

绝不使用其他公司的名称、标志、产品或真实人物。当用户模拟自己品牌时,使用其真实名称、产品和词汇。

参考

每页都是一个参考页的近似变形:一张你欣赏的头部页面截图,来自用户自己的参考文件夹(Awwwards、Godly 和 Land-book 都是不错的来源)。首先请求该文件夹。参考作为图像模型编辑的底图,其布局、字体系统、小字体和完成度会得以保留,而纯文字提示则会丢失这些元素。页面会替换品牌、主体和所有文字。

  • 将每个参考裁剪到仅头部页面区域,比例为 3:2,去掉相邻图像的条纹,并将裁剪结果保存到 <folder>/out/refs/。使用海报类头部页面;跳过带有标志行和 UI 卡片的 SaaS 头部页面,后者会产生模板化的页面。
  • 绝不复制参考中的人物、标志或文字,且绝不发布或提交截图:它们是其他设计师的作品。
  • 没有参考?将 ref 字段留空。页面的 layout 随后变为书面构成。虽然可行,但需要更多次重试。

运行

需要 Python 3 和 numpy、requests 及 Pillow 库,以及环境变量中或项目文件夹(或上层文件夹)中的 .env 文件中设置的 OPENAI_API_KEY。文字检查使用 macOS Vision;在其他系统上该检查会被跳过,因此需用肉眼逐字阅读。

python3 -I <skill>/scripts/heroes.py <check|render|fix|review|board> --project <folder>

<folder> 包含 concepts.json。所有生成内容输出到 <folder>/out/;请将 out/ 排除在版本控制之外。

1. 规划批次

询问要有多少页面(如果未指定则默认为四页)以及针对哪些业务;若未提供则虚构一些。然后设定批次:

  • 多个业务:每个业务类型不同(产品、酒店、工作室、房地产、硬件、食品、文化、画廊展览)。单一业务:每页使用不同的参考和主体。
  • 每个参考只用一次。
  • 最多一半的页面共用一种布局;六页及以上至少使用四种布局(craft.md)。
  • 强调色均匀分布在色轮上:连续 30° 范围内不超过两个强调色。
  • 向已有页面添加内容?用 check --also 传递已有的 concepts.json,查看每个新强调色与其邻近色之间的关系。

2. 编写页面

每页在 concepts.json 中以短页面名作为键写一项:

字段内容说明
ref在 out/refs/ 中的裁剪后参考图:绝对路径,或相对于项目文件夹的路径
brand, what品牌名称(用户自己的或虚构的);销售内容及目标客户
layoutcraft.md 中的一种布局
subject海报主体的一句话描述,命名其材质和灯光。将其裁剪留给 variations:此处写的裁剪会与更改它的变形产生矛盾
background背景的材质(标准 6)
lightcraft.md 中的一种灯光设置名称及其照射位置:“来自左上方的舞台聚光灯,照亮舞者,舞台渐暗”
headline一到四个字:朴素的承诺、名称或地点;当字体系统为单个巨大字词时可用一个词。绝不使用成语双关
headline_note字体系统(craft.md 的决策树)、哪个字使用强调色、主体对字母产生的影响以及其隐藏的单个字母。它将逐字写入图像提示,因此应编写为对模型的指令
ui所有小文字,用引号括起:文字标志、导航、按钮、最多三个字幕。为参考中显示的每个元素给出文字,或说明其已删除(“无第二个按钮”):模型会用一个已命名槽位的副本填充未命名的槽位
palette三个 [name, hex]:背景色、第二色(文字和安静表面)、强调色
route留空,或使用 tonal(当强调色是背景色系中的光线本身时),或 loud-field(当背景是产品自身的颜色且全饱和度时,见 craft.md)
variations同一页面的五个近邻变形,每个改变一个方面:裁剪(整个主体或两边缘截断)、瞬间(静止或运动峰值)、相机角度(更低或更近)或其长程部分的扫过范围。五个是因为出色的渲染图很罕见,且同一提示的渲染结果差异很大。绝不改变强调色,因为提示和检查会将所有渲染结果限制在页面的调色板内。也绝不要是五个不同的想法:用户从他们喜欢的页面版本中选择一个

在开始渲染之前检查计划:

python3 -I <skill>/scripts/heroes.py check --project <folder>

即使在无渲染图的情况下,它也会在瞬间检查调色板、色调分布、布局、参考图以及缺失的字段。修正 concepts.json 中所有标记的问题;切勿手动调整色相差距。

3. 渲染

python3 -I <skill>/scripts/heroes.py render --project <folder>

每页渲染五张,每次十二张,约一分钟一波,每张约 $0.05。--dry-run 会打印提示。在运行超过 $5 之前显示成本。

4. 检查与修复

再次运行 check:它会读取每个文字并测量每个强调色的占比。然后在全尺寸和 320 像素宽度下打开每张渲染图(review 会生成两者),并逐一检查 craft.md 的征兆。

对接近完美但有瑕疵的渲染图进行编辑,而非重新渲染:编辑保留所有内容并只更改一个指定项。

python3 -I <skill>/scripts/heroes.py fix --project <folder> --render <page>-2 --note "缩短 L 的尾部,使其不与他的衣领接触"

fix 会生成两个版本。保留较好者,将另一个与它所取代的渲染图一同移至 out/variants/superseded/;绝不删除。一个渲染图有两个问题则依次进行两次编辑:文字至少能保持三轮。只有当页面本身错误(主体、参考或标题)时,才通过更改其条目来重新渲染。

5. 展示

python3 -I <skill>/scripts/heroes.py board --project <folder>

所有渲染图以一个暗色画廊的形式呈现,按页面编号,位于 <folder>/out/board/variants/index.html。

模型

GPT Image 2.6 Sunburst,质量设置为“高”(MODEL 在脚本中)。它在并排测试中优于 Nano Banana 2.1 和 Nano Banana Pro,也优于其速度更快的双胞胎 GPT Image 2.6 Flare。基于相同的十个提示和参考图,Flare 在同价位下速度快三分之一,但它会丢失产品细节(如罐头的风味图案和拉环)、拼错文字标志并将小文字设得更小。“xhigh”和“max”成本是 3.4 和 7.7 倍,仅用于更精细的微纹理。在运行之前,检查 OpenAI 模型列表中是否有比 2.6 系列更新的 GPT Image 模型,并告知用户。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

launch-audit

Audits an app built fast with AI for what can get it hacked, sued or hit with a surprise bill: leaked keys, open databases, no rate limits or spending caps, injection, AI features, payments, privacy and consent, texts, kids' and face data, app store and accessibility rules. Every finding comes with proof and a fix. Use when someone asks to audit, security-check or launch-check an app.

TamizhSK/eli14

Explains anything the way a great teacher would to a sharp 14-year-old: the answer first, real terms defined in plain words, and an analogy only where an idea is genuinely hard. Use when someone says \"explain like I'm 14\", \"eli5\", \"break it down\" or \"I don't get it\", or asks what something is or how it works. Not for questions about their own code; a full lesson goes to learn-anything.

TamizhSK/learn-anything

Builds a short interactive lesson that opens in Chrome: one idea per screen on a real example, key terms first, a predict-first question, small demos that change on the narrator's word, quick checks and a read-along voice. Takes about ten minutes; the voice costs a few cents. Use when someone wants to properly learn a topic (\"teach me X\", \"make me a lesson\"). A quick answer goes to eli14.

TamizhSK/store-screenshots

Designs and renders App Store and Google Play screenshot sets that compete on the store: a two-frame hook, frames that read as one world, one signature move, real app UI at its best moment and one brand style, built in HTML from real captures and rendered to each store's exact sizes. Use when someone wants store screenshots, concepts or variations, a redesign of a set, or a critique of one.

TamizhSK/ui-award-craft

Award-level web and app design with no AI slop: explores 3+ rendered directions, designs from one token system, generates its own assets, polishes everything, verifies every page and animation frame by frame at every width, then has a fresh critic score it against Awwwards and Apple Design Award criteria. Use when a site, landing page or app screen must wow, look world-class or win awards. Not for routine fixes.

ui-color

Critiques the colour of a screen, image or palette with measurements: routes by what it's for (graphic, landing page, app, palette), measures 60/30/10 area, lightness, hue gaps, chroma, temperature and APCA/WCAG contrast, and ranks fixes in exact OKLCH and hex with before/after previews. Use when colours clash or feel muddy, garish or off, or to judge a palette, an accent, or someone's colour critique.

ui-motion

Decides how an interface moves and responds: whether it should animate at all, response time and optimistic updates, staging and stagger, easing, duration, origin, springs, arcs, icon swaps, press and hover, interruptibility, with exact recipes for modals, drawers, popovers, tooltips, toasts and async buttons. Use when animating UI or reviewing motion, or when it feels slow, janky or off. Usability laws go to ux-laws.

ui-polish

Takes a working interface from fine to finished: scores it, names the weakest thing, designs every state, runs the 20 design tips and the details table (type, spacing, grays, shadows, hit areas, focus, contrast, layout shift, forms, empty states), then verifies frame by frame with capture scripts. Use when a screen works but feels off, to polish or review UI. AI-looking screens go to ui-unslop first; motion design goes to ui-motion.

ux-laws

Designs or reviews a screen or flow by the laws of UX as one procedure: name the job, cut what doesn't help, take work off people (Tesler, defaults, recognition), group (proximity, common region, similarity), point the eye at one thing, size targets and choices (Fitts, Hick, Miller, Jakob, Postel), carry people to the end, then polish. Use when a screen or flow (forms, settings, checkout, onboarding, dashboards) feels confusing, cluttered or hard to use.

相关技能