frontend-ux
Installation
SKILL.md
Frontend UX Rules
What You Probably Got Wrong
"The button works." A clickable button is not enough. It must disable immediately, show a clear pending state, and stay locked until onchain confirmation.
"Addresses are just strings." Address UX needs validation, safe formatting, copy support, explorer linking, and ENS/name handling where available.
"Token amounts are clear." Raw token values without USD context force users to guess risk and value. Show dollar context anywhere amounts matter.
Rule 1: Every Button Interacting Onchain Needs Its Own Pending State
Any button that triggers an onchain transaction must:
- Disable immediately on click
- Show spinner + action text (
Approving...,Staking...) - Stay disabled until chain state confirms completion
- Show success/error feedback when done