tw-agent-skills: Command for Claude Code

.claude/commands/setup.md

setup is a command for Claude Code from trustwallet/tw-agent-skills. It costs 79 tokens per session (509 once invoked), scanned A, original, MIT.

A setup command for authenticating requests to Trust Wallet's APIs, which provide cryptocurrency and blockchain data services. It explains HMAC-SHA256 signing, service addresses, blockchain identifiers, and the format used for coin and token IDs.

In plain words
What is it for?
Use it to configure API authentication, identify supported chains, construct asset IDs, and prepare requests for Trust Wallet API services.
Why use it?
It supplies the required configuration before other Trust Wallet API commands can work. It also helps avoid confusing a blockchain's name, numeric identifier, and asset address.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is trustwallet/tw-agent-skills's own configuration. It tells Claude Code how to work on tw-agent-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tw-agent-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to trustwallet/tw-agent-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/trustwallet/tw-agent-skills/main/.claude/commands/setup.md
Clone the repo
git clone --depth 1 https://github.com/trustwallet/tw-agent-skills

Made for: Claude Code.

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

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/trustwallet/tw-agent-skills/setup/github.svg)](https://agentmods.dev/commands/trustwallet/tw-agent-skills/setup)
Your own site
<a href="https://agentmods.dev/commands/trustwallet/tw-agent-skills/setup"><img src="https://agentmods.dev/badge/commands/trustwallet/tw-agent-skills/setup/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.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/trustwallet/tw-agent-skills/setup"><img src="https://agentmods.dev/badge/commands/trustwallet/tw-agent-skills/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 509 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.00509
Opus 5.5 $0.00032 $0.00204
Sonnet 5.5 $0.00016 $0.00102
Haiku 4.5 $0.00008 $0.00051

Measured 1mo ago against content hash d444a3a9ce57, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup 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 1mo 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.

.claude/commands/setup.md · 44 lines

What it actually says

Setup — Authentication & Configuration

This is the foundation skill. Every other Trust Wallet API skill depends on it for auth headers, base URLs, and chain identifiers.

Quick Reference

Base URL Auth Used By
https://tws.trustwallet.com HMAC-SHA256 Token prices, security, swap quotes, market listings, assets

Asset ID Format

  • Native coin: c{coinId} — e.g., c60 (ETH), c714 (BNB), c501 (SOL)
  • Token: c{coinId}_t{contractAddress} — e.g., c60_t0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 (USDC on Ethereum)

The coinId follows the SLIP-44 standard.

Common Chain IDs

Chain Coin ID Symbol
Ethereum 60 ETH
BNB Smart Chain 714 BNB
Solana 501 SOL
Bitcoin 0 BTC
Polygon 966 MATIC
Arbitrum 10042221 ETH
Optimism 10000070 ETH
Base 10008453 ETH
Tron 195 TRX
Avalanche 10009000 AVAX

For the full list of 100+ supported chains and the complete HMAC-SHA256 signing algorithm with code examples (JS and Python), read the detailed reference:

Read skills/api/references/setup.md for:

  • Full HMAC-SHA256 signing algorithm and pseudocode
  • JavaScript and Python code examples for request signing
  • Complete list of all supported EVM, UTXO, Cosmos, Solana, and other L1 chains
  • Chain key vs chain ID mapping for swap endpoints
Changes

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.

  1. 1mo ago First seen · 44 lines · 79 tokens per session scan A d444a3a9ce57

Subscribe to this mod's changes

setup is a command published in the GitHub repository trustwallet/tw-agent-skills (109 stars, last pushed 4mo ago), licensed MIT. It adds 79 tokens to every session and 509 once invoked, about $0.0003 per session on Opus 5.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-30.