
Description
evm-token-decimals is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It prevents a specific class of bug in code that handles EVM tokens: silent decimal mismatches that produce balances or dollar values wrong by orders of magnitude without raising an error. The guidance is to never assume a token uses the same decimals on every chain, so the agent should read decimals() at runtime, cache results by chain ID and token address, and use decimal-safe arithmetic for value calculations. It also covers bridged assets, where precision can drift between chains, and it includes examples. The skill applies when reading ERC-20 balances in Python, TypeScript or Solidity, converting on-chain balances to fiat, comparing amounts across chains, or building portfolio trackers, bots or aggregators. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- Reads decimals at runtime, not by assumption
- Chain-aware cache by chain and token address
- Decimal-safe value math
- Handles bridged token precision drift
Ratings & Reviews
No ratings yet
Be the first to rate evm-token-decimals.
People also visit

webapp-testing
Test local web applications using Playwright for UI verification and debugging

content-research-writer
Assists in writing high-quality content by conducting research

batch-grill-me
A relentless interview that asks every frontier question at once, round by round
evm-token-decimals FAQ
What does the evm-token-decimals skill prevent?
Silent decimal mismatch bugs, where a token balance or USD value is off by orders of magnitude without an error.
Why not hardcode decimals?
The skill says not to assume stablecoins use the same decimals everywhere, and to query decimals() on each chain.
Which languages does it cover?
Python, TypeScript and Solidity.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill evm-token-decimals
Is it free?
Yes. It is free and open source.
What are the best evm-token-decimals alternatives?
Popular alternatives to evm-token-decimals include nodejs-keccak256, webapp-testing and content-research-writer. See all evm-token-decimals alternatives


