Agent skill

Unit Conversion

by Nethereum in Nethereum/Nethereum

Convert between Wei, Ether, Gwei, and other Ethereum denominations with Nethereum.

MITAuto-check passedBackend & APIs

Install Unit Conversion

skills CLI
$ npx skills add Nethereum/Nethereum --skill unit-conversion -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Nethereum/Nethereum unit-conversion --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/nethereum-skills/skills/unit-conversion .claude/skills/unit-conversion && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
unit-conversion
GitHub stars
2.3k
Token cost
~759 tokens
SKILL.md length
94 words
Files
1
Skills in repo
71
Repo updated
First seen
Licence
MIT

At a glance

Convert between Wei, Ether, Gwei, and other Ethereum denominations with Nethereum.

  • The user needs to convert ETH units
  • SKILL.md covers Wei to Ether and Back, Gwei Conversion, Other Denominations and Custom Decimals for ERC-20…, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Handle token decimals

What it does

Unit Conversion is an agent skill from Nethereum/Nethereum. Convert between Wei, Ether, Gwei, and other Ethereum denominations with Nethereum. Use when the user needs to convert ETH units, handle token decimals, or work with BigDecimal precision for large values.

Its SKILL.md is about 760 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs. It works with Ethereum. The repository describes itself as: Ethereum .Net cross platform integration library. The licence is MIT.

When your agent uses it

  • The user needs to convert ETH units
  • Handle token decimals
  • Work with BigDecimal precision for large values

Example prompts

  • “/unit-conversion”

What it can do on your machine

Read from SKILL.md and the folder at commit 229f278. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are csharp).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Unit Conversion loads about 759 tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 94 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~759

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Nethereum/Nethereum at commit 229f278, republished under its MIT licence (© Nethereum). 94 words, ~759 tokens.

