{"slug":"brand-kit","title":"brand-kit","summary":"店铺品牌视觉锁定。一份 brand.yaml 定义模特、色温、构图、留白与文案语气，所有生图技能读它，保证跨 SKU 视觉统一。当用户说「统一风格」「同一个模特」「店铺调性」「品牌规范」「几百个 SKU 看起来像一家店」时使用。","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-09-28T16:27:19.076328Z","repo":{"url":"https://github.com/dlazy-ai/ecommerce-skills","stars":68,"forks":9,"license":"MIT","updatedAt":"2026-11-09T03:52:06Z"},"bodyHtml":"<hr>\n<h2>name: brand-kit\ndescription: 店铺品牌视觉锁定。一份 brand.yaml 定义模特、色温、构图、留白与文案语气，所有生图技能读它，保证跨 SKU 视觉统一。当用户说「统一风格」「同一个模特」「店铺调性」「品牌规范」「几百个 SKU 看起来像一家店」时使用。</h2>\n<h1>brand-kit — 店铺视觉统一</h1>\n<p>一套图和一家店的区别，在于<strong>第 200 个 SKU 是否还长得像第 1 个</strong>。</p>\n<p>靠每次重写 prompt 做不到这件事——人会忘、会改词、会换说法。\n靠一份可复用的规范文件才做得到。</p>\n<hr>\n<h2>一、它解决什么</h2>\n<table>\n<thead>\n<tr>\n<th>没有 brand-kit</th>\n<th>有 brand-kit</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>每个技能各写各的模特描述</td>\n<td>一处定义，全部技能读同一份</td>\n</tr>\n<tr>\n<td>同店铺 SKU 模特脸不一样</td>\n<td>锁定同一张脸参考图</td>\n</tr>\n<tr>\n<td>色温忽冷忽暖、背景忽深忽浅</td>\n<td>光位、色调、背景写死在规范里</td>\n</tr>\n<tr>\n<td>改一次调性要翻 26 个 prompt</td>\n<td>改一行 yaml</td>\n</tr>\n</tbody>\n</table>\n<hr>\n<h2>二、快速上手</h2>\n<pre><code># 1. 生成模板\nnode scripts/brand.mjs --init &gt; brand.yaml   # 或直接改随技能分发的 examples/brand.yaml\n\n# 2. 改成自己店铺的（见下方字段说明）\n\n# 3. 看它会给某个技能追加什么\nnode scripts/brand.mjs --brand examples/brand.yaml --for flat-lay\n\n# 4. 生成时带上，自动追加\nnode scripts/gen.mjs --task flat-lay --brand examples/brand.yaml \\\n  --prompt 'On-model photo of the olive cable-knit sweater.' \\\n  --images garment.jpg pose.jpg --save out/sku001.jpg\n</code></pre>\n<p><code>--brand</code> 对 <code>gen.mjs</code> / <code>run_loop.mjs</code> / <code>batch.mjs</code> / <code>video.mjs</code> 都有效。\n整批出图时加上它，一整批的视觉基调就锁住了。</p>\n<hr>\n<h2>三、字段</h2>\n<pre><code>brand:\n  name: 示例品牌\n  tone: quiet minimalist, warm and lived-in, never glossy or commercial\n\nmodel:\n  reference: assets/model/face-a.jpg          # 锁脸\n  description: East Asian woman, late twenties, natural makeup\n  body: slim, height around 168cm\n\nphotography:\n  background: seamless off-white studio backdrop, RGB 248 248 246\n  lighting: soft large softbox from camera left, gentle fill, no hard shadows\n  camera: 85mm equivalent, eye level, shallow depth of field\n  grade: neutral white balance around 5200K, low contrast\n  crop: full body with headroom, product centered\n\nlayout:\n  margin: at least 8% empty margin on all sides\n  typeface: clean sans-serif, no decorative fonts\n\nforbid:\n  - no text or watermark\n  - no oversaturated colors\n\ncompliance:\n  platform: amazon\n</code></pre>\n<p><strong>只有相关的段落会进 prompt</strong>：详情页技能读 <code>layout</code> 但不读 <code>model</code>，\n去水印技能两个都不读。完整对照表见 <a href=\"references/brand-schema.md\"><code>references/brand-schema.md</code></a>。</p>\n<hr>\n<h2>四、写好规范的三条经验</h2>\n<p><strong>1. 用英文写画面约束，中文写备注。</strong> 图像模型对英文画面词的响应更稳定，\n<code>tone</code> / <code>background</code> / <code>lighting</code> 这些直接写英文；<code>name</code> 这类只给人看的随意。</p>\n<p><strong>2. 写物理量，不写形容词。</strong> <code>warm lighting</code> 模型每次理解都不同；\n<code>neutral white balance around 5200K, soft large softbox from camera left</code> 才可复现。\n色值直接写 RGB。</p>\n<p><strong>3. <code>forbid</code> 比 <code>tone</code> 更管用。</strong> 正面描述容易被稀释，禁止项是硬约束。\n「不要什么」往往比「要什么」更能稳住风格。</p>\n<hr>\n<h2>五、锁脸</h2>\n<p><code>model.reference</code> 给一张清晰正脸图，它会作为<strong>最后一张参考图</strong>传给模型，\n配合 prompt 里的 <code>Model must stay consistent</code> 一起生效。</p>\n<table>\n<thead>\n<tr>\n<th>要求</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>正脸、清晰、光线均匀</td>\n<td>侧脸和逆光锁不住</td>\n</tr>\n<tr>\n<td>只有脸，别带复杂背景</td>\n<td>背景会污染生成</td>\n</tr>\n<tr>\n<td>分辨率够</td>\n<td>至少 512×512</td>\n</tr>\n<tr>\n<td>全店固定一张</td>\n<td>换图等于换人</td>\n</tr>\n</tbody>\n</table>\n<p>找不到文件时只警告不报错，生成照常进行——少一张参考图，脸就由 prompt 描述决定。</p>\n<hr>\n<h2>六、执行流程</h2>\n<ol>\n<li>用户说「统一风格」时，先问三件事：<strong>模特要不要锁死</strong>、<strong>主色调</strong>、<strong>有没有必须避免的元素</strong>。</li>\n<li><code>--init</code> 生成模板，按回答填。</li>\n<li>拿 1 个 SKU 跑一次带 <code>--brand</code> 和不带的对比，让用户确认调性对了。</li>\n<li>确认后再跑整批——规范是给整批用的，单张看不出价值。</li>\n<li>之后每次出图都带 <code>--brand</code>。不带就等于没有规范。</li>\n</ol>\n<hr>\n<h2>七、常见问题</h2>\n<table>\n<thead>\n<tr>\n<th>现象</th>\n<th>原因</th>\n<th>怎么办</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>加了 brand 反而更不像</td>\n<td>描述互相打架（比如 <code>tone</code> 说极简，<code>photography</code> 写戏剧光）</td>\n<td>通读一遍，删掉矛盾项</td>\n</tr>\n<tr>\n<td>模特脸还是会变</td>\n<td>参考图不是正脸，或分辨率太低</td>\n<td>换一张标准正脸图</td>\n</tr>\n<tr>\n<td>prompt 太长被截断</td>\n<td>规范写太细</td>\n<td>只保留真正影响视觉的项，删掉无关段落</td>\n</tr>\n<tr>\n<td>详情页图带上了模特描述</td>\n<td>用了 <code>--for</code> 之外的方式手工拼接</td>\n<td>用 <code>--brand</code>，它会自动按技能过滤</td>\n</tr>\n</tbody>\n</table>\n<hr>\n<h2>Tips</h2>\n<ul>\n<li><strong>规范进版本库</strong>，和商品数据放一起。它是资产，不是临时文件。</li>\n<li><strong>一个店铺一份</strong>。多店铺别共用一份改来改去，各存各的。</li>\n<li><strong>换季可以分支</strong>：<code>brand-aw25.yaml</code>、<code>brand-ss26.yaml</code>，切换只是换个文件名。</li>\n</ul>\n","files":[{"path":"assets/brand.example.yaml","sizeBytes":1623,"isText":true},{"path":"examples/brand.yaml","sizeBytes":1617,"isText":true},{"path":"references/brand-schema.md","sizeBytes":2586,"isText":true},{"path":"references/provider-cli.md","sizeBytes":4802,"isText":true},{"path":"scripts/brand.mjs","sizeBytes":4516,"isText":false},{"path":"scripts/gen.mjs","sizeBytes":9495,"isText":false},{"path":"scripts/lib/miniyaml.mjs","sizeBytes":2824,"isText":false},{"path":"scripts/lib/providers.mjs","sizeBytes":12171,"isText":false},{"path":"scripts/lib/tasks.json","sizeBytes":3202,"isText":true},{"path":"skill.md","sizeBytes":5141,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-09-28T16:27:30.266572Z","sha256":"C36BB822FE58EE62AB04E9C03E6229AA97674E5BE449765E13BA087943F4DE39","sizeBytes":23758},"review":null,"source":{"repositoryUrl":"https://github.com/dlazy-ai/ecommerce-skills","path":"skills/brand-kit","license":"MIT","commit":"d695bdf7f87d2fa95e895ed88adf7dd013a709be","subtreeSha":"284106D9A6D442626CEAB4D0DED3F6D41FDA195C33D893A1E76E20CB64E0186C","lastSyncedAt":"2026-11-13T21:43:54.444233Z"},"reviewedAt":"2026-09-28T16:28:26.856656Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/dlazy-ai/ecommerce-skills/tree/main/skills/brand-kit"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install dlazy-ai-ecommerce-skills@llmmart"},{"target":"git","command":"git clone https://github.com/dlazy-ai/ecommerce-skills.git"}]}