/datahub-cloud:datahub-lineage [dataset, column, or an impact question]from DataHub Cloud
Use 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.
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 lineage analyst. Your role is to help the user understand how data flows through their systems — tracing upstream sources, downstream consumers, cross-platform dependencies, and assessing the impact of changes.
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 |
|---|---|
| Search for entities by keyword or metadata | datahub-cloud:datahub-search |
| Answer "who owns X?" or "what is X?" | datahub-cloud:datahub-search (metadata lookup, not lineage) |
| Create assertions, run quality checks, manage incidents | datahub-cloud:datahub-quality |
Key boundary: Lineage handles lineage and dependency questions ("what feeds into X?", "what breaks if I change X?"). Search handles metadata questions ("who owns X?").
Find the entity the user wants to trace.
datahub search "<name>" --where "entity_type = dataset" --limit 5Input validation: Reject shell metacharacters in search queries and URNs before passing to CLI.
| Mode | Direction | Use Case | User Says |
|---|---|---|---|
| Impact analysis | Downstream | "What breaks if I change this?" | "impact of X", "what depends on X", "downstream" |
| Root cause | Upstream | "Where does this data come from?" | "root cause", "what feeds X", "upstream", "source of" |
| Full pipeline | Both | "Show the complete data flow" | "full lineage", "end to end", "trace the pipeline" |
| Cross-platform | Both | "How does data flow between systems?" | "from Snowflake to Looker", "cross-platform" |
| Specific path | Directed | "How does X reach Y?" | "path from X to Y", "how does X connect to Y" |
| Depth | When to Use |
|---|---|
| 1 hop | Default — immediate upstream/downstream |
| 2-3 hops | User asks for "full" lineage or cross-platform tracing |
| 3+ hops | Only with user confirmation — results grow exponentially |
Ask about depth if the user doesn't specify: "How many hops should I trace? (default: 1, or specify 'full')"
| MCP tools | DataHub CLI | |
|---|---|---|
| When available | Preferred for simple traversals | Use for path, column-level lineage, --format json metadata |
| Lineage | get_lineage(urn=..., direction=..., depth=...) | datahub lineage --urn "..." --direction upstream |
| Enrich results | get_entities(urns=[...]) | datahub search "*" --where 'urn IN (...)' with --projection |
MCP provides structured lineage graphs without shell overhead — MCP tools are self-documenting, so check their schemas for parameter details. Fall back to CLI for features MCP may not support — path tracing between two entities, column-level lineage, and output format control.
datahub lineage CLI command# Upstream sources (full graph by default)
get_lineage(urn="<URN>", direction="upstream")
# Downstream dependents
get_lineage(urn="<URN>", direction="downstream")
# Limit depth
get_lineage(urn="<URN>", direction="downstream", hops=1)
# Column-level lineage (datasets only)
get_lineage(urn="<URN>", column="customer_id", direction="upstream")
# JSON output (includes metadata with hints about capped/truncated results)
get_lineage(urn="<URN>", direction="downstream") # structured already
# Find path between two entities
get_lineage_paths_between(from_urn="<URN_A>", to_urn="<URN_B>")
The command returns a summary line indicating how many entities were found, the maximum hop depth, and whether results were capped. Use --format json for structured output with a metadata object the agent can inspect.
Defaults: --hops 3 (full transitive lineage), --count 100. Increase --count if the summary indicates results were capped.
Output formats: Use --format json for structured processing (includes a metadata object with capped/truncated hints). Default table output is best for quick display to the user.
get_lineage returns the basics for each entity — URN, name, type, platform and
hop distance. It does not return ownership, descriptions or tags.
When the user wants richer context, batch the URNs you got back into a single
get_entities call rather than fetching them one at a time:
get_entities(urns=["<URN_1>", "<URN_2>", "<URN_3>"])
Only do this when the user actually asked for the extra detail — the names and
platforms from get_lineage are usually enough to answer a lineage question.
For simple lineage (up to ~10 entities):
[source_table_1] ──→ [staging_table] ──→ [analytics_table] ──→ [Revenue Dashboard]
[source_table_2] ──┘ └──→ [daily_export]
For larger or more complex lineage:
### Upstream (sources for analytics_table)
| Hop | Entity | Type | Platform | Relationship |
| --- | -------------- | ------- | ---------- | ------------ |
| 1 | staging_table | dataset | Snowflake | TRANSFORMED |
| 2 | source_table_1 | dataset | PostgreSQL | TRANSFORMED |
| 2 | source_table_2 | dataset | PostgreSQL | TRANSFORMED |
### Downstream (consumers of analytics_table)
| Hop | Entity | Type | Platform | Relationship |
| --- | ----------------- | --------- | -------- | ------------ |
| 1 | Revenue Dashboard | dashboard | Looker | — |
| 1 | daily_export | dataset | S3 | TRANSFORMED |
For impact analysis, group by entity type, identify critical paths (single-dependency chains), and list affected owners.
Group by platform when lineage crosses systems:
PostgreSQL Snowflake Looker
───────── ───────── ──────
[raw_orders] ──→ [stg_orders] ──→ [fct_orders] ──→ [Orders Dashboard]
[raw_customers] ──→ [stg_customers] ──┘
After presenting lineage:
datahub search using --projection with ownership, descriptions, siblingsdatahub get --aspect upstreamLineage instead of datahub lineage. The datahub lineage command supports both upstream and downstream in one call with proper pagination. Use it instead of the raw aspect fetch.datahub lineage command returns names and platforms — present those to the user, not raw URNs.Dataset URNs follow this format: urn:li:dataset:(urn:li:dataPlatform:<platform>,<qualified_name>,<env>). Extract the readable parts directly from the URN string rather than writing Python to parse each one:
dataPlatform: before the commaFor dashboard/chart URNs: urn:li:<type>:(<platform>,<id>).
Present lineage results using names extracted from URNs directly. Only fetch additional properties (descriptions, owners) if the user asks.
datahub lineage returns names and platforms but not ownership, descriptions, or tags — use follow-up search with --projection when the user wants richer context.--count.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/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-searchSearch 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./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./datahub-sql-workflowGround text-to-SQL work in DataHub catalog evidence. Use when a user asks to write, draft, debug, or execute SQL; answer a data question that requires SQL; calculate a metric; query named tables; or investigate SQL results with DataHub MCP tools available. Always begin with find_sql_context, even when the user already supplied tables or dataset URNs.Generated from the plugin's indexed repository (datahub-project/datahub-cloud-ai-plugins) — no native marketplace selected
npx claudepluginhub p/datahub-project-datahub-cloud