eli5
Explain a topic like I'm a 5 year old. Use when the user types /eli5 <topic> or asks for a dead-simple picture explainer of how…
Validate wallet balances in TRES Finance against DeBank and generate a discrepancy report. Use this skill whenever the user asks to validate, verify, cross-check, or audit their TRES balances against on-chain data or DeBank. Also trigger when the user asks if their balances are
Claude Code
$ npx -y skills add anthropics/claude-plugins-community --skill tres-asset-balance-validation --agent claude-code
Codex
$ npx skills add anthropics/claude-plugins-community --skill tres-asset-balance-validation -a codex -y
Cursor
$ npx skills add anthropics/claude-plugins-community --skill tres-asset-balance-validation -a cursor -y
Gemini CLI
$ npx skills add anthropics/claude-plugins-community --skill tres-asset-balance-validation -a gemini-cli -y
GitHub Copilot
$ npx skills add anthropics/claude-plugins-community --skill tres-asset-balance-validation -a github-copilot -y
OpenCode
$ npx skills add anthropics/claude-plugins-community --skill tres-asset-balance-validation -a opencode -y
Windsurf
$ npx skills add anthropics/claude-plugins-community --skill tres-asset-balance-validation -a windsurf -y
name: tres-asset-balance-validation description: > Validate wallet balances in TRES Finance against DeBank and generate a discrepancy report. Use this skill whenever the user asks to validate, verify, cross-check, or audit their TRES balances against on-chain data or DeBank. Also trigger when the user asks if their balances are correct or wants to see discrepancies. Only EVM-compatible wallets are supported.
This skill validates wallet balances in **Tres Finance** against **DeBank**, providing a clear discrepancy report as both an interactive HTML file and a PDF. It compares per-asset token amounts (including DeFi position underlying tokens) for each EVM wallet and flags matches, minor differences, major discrepancies, missing assets, untracked tokens, and unmatched positions.
> **Scope:** Only EVM-compatible wallets are supported (DeBank limitation). Exchange accounts, non-EVM chains, and empty wallets are skipped.
---
Trigger this skill whenever a user asks to:
**Example phrases:**
---
| Requirement | Details | |---|---| | TRES Finance access | Must be authenticated via `get_viewer` | | DeBank API key | Free key available at [cloud.debank.com](https://cloud.debank.com) | | EVM wallets | At least one `0x...` wallet tracked in TRES |
---
Call `get_viewer` to confirm the organization name.
**IMPORTANT — Timeout handling:** The `internalAccount` query with both `balances` and `positions` will timeout for large orgs. Split into two separate queries:
**Query 1: Wallets + Balances only (no positions)**
query {
internalAccount {
results {
id
name
identifier
isExchange
platforms
balances {
amount
asset {
symbol
contract { identifier }
}
fiatValue { value unitPrice fiatCurrency }
}
}
}
}> **Note:** The `amount` field is returned as a **string**, not a number. Always `float()` it before arithmetic.
**Wallet classification:**
| Type | Condition | Validated? | |---|---|---| | EVM | `0x...` address + EVM platform + `isExchange: false` | ✅ Yes | | Exchange | `isExchange: true` | ❌ No | | Non-EVM | Bitcoin, Tezos, Tron, etc. | ❌ No | | Empty | No asset balances | ❌ No |
**Supported EVM platforms:** Ethereum, Arbitrum, Optimism, Polygon, Base, Avalanche, Binance, Gnosis Chain, zkSync, Fantom, Celo, Berachain, Linea, Scroll, Sonic, HyperEVM.
**Do NOT use the `positions` sub-field on `internalAccount`** — it returns all historical snapshots (can be 3000+ entries per wallet) and will timeout or exceed token limits.
Instead, use the dedicated `getStatelessWalletsPositions` query which returns **current** positions only:
query {
getStatelessWalletsPositions(
walletIdentifiers: ["0x..."],
platform: ETHEREUM,
application: "aave-v3"
) {
walletIdentifier
displayName
positionType
platform
children {
symbol
amount
assetIdentifier
fiatValue
}
fiatValue
id
}
}**Required parameters:**
**Optional but recommended:**
**IMPORTANT:** Without the `application` filter, the query returns empty results. Always specify the application.
**Batching strategy:** 1. First, fetch DeBank `all_complex_protocol_list` for each wallet to discover which protocols have positions 2. Map DeBank protocol names to TRES application names (lowercase, hyphenated) 3. Use GraphQL aliases to batch multiple wallet+platform+application combos into a single query:
query {
a1: getStatelessWalletsPositions(walletIdentifiers: ["0x..."], platform: ETHEREUM, application: "aave-v3") {
walletIdentifier displayName positionType platform id
children { symbol amount assetIdentifier fiatValue }
}
a2: getStatelessWalletsPositions(walletIdentifiers: ["0x..."], platform: ETHEREUM, application: "verse") {
walletIdentifier displayName positionType platform id
children { symbol amount assetIdentifier fiatValue }
}
}Keep each batched query to ~6 aliases max to avoid timeouts.
Read `DEBANK_API_KEY` from plugin user config — do **not** ask the user to paste it in chat. If the key is absent or empty, stop and display:
> "DEBANK_API_KEY is not configured. Please add it via the plugin settings (obtain your key at https://cloud.debank.com)."
For each EVM wallet, fetch **two** endpoints:
1. **Token balances:** `all_token_list` — covers all chains without requiring a `chain_id` 2. **DeFi protocol positions:** `all_complex_protocol_list` — returns LP, staking, lending positions with underlying token amounts
Use `--data-urlencode` with `-G` so the wallet address is never shell-interpolated into the URL string:
# Token balances
curl -s -G \
-H "AccessKey: ${user_config.DEBANK_API_KEY}" \
--data-urlencode "id=$WALLET_ADDR" \
"https://pro-openapi.debank.com/v1/user/all_token_list"
# DeFi positions
curl -s -G \
-H "AccessKey: ${user_config.DEBANK_API_KEY}" \
--data-urlencode "id=$WALLET_ADDR" \
"htExplain a topic like I'm a 5 year old. Use when the user types /eli5 <topic> or asks for a dead-simple picture explainer of how…
Write an implementation plan as one interactive HTML page - a tree of claims (why › what › how › where), each proved by one…
Use the `quickdesign` CLI to generate AI media — UGC promo videos, image edits, product creatives, video upscales — through…
Use only when the user explicitly asks for a TestDino audit of Playwright automated test code. Routes through the audit tools the…
Use when the user wants to check TestDino connection status, validate their PAT, discover available organizations and projects,…
Use when the user wants to manage a manual execution run or update case-level results inside a run — listing runs, creating runs…
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…