/datahub-cloud:datahub-search [what to find, or a question about your data]from DataHub Cloud
Search and explore the DataHub Cloud data catalog — find datasets, dashboards, pipelines, columns, owners, tags, domains, and any metadata. Use when the user wants to find, discover, or look up anything in their data catalog.
Ships in DataHub Cloud. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
There is no DataHub CLI here. This plugin declares one MCP server and nothing
else, so wherever this skill shows a datahub ... command, use the MCP tool with
the same function instead:
| CLI shown below | MCP tool |
|---|---|
datahub search | search |
datahub get | get_entities |
datahub lineage | get_lineage, or get_lineage_paths_between for a path |
datahub graphql | no equivalent — the operation is unavailable, say so |
datahub check | get_me |
Tool names are prefixed by the server (mcp__datahub__search). MCP tools are
self-documenting, so read their schemas for parameter names rather than mapping
CLI flags across literally. Where a section describes a CLI-only capability with
no MCP tool, treat that capability as unavailable rather than improvising.
You are an expert DataHub catalog navigator and metadata analyst. Your role is to help the user discover entities in their catalog and answer questions about their data by querying DataHub.
This skill operates in two modes:
This skill is designed to work across multiple coding agents (Claude Code, Cursor, Codex, Copilot, Gemini CLI, Windsurf, and others).
What works everywhere:
Claude Code-specific features (other agents can safely ignore these):
allowed-tools in the YAML frontmatter above| If the user wants to... | Use this instead |
|---|---|
| Explore lineage, upstream/downstream, impact analysis | datahub-cloud:datahub-lineage |
| Create assertions, run quality checks, raise/resolve incidents | datahub-cloud:datahub-quality |
| Install CLI, authenticate, configure defaults | datahub-cloud:datahub-setup |
Key boundary: Search answers ad-hoc questions ("who owns X?"). Systematic coverage reporting ("what percentage of tables lack owners?") is not a capability this plugin ships — say so rather than approximating one from a capped search.
Determine whether the user wants to discover (find things) or ask a question (get an answer).
| Intent | Examples | Primary Operation |
|---|---|---|
| Keyword search | "find revenue tables", "search for customer data" | search with query |
| Browse hierarchy | "show me Snowflake databases", "browse production" | browse by path |
| Filter by metadata | "datasets tagged PII", "tables owned by data-eng" | search with filters |
| Column name search | "tables with a customer_id column", "find datasets containing email" | search with fieldPaths query prefix |
| Entity lookup | "get details for urn:li:dataset:..." | get by URN |
| Category | Examples | Query Strategy |
|---|---|---|
| Ownership | "Who owns X?", "What does team Y own?" | Search + get ownership aspect |
| Governance | "What has PII tags?", "What's in the Finance domain?" | Search with tag/domain/term filters |
| Coverage | "What's undocumented?", "How many tables lack owners?" | Search + check aspects for completeness |
| Structured properties | "What's Tier 1?", "Filter by data classification" | Resolve property ID → check allowed values → search with structuredProperties.<id> filter |
| Topology | "How many datasets per platform?" | Broad search + aggregate |
| Schema | "What columns does X have?", "Where is column Y used?" | Get schemaMetadata aspect |
| Relationship | "What dashboards use this table?" | Lineage + relationship traversal |
| Popularity | "Most queried datasets?", "Top used tables?" | Sort by usage (Cloud only) |
If the user asks about most popular, most queried, most used, or top datasets by usage:
datahub check server-config and check serverEnvserverEnv: 'cloud' → use --sort-by queryCountLast30DaysFeature --sort-order desc (see CLI reference for all sort fields)Do not attempt the sort on a non-cloud instance — it will fail with a search error.
Sort order: The default sort order is ascending. Always pass --sort-order desc explicitly when sorting by popularity, recency, size, or any metric where higher values should come first.
If the user wants lineage exploration ("what feeds into X", "what depends on X", "show lineage"), suggest using datahub-cloud:datahub-lineage for the dedicated lineage skill. For simple one-hop lineage as part of a question, handle inline.
# Filters are parameters on the tool, not shell flags. Read its schema for names.
search(query="customers", filter={"platform": "snowflake", "entity_type": "dataset"})
search(query="*", filter={"tag": "urn:li:tag:PII"}) # governance filters take URNs
get_entities(urns=["<URN>"]) # full detail, batched
Note: There is no --entity flag. Use --filter entity_type=dataset or --where "entity_type = dataset".
| User says | Query | Filters | Entity Type |
|---|---|---|---|
| "find revenue tables" | revenue | — | dataset |
| "Snowflake datasets tagged PII" | * | platform=snowflake, tag=urn:li:tag:PII | dataset |
| "dashboards owned by jdoe" | * | owner=urn:li:corpuser:jdoe | dashboard |
| "production BigQuery tables" | * | platform=bigquery, env=PROD | dataset |
| "tables with a customer_id column" | * | fieldPaths=customer_id | dataset |
| "Snowflake tables containing an email column" | * | platform=snowflake, fieldPaths=email | dataset |
| Question Pattern | Operations |
|---|---|
| "Who owns X?" | 1. Search for X → 2. Get ownership aspect |
| "What tables have PII tags?" | 1. Search with tag=urn:li:tag:PII filter, entity=dataset |
| "How many datasets lack descriptions?" | 1. Search with --where "entity_type = dataset AND description IS NULL AND editableDescription IS NULL" → 2. Project siblings to check effective coverage (see Step 3: Resolving siblings) |
| "What does team X own?" | 1. Search with owner=urn:li:corpgroup:team-x filter |
| "What columns does X have?" | 1. Search for X → 2. Get schemaMetadata aspect |
"Which tables contain a customer_id column?" | 1. Search * with --where "entity_type = dataset AND fieldPaths = customer_id" |
| "What's in the Finance domain?" | 1. Search with domain=urn:li:domain:finance filter |
Structured properties are custom metadata fields with admin-defined schemas. Filtering by them requires a two-step lookup — you cannot guess the filter field name.
Step 1 — Resolve the property ID:
# Filters are parameters on the tool, not shell flags. Read its schema for names.
search(query="customers", filter={"platform": "snowflake", "entity_type": "dataset"})
search(query="*", filter={"tag": "urn:li:tag:PII"}) # governance filters take URNs
get_entities(urns=["<URN>"]) # full detail, batched
This returns the property's qualified name (e.g., io.acryl.dataTier), which becomes the filter field.
Step 2 — Check for allowed values (if applicable):
Some structured properties restrict values to an enumeration. Fetch the definition to see them:
# Filters are parameters on the tool, not shell flags. Read its schema for names.
search(query="customers", filter={"platform": "snowflake", "entity_type": "dataset"})
search(query="*", filter={"tag": "urn:li:tag:PII"}) # governance filters take URNs
get_entities(urns=["<URN>"]) # full detail, batched
If allowedValues is present, the filter value must exactly match one of the listed options.
Step 3 — Search with the structured property filter:
# Filters are parameters on the tool, not shell flags. Read its schema for names.
search(query="customers", filter={"platform": "snowflake", "entity_type": "dataset"})
search(query="*", filter={"tag": "urn:li:tag:PII"}) # governance filters take URNs
get_entities(urns=["<URN>"]) # full detail, batched
The filter field is always structuredProperties.<qualifiedName> and requires an exact value match.
| User says | Steps |
|---|---|
| "find Tier 1 datasets" | 1. Search entity_type=structuredProperty for "tier" → 2. Get allowed values → 3. Filter structuredProperties.<id>=Tier 1 |
| "what structured properties exist?" | Search entity_type=structuredProperty → list results |
"filter datasets by <property> = <value>" | 1. Resolve property ID → 2. Validate value against allowed values if present → 3. Filter |
| Operation | Tool |
|---|---|
| Keyword or filtered search | search |
| Full detail for known URNs | get_entities — batch them in one call |
| Columns for a dataset | list_schema_fields |
| Curated documents | search_documents, then grep_documents to read within one |
Tool names are prefixed by the server (mcp__datahub__search). Read each tool's
schema for its parameters rather than guessing — MCP tools are self-documenting,
and that schema is the authority.
There is no projection or field-selection step. The CLI needs one because its default payload is enormous; the MCP tools return structured results already scoped, so ask for what you need and read the response.
Editable vs. ingested metadata. A description or tag can live in either the ingestion-provided fields or the user-edited ones, and either counts. When answering "does this table have a description?" or "which columns are tagged PII?", check both before concluding something is missing — this is the most common way a coverage answer comes out wrong.
DataHub often has multiple entities representing the same logical dataset — most commonly a dbt model and its corresponding warehouse table (Snowflake, BigQuery, Redshift, Databricks, Postgres). These are linked via the siblings aspect. The dbt entity typically holds descriptions and column docs; the warehouse entity has schema details, usage stats, and query lineage. The DataHub UI merges these automatically, but CLI and MCP queries return them separately.
Always check siblings when you find a dataset. Metadata may be sparse on the entity the user asked about but complete on its sibling. Include sibling data in your response and note the relationship — e.g., "This Snowflake table is linked to dbt model stg_orders, which provides the documentation."
How to resolve:
# Filters are parameters on the tool, not shell flags. Read its schema for names.
search(query="customers", filter={"platform": "snowflake", "entity_type": "dataset"})
search(query="*", filter={"tag": "urn:li:tag:PII"}) # governance filters take URNs
get_entities(urns=["<URN>"]) # full detail, batched
The isPrimary field indicates the authoritative source (typically dbt). If isPrimary is false on the entity you found, the sibling is the canonical source — check its metadata too.
Default to 10 results per page (max 50 per API call). Show total count and offer to fetch the next page. Confirm with the user before fetching more than 100 total results.
Note what was found and what's missing. Never fabricate metadata that wasn't returned by DataHub.
| # | Name | Type | Platform | Domain | Owner |
| --- | ------------------------- | --------- | --------- | ------- | --------- |
| 1 | mydb.schema.revenue_daily | dataset | Snowflake | Finance | @jdoe |
| 2 | Revenue Dashboard | dashboard | Looker | Finance | @analyst1 |
Always include human-readable names (not raw URNs), but provide URNs for drill-down.
When showing a single entity:
## <Entity Name>
| Property | Value |
| ----------- | ------------------------------- |
| URN | `urn:li:dataset:(...)` |
| Type | dataset (table) |
| Platform | Snowflake |
| Owner | @jdoe (Technical Owner) |
| Tags | `pii`, `revenue` |
| Description | Daily revenue aggregation table |
### Schema (top fields)
| Field | Type | Description |
| ------ | ------- | -------------- |
| date | DATE | Revenue date |
| amount | DECIMAL | Revenue amount |
## Answer
<!-- Direct answer in 1-3 sentences -->
## Evidence
| Entity | Detail | Source |
| ------ | ------------------- | -------------- |
| <name> | <relevant metadata> | <query/aspect> |
## Methodology
**Queries executed:** <count>
**Scope:** <what was searched>
**Limitations:** <gaps, caveats>
--limit (max 50 per page). "Find all tables" means "search and paginate", not "fetch everything".urn:li:*), use get directly — don't pass it as a search query.--where "fieldPaths = customer_id" (or the query prefix fieldPaths:customer_id) — not a plain keyword search for "customer_id".structuredProperties.X filters — always resolve the property's qualified name first by searching entity_type=structuredProperty, and check allowedValues before filtering.--projection. Default search JSON is very large (facets, nested metadata). Always use --projection to return only needed fields. Include ... on <Type> fragments for each entity type you expect in results, or use --urns-only when piping to datahub get.siblings aspect when metadata looks sparse — the user expects the merged view they see in the DataHub UI.`, $, |, ;, &) → reject immediately, do not pass to CLI.datahub-cloud:datahub-lineage.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (datahub-project/datahub-cloud-ai-plugins) — no native marketplace selected
npx claudepluginhub p/datahub-project-datahub-cloud5 skills in this plugin
/datahub-lineageUse this skill when the user wants to explore lineage, trace data dependencies, perform impact analysis, find root causes, map data pipelines, or understand how data flows between systems. Triggers on: "what feeds into X", "what depends on X", "show lineage for X", "impact analysis", "trace the pipeline", "root cause", "upstream of X", "downstream of X", or any request involving data lineage and dependency tracking.
/datahub-qualityUse this skill when the user wants to manage data quality in DataHub: create or run assertions, check assertion outcomes, raise or resolve incidents, create notification subscriptions, or diagnose health problems across their estate. Triggers on: "create assertion", "run assertion", "check quality", "data quality", "health check", "raise incident", "resolve incident", "subscribe to", "failing assertions", "active incidents", or any request involving data quality, assertions, incidents, or quality notifications.
/datahub-setupVerify and troubleshoot the DataHub Cloud connection — confirm the MCP server is reachable, authentication is working, and Claude can access the catalog. Use when the user wants to set up DataHub, test the connection, or fix connectivity issues.