agentleFS
LiriRaidLiriRaid/waymark/skills/dept-ux-ui/SKILL.md

dept-ux-ui

Skill1 starsChanged 59 days agoMITView on GitHub

Waymark · UX/UI department. Use FIRST, before ui-system/ui-refine/ui-audit, for how the UI looks and feels: \"mejora el diseño\", \"se ve feo\", \"más profesional\", \"animación\", \"accesibilidad\", \"contraste\", \"tipografía\", \"paleta\", \"design tokens\", \"tema oscuro\", WCAG.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 13 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run the *Waymark protocol → Entry* from the instructions file (already in context.

    line 15
  2. Distinctive:

    Done: when — audit result, themes and viewports checked, evidence captured?

    line 29
  3. Very specific:

    Does not own: component implementation → dept-frontend · requirements and priority → dept-product · test automation → dept-qa.

    line 33
  4. Distinctive:

    MUST: keep a logical focus order.

    line 50
  5. Distinctive:

    SHOULD: follow WAI-ARIA APG patterns for composite widgets (tabs, menus, comboboxes, dialogs).

    line 57
  6. Distinctive:

    MUST: use design tokens for color, spacing, radius, typography, elevation and motion.

    line 60
  7. Distinctive:

    MUST: keep one primary action per view or section.

    line 61
  8. Distinctive:

    SHOULD: use a consistent spacing and type scale.

    line 62
  9. Distinctive:

    SHOULD: prefer skeletons over spinners for content loading.

    line 64
  10. Distinctive:

    SHOULD: keep hover/press feedback under 200ms and view transitions under 400ms on mobile.

    line 68
  11. Distinctive:

    SHOULD: use purposeful easing; avoid gratuitous bounce or overshoot in task flows.

    line 69
  12. Distinctive:

    MUST: write in the project's configured UI language.

    line 73
  13. Distinctive:

    MUST: start actions with a verb that names the outcome ("Save changes", "Send message").

    line 74
  14. Distinctive:

    SHOULD: keep labels short, consistent and in the user's vocabulary, not the system's.

    line 76
  15. Distinctive:

    MUST NOT: use modal confirmations for trivial reversible actions.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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.

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

UX/UI Design

Quick ref

Mission: Make interfaces accessible (WCAG 2.2 AA), clear in hierarchy, consistent through tokens, and respectful in motion and copy. Must: WCAG 2.2 AA minimum · visible focus and full keyboard access · reduced-motion respected for every non-essential animation · tokens only, contrast checked in every theme · every state designed (loading, empty, error, success) Skills by default: ui-system · ui-audit · ui-refine · browser-verify DoD: Audit passes AA, states and copy complete, tokens consistent, motion reduced-safe, gates green.

Entry

Run the Waymark protocol → Entry from the instructions file (already in context; do not load the waymark skill for it). No Waymark block in context (guest) → Guest entry, ../waymark/references/coexistence.md §3. Department-specific reads:

  • Learnings: ~/.waymark/learnings/dept-ux-ui.md if it exists.
  • Stack profile: L1 Conventions by department → Frontend, L2+ full. Also the project's token source of truth.
  • Tools: the Tools table below. Open ../waymark/skill-registry.md only if a capability there has no installed provider.

Brief questions

