dune-analytics-api
Installation
SKILL.md
Dune Analytics API
A skill for querying and analyzing blockchain data via the Dune Analytics API.
Setup
pip install dune-client
Set DUNE_API_KEY via environment variable, .env file, or agent config.
⚠️ Usage Rules
- Read before writing SQL — Select and read the relevant reference files (see Reference Selection) before writing any query. Do not skip this step.
- Prefer Private Queries — Try
is_private=Truefirst. Fall back to public if it fails (free plan), and notify the user. - Don't create duplicates — Reuse/update existing queries unless explicitly asked to create new ones.
- Confirm before updating — Ask the user before modifying an existing query.
- Track credits — Report credits consumed after each execution. See query-execution.md.