MCPInstall

tres-export-3rd-party-contacts

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.

Installs
49
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/anthropics/claude-plugins-community --skill tres-export-3rd-party-contacts
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads tres-export-3rd-party-contacts automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

TRES Finance — Export 3rd-Party Addresses as Contacts Workbook

Goal

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.

MCP Server

All GraphQL calls use the user-tres-finance MCP server (execute tool).

Workflow

Step 1 — Authenticate

Call get_viewer (no arguments) to confirm the session is active and note the organization name.

Step 2 — Fetch unidentified addresses

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

Step 3 — Deduplicate and detect network

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:

  • Build a dictionary keyed by accountIdentifier.lower()
  • For each address, keep the first occurrence's original casing and accumulate the total inflow + outflow tx count and fiat values
  • Skip addresses with an empty or null 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 patternNetwork
Starts with 0x (42 chars, hex)EVM
Starts with KT1Tezos (contract)
Starts with tz1, tz2, tz3Tezos
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 cosmos1Cosmos
Starts with osmo1Osmosis
Starts with terra1Terra
Starts with addr1 or stake1Cardano
Starts with bnb1BNB 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 aboveUnknown

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.

Step 4 — Build the XLSX workbook

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"

Tab 1: "Contacts" (import-ready)

This sheet matches the TRES contacts import template exactly:

Contact NameContact AddressContact Tag
(blank)0xABC...(blank)
  • Contact Name: leave blank (the user will fill this in)
  • Contact Address: the address identifier (original casing)
  • Contact Tag: leave blank (the user will fill this in)
  • Sorted by total fiat volume descending (same order as Address details)

Tab 2: "Address details" (enrichment)

Contact AddressNetworkInflow TxsOutflow TxsInflow USDOutflow USDTotal USD
0xABC...EVM142381,240,500890,2002,130,700
KT1Xyz...Tezos (contract)6040,144,631040,144,631
TBmxn...Tron235340,10052,000392,100
  • Same address order as the Contacts tab (sorted by Total USD descending)
  • Network: inferred from address format (see Step 3)
  • Inflow Txs / Outflow Txs: from accountTxsSummary results
  • Inflow USD / Outflow USD: from accountTxsSummary fiat values
  • Total USD: sum of inflow + outflow fiat values

Formatting guidelines

  • Bold the header row on all tabs
  • Auto-fit column widths for readability
  • Format USD columns as numbers (no $ prefix in cells — use Excel number formatting)
  • The "Contacts" tab should be the first/active sheet when the file opens, since that's the one the user will work in

Step 5 — Save and present

Save the XLSX to the outputs directory. Use a descriptive filename like tres_3rd_party_contacts_<org_name>_<date>.xlsx (replace spaces and special chars with underscores).

Present the file to the user with a brief summary:

  • How many unique unidentified addresses were found
  • Total number of transactions involving these addresses
  • A link to the XLSX file

Then explain what each tab is for:

Your workbook has 2 tabs:

  1. Contacts — This is the import-ready sheet. Fill in the Contact Name for each address you recognize, and optionally add a Contact Tag (e.g. Exchange, Vendor, Treasury). When you're done, use the contacts import skill to upload this sheet back into TRES.

  2. Address details — Reference tab showing the detected network, activity stats for each address (inflow/outflow transaction counts and USD volumes). Use this to prioritize which addresses to label — the highest-volume counterparties are at the top. The network column helps narrow down which chain the address belongs to.

Edge Cases

  • No unidentified addresses found: If the result set is empty, tell the user — it likely means all counterparty addresses are already in the contacts list.
  • Mixed-case addresses: EVM addresses can appear in different checksummed forms. Always compare in lowercase for deduplication, but preserve the original case in the output.
  • Zero/burn addresses: Include 0x0000000000000000000000000000000000000000 in the output if it appears — the user may still want to label it as "Burn Address" or similar.
  • Unknown network: If an address doesn't match any known pattern, set Network to "Unknown". Don't skip the address — it's still a valid counterparty.

FAQ

What does the tres-export-3rd-party-contacts skill do?

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.

How do I install tres-export-3rd-party-contacts?

Run npx skills add https://github.com/anthropics/claude-plugins-community --skill tres-export-3rd-party-contacts in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/tres-export-3rd-party-contacts/ (personal) or .claude/skills/tres-export-3rd-party-contacts/ (project).

