skills/leading-icon-alignment/SKILL.md
Ensures leading icons in lists are properly aligned to the first line of text when text wraps, preventing icons from vertically centering across multiple lines. Use when implementing list items with leading icons, SVG icons in flex containers, or when fixing icon alignment issues in wrapped text.
npx skillsauth add alexcarpenter/resilient-ui leading-icon-alignmentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Ensures leading icons within lists are always properly aligned to the first line of text when the text wraps, rather than centering vertically across the full height of the wrapped text.
flex on the list item containerheight: 1lh (or h-lh in Tailwind)flex-shrink: 0 (shrink-0 in Tailwind) on the icon to prevent it from compressing at narrow widthsalign-items: center (items-center in Tailwind) on the flex container — it vertically centers the icon across all lines of wrapped text instead of aligning to the first line<ul>
<li class="flex gap-2">
<svg
class="h-lh w-4 shrink-0"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10" />
<path d="m9 12 2 2 4-4" />
</svg>
Lorem ipsum dolor sit amet consectetur adipisicing elit.
</li>
</ul>
h-lh) to match the text line height so the icon visually centers within the first line of textshrink-0 prevents the icon from compressing when the container is narrow — without it the icon distorts before text wrapsalign-items: stretch, but because the SVG has a fixed height, it effectively sits at the top — aligned to the first linegap-2 provides consistent spacing between icon and text without needing padding or margin on either elementdata-ai
Ensures trailing icons remain visually attached to the last line of text when text wraps. Use when implementing inline text with trailing icons, external link indicators, or when fixing trailing icon alignment issues in wrapped text.
data-ai
Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some waiting on outside answers, and others rolling into a later summary.
data-ai
Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some waiting on outside answers, and others rolling into a later summary.
data-ai
OpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.