# Tron resource

> Tron resource is an open-source agent skill for developer tools. Estimates TRON Energy and Bandwidth costs and guides resource choices for transactions. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/TronLink/tronlink-skills/tree/main/skills/tron-resource
- **Repository:** https://github.com/tronlink/tronlink-skills
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** tron-resource
- **Collection:** https://github.com/TronLink/tronlink-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/TronLink/tronlink-skills/tree/HEAD/skills/tron-resource)
- [License: MIT](https://github.com/TronLink/tronlink-skills/tree/HEAD/skills/tron-resource)

## Features

- **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

## Install

### Claude Code

This skill ships in the `tronlink-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add TronLink/tronlink-skills
/plugin install tronlink-skills@tronlink-skills
```

Or copy only this skill to `~/.claude/skills/tron-resource`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/tron-resource` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/tron-resource` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/TronLink/tronlink-skills.git --path skills/tron-resource
```

Or copy the folder to `~/.gemini/skills/tron-resource` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/tron-resource`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/TronLink/tronlink-skills.git
```

Then 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.

## 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.

---
Source: https://ai-powered.com/skills/tron-resource
