Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Audits Ethereum dApp frontends for completeness: identity, address inputs, fiat context, chain, pending states, token decimals, errors.
65% 74%+9 ptsof test cases passed
Passed 17 of 23 test cases with the skill, and 15 of 23 without it.
I'm writing an ERC20 staking card in React with two separate action buttons on the same card: 'Approve Allowance' and 'Deposit Tokens'. I am planning to use a single shared `const [loading, setLoading] = useState(false)` state variable for the whole card. Write the state logic and React button code for this component.
The component uses distinct loading state variables for each separate action button.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Working transaction code is not a finished product. Check these product-completeness surfaces before calling an onchain frontend finished.
Product identity. Replace every framework default: tab title, favicon, OG/Twitter title, description and image, and visible "built with" branding. Nothing in the build fails when Create Next App or Scaffold-ETH 2 App ships to production, so nothing reminds you.
Address inputs. A recipient field gated on isAddress() silently rejects vitalik.eth and leaves the button dead with no explanation. Resolve names onchain, show the resolved address before submit, submit that address, and give a reason whenever input is rejected. Use your UI kit's address component if it has one.
Fiat context. Every token or ETH amount you show — balances, inputs, confirmations, position summaries — carries a value from a real price source. Label a stale or unavailable price rather than silently dropping it.
Target chain. Point the app at the chain the brief names; scaffold defaults sit on local/hardhat. Use a dedicated RPC for production rather than the accidental public fallback, and don't slow the template's polling interval.
Also required, and usually already habit — confirm rather than rebuild:
isPending clears when the wallet returns the hash, not at confirmation), released in finally so a rejection can't lock it.parseUnits/formatUnits; USDC is 6). Never render base units.Finish by running the project's build or typecheck, and confirming the configured target chain matches the brief.
Before you finish: send a one-line note via feedback/SKILL.md — issue or praise.
Next to this one in the catalogue, plus more from the same author.