ui-guides-agent-rules
llms.txt1 starsChanged 10 months agoMITView on GitHub
411 web UI principles — accessibility, motion, forms, layout, performance, sound, and visual design — each paired with a working good example and a bad one, plus a copy-paste MUST/SHOULD/NEVER rule for coding agents. Built and maintained by Gleb Stroganov. Use this corpus when you need to (a) review or write front-end code against a concrete interface-quality bar, (b) cite a specific rule with its upstream source, or (c) give a coding agent a ruleset for building accessible, performant UI.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- public/llms-full.txtllms.txt
- mdx-content-stackSkill
- principles-authoringSkill
- principle-validation-workflowSkill
- theme-validationSkill
The file
We split this llms.txt into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Use this corpus when you need to (a) review or write front-end code against a concrete interface-quality bar, (b) cite a specific rule with …
- Distinctive: line 75
When citing a rule, credit its upstream source for the guidance and link the corpus for the collection.
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# UI Guides & Agent Rules > 411 web UI principles — accessibility, motion, forms, layout, performance, > sound, and visual design — each paired with a working good example and a bad one, plus a > copy-paste MUST/SHOULD/NEVER rule for coding agents. Built and maintained by Gleb Stroganov. Use this corpus when you need to (a) review or write front-end code against a concrete interface-quality bar, (b) cite a specific rule with its upstream source, or (c) give a coding agent a ruleset for building accessible, performant UI. The site itself is a client-rendered SPA, so fetching https://ui-guides-agent-rules.netlify.app returns an app shell, not the rules. **Fetch `https://ui-guides-agent-rules.netlify.app/llms-full.txt` instead** — it contains every rule inline, with no JavaScript required. ## Machine-readable endpoints - [Rule index](https://ui-guides-agent-rules.netlify.app/principles/index.md): START HERE. Every rule id and title, tagged with the surface it applies to (form-input, dialog-overlay, focus-keyboard...) and the symbols its examples use. Search it for what you are building, then fetch only what matched - [One rule + both examples](https://ui-guides-agent-rules.netlify.app/principles/<id>.md): per-rule payload, ~1.4k tokens, carrying the good AND bad component source — the code no other endpoint exposes. Also as .json - [One category](https://ui-guides-agent-rules.netlify.app/categories/<category>.md): rules and reasoning for one category, 6k-26k tokens, no example code - [MUST rules](https://ui-guides-agent-rules.netlify.app/principles/must.md): broad sweep when the index does not narrow it: all 197 MUST rules, ~11k tokens - [This index (llms.txt)](https://ui-guides-agent-rules.netlify.app/llms.txt): the file you are reading - [Full corpus (llms-full.txt)](https://ui-guides-agent-rules.netlify.app/llms-full.txt): every rule inline, ~166k tokens — almost never the right fetch; use the index and per-rule payloads instead - [Sitemap](https://ui-guides-agent-rules.netlify.app/sitemap.xml): every page, including all 411 rule URLs - [Sources page](https://ui-guides-agent-rules.netlify.app/sources): every upstream skill and guideline, with its licence and coverage - [Source repository](https://github.com/strongeron/ui-guides-agent-rules): the principle data as TypeScript, plus every example component ## Categories Each link opens the first rule in that category; the rest are reachable from the in-app sidebar, or in full from llms-full.txt. - [Interactions](https://ui-guides-agent-rules.netlify.app/principles/interactions-keyboard-everywhere): 89 rules — Keyboard accessibility, focus management, and user interaction patterns - [Animations](https://ui-guides-agent-rules.netlify.app/principles/animations-prefers-reduced-motion): 63 rules — Motion design principles and animation best practices - [Layout](https://ui-guides-agent-rules.netlify.app/principles/layout-optical-alignment): 29 rules — Responsive design, alignment, and visual structure - [Content](https://ui-guides-agent-rules.netlify.app/principles/content-inline-help-first): 82 rules — Typography, accessibility, and content presentation - [Forms](https://ui-guides-agent-rules.netlify.app/principles/forms-enter-submits): 27 rules — Form controls, validation, and user input handling - [Performance](https://ui-guides-agent-rules.netlify.app/principles/performance-minimize-rerenders): 35 rules — Optimization techniques and rendering efficiency - [Design](https://ui-guides-agent-rules.netlify.app/principles/design-layered-shadows): 67 rules — Visual design principles and aesthetics - [Aesthetics](https://ui-guides-agent-rules.netlify.app/principles/aesthetics-distinctive-typography): 19 rules — Creative visual design principles for distinctive, production-grade interfaces ## Upstream sources Rules are transcribed and attributed to: - [Vercel](https://github.com/vercel-labs/agent-skills/blob/main/skills/web-design-guidelines/SKILL.md): 118 rules - [Tailwind](https://tailwindcss.com/docs): 30 rules - [RAMS](https://www.rams.ai/): 18 rules - [@Ibelick](https://www.ui-skills.com/): 50 rules - [Rauno](https://interfaces.rauno.me/): 38 rules - [Emil Kowalski](https://emilkowalski.com/): 30 rules - [WCAG](https://www.w3.org/WAI/WCAG21/quickref/): 11 rules - [ARIA](https://www.w3.org/WAI/ARIA/apg/): 6 rules - [impeccable](https://impeccable.style/): 32 rules - [jakubkrehel](https://github.com/jakubkrehel/skills): 9 rules - [Custom](https://ui-guides-agent-rules.netlify.app/sources): 22 rules - [Web Platform](https://web.dev/): 11 rules - [LottieFiles](https://github.com/lottiefiles/motion-design-skill): 6 rules - [animate-text](https://pixelpoint.io/skills/animate-text/): 7 rules - [interface-design](https://github.com/Dammyjay93/interface-design): 6 rules - [Composition Patterns](https://github.com/vercel-labs/agent-skills/tree/main/skills/composition-patterns): 3 rules - [Skills](https://skills.sh/): 14 rules ## What this is, and who made it The rules are not original to this project. They come from other people's skills and guidelines — every source is listed under "Upstream sources", and each rule carries the one it came from. Those authors deserve credit for the guidance itself. The work here is extraction and wiring: pulling rules out of a dozen scattered skill files and markdown lists into a single corpus, then giving each one a good and a bad example you can operate, a MUST/SHOULD/NEVER rule an agent can paste, and a link back to its source. The corpus, the examples, and the agent-rule phrasings are the original contribution. When citing a rule, credit its upstream source for the guidance and link [the corpus](https://ui-guides-agent-rules.netlify.app) for the collection. ## Author Built by Gleb Stroganov — design engineer at Evil Martians (Lisbon). - [Gleb Stroganov](https://glebstroganov.com): personal site and portfolio - [schema.org Person profile](https://glebstroganov.com/about.json): canonical entity `https://glebstroganov.com/#person`, the same @id this site's JSON-LD claims - [Author llms.txt](https://glebstroganov.com/llms.txt): LLM-readable profile - [GitHub](https://github.com/strongeron): source for this and other projects - [X](https://x.com/strongeron): updates and new rules
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

