page-patterns
Installation
SKILL.md
If .ux-profile.md exists at the project root, read it before choosing a layout.
Intent
A page that mixes list, dashboard, and settings into one scroll is hard to use and harder to maintain. This skill forces a single named pattern before any page markup. Chrome, widgets, and empty states sit inside a pattern — they are not patterns themselves.
Hard Rules (Non-Negotiable)
- Name the pattern in chat before writing page markup. No
<main>, route file, or page component until the name is stated. If the surface is still undecided, runsurfacesfirst (inline / slide-over / page). Only pages continue here. - Every new page is exactly one of the ten product patterns, or a marketing composition from reference/marketing.md, or you stop and ask. Do not invent an eleventh product pattern.
- App chrome is not a page. Sidebars, headers, footers, and dropdowns frame pages. Do not treat a shell as the pattern.
- Components sit inside a pattern. Charts, KPI tiles, dialogs, file upload, and empty states never replace the page type.
- View modes are not new pages. List ↔ Board ↔ Calendar of the same records is one page with a toggle. Shared search and filters stay put.
- Empty states keep the pattern’s skeleton. A calendar still shows the grid. A list still shows the header, search, and a visible table frame (L1 surface + hairlines — not a bare DOM wrapper on L0). Do not swap the page for a blank illustration.
- Catalog Must lines are hard rules. For List / Index: the table sits in a visible L1 frame with hairlines; search is recognizable at a glance on medium/wide; clickable rows have a resting affordance; disabled pagination keeps readable labels. Restraint never drops that chrome.
See reference/decision-tree.md to pick the pattern. See reference/catalog.md only for the pattern you named.