UI Catalogue workflow: brief -> references -> spec -> build -> verify
Repo D:/Projects/ui-catalogue/ui-catalogue; CLI python3 scripts/uic.py (see skill ui-catalogue). Templates for every artefact below: references/templates.md.
0. Decide whether to use the catalogue
Use it when the surface is visual and open-ended. Skip for pure back-end/logic, or when the user supplies a complete design/Figma. For quick component builds jump to ui-catalogue-components.
1. Intake (<= 2 min)
Fill the brief-intake block (templates.md #1): surface, domain, tone, platform, theme, must-have modules, stack/constraints, ambition (conventional / distinctive / experimental). Ask the user only about things that change the design materially (brand colours, existing system, audience); otherwise choose and state assumptions.
2. Route to knowledge
| Surface | Skill(s) |
|---|---|
| Website/page/section | ui-catalogue-web + ui-catalogue-style |
| Component | ui-catalogue-components (+ -motion) |
| App screens / flows | ui-catalogue-app-flows + ui-catalogue-components |
| Animation / 3D / kinetic | ui-catalogue-motion |
| Logo / icon / poster / OG / launch video / store assets | ui-catalogue-brand-ads |
| Read the relevant file's "What dominates" and the 2-4 closest pattern cards. This is the cheap step that prevents generic output. |
3. Retrieve and look (budget: ~10 image reads)
- Index profile of the 1-3 categories involved:
index/categories/<Section>/<Category>.md(exemplar IDs). uic.py sheet <exemplar ids, or tag filters> -o /tmp/a.jpg-> read. Do 2-4 sheets with different slices (domain, style, component).- Pick 4-8 references; zoom into them (read their
look:path). For motionstrip; for app flowsappsheet/screensheet. uic.py similar <id>for 1-2 picks to widen;uic.py cooc "<style tag>"to learn what makes the style coherent. Keep a retrieval log (templates.md #2). Reject clichés listed in the relevant file's "Trends, clichés" section.
4. Analyse -> spec
Fill the reference analysis table (templates.md #3): structure, hierarchy, tokens, components+states, motion, take/leave. Then write the design spec (templates.md #4). Rules:
- Decide one hero idea (one hero material + one movement), one accent colour, one type pairing, one layout system. Catalogue evidence: committed designs beat eclectic ones.
- Tokens first (colour roles, type scale, spacing, radius, elevation), with contrast numbers. Pull archetypes from ui-catalogue-style.
- List every component with states; list every motion with duration/easing and a reduced-motion fallback.
- Write real copy (headline formulas and microcopy conventions are in the web/app-flows files), not lorem ipsum.
- State what you deliberately do differently from each reference.
5. Build
- Tokens -> layout skeleton -> components -> content -> motion -> polish. Semantic HTML / native controls first; real keyboard paths and focus rings.
- Responsive from the start: the catalogue is desktop-first for sites (mobile rules in
ui-catalogue-web/references/responsive-and-layout.md) and mobile-first for apps. - Follow the host project's conventions and stack (see its AGENTS.md/CLAUDE.md); the catalogue gives design direction, not a framework.
6. Verify (templates.md #5)
Screenshot at 1440/768/390 (or device size) and compare side-by-side with the reference sheet for hierarchy, density, rhythm. Check all states, contrast (>= 4.5:1 body, 3:1 UI), prefers-reduced-motion, touch targets >= 44px, perf (transform/opacity only), no placeholder text. Fix, re-screenshot.
7. Attribution and originality
References inform structure, hierarchy, tokens and motion; never copy a design pixel-for-pixel or reuse its imagery, marks or mascots. When citing references in docs/PRs/spec, name creator.name and link source_url (uic.py show <id>). App screens belong to the companies that make the apps.
Anti-slop checklist (distilled from the catalogue's own "clichés" sections)
- Purple/blue AI gradient on black, floating orb hero, meaningless 3D blob: only if the product story needs it. AI sites in the catalogue are 66% light and often serif.
- Every section a three-card row; identical rounded cards with icon + heading + blurb.
- Glass everywhere: glass is a hero material, not a default surface.
- Gesture/hover-only content, WebGL with no DOM fallback, nav hidden behind the gimmick, sub-11px essential text ("distinctive" vs "unusable" line).
- Concept-shot omissions: no empty/error/loading/disabled states, no keyboard path, no reduced-motion branch.
- Dark mode = pure
#000with white text and neon; use graphite (~#0f0f0fbg, lighter surfaces, 1px borders) unless it is a deliberate black-void hero. - Motion on everything: pick 2-3 signature moments (hero entrance, one morph, one scroll scene).
Locale and market notes (general guidance, NOT catalogue evidence: verify current rules)
The catalogue is English-language, US/EU/Asia-tech-product biased and has no localisation study. When a brief is bilingual or for a specific market:
- Bilingual UI (e.g. BM/EN): language toggle in the header (not buried in settings), persist choice, set lang on <html>/segments and hreflang for separate URLs; budget +20-35% horizontal space for translated strings; never bake text into images; keep one microcopy table per language and review both for tone.
- Malaysia (Saif's context): payment rails absent from the catalogue: FPX (bank transfer), DuitNow QR, Touch 'n Go / GrabPay / ShopeePay / Boost wallets, cards; SST on invoices; LHDN e-Invois mandatory in phases since Aug 2024 (SME accounting/invoicing products must model e-invoice status); SSM company numbers. Use ui-catalogue-app-flows/flows-monetization-commerce.md for SE-Asian wallet patterns (Gojek, Grab, Swiggy: wallet balance toggle, vouchers, 6-digit PIN).
- Dates DD/MM/YYYY, currency RM 1,234.50, 24h or 12h per audience; test long names and RTL not needed for BM.
Maintenance
After editing skills or the index: python3 scripts/build_skill_index.py, python3 scripts/check_skill_refs.py, python3 scripts/install_skills.py.