全部使用案例

工程

用可复用 Skill 把 Figma 自动布局拍扁

Figma Bro 放出来了。拍扁自动布局的 Skill 才是缺的那块。

分享

当时卡在哪

AI 嘉豪(Davidwuuu92)在 johnbai 的 Figma Bro 帖下,把这段公开 Skill 补给装了却找不到的人。用来搭建或清理任何 Figma 自动布局:拍成 CSS——一层关系一个 frame,用 FILL/HUG/SPACE_BETWEEN 而不是垫片,padding 在表面上,说明文字当兄弟节点。不限于表格或设置页。不许目测。

要装什么、建什么

一个已经能碰 Figma 的机器人,或新建一个叫 Flatten 的清理工。把 David 公开的 Skill 当成 Skill 贴进去,不要另写一套系统提示词。指向一簇 frame。数包装层:应该是 关系 > 内容 + 控件。不发、不花。

机器人

  • Flatten

    把公开的自动布局拍扁 Skill 用在一簇 frame 上。

插件

  • 第一天不用插件。按「第一次怎么跑」做。

文件

  • 一簇你自己的自动布局。任何 frame,不限于表格。

例行任务

  • 第一次先别开。自己看过一轮再说。

提示词

贴成一条 Skill

David 在 @johnbai 的 Figma Bro 帖下公开了这段 Skill。按原文收录。

name: Figma autolayout flatten
description: >-
use this when building or cleaning any Figma autolayout — flatten to CSS: one
relationship one frame, FILL/HUG/SPACE_BETWEEN instead of spacers, padding on
the surface, captions as siblings
Use for any Figma frame, not just tables or settings. Structure is CSS: fewest layers, distribution via properties, inspect tokens. Never eyeball.
1. One relationship, one frame
If two things sit in a visual relationship (beside, stacked, inset), that relationship is one autolayout. Extra wrappers are bugs. Same-named Frame-in-Frame is always flatten-worthy. If deleting a frame would not change the CSS, delete it.
2. Distribution is a property, not a node
Spread, pin, and inset come from  FILL  /  HUG  /  SPACE_BETWEEN  /  gap  /  padding . Never empty text, spacer frames, 50/50 fake columns, or a wrapper whose only job is to push a sibling.
The longer (or stretching) child  FILL s. The intrinsic child  HUG s. The parent  SPACE_BETWEEN s when they should sit on opposite edges. Resize the parent to verify: the hug child stays pinned to the trailing edge.
3. The box owns the padding
Whatever looks like a surface (card, row, field, section) is the autolayout that has the padding. Nested pads compose (parent 8 + child 8 = 16). Measure both. Don't fake inset with inner frames.
4. DOM, not collage
Label, surface, and helper/caption are siblings, like heading, box, and  .hint  in HTML. Meta copy does not live inside the surface it describes.
A status, icon, or chip is a library component sitting next to the title, not restyled type on the title.
5. A clone is a starting tree, not the structure
Hidden leftovers still count as layers. Strip them before rewriting.
Instances keep the fills, copy, and icons of the screen they came from. Rebind or swap to the library. Do not trust a cloned button, badge, or row to already be the right variant.
Check
Count wrappers on one cluster. The stack should be  relationship > content + control , nothing else.

第一次怎么跑

  1. 1打开一个能碰 Figma 的机器人,或新建一个叫 Flatten 的。
  2. 2把下面 David 的 Skill 加成一条 Skill。不要改写成另一份系统提示词。
  3. 3指向一簇你自己的自动布局——任何 frame,不限于表格。
  4. 4让它按这条 Skill 拍扁。然后数包装层:关系 > 内容 + 控件。
  5. 5先核 FILL / HUG / SPACE_BETWEEN,再留下改写。不发、不花。

审批围栏

Skill 原文没有发送或花钱。仍然:不发帖、不购买;不是你的文件,没有你点头就不写。

你该改什么

偷的是这段 Skill 原文,不是第二个人设。功劳是 David 的——他在 johnbai 的 Figma Bro 帖下公开的。任何 frame 都能用,用完数包装层。除了这段引用,不要再编一份系统提示词。

出处

AI 嘉豪 @Davidwuuu92 · 原帖

与 xAI 无关。提示词不是我们写的。第三方模板条款照旧适用。

去看模板

去看团队蓝图