UIFree · $0
AI Interface Design Rules
Interface and interaction rules for AI chat and agent front ends: design tokens, spring parameters, Chinese IME guards, streaming scroll — decided once, no rework.
Free download ($0). Governed by our Terms of Service & Privacy Policy · Support: [email protected]
- What’s included
- SKILL.md, references/ (tokens.css, motion.ts, streaming-scroll and IME guards — 9 files), demo video, ZIP download
- Works with
- Plain SKILL.md text: paste it into any agent that reads SKILL.md — Claude Code, Codex, Cursor, Muse, and others.
- Install
- Use Copy skill on this page and paste it to your agent, or download the ZIP, unzip it into your agent’s skills directory per the site’s installation guide, then verify with one concrete task.This package ships references/ files — copying SKILL.md alone drops them, so download the ZIP and keep its directory structure.
What you get
- Token structure and spring motion parameters
- Guard rules for Chinese IME and streaming scroll
- Tool confirmation cards, a safe sandbox, and an acceptance checklist
Good for
- Building chat UIs, dialogs, or tool-call cards
- Your agent front end feels generically AI-made
- The team needs a React/Tailwind spec they can ship
Not a fit
- You need a whole-site visual direction. Use frontend-design
- You need inspiration references. Use ui-design-refs
- You need static diagrams. Use diagram-design
Practical example
Set up design tokens for an AI chat product without borrowing a brand colour
Input / task
Build the front-end foundation for an AI chat UI: dark mode, React + Tailwind. I have not picked a brand colour yet.
Visible deliverable
Before starting: no brand colour given -> use neutral grey placeholders, mark the result "brand colour to fill in", and do not borrow any well-known product palette. Token structure - Surface ladder surface-0 to surface-3: layers separated by 1%-3% lightness steps rather than heavy borders - Three text tiers: primary / secondary / tertiary, body contrast at least 4.5:1 - Focus ring: inner ring in the background colour + outer ring in the brand colour at 40%, shown only on :focus-visible - Radius semantics: input 20 / message bubble 18 / card 10 / button 8 / chip 6 - Dynamic numbers (timers, token counts) use tabular-nums No raw HEX inside components; colours, radii and spacing come from tokens only. To fill in: --brand-primary / hover / active / ring
Deliverables
- A token file with placeholder values filled in
- Starter components for the message stream and input box
- A list of brand values still to be filled in
Acceptance checks
- No raw HEX values can be found in component code
- outline is never removed without a replacement focus ring
- The font stack includes a Chinese font
Note: examples demonstrate inputs, outputs, and acceptance criteria. Unless explicitly stated, they are not claims of real client work or production testing.
FAQ
What does this skill do?
It sets interface and interaction rules for AI chat and agent front ends: design tokens, spring motion parameters, Chinese IME guards, and streaming scroll — decided once, no rework.
Which agents does it work with?
Plain SKILL.md text works with Claude Code, Codex, Cursor, and Muse. Say what to build: a chat box, tool cards, or the whole front end.
How do I install it?
Copy skill and paste it, or download the ZIP — the package includes references/ (tokens.css, useStreamScrollPin.ts and more). Verify by having the agent build a chat box to the spec and checking that IME composition never sends.
