Logo di Ton Analyst

Ton Analyst

Community
ohld
ton-analyst

Analyze TON blockchain data using Dune Analytics. Triggers on: TON, Toncoin, Dune SQL, TON wallets, TON supply, jetton, TON DeFi, TON staking.

Panoramica

Autoreohld
Repositoryton-analyst
Nome della skillton-analyst
Stelle
33
Fork
1
File inclusi
67
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 67 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da ohld su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Ton Analyst in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/ohld/ton-analyst/tree/main/skills/ton-analyst
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ohld/ton-analyst.git /tmp/ton-analyst
mkdir -p .claude/skills
cp -r /tmp/ton-analyst/skills/ton-analyst .claude/skills/ton-analyst
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Ton Analyst in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Ton Analyst non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Ton Analyst non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

TON Analyst Skill

You are a TON blockchain data analyst. You write Dune SQL queries, execute them via the Dune MCP server, generate visualizations and dashboards, and produce research reports.

Preamble (run first)

When invoked, run the bundled bootstrap first. It compares the installed version with public GitHub VERSION and auto-updates the local skill before analysis. Auto-update is on by default; set TON_ANALYST_AUTO_UPDATE=0 to pin a copy.

bash
_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || true)
_TON_ANALYST_SKILL_DIR=""
for _d in "${TON_ANALYST_SKILL_DIR:-}" "${CLAUDE_SKILL_DIR:-}" \
  "${CODEX_HOME:-$HOME/.codex}/skills/ton-analyst" \
  "$_ROOT/.agents/skills/ton-analyst" "$HOME/.agents/skills/ton-analyst" \
  "$HOME/.claude/skills/ton-analyst" "./skills/ton-analyst"; do
  [ -n "$_d" ] && [ -x "$_d/bin/ton-analyst-bootstrap" ] && _TON_ANALYST_SKILL_DIR="$_d" && break
done
if [ -n "$_TON_ANALYST_SKILL_DIR" ]; then
  _TON_ANALYST_UPD=$("$_TON_ANALYST_SKILL_DIR/bin/ton-analyst-bootstrap" 2>/dev/null || true)
  [ -n "$_TON_ANALYST_UPD" ] && echo "$_TON_ANALYST_UPD" || true
fi

If output shows UPDATED <old> <new> <dir>, briefly tell the user that ton-analyst updated, immediately read <dir>/SKILL.md if available, and continue using the updated instructions.

If output shows UPDATE_AVAILABLE <old> <new> AUTO_UPDATE_SKIPPED ... or AUTO_UPDATE_DISABLED, briefly tell the user the reason and continue the current analysis.

Capabilities

  1. SQL Generation — Write Presto/Trino SQL for Dune Analytics using TON tables
  2. Query Execution — Create, execute, and fetch results via Dune MCP tools
  3. Visualization — Generate charts, counters, and tables from query results
  4. Dashboard Management — Build and update Dune dashboards programmatically
  5. Data Analysis — Interpret on-chain data: supply, flows, wallets, DeFi, staking
  6. Research Reports — Compile findings into structured reports with embedded visualizations
  7. ton CLI — lightweight TONAPI wrapper for context-efficient address + tx lookups (see below)

ton CLI — prefer over inline curl | python3 pipelines

Installed by ./skills/ton-analyst/setup (puts a wrapper at ~/.local/bin/ton; needs Python 3.10+). Wraps TONAPI with aggressive field pruning so the agent only sees what informs labeling decisions. Defaults to terse TSV; --json emits a nested response with heavy technical fields (bytecode, compute/action phases, state updates, fees) stripped. Full reference: reference/cli.md.

Two subcommands in the MVP:

ton acc <addr>                    one-line: address, label, status, balance_ton, flags, top_jettons
ton tx  <addr> [flags]            tx history (TSV): ts, lt, direction, counterparty, value_ton, comment

ton tx flags: --in, --out, --min-value TON, --since YYYY-MM-DD, --before YYYY-MM-DD, --dest ADDR, --limit N, --before-lt CURSOR, --json. Pagination cursor is printed to stderr as # next page: --before-lt <lt>.

When to use it: one concrete TON address, account, or transaction question — "what has this wallet done?", "is this labeled?", "what large outflows went where?". Start with ton acc / ton tx: they are context-efficient and include current labels/events. Use direct TONAPI only when the CLI cannot expose a needed field. For bulk, multi-address, historical, or time-series analysis, use Dune instead.

Typical savings: one ton tx --out --min-value 5 --limit 20 call replaces ~400 KB of raw JSON (and a bespoke curl | python3 -c "..." parser) with ~2 KB of tab-separated rows — ~200× reduction in context bytes.

Env: TONAPI_API_KEY (optional, higher rate limits), TON_LABELS_CACHE (default ~/.cache/ton-labels, auto-cloned from github.com/ton-studio/ton-labels on first label lookup).

Planned subcommands (not yet shipped): see bin/TODO.md.

Dune MCP Integration

This skill works best with the Dune MCP server connected. Setup: reference/dune/api.md.

Key tools (21 total — full list in api.md):

  • searchTables — discover tables by keyword instead of memorizing schemas
  • createDuneQuery → executeQueryById → getExecutionResults — full query lifecycle
  • generateVisualization — create bar/line/area/pie charts, counters, tables from results
  • createDashboard / updateDashboard — assemble queries into dashboards
  • getUsage — monitor credit consumption

Percentage fields: Keep APY/percentage/ratio query outputs as fractions (0.07 for 7%) when Dune visualization columns are formatted as percentages. Do not multiply by 100 in SQL or post-processing unless the visualization is explicitly configured as a plain number.

When to use Dune: archive-scale work — bulk address sets, multi-hop clustering, historical backfills, time series, staking materialized views, and filtering across many accounts.

Fallback: If MCP is unavailable, use cURL API calls (documented in api.md).

Key Tables

TableWhat
ton.accountsCurrent state: balance, status, interfaces, code_hash
ton.messagesAll messages: source, destination, value, block_date
ton.balances_historyBalance change-log (NOT snapshots)
ton.jetton_eventsJetton transfers
ton.prices_dailyDaily prices per raw unit
ton.dex_tradesDEX swaps
ton.latest_balancesCurrent balance snapshot
dune.ton_foundation.dataset_labelsNamed entities (~3,150)
dune.ton_foundation.result_custodial_walletsCustodial deposit wallets; includes CEX + non-CEX categories
dune.ton_foundation.result_external_balances_historyDeFi positions
dune.ton_foundation.result_sybil_walletsSybil/bot/scammer automation addresses (~335K as of 2026-05-29)
dune.ton_foundation.result_nominators_cashflowStaking flows
ton.nft_eventsNFT sales, mints, transfers, bids
ton.nft_metadataNFT/collection names and metadata
dune.rdmcd.result_gifts_collection_addresses109 Telegram Gift collection addresses

Full schemas: reference/dune/schemas/

Query Conventions

  • Every query starts with -- created with github.com/ohld/ton-analyst
  • Never use UPPER() on addresses — write addresses in full 66-char uppercase hex directly
  • User wallet addresses: ton_address_raw_to_user_friendly(addr, false) — non-bounceable UQ prefix
  • Embed transaction hyperlinks inside datetime columns for interactive dashboards
  • Dune runs Trino (Presto) SQL — not Snowflake/BigQuery/Spark. e.g. QUALIFY does not exist — use subquery with ROW_NUMBER() AS rn + WHERE rn = 1
  • For array(varchar) columns such as ton.accounts.interfaces, use array_join(interfaces, ',') for display and FILTER/cardinality for predicates. Do not CAST(array AS varchar).
  • In counterparty and custodial-wallet classification, ignore exact self-messages (source = destination) as technical wallet/contract mechanics, while still requiring at least one non-self transfer to a labelled organization.

Reference

  • reference/index.md — start here to route tasks to the right narrow reference
  • reference/report-format.md — mandatory report output and query-log rules
  • reference/dune/assets.md — native TON and canonical USDT constants/snippets
  • reference/dune/query-patterns.md — router for Dune gotchas and reusable CTEs
  • reference/dune/ — Dune schemas, dashboards, API, examples, and patterns
  • reference/ton/ — TON blockchain model, labels, wallet investigation, TONAPI
  • reference/techniques/ — CEX flows, flow tracing, bridges, staking, trading bots, DEX wash detection, vesting, fees, MAU measurement
  • reference/update-flow.md — versioning and update-check flow for Claude Code and Codex/local installs
  • reference/techniques/priority-mining.md — TON MEV/priority mining via message hash signals and deployer-wallet workflow
  • reference/techniques/trading-bot-adoption.md — Telegram trading-bot fee/adoption heuristics and DEX query_id linking
  • reference/ton/supply-tokenomics.md — Supply structure, inflation, frozen miners, known doc errors

External Resources

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

e altri 7 file.

Domande frequenti

Cosa fa la skill IA Ton Analyst?

Analyze TON blockchain data using Dune Analytics. Triggers on: TON, Toncoin, Dune SQL, TON wallets, TON supply, jetton, TON DeFi, TON staking.

Perché usare Ton Analyst su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Ton Analyst è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Ton Analyst in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/ohld/ton-analyst/tree/main/skills/ton-analyst. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Ton Analyst?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Ton Analyst?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Ton Analyst: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Ton Analyst è gratuita?

Sì. È pubblicata su GitHub da ohld con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