frontend-ux

Enforce Ethereum dApp frontend UX rules for pending states, approvals, and RPC reliability.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/mashharuki/flare-sample --skill frontend-ux-mashharuki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-ux
Source: https://github.com/mashharuki/flare-sample/tree/main/.claude/skills/eth-frontend-ux
Command: npx skills add https://github.com/mashharuki/flare-sample --skill frontend-ux-mashharuki

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill codifies frontend UX rules that eliminate common Ethereum dApp failures such as duplicate submissions, stale approval state, unclear address handling, missing USD context, unreliable RPC polling, and poor pre-publish metadata.

Core Features & Use Cases

  • Per-action pending states: Buttons disable immediately, show a clear pending label and spinner, and remain locked until onchain confirmation to prevent duplicate or conflicting transactions.
  • Four-state action flow: Enforce a single visible action through Connect Wallet, Switch Network, Approve, then Execute to reduce user confusion and invalid flows.
  • Address and token UX: ENS/name resolution, validation, paste normalization, copy-to-clipboard, explorer links, safe truncation, and human-readable token units with USD context for balances and confirmations.
  • RPC reliability and polling: Use dedicated providers, reasonable polling intervals, intentional fallbacks, and rate-limit awareness to avoid runaway requests and stale state.
  • Theming and pre-publish checks: Semantic theme tokens, accessible defaults, and production-ready Open Graph/Twitter metadata and favicon requirements.
  • Contract error translation: Extract ABI/custom errors and present human-readable messages with inline persistent error UI near the triggering action.

Quick Start

Apply the frontend-ux rules to your dApp: ensure every onchain button disables on click, shows a pending state, verifies approval from onchain state, and displays USD context for token amounts.

Frequently Asked Questions about frontend-ux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent duplicate Ethereum transactions in my dApp's wallet-connected interface?

Preventing duplicate Ethereum transactions requires enforcing per-action pending states where buttons disable immediately, show a pending label with a spinner, and remain locked until onchain confirmation resolves.

What is the correct approval flow UX for Ethereum token transfers and staking?

The correct Ethereum approval flow enforces a single visible action progressing sequentially through Connect Wallet, Switch Network, Approve, then Execute to eliminate user confusion and invalid transaction states.

How do I handle ENS resolution and address validation for Ethereum wallet inputs?

ENS resolution and address validation require normalizing pasted inputs, resolving names onchain, providing safe truncation, copy-to-clipboard functionality, and displaying direct links to block explorers.

How do I make Ethereum RPC polling reliable without triggering rate limits?

Reliable Ethereum RPC polling uses dedicated providers, reasonable polling intervals, intentional fallbacks, and rate-limit awareness to avoid runaway requests and stale state across wallet interfaces.

How do I translate Ethereum smart contract errors into human-readable messages?

Translating Ethereum contract errors involves extracting ABI and custom errors, mapping them to human-readable messages, and displaying inline persistent error UI near the triggering action.

What pre-publish metadata and theming checks are needed for Ethereum dApps?

Pre-publish checks for Ethereum dApps require semantic theme tokens, accessible defaults, and production-ready Open Graph and Twitter metadata alongside proper favicon configuration.