Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add TronLink/tronlink-skills/plugin install tronlink-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/tronlink/tronlink-skills/tron-swap)<a href="https://agentmods.dev/skills/tronlink/tronlink-skills/tron-swap"><img src="https://agentmods.dev/badge/skills/tronlink/tronlink-skills/tron-swap/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/tronlink/tronlink-skills/tron-swap"><img src="https://agentmods.dev/badge/skills/tronlink/tronlink-skills/tron-swap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00137 | $0.01466 |
| Opus 5 | $0.00068 | $0.00733 |
| Sonnet 5 | $0.00027 | $0.00293 |
| Haiku 4.5 | $0.00014 | $0.00147 |
Grade A, and why
tron-swap scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TRON DEX Swap
3 commands for swap quote, route optimization, and transaction status tracking (read-only queries).
Pre-flight Checks
-
Confirm Node.js >= 18:
node -e "console.log('ok')" # Node.js >= 18 required -
Check energy before swapping: Swaps consume significant Energy (typically 50,000–200,000). Run:
node "$TRON_API" resource-info --address <YOUR_ADDRESS>If energy is insufficient, consider freezing TRX first (
tron-staking) or accept TRX burn cost.
Resolve the CLI path
Every command below runs node "$TRON_API". Set $TRON_API once per session so it works no matter how the skill was installed (Claude Code plugin, install.sh → ~/.tronlink-skills, or inside the cloned repo):
TRON_API="${CLAUDE_PLUGIN_ROOT:-$HOME/.tronlink-skills}/scripts/tron_api.mjs"
[ -f "$TRON_API" ] || TRON_API="scripts/tron_api.mjs" # fallback when run inside the repo
Read-only: these commands quote and inspect swaps; they do not sign or broadcast transactions.
Commands
1. Swap Quote
node "$TRON_API" swap-quote \
--from-token <FROM_CONTRACT_OR_TRX> \
--to-token <TO_CONTRACT_OR_TRX> \
--amount <HUMAN_READABLE_AMOUNT> \
[--slippage 0.5]
Returns: expected output amount, slippage_pct, minimum_received (= amount_out × (1 − slippage), your worst-case fill), price impact, fee, route path, and estimated energy cost. Default slippage is 0.5%; --slippage is validated to the 0–50% range (a larger value is rejected rather than producing a negative minimum_received). --amount must be a positive number. The same slippage parameter is also exposed on the MCP tron_swap_quote tool.
⚠️ Amount is human-readable — pass 100 for 100 TRX, NOT 100000000.
Example:
# Quote: 100 TRX → USDT
node "$TRON_API" swap-quote \
--from-token TRX \
--to-token TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t \
--amount 100
2. Best Route
node "$TRON_API" swap-route \
--from-token <FROM_CONTRACT> \
--to-token <TO_CONTRACT> \
--amount <AMOUNT>
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 123 lines · 137 tokens per session scan A 9cfc44da4dfe
tron-swap is a skill published in the GitHub repository TronLink/tronlink-skills (7 stars, last pushed 2mo ago), licensed MIT. It adds 137 tokens to every session and 1,466 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
mpp-agent
Pay HTTP 402 APIs via Machine Payments Protocol (MPP).
bridge
Cross-chain token transfers using Wormhole and CCTP.
hyperliquid
Hyperliquid L1 perps DEX (69% market share).
marginfi
MarginFi — Solana lending and borrowing.
crypto-market-rank
Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings…
trading-signal
Subscribe and retrieve on-chain Smart Money signals. Monitor trading activities of smart money addresses, including buy/sell signals, trigger price, current price, max gain, and exit rate. Use this skill when users are looking for investment opportunities — smart money signals can serve as valuable references for…