UI Catalogue Connect AI
Docs / Workflow

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)

  1. Index profile of the 1-3 categories involved: index/categories/<Section>/<Category>.md (exemplar IDs).
  2. uic.py sheet <exemplar ids, or tag filters> -o /tmp/a.jpg -> read. Do 2-4 sheets with different slices (domain, style, component).
  3. Pick 4-8 references; zoom into them (read their look: path). For motion strip; for app flows appsheet/screensheet.
  4. 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

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)

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.