
Tron resource
Estimates TRON Energy and Bandwidth costs and guides resource choices for transactions
Tron resource is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 8
- Last commit
- License
- MIT
- Listing updated
About Tron resource
This skill teaches an agent how TRON's two transaction resources work, Bandwidth for every transaction and Energy for smart contract calls, and how burned TRX costs follow from them. It ships a set of commands that query an account's resource balances, estimate Energy and Bandwidth for a contract call or transfer, and read live Energy and Bandwidth prices and chain parameters.
The workflow starts with checking the account's current resources, then estimating the cost of the intended operation. The agent can compare options such as freezing TRX, renting Energy from third-party marketplaces, or accepting the TRX burn, and it can produce a cost-optimization report for a given address. A rental directory command lists platforms for a required Energy amount without pulling live per-platform rates.
The commands run through a Node.js script, tron_api.mjs, and need network access to TRON data. Contract calls with arguments require ABI-encoded hex parameters rather than readable strings, so the agent must encode them before estimating.
When your agent uses it
This skill should be used when the user asks about 'TRON energy', 'TRON bandwidth', 'how much energy do I need', 'energy cost on TRON', 'bandwidth insufficient', 'resource delegation on TRON', 'rent energy on TRON', 'TRON transaction fee', 'why is my TRON transaction expensive', 'optimize TRON costs', or mentions Energy, Bandwidth, resource management, fee estimation, or cost optimization on the TRON network. This is a TRON-specific concept with no direct equivalent on EVM chains. Do NOT use for staking/voting — use tron-staking. Do NOT use for balance queries — use tron-wallet.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (7 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the tronlink-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add TronLink/tronlink-skills
/plugin install tronlink-skills@tronlink-skillsOr copy only this skill to ~/.claude/skills/tron-resource:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/TronLink/tronlink-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/tron-resource &&
cp -R "$tmp/skills/tron-resource" ~/.claude/skills/tron-resource &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/tron-resource inside it instead.
Copy the skill folder to ~/.agents/skills/tron-resource to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/TronLink/tronlink-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/tron-resource &&
cp -R "$tmp/skills/tron-resource" ~/.agents/skills/tron-resource &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/tron-resource inside it instead.
Copy the skill folder to ~/.cursor/skills/tron-resource to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/TronLink/tronlink-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/tron-resource &&
cp -R "$tmp/skills/tron-resource" ~/.cursor/skills/tron-resource &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/tron-resource inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/TronLink/tronlink-skills.git --path skills/tron-resourceOr copy the folder to ~/.gemini/skills/tron-resource yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/tron-resource:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/TronLink/tronlink-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/tron-resource &&
cp -R "$tmp/skills/tron-resource" ~/.copilot/skills/tron-resource &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/tron-resource inside it instead.
Get the folder:
git clone --depth 1 https://github.com/TronLink/tronlink-skills.gitThen copy tronlink-skills/skills/tron-resource into your agent's skills folder as tron-resource. Agents that support SKILL.md read one folder per skill.
What it does
- Resource balance lookup
- Shows an address's free and staked Bandwidth, Energy, and TRX frozen for each resource.
- Energy and Bandwidth estimates
- Estimates Energy for contract calls and Bandwidth for a given transaction size.
- Live price snapshots
- Reads current on-chain Energy and Bandwidth prices and converts them to TRX burn costs.
- Common operation cost checks
- Gives combined resource and TRX burn costs for transfers, approvals and swaps.
- Cost optimization report
- Recommends whether to freeze TRX, rent Energy or burn TRX for an address's usage.
- Energy rental directory
- Lists third-party Energy rental platforms for a requested amount of Energy.
Good for
- Check how much Energy a USDT transfer on TRON will consume
- Explain why a TRON transaction is costing TRX in fees
- Work out whether to freeze TRX or rent Energy for regular transfers
- Find current Energy and Bandwidth prices before a large transaction
- Estimate the TRX cost of a SunSwap token swap
Tron resource FAQ
What does Tron resource need to run?
It runs commands through a Node.js script, tron_api.mjs, and the skill's instructions say to set a TRON_API path variable first. Contract calls with arguments need ABI-encoded hex parameters.
Does Tron resource change anything on the account?
The documented commands are queries and estimates: resource lookups, cost estimates, price reads, chain parameters and a rental directory. The instructions do not describe any command that sends a transaction.
When does the skill apply, and what is left to other skills?
It applies to questions about TRON Energy, Bandwidth, fees and resource costs. Staking and voting are handled by the tron-staking skill, and balance queries by tron-wallet.
How often do Energy and Bandwidth recover?
According to the skill, both recover over 24 hours after use, and free Bandwidth of 600 points resets daily at 00:00 UTC.
How do I install Tron resource in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/tron-resource to use it in all your projects, or to .claude/skills/tron-resource in one project. Or install the tronlink-skills plugin, which includes it: /plugin marketplace add TronLink/tronlink-skills, then /plugin install tronlink-skills@tronlink-skills.
Does Tron resource run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Tron resource?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
Where this comes from
- Description: from the skill's own SKILL.md.
More from TronLink/tronlink-skills

Gives agents TRON token prices, candlestick data, transfers and whale alerts
- Open source
- 8 GitHub stars
- Finance and payments

Read-only TRON staking info: SR list, staking status and APY estimates
- Open source
- 8 GitHub stars
- Finance and payments

Quotes and routes token swaps on TRON DEXes and tracks swap transaction status
- Open source
- 8 GitHub stars
- Finance and payments

Looks up TRON tokens: metadata, holders, rankings, contract checks and a risk snapshot
- Open source
- 8 GitHub stars
- Finance and payments

Check TRON wallet balances, TRC-20 holdings, history and token approvals (read-only)
- Open source
- 8 GitHub stars
- Finance and payments

