uno-toolkit-card
Installation
SKILL.md
Uno Toolkit CardContentControl — Agent Skill
Critical Rules
- NEVER use
Card— always useCardContentControl. TheCardcontrol has rigid predefined slots (HeaderContent, SubHeaderContent, AvatarContent, etc.) that constrain layout.CardContentControlgives full layout freedom viaContentTemplate. - NEVER use
BorderwithCornerRadiusto wrap content. This is the most common Border anti-pattern in generated XAML and the parser flags it asGRD1102. Always useCardContentControlinstead — it provides correct elevation, corner radius, theming, and accessibility automatically.
Anti-pattern detection (matches GRD1102)
If you find yourself writing a <Border> that meets all of the following, stop and rewrite it as utu:CardContentControl:
- The
Borderhas children (it is not self-closing). - It sets
CornerRadiusto a non-zero value. - It sets at least one of:
Background,BorderBrush(with non-zeroBorderThickness), or non-zeroPadding.
That's a card. <Border CornerRadius="8" Background="..." Padding="16">…</Border> is a card written the wrong way.