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…
Extract all 3rd-party (non-owned) addresses from a TRES Finance environment and export them as an XLSX workbook to help users build their contacts list. Use this skill whenever the user wants to export, list, or identify 3rd-party addresses, counterparties, or external addresses
Claude Code
$ npx -y skills add anthropics/claude-plugins-community --skill tres-export-3rd-party-contacts --agent claude-code
Codex
$ npx skills add anthropics/claude-plugins-community --skill tres-export-3rd-party-contacts -a codex -y
Cursor
$ npx skills add anthropics/claude-plugins-community --skill tres-export-3rd-party-contacts -a cursor -y
Gemini CLI
$ npx skills add anthropics/claude-plugins-community --skill tres-export-3rd-party-contacts -a gemini-cli -y
GitHub Copilot
$ npx skills add anthropics/claude-plugins-community --skill tres-export-3rd-party-contacts -a github-copilot -y
OpenCode
$ npx skills add anthropics/claude-plugins-community --skill tres-export-3rd-party-contacts -a opencode -y
Windsurf
$ npx skills add anthropics/claude-plugins-community --skill tres-export-3rd-party-contacts -a windsurf -y
name: tres-export-3rd-party-contacts description: "Extract all 3rd-party (non-owned) addresses from a TRES Finance environment and export them as an XLSX workbook to help users build their contacts list. Use this skill whenever the user wants to export, list, or identify 3rd-party addresses, counterparties, or external addresses from their transactions — even if they don't say 'contacts'. Also trigger when the user asks to prepare a contacts import file, find unknown addresses, or build an address book from transaction history. Do NOT trigger for viewing existing contacts or searching the address book — only for extracting NEW 3rd-party addresses from transaction data."
Fetch all **unidentified** external addresses from the user's TRES environment using the `accountTxsSummary` query (the same data source that powers the "Unidentified Addresses" tab in the TRES UI), deduplicate them, enrich them with activity data, and produce an XLSX workbook with two tabs:
1. **Contacts** — the import-ready sheet matching the TRES contacts template. The user fills in names and tags here, then imports this sheet back into TRES. 2. **Address details** — enrichment data (network, tx counts, fiat volumes) to help users identify who each address belongs to.
The workflow gives users a fast way to build their address book: Claude extracts, deduplicates, and enriches the unidentified addresses, and the user just needs to label them.
All GraphQL calls use the **user-tres-finance** MCP server (`execute` tool).
Call `get_viewer` (no arguments) to confirm the session is active and note the organization name.
Use the `accountTxsSummary` query with `identificationState: "UNIDENTIFIED"` — this is the same query the TRES UI uses for the "Unidentified Addresses" tab under Accounts. It already excludes the organization's own wallets and returns only external counterparty addresses that haven't been named yet.
query UnidentifiedAddresses($limit: Int, $offset: Int, $identificationState: String, $excludeInternalAccounts: Boolean, $fiatCurrency: String) {
accountTxsSummary(
limit: $limit
offset: $offset
identificationState: $identificationState
excludeInternalAccounts: $excludeInternalAccounts
fiatCurrency: $fiatCurrency
) {
totalCount
results {
accountIdentifier
displayName
inflowTxCount
outflowTxCount
inflowFiatValue
outflowFiatValue
}
}
}Variables:
{
"limit": 500,
"offset": 0,
"identificationState": "UNIDENTIFIED",
"excludeInternalAccounts": true,
"fiatCurrency": "usd"
}Paginate through all results (increment `offset` by 500 each time until you've collected all entries from `totalCount`).
The `accountTxsSummary` query can return the same address more than once (e.g. different casing variants of the same EVM address, or separate rows for sender vs. receiver context). Deduplicate by **lowercased** `accountIdentifier`:
Sort the deduplicated addresses by total fiat volume (inflow + outflow) descending, so the most active counterparties appear first — these are typically the ones the user will want to label first.
**Network detection:** The API does not return a network field, so infer the network from the address format. Use these rules:
| Address pattern | Network | |---|---| | Starts with `0x` (42 chars, hex) | EVM | | Starts with `KT1` | Tezos (contract) | | Starts with `tz1`, `tz2`, `tz3` | Tezos | | Starts with `T` (34 chars, base58) | Tron | | Starts with `bc1` or `1` or `3` (25–62 chars) | Bitcoin | | Starts with `r` (25–35 chars) | XRP Ledger | | Starts with `cosmos1` | Cosmos | | Starts with `osmo1` | Osmosis | | Starts with `terra1` | Terra | | Starts with `addr1` or `stake1` | Cardano | | Starts with `bnb1` | BNB Beacon Chain | | Starts with `G` (56 chars) | Stellar | | Starts with `D` or `A` or `L` or `M` or `ltc1` (26–35 chars) | Litecoin/Dogecoin (best guess) | | None of the above | Unknown |
This is a best-effort heuristic — EVM addresses in particular could belong to Ethereum, Polygon, Arbitrum, Base, Avalanche, BSC, or any other EVM-compatible chain. The label "EVM" is intentionally broad because the address alone can't distinguish which chain it's on.
Use Python with `openpyxl==3.1.5`. If not installed, stop and display: > "openpyxl is not installed. Please run: `python3 -m venv .venv && .venv/bin/pip install openpyxl==3.1.5`"
This sheet matches the TRES contacts import template exactly:
| Contact Name | Contact Address | Contact Tag | |---|---|---| | *(blank)* | 0xABC... | *(blank)* |
| Contact Address | Network | Inflow Txs | Outflow Txs | Inflow USD | Outflow USD | Total USD | |---|---|---|---|---|---|---| | 0xABC... | EVM | 142 | 38 | 1,240,500 | 890,200 | 2,130,700 | | KT1Xyz... | Tezos (contract) | 6 | 0 | 40,144,631 | 0 | 40,144,631 | | TBmxn... | Tron | 23 | 5 | 340,100 | 52,000 | 392,100 |
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…
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) .…