Download SKILL.mdSave it as .claude/skills/unit-conversion/SKILL.md (or your agent's skills folder).
name
unit-conversion
description
Convert between Wei, Ether, Gwei, and other Ethereum denominations with Nethereum. Use when the user needs to convert ETH units, handle token decimals, or work with BigDecimal precision for large values.
user-invocable
true

Unit Conversion

NuGet: Nethereum.Util (included in Nethereum.Web3)

Source: tests/Nethereum.ABI.UnitTests/UtilDocExampleTests.cs

Wei to Ether and Back

csharp
using System.Numerics;
using Nethereum.Util;

var convert = UnitConversion.Convert;

// Ether to Wei
var oneEtherInWei = convert.ToWei(1, UnitConversion.EthUnit.Ether);
// Result: 1000000000000000000

// Wei to Ether
var etherValue = convert.FromWei(BigInteger.Parse("1500000000000000000"));
// Result: 1.5m

Gwei Conversion

csharp
var convert = UnitConversion.Convert;

// Gwei to Wei (e.g., gas price)
var gweiInWei = convert.ToWei(21, UnitConversion.EthUnit.Gwei);
// Result: 21000000000

// Wei to Gwei
var gweiValue = convert.FromWei(BigInteger.Parse("21000000000"), UnitConversion.EthUnit.Gwei);
// Result: 21m

Other Denominations

csharp
var convert = UnitConversion.Convert;

var finneyInWei = convert.ToWei(1, UnitConversion.EthUnit.Finney);
// Result: 1000000000000000

var szaboInWei = convert.ToWei(1, UnitConversion.EthUnit.Szabo);
// Result: 1000000000000

var ketherInWei = convert.ToWei(1, UnitConversion.EthUnit.Kether);
// Result: 1000000000000000000000

Custom Decimals for ERC-20 Tokens

Use integer decimal places instead of EthUnit for tokens with non-18 decimals (e.g., USDC = 6, WBTC = 8).

csharp
var convert = UnitConversion.Convert;

// USDC (6 decimals): raw value to human-readable
var usdcValue = convert.FromWei(BigInteger.Parse("1000000"), 6);
// Result: 1m

// Human-readable to raw value
var usdcRaw = convert.ToWei(1m, 6);
// Result: 1000000

BigDecimal Precision

For very large values where decimal would lose precision, use FromWeiToBigDecimal.

csharp
var convert = UnitConversion.Convert;
var largeWei = BigInteger.Parse("123456789012345678901234567890");

var bigDecimal = convert.FromWeiToBigDecimal(largeWei, UnitConversion.EthUnit.Ether);

// Round-trip back to Wei without precision loss
var backToWei = convert.ToWei(bigDecimal, UnitConversion.EthUnit.Ether);
// backToWei == largeWei

Denomination Reference Table

UnitEthUnit EnumWei
WeiEthUnit.Wei1
GweiEthUnit.Gwei1,000,000,000
SzaboEthUnit.Szabo1,000,000,000,000
FinneyEthUnit.Finney1,000,000,000,000,000
EtherEthUnit.Ether1,000,000,000,000,000,000
KetherEthUnit.Kether1,000,000,000,000,000,000,000

For custom token decimals, pass an int instead of EthUnit:

  • USDC/USDT: 6
  • WBTC: 8
  • DAI/ETH: 18

© Nethereum, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/nethereum-skills/skills/unit-conversion of Nethereum/Nethereum.

Open the folder on GitHubat commit 229f278

Compare with similar skills

Unit Conversion next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Unit Conversion compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Unit Conversion this skillNethereum/Nethereum2.3k—~759Automated safety check: PassMIT
Explorer Contract Verificationsablier-labs/evm-monorepo353—~1.9kAutomated safety check: PassCustom licence
Developing Smart ContractsLFDT-Lineth/lineth-monorepo126—~1.4kAutomated safety check: PassAGPL-3.0
Deposit QrSuperior-Trade/superior-skills214—~1.1kAutomated safety check: PassMIT
Squash BugbotLFDT-Lineth/lineth-monorepo126—~3.3kAutomated safety check: PassApache-2.0
Ops Indexer Queryboundless-xyz/boundless193—~3.5kAutomated safety check: PassApache-2.0

Similar skills

  • Explorer Contract Verification

    sablier-labs/evm-monorepo

    Verify smart contracts on Etherscan, Routescan, and Blockscout block explorers.

    353 GitHub stars~1.9k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Developing Smart Contracts

    LFDT-Lineth/lineth-monorepo

    Solidity smart contract development guidelines for Lineth blockchain.

    126 GitHub stars~1.4k tokensUpdated today
    Backend & APIsAuto-check passed
  • Deposit Qr

    Superior-Trade/superior-skills

    A skill your agent uses when a user needs a QR code or wallet payment URI to fund a Superior-managed EVM wallet on a specific chain before using Lighter, Polymarket, Hyperliquid, or other Superior…

    214 GitHub stars~1.1k tokensUpdated 29 days ago
    Backend & APIsAuto-check passed
  • Squash Bugbot

    LFDT-Lineth/lineth-monorepo

    Triage unresolved bot review comments on a GitHub PR. An agent skill from LFDT-Lineth/lineth-monorepo.

    126 GitHub stars~3.3k tokensUpdated today
    Backend & APIsAuto-check passed
  • Ops Indexer Query

    boundless-xyz/boundless

    Internal — for Boundless team members only. An agent skill from boundless-xyz/boundless.

    193 GitHub stars~3.5k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • External Call Safety

    quillai-network/quillshield_skills

    Detects unsafe external call patterns and token integration vulnerabilities in smart contracts.

    130 GitHub stars~3.1k tokensUpdated 6 mo ago
    Backend & APIsAuto-check passed

More from Nethereum/Nethereum

All 71 skills in this repo
  • Aa Batching Paymasters

    Nethereum/Nethereum

    Help users batch multiple calls into a single UserOperation and sponsor gas with paymasters using Nethereum Account Abstraction.

    2.3k GitHub stars~1.5k tokensUpdated 4 days ago
    Auto-check passed
  • Aa Bundler

    Nethereum/Nethereum

    Help users run an ERC-4337 bundler using Nethereum — set up in-process or standalone bundlers with mempool, validation, reputation, and JSON-RPC server.

    2.3k GitHub stars~1.2k tokensUpdated 4 days ago
    Auto-check passed
  • Abi Encoding

    Nethereum/Nethereum

    Encode and decode Ethereum ABI data with Nethereum. An agent skill from Nethereum/Nethereum.

    2.3k GitHub stars~1.3k tokensUpdated 4 days ago
    Auto-check passed
  • Abi Retrieval

    Nethereum/Nethereum

    Fetch contract ABIs from Sourcify, Etherscan, and 4Byte Directory using the composite ABIInfoStorage pattern (.NET/C).

    2.3k GitHub stars~1.5k tokensUpdated 4 days ago
    Auto-check passed
  • Account Abstraction

    Nethereum/Nethereum

    Help users implement ERC-4337 Account Abstraction with Nethereum — send UserOperations, use smart accounts, route contract calls through a bundler, enable gasless transactions, or work with AA in…

    2.3k GitHub stars~1.7k tokensUpdated 4 days ago
    Auto-check passed
  • Address Utils

    Nethereum/Nethereum

    Validate and format Ethereum addresses with Nethereum. An agent skill from Nethereum/Nethereum.

    2.3k GitHub stars~1.2k tokensUpdated 4 days ago
    Auto-check passed

Works with

Categories

Questions about Unit Conversion

What does Unit Conversion do?

Convert between Wei, Ether, Gwei, and other Ethereum denominations with Nethereum. Unit Conversion is an agent skill from Nethereum/Nethereum. Convert between Wei, Ether, Gwei, and other Ethereum denominations with Nethereum.

When should I use Unit Conversion?

Unit Conversion fits situations like: the user needs to convert ETH units; handle token decimals; work with BigDecimal precision for large values.

How do I install Unit Conversion in Claude Code?

Run `npx skills add Nethereum/Nethereum --skill unit-conversion -a claude-code`. Or copy the skill folder (plugins/nethereum-skills/skills/unit-conversion in Nethereum/Nethereum) into .claude/skills/unit-conversion in your project. Claude Code loads it when a task matches its description.

How do I install Unit Conversion in Codex?

Run `npx skills add Nethereum/Nethereum --skill unit-conversion -a codex`. Or copy the skill folder (plugins/nethereum-skills/skills/unit-conversion in Nethereum/Nethereum) into .agents/skills/unit-conversion in your project. Codex loads it when a task matches its description.

Can I use Unit Conversion in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Nethereum/Nethereum --skill unit-conversion -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/unit-conversion, .gemini/skills/unit-conversion, .github/skills/unit-conversion and .opencode/skills/unit-conversion in your project.

What does Unit Conversion need to run?

SKILL.md names no scripts, command-line tools or credentials: Unit Conversion is instructions for the agent only.

Does Unit Conversion access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Unit Conversion safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Unit Conversion use?

Unit Conversion is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Unit Conversion use?

About 759 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Unit Conversion?

Skills that share tags, products or a category with Unit Conversion: Explorer Contract Verification (sablier-labs/evm-monorepo, 353 stars), Developing Smart Contracts (LFDT-Lineth/lineth-monorepo, 126 stars), Deposit Qr (Superior-Trade/superior-skills, 214 stars) and Squash Bugbot (LFDT-Lineth/lineth-monorepo, 126 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Unit Conversion?

Nethereum (a GitHub organization) maintains it in Nethereum/Nethereum, which has 2,260 GitHub stars. The repository holds 71 skills in this directory. The repository was last updated on October 5, 2026.

Source: Nethereum/Nethereum on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.