The brief must answer:

  1. What is designed or improved (screen, flow, component, theme, motion, copy)?
  2. Why / for whom — the user's primary task on this view and the single primary action?
  3. What is wrong today — the perceived problem in concrete terms (hierarchy, contrast, density, feedback, consistency)?
  4. Where — which feature/components are affected, and where the token source of truth lives?
  5. States and copy — loading, empty, error, success, disabled, interaction states, and the microcopy for each, in the project's UI language?
  6. Accessibility and motion — WCAG criteria at risk, keyboard/focus behavior, reduced-motion variant?
  7. How — procedure, and which skills/MCP (ui-system, ui-refine, ui-audit, the UI library's MCP if any, library-docs), and what is handed to dept-frontend?
  8. Done when — audit result, themes and viewports checked, evidence captured?

Scope

  • Owns: accessibility requirements, visual hierarchy, layout rhythm, typography, color, design tokens and theming rules, interaction states, motion design, microcopy, information architecture, responsive intent.
  • Does not own: component implementation → dept-frontend · requirements and priority → dept-product · test automation → dept-qa.

Procedures

Detailed steps live in procedures.md (same folder). Read only the section you need: search its heading, read that block, not the whole file. Anti-patterns and references are at the end of that file.

  • New screen or flow (L2)
  • Visual improvement ("se ve feo", "más profesional")
  • Accessibility audit
  • Theming / tokens change
  • Motion

Rules

Accessibility (WCAG 2.2 AA)

  • MUST meet WCAG 2.2 AA on every user-facing interface.
  • MUST meet contrast: 4.5:1 normal text, 3:1 large text and UI components/focus indicators, in every theme.
  • MUST make every interactive element keyboard operable with a visible focus indicator not obscured by sticky content (2.4.11).
  • MUST keep a logical focus order; dialogs trap focus, restore it to the trigger on close, and close on Escape.
  • MUST give icon-only controls an accessible name; hide decorative icons from assistive tech.
  • MUST announce async status (toasts, form errors, results) through live regions with appropriate politeness.
  • MUST provide targets of at least 24x24 CSS px (2.5.8); 44x44 recommended on touch.
  • MUST offer a non-drag alternative for drag interactions (2.5.7).
  • MUST associate visible labels with inputs; errors identify the field and suggest a fix (3.3.1, 3.3.3); no forced re-entry of known data (3.3.7).
  • MUST NOT convey information by color alone.
  • SHOULD follow WAI-ARIA APG patterns for composite widgets (tabs, menus, comboboxes, dialogs).

Hierarchy, layout and tokens

  • MUST use design tokens for color, spacing, radius, typography, elevation and motion; no hard-coded values.
  • MUST keep one primary action per view or section.
  • SHOULD use a consistent spacing and type scale; limit to the steps the system defines.
  • SHOULD separate primitive and semantic tokens; components consume semantic tokens.
  • SHOULD prefer skeletons over spinners for content loading.

Motion

  • MUST honor prefers-reduced-motion (or the platform equivalent) for every non-essential animation and any transition over 300ms.
  • SHOULD keep hover/press feedback under 200ms and view transitions under 400ms on mobile.
  • SHOULD use purposeful easing; avoid gratuitous bounce or overshoot in task flows.
  • MUST NOT autoplay animation with sound, or flash more than 3 times per second.

Copy

  • MUST write in the project's configured UI language.
  • MUST start actions with a verb that names the outcome ("Save changes", "Send message").
  • MUST make errors say what happened and how to resolve it; never a generic "Something went wrong" alone.
  • SHOULD keep labels short, consistent and in the user's vocabulary, not the system's.
  • MUST NOT use modal confirmations for trivial reversible actions; prefer undo.

Tools

CapabilitySkill / MCP / AgentWhenLevel
ui.systemui-systemHierarchy, design-system quality, palettes, typography, dashboards, landing pagesL2
ui.auditui-auditAccessibility / UX guideline audit of implemented UIL2
ui.refineui-refineMotion design, transitions, micro-interactions, UX critique and polishL2
ui.buildui-build (via dept-frontend)Layout and responsive implementationL1
test.browserbrowser-verifyEvidence: keyboard pass, screenshots, responsive checksL2
ui.librarythe UI library's MCP, if the user has one (e.g. primeng); else library-docsComponent a11y and theming tokensL1
docs.librarylibrary-docs (→ the docs MCP servers the user has)WCAG, ARIA APG, styling-system docsQ
contrast.checknone yet → waymark references/skills.mdAutomated contrast and color-blindness checks—

Definition of Done

  • Exit protocol of waymark (instructions file → Exit; L2+ full: ../waymark/references/protocol.md) (gates, architecture conformance, review, learnings)
  • ui-audit run; no WCAG 2.2 AA failures open
  • Keyboard-only pass and visible focus verified
  • Contrast verified in every theme
  • Loading, empty, error, success, disabled and interaction states specified and implemented
  • Reduced-motion variant for every non-essential animation
  • Copy reviewed: verbs first, actionable errors, consistent terms
  • Tokens only; new tokens added to the source of truth

Hand-offs

  • To dept-frontend: implementation of specified states, tokens and motion.
  • To dept-product: flows that change scope or need new requirements.
  • To dept-qa: automated a11y checks and visual regression baselines.
  • To dept-data: persistence of user preferences (theme, reduced motion, language).
  • To dept-devex: design-system documentation and token tooling.

Learned rules

Grows with use (waymark references/learning.md). Only rules that are general for this department and not already stated above. Format: - [YYYY-MM-DD] <rule> — <why> (source: <project>).

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.