diff --git a/.claude/skills/ux-design-patterns/SKILL.md b/.claude/skills/ux-design-patterns/SKILL.md new file mode 100644 index 00000000..355691b6 --- /dev/null +++ b/.claude/skills/ux-design-patterns/SKILL.md @@ -0,0 +1,35 @@ +--- +name: ux-design-patterns +description: Read before adding or changing any front/ UI element - a control, layout, button, or interaction pattern. Covers the don't-invent-new-UX-without-a-PRD rule and the priority order for design tradeoffs (existing behavior > intuitiveness > information density > usability > utility > uniqueness > industry practices > generic UI). +--- + +# UX / Frontend Design Patterns + +## Core principle: reuse before inventing + +Don't introduce new UX behavior or visual patterns unless a PRD explicitly calls for it. Before building any new UI element, search the existing frontend for a pattern that already solves this exact need, and reuse its markup/CSS/behavior instead of inventing a new one. + +Real, recent example: a presence-page Prev/Next pager was first built with custom `