ux-guide
Skill882 starsChanged 16 days agoMITView on GitHub
Use whenever designing, implementing, changing, or reviewing PI WEB UI interactions, controls, layouts, styling, or accessibility, including plugin surfaces. Guides reuse and extension of shared UI primitives and browser verification rather than prescribing per-screen styling. For interface copy, also use ux-writing.
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 13
Read UI primitives and inspect the relevant primitive implementation and nearby consumers.
- Distinctive: line 19
If a treatment is missing, consider extending an existing primitive before creating a local variant.
- Distinctive: line 22
When a shared treatment changes, update its reference documentation alongside the implementation.
- Distinctive: line 26
Check hierarchy, grouping, target boundaries, and feedback in the context of the user task.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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.
Files
UX guide
Make interactions consistent through shared primitives, not repeated styling instructions or screen-specific copies.
Start from the existing surface
- Identify the user task, the interaction being changed, and the states it needs to support.
- Read UI primitives and inspect the relevant primitive implementation and nearby consumers. The reference documents available patterns, ownership, and plugin compatibility; implementation is the source for current styling behavior.
- Reuse a suitable primitive where possible. Keep existing layout and behavior unless the task calls for changing them. Migrate touched controls incrementally rather than expanding the task into a whole-app restyle.
Put reusable behavior in the right place
- Let primitives own common control treatments. Keep consumer styles focused on layout and domain content.
- If a treatment is missing, consider extending an existing primitive before creating a local variant. Add a new primitive when it represents a reusable pattern, not merely to wrap one screen's markup.
- Preserve native semantics, accessible names, keyboard interaction, focus management, and action behavior. Styling alone does not supply an interaction contract.
- For plugins, use the supported host UI styles capability and respect its compatibility boundary; see the primitive reference rather than deep-importing internal styles.
- When a shared treatment changes, update its reference documentation alongside the implementation. Keep dimensions, selectors, and exceptions there instead of duplicating them in this skill or
AGENTS.md.
Review the result
Check hierarchy, grouping, target boundaries, and feedback in the context of the user task. Related actions should read as related; risky or unrelated actions should remain distinguishable. Check relevant hover, focus, selected, disabled, loading, and error states rather than judging only the idle screenshot.
Verify changed geometry in a real browser at relevant viewport sizes and pointer modes. Look for gaps, overlapping targets, clipped focus indicators, and scroll-container problems. DOM-only tests cannot establish visual geometry. Use the testing guide for behavioral coverage, and report any browser verification that could not be completed.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- changeset-changelogSkill
- code-quality-architectureSkill
- documentation-guideSkill
- npm-release-via-github-actionsSkill
- testing-guideSkill
- relay-runnerSkill
- relaySkill
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.