Which AI agents can use tres-export-3rd-party-contacts?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is tres-export-3rd-party-contacts safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains tres-export-3rd-party-contacts?

It is published by anthropics in anthropics/claude-plugins-community. It has 49 recorded installs.

More from anthropics/claude-plugins-community

View all →

eli5

anthropics/claude-plugins-community

Explain a topic like I'm a 5 year old. Use when the user types /eli5 or asks for a dead-simple picture explainer of how something works.

1.9K installs

html-plan

anthropics/claude-plugins-community

Write an implementation plan as one interactive HTML page - a tree of claims (why › what › how › where), each proved by one exhibit (UI mockup, state machine, call stack, schema or code), with the decisions the user has to make placed on the claim they change. Use when the user types /html-plan, or asks for a plan, RFC or design before building something that touches more than a couple of files.

Frontend & Design112 installs

quickdesign

anthropics/claude-plugins-community

Use the quickdesign CLI to generate AI media — UGC promo videos, image edits, product creatives, video upscales — through Seedance, Kling, Sora2, Nano Banana, and GPT Image. Invoke this skill whenever the user asks for a talking-avatar video, multi-segment ad / promo / explainer, image edit (object swap, angle change, state change), product photoshoot, or video upscale via QuickDesign.

Media & Creative66 installs

tres-cost-basis

anthropics/claude-plugins-community

Manage cost basis calculation in TRES Finance: check status, view/change strategy (FIFO, LIFO, AVG, MAXGAINS, MAXLOSSES, FIFOIMPAIRMENT), trigger recalculation, review financial issues, manage reevaluations/impairments, set bulk fiat prices, configure spec-ID lot disposal rules, view per-asset cost basis results, and export cost basis reports. Trigger this skill whenever the user asks about cost basis, gains/losses, realized gains, unrealized gains, COGS, inventory lots, tax lots, cost basis strategy, reevaluation, impairment, fiat value override, spec-ID rules, financial issues (negative balance, missing fiat), or anything related to how their crypto assets are costed. Also trigger when the user says "calculate cost basis", "what is my cost basis strategy", "show me financial issues", "create a reevaluation", "run cost basis", "change strategy to LIFO", or similar.

tres-asset-balance-validation

anthropics/claude-plugins-community

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.

Security51 installs

tres-report-advisor

anthropics/claude-plugins-community

Recommend the right TRES Finance report for any user question. Trigger this skill whenever a user asks which report to use, what report contains certain data, how to get specific information out of TRES, or compares two reports. Also trigger when the user describes a goal (e.g. "month-end close", "auditor needs proof", "tax filing", "reconciliation") without naming a specific report. Trigger phrases include "which report", "what report", "how do I export", "where can I find", "I need a report for", "what's the difference between", "best report for", "auditor asked for", or any question about getting data out of TRES Finance.

Docs & Writing50 installs

Popular data & databases skills

View category →

Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pgcron, pgmq), vector/semantic search (pgvector), and restoring dumps (pgrestore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.

OfficialData & Databases462.2K installs

prisma-client-api

prisma/skills

Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on "prisma query", "findMany", "create", "update", "delete", "$transaction".

OfficialData & Databases393.5K installs

Deprecated compatibility name for prisma-orm-setup. Use only when a user or existing integration explicitly invokes prisma-database-setup; otherwise select prisma-orm-setup.

OfficialData & Databases392.3K installs

prisma-cli

prisma/skills

Prisma ORM 7 CLI reference for existing Prisma 7 applications or explicitly selected Prisma 7 workflows. Covers prisma init, generate, migrate, db, dev, studio, and mcp. For setup, connection repair, or Prisma 8, use prisma-orm-setup; not the Prisma Platform CLI.

OfficialData & Databases390.8K installs

prisma-postgres

prisma/skills

Deprecated compatibility name for prisma-postgres-setup. Use only when a user or existing integration explicitly invokes prisma-postgres; otherwise select prisma-postgres-setup.

OfficialData & Databases384.4K installs

Required reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter, Transaction, savepoint, result mapping, or DriverAdapterError behavior. Covers current transaction lifecycle, optional savepoint hooks, original database-error preservation, and verification.

OfficialData & Databases378.9K installs