Index of every page on this site: llms.txt
All skills
Run it yourself

Expert assistant for querying and analyzing on-chain blockchain data using Dune Analytics. Use whenever the user wants to: analyze blockchain/on-chain data, write SQL for Dune, find wallet activity, track DeFi protocol metrics, analyze NFT trades, monitor token transfers, investigate smart contract events, check token prices on-chain, find top holders, measure DEX volume, or explore any crypto/web3 data. Trigger even if the user doesn't mention "Dune" explicitly — if they want blockchain data insights or on-chain analysis, this skill applies. Also trigger when the user provides a contract address and wants data for it. Enforces credit budget rules (500 warn / 700 block) and free-vs-paid key separation.

Use this Skill: https://skilld.dev/gh/vo1ganin/crypto-claude-skills/dune

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈605 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Dune Analytics Skill

SQL-driven blockchain analytics on Dune Analytics (100+ chains) for Claude Code.

What it does

  • Writes DuneSQL (Trino dialect) queries with proper partition pruning
  • Creates / executes / polls Dune queries via MCP (20-tool catalog)
  • Enforces credit budget — 500 credits → warn, 700 → block per operation (execute and download evaluated independently)
  • Manages FREE (default) and PAID keys with automatic rotation on 402

When it triggers

Any request involving blockchain data analytics, on-chain queries, wallet activity, DEX volume, NFT sales, token prices, protocol metrics — even without the word "Dune". Also triggers on bare contract addresses when the user wants associated data.

Files

File Purpose
SKILL.md Workflow, hard rules, syntax cheatsheet
references/tables.md Canonical table names, columns, use cases
references/sql-templates.md 16 ready-to-use SQL templates
references/optimization.md Partition pruning, CTE patterns, anti-patterns (incl. "N+1 fetching")
references/credits.md Budget rules, cost model, multi-key rotation
references/paid-endpoints.md Direct HTTP for bulk exports (Python pagination patterns)

Key rules

  1. Estimate before executing — use getTableSize and expected row count to project credits
  2. 500 / 700 thresholds applied independently to execute and to download
  3. Never SELECT * on *.transactions / *.logs (columnar storage)
  4. Always time-filter on partitioned tables (block_time >= NOW() - INTERVAL 'N' DAY)
  5. Multi-FREE rotation auto, FREE→PAID needs user consent

Quick example

> "Find top holders of USDC on Ethereum"

Skill:
  1. Identifies table: tokens_ethereum.balances_daily
  2. Estimates: filtered to 1 day × 1 token = ~50 credits
  3. Proceeds silently (< 500)
  4. Returns top 100 with percentages

Setup

Set DUNE_API_KEY_FREE (required) and optionally DUNE_API_KEY_PAID in .env. If you have multiple free keys (for rotation), set DUNE_API_KEY_FREE_2, DUNE_API_KEY_FREE_3, etc.

The MCP server is configured at https://api.dune.com/mcp/v1. Setup details in ../../INSTALL.md.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill provides an expert interface for querying blockchain data via Dune Analytics, incorporating detailed SQL templates and optimization strategies. It includes robust defensive mechanisms such as credit budget thresholds (500/700 credits) and multi-key rotation to manage costs. The primary security consideration is the risk of indirect prompt injection from processing attacker-controlled blockchain data, which is handled through standard agent execution flows with budget-aware safeguards.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 8100600. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 7 months ago
Other metadata
compatibility
{
  "tools": [
    "mcp__dune__searchTables",
    "mcp__dune__searchTablesByContractAddress",
    "mcp__dune__createDuneQuery",
    "mcp__dune__executeQueryById",
    "mcp__dune__getExecutionResults",
    "mcp__dune__getDuneQuery",
    "mcp__dune__updateDuneQuery",
    "mcp__dune__generateVisualization",
    "mcp__dune__listBlockchains",
    "mcp__dune__searchDocs",
    "mcp__dune__getTableSize",
    "mcp__dune__getUsage"
  ]
}

README badge

README badge for vo1ganin/crypto-claude-skills/dune