基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/unoplatform/studio --skill uno-toolkit-autolayout命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | uno-toolkit-autolayout |
| description | Use AutoLayout control to arrange children with Figma-like spacing, alignment, and padding. |
| when_to_use | Use when building layouts that mirror Figma Auto-Layout, arranging children in rows or columns with uniform spacing, using space-between distribution, per-child alignment overrides (CounterAlignment), or converting Figma designs to XAML. |
| metadata | {"author":"uno-platform","version":"2.3","category":"toolkit"} |
Docs lookup: call
uno_platform_docs_search(...)first, thenuno_platform_docs_fetch(sourcePath="…")using thesourcePathfield from a result (a relative.mdpath; add the result'sanchorfor a section). Never pass a URL, a.htmllink, or a hand-built path.
uno_platform_docs_search("Uno Toolkit AutoLayout panel Figma spacing alignment")
Primary documentation page:
external/uno.toolkit.ui/doc/controls/AutoLayoutControl.mdFetch the page:
uno_platform_docs_fetch(sourcePath="external/uno.toolkit.ui/doc/controls/AutoLayoutControl.md")
uno_platform_docs_search("AutoLayout howto walkthrough example Figma")
Container properties (set on the <utu:AutoLayout> element itself):
Orientation — Horizontal or Vertical (primary axis)Spacing — gap between children (like Figma auto-layout spacing)Justify — SpaceBetween distributionPrimaryAxisAlignment — alignment on the primary axis (Start, Center, End, Stretch)CounterAxisAlignment — alignment on the cross axis (Start, Center, End, Stretch)Padding — Figma-anchor-style padding (Thickness)Per-child attached properties (set on children of an AutoLayout, note: NOT the same names as the container properties):
utu:AutoLayout.PrimaryAlignment — override on primary axis (Auto or Stretch)utu:AutoLayout.CounterAlignment — override on counter axis (Start, Center, End, Stretch) — CounterAlignment, NOT CounterAxisAlignmentutu:AutoLayout.PrimaryLength — fixed size along orientation axis (double)utu:AutoLayout.CounterLength — fixed size perpendicular to orientation (double)utu:AutoLayout.IsIndependentLayout — absolute positioning (bool)There is no AutoLayout.Counterpart, no AutoLayout.SetCounterAxisAlignment(...), no AutoLayout.Align, no AutoLayout.MainAxis, no AutoLayout.CrossAxis. If unsure, the canonical surface is the table above — do not invent member names.
XAML namespace: xmlns:utu="using:Uno.Toolkit.UI"