datahub-cli

datahub-cli is a skill for Claude Code from datahub-project/datahub. It costs 52 tokens per session (514 once invoked), scanned A, original, Apache-2.0.

A command-line tool for connecting to a DataHub instance and querying or changing its metadata. Metadata is descriptive information about data, such as its name, ownership, or relationships.

In plain words
What is it for?
Use it to create connection profiles, run GraphQL queries and mutations, and discover available DataHub operations.
Why use it?
It provides a shell-based way to work with local, staging, or production DataHub systems while keeping connections in named profiles.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

Good fit Use it to create connection profiles, run GraphQL queries and mutations, and discover available DataHub operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/datahub-project/datahub/datahub-cli
About the project

DataHub is an open-source metadata platform that catalogs data assets so people can find, understand, govern, and monitor data across an organization’s data ecosystem. Data teams use it for data discovery, governance, observability, and answering questions about cataloged data with an analytics agent.

datahub-project/datahub · 13,047 stars · on GitHub · datahub.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add datahub-project/datahub --skill datahub-cli
Clone the repo
git clone --depth 1 https://github.com/datahub-project/datahub

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for datahub-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/datahub-project/datahub/datahub-cli/github.svg)](https://agentmods.dev/skills/datahub-project/datahub/datahub-cli)
Your own site
<a href="https://agentmods.dev/skills/datahub-project/datahub/datahub-cli"><img src="https://agentmods.dev/badge/skills/datahub-project/datahub/datahub-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for datahub-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/datahub-project/datahub/datahub-cli"><img src="https://agentmods.dev/badge/skills/datahub-project/datahub/datahub-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 514 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00514
Opus 5.5 $0.00021 $0.00206
Sonnet 5.5 $0.00010 $0.00103
Haiku 4.5 $0.00005 $0.00051

Measured yesterday against content hash dd80aa8b2082, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

datahub-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/datahub-cli/SKILL.md · 63 lines

What it actually says

DataHub CLI operations

Safety rules for profiles and writes live in root AGENTS.md, "DataHub CLI connection profiles", and apply to every command here.

Common operations

These commands work against any DataHub instance — local dev, staging, or production. Always address the instance through a named profile (--profile <name> on every command, see the safety rules in root AGENTS.md). Environment variables are the fallback when no profile exists, for example in CI; use https:// for anything that is not localhost:

export DATAHUB_GMS_URL='https://your-instance.example.com'  # http://localhost:8080 for a local stack
export DATAHUB_GMS_TOKEN='your-token'                       # omit if auth is not required

Init (setup authentication)

datahub init --profile local writes the local connection to ~/.datahub/profiles/local/.datahubenv. Pass --profile local on subsequent commands.

# Quickstart: local instance with default credentials
datahub init --profile local --username datahub --password datahub

# Full agent best-practices guide (defaults, env vars, all scenarios)
datahub init --agent-context

GraphQL

datahub graphql executes queries and mutations against the DataHub GraphQL API and can introspect the live schema to discover available operations.

# Discover what's available
datahub --profile local graphql --list-operations --format json

# Inspect a specific operation's arguments
datahub --profile local graphql --describe dataset --format json

# Preview a query before executing
datahub --profile local graphql --query "{ me { corpUser { urn } } }" --dry-run

# Execute a query (before a mutation: `datahub profile current --format json`, confirm the server)
datahub --profile local graphql --query "{ me { corpUser { urn username } } }" --format json

For full agent best practices (discovery, dry-run, error codes, common recipes):

datahub graphql --agent-context
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 63 lines · 52 tokens per session scan A dd80aa8b2082

Subscribe to this mod's changes

datahub-cli is a skill published in the GitHub repository datahub-project/datahub (13,047 stars, last pushed today), licensed Apache-2.0. It adds 52 tokens to every session and 514 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

datahub-cli compared with skills from other repositories

datahub-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
datahub-clidatahub-project/datahubSkill13ktodayApache-2.0A52Claude Code
marmotmarmotdata/marmotSkill645yesterdayMITA71Claude Code, Codex
openmetadata-pr-reviewopen-metadata/OpenMetadataSkill16ktodayApache-2.0A50Claude Code, Codex
connector-reviewopen-metadata/OpenMetadataSkill16ktodayApache-2.0A55Claude Code
connector-buildingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A45Claude Code
pr-checklistopen-metadata/OpenMetadataSkill16ktodayApache-2.0A79Claude Code
test-enforcementopen-metadata/OpenMetadataSkill16ktodayApache-2.0A60Claude Code