agentleFS
zdanovichnickzdanovichnick/dotnet-pilot/skills/ui-ux-design/SKILL.md

ui-ux-design

Skill5 starsChanged 24 days agoMITView on GitHub

UI/UX design for a screen, form or component in an existing React app — build from the app's design system, design every data state the API contract creates, meet WCAG 2.1 AA, and report the design decision before the code.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use prd-generator, incident-response and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dhzrxSkill

    prd-generator

    Generate comprehensive Product Requirements Documents with AI PM best practices for new features and products

    Also in 3 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 3 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 3 projects that use this

  • VercelSkill

    find-skills

    Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 4 projects that use this

  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never clear the form on a failed submit.

    line 45
  2. Distinctive:

    Every input has a programmatic label.

    line 53
  3. Very specific:

    Prefer the library's accessible primitive (dialog, menu, combobox) to a hand-built div.

    line 57
  4. Distinctive:

    Use the breakpoints the project already defines.

    line 61
  5. Distinctive:

    Put this first in the report, before the code summary, so the decision can be reviewed:

    line 67
  6. Distinctive:

    Keep it to what was decided.

    line 79

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

UI/UX Design

Design work here means deciding layout, states, interaction and wording for a feature inside an app that already has a look. The result must read as part of that app.

1. Find the design system first

Look forWhere
Tokenstailwind.config.* / @theme block, CSS custom properties (--color-…), a theme.ts, a tokens package
Component libraryshadcn/ui (components/ui/, components.json), MUI, Mantine, Ant Design, Radix, an in-house ui package
Shared building blocksExisting Button, Dialog, Table, EmptyState, Skeleton, Toast, form field wrappers
The nearest sibling screenA page with the same job (another list, another edit form). Copy its structure
A design sourceA mockup, Figma link or screenshot named in the brief. It outranks everything in this file

Build from what exists. A new colour, spacing value, font size or component variant needs a stated reason; "none of the existing variants fits because …" is a reason, taste is not.

2. Design every state

A data view is four screens, not one. Decide each before writing the component.

StateDesign question
LoadingSkeleton that keeps the layout stable, or a spinner? What stays usable meanwhile?
EmptyWhy is it empty (nothing yet, or filtered out), and what is the next action?
ErrorOne designed answer per error case in the API contract: which message, where, and how the user recovers
SuccessThe normal view, including the long, the short and the many (truncation, wrapping, pagination)

A mutation adds: pending (control disabled, progress shown), success confirmation, and failure with the user's input preserved. Detail is in references/states-and-copy.md.

3. Forms mirror the contract

  • Client validation states the same rules as the contract (required, length, range, format). It improves feedback; it never replaces the server's check.
  • A 400 with errors maps each entry to its field. An error that names no field goes in a form summary.
  • Never clear the form on a failed submit.

4. Accessibility: WCAG 2.1 AA

Minimum bar for anything new. The checklist with the criterion numbers is in references/accessibility.md. The four that are missed most often:

  1. Everything works with the keyboard alone, in a sensible focus order, with a visible focus ring.
  2. Every input has a programmatic label; every icon-only button has an accessible name.
  3. Text contrast is at least 4.5:1 (3:1 for large text and for UI component boundaries).
  4. Errors and async results are announced, not only coloured.

Prefer the library's accessible primitive (dialog, menu, combobox) to a hand-built div.

5. Responsive

Use the breakpoints the project already defines. Decide what the narrowest one does with each region: stack, collapse, scroll or hide. A table needs an explicit answer. Content must work at 320 CSS px wide without two-direction scrolling.

6. The design note

Put this first in the report, before the code summary, so the decision can be reviewed:

## Design note
Layout:      <regions and their order; what the narrow breakpoint does>
Components:  <reused: …>  <new: … and why nothing existing fits>
States:      loading … | empty … | error (per contract case) … | success …
Interaction: <primary action, keyboard path, what is confirmed or undoable>
Copy:        <labels, empty-state and error text>
Open:        <a design choice only the user can make, if any>

Keep it to what was decided. A choice that changes the feature's scope, or that the design source contradicts, is a question for the user, not a default to pick silently.

Do / Don't

DoDon't
Match the nearest sibling screenIntroduce a new visual style for one feature
Design the empty and error states with the same care as successShip a spinner and a Something went wrong
Name the action on the button (Add note)OK, Submit, Click here
Use semantic elements (button, label, table, headings in order)Attach onClick to a div
Show destructive actions as destructive and confirm or allow undoPut Delete next to Save with equal weight

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.