Skip to content

feat(dune): Dune CLI skill — rename from dune-analytics#46

Closed
mewwts wants to merge 2 commits into
moonpay:mainfrom
mewwts:feat/dune-analytics-cli
Closed

feat(dune): Dune CLI skill — rename from dune-analytics#46
mewwts wants to merge 2 commits into
moonpay:mainfrom
mewwts:feat/dune-analytics-cli

Conversation

@mewwts
Copy link
Copy Markdown

@mewwts mewwts commented Apr 8, 2026

Summary

Updates the Dune partner skill to use the Dune CLI (dune) instead of raw REST/curl calls, and renames it from dune-analytics to dune.

Changes

CLI (vs REST)

  • Install/auth: official CLI installer, dune auth, DUNE_API_KEY / --api-key
  • Workflows: dune query run, dune query run-sql, optional async via --no-wait + dune execution results, parameterized queries with --param key=value
  • Discovery/ops: dune dataset search, dune usage, dune docs search
  • MoonPay example uses dune query run-sql
  • Resources: duneanalytics/cli, Dune CLI & Skills

Rename

  • Folder: skills/dune-analytics/skills/dune/
  • Skill name: dune
  • Marketplace plugin id: dune (path ./skills/dune); description updated for CLI
  • Docs/title: Dune (not “Dune Analytics”); related repo touch-ups (CLAUDE.md, CONTRIBUTING.md, template/SKILL.md)

Motivation

The Dune CLI is the supported terminal workflow (-o json, etc.). Shorter dune naming matches the CLI binary and keeps the catalog consistent.

Replace curl/API examples with official dune CLI commands (query run,
run-sql, execution results, dataset search). Add install/auth steps and
links to CLI docs.

Made-with: Cursor
@mewwts mewwts requested a review from a team as a code owner April 8, 2026 07:14
- Move skills/dune-analytics/ to skills/dune/
- Set skill name to `dune`; retitle doc to # Dune
- Update marketplace plugin path and rename plugin to `dune`
- Refresh CLAUDE.md, CONTRIBUTING.md, template example
- Shorten MoonPay example wallet name to dune-wallet

Made-with: Cursor
@mewwts mewwts changed the title docs(dune-analytics): use Dune CLI instead of REST API feat(dune): Dune CLI skill — rename from dune-analytics Apr 8, 2026
Copy link
Copy Markdown
Contributor

@kevarifin14 kevarifin14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good rewrite — the Dune CLI commands are all verified against the duneanalytics/cli repo and the install/auth flow is clean. Clear improvement over the old curl-based version.

One fix needed:

moonpay-bridge-tokens in Related Skills does not exist in this repo. Bridging is part of moonpay-swap-tokens — please update that reference.

Naming convention question: This renames the skill to bare dune/, which would be the only partner skill not following {partner}-{name}. The argument that it matches the CLI binary name is reasonable, but every other partner skill uses the convention (corbits-marketplace, shipp-sports-data, allium-onchain-data, etc.). The CONTRIBUTING.md and CLAUDE.md edits here retroactively change the convention to allow it. Would prefer dune-cli or dune-analytics to stay consistent — open to discussion though.

@tonyagents
Copy link
Copy Markdown
Contributor

Fixes ready on tonyagents/skills:fix/dune-pr46. Three changes applied:

  1. Renamed skills/dune/skills/dune-cli/ and updated frontmatter name: dune-cli — follows {partner}-{name} convention alongside corbits-marketplace, shipp-sports-data, etc.
  2. Fixed phantom moonpay-bridge-tokens refmoonpay-swap-tokens (which covers cross-chain bridging)
  3. Reverted CONTRIBUTING.md and CLAUDE.md to main — keeping the naming convention docs consistent

You can pull these changes into your branch or the maintainer can merge from tonyagents/skills:fix/dune-pr46.

Copy link
Copy Markdown
Contributor

@kevarifin14 kevarifin14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C — Two blockers from prior review not yet addressed

Blockers

  1. Phantom cross-reference — Related Skills still lists moonpay-bridge-tokens, which does not exist in this repo. Should be moonpay-swap-tokens (which handles bridging).

  2. Naming convention — Directory is skills/dune/ and frontmatter name: dune — but CONTRIBUTING.md still says "Always use {partner}-{name}". The CLAUDE.md edit loosened the example to accept bare names, but the rule line in CONTRIBUTING.md wasn't updated, and no other partner skill in the repo uses a bare name. Either:

    • Rename to skills/dune-cli/ with name: dune-cli, OR
    • If dune as the bare partner name is intentional, update CONTRIBUTING.md to document the exception and explain the rationale in the PR description.

Verified OK

  • All CLI commands (dune auth, dune query run, dune query run-sql, dune execution results, dune dataset search, dune usage, dune docs search) are real — checked against duneanalytics/cli
  • marketplace.json structure correct (dedicated plugin block, not in moonpay-skills)
  • Content is instructional (no code)
  • API key handling guidance present

Two small fixes and this is A+.

@tonyagents
Copy link
Copy Markdown
Contributor

Opened PR #56 with all fixes applied — naming, bridge ref fix, doc revert. Since no updates here in 4 days, #56 can be merged directly.

@kevarifin14
Copy link
Copy Markdown
Contributor

Superseded by #56 (A+, all blockers resolved). Closing. Thanks @mewwts for the initial work — credit in #56 via Co-Authored-By.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants