Using Datahub

作者 datahub-projectc6d0ded76eca无许可证42 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8天前更新

This skill provides routing guidance for all DataHub interaction skills. It is injected at session start and helps map user intent to the correct skill. Do not invoke this skill directly — it is loaded automatically.

仅含说明AI & Agents
AI 生成的概览

将 DataHub 目录请求路由到正确 DataHub 交互技能的路由指南。

功能
该技能是五个 DataHub 目录交互技能(Search、Enrich、Lineage、Quality、Setup)的路由指南。它提供将用户意图映射到相应技能和命令的路由表,以及针对模糊请求的消歧规则。它还说明了 datahub 命令的 CLI 归属约定。该技能在会话开始时自动加载,不应直接调用。
适用场景
当请求涉及 DataHub 目录,且需要判断应由哪个 DataHub 技能处理时使用。它用于意图路由,而非直接执行目录操作。
运行要求
需要其引用的 DataHub 技能集;对于 CLI 归属指引,还需要 datahub CLI。它不附带脚本,仅为说明性指令。

Using DataHub Skills

You have access to 5 DataHub catalog interaction skills. Use this guide to route the user's request to the correct skill.


Skill Routing Table

User IntentSkillCommand
Find or discover entities (search, browse, filter, list)Search/datahub-search
Answer a question about the catalog ("who owns X?", "how many X?")Search/datahub-search
Update metadata (descriptions, tags, glossary terms, ownership, deprecation)Enrich/datahub-enrich
Explore lineage (upstream, downstream, impact, root cause, dependencies)Lineage/datahub-lineage
Data quality (assertions, incidents, health checks)Quality/datahub-quality
Notifications (subscribe to assertion failures, incidents)Quality/datahub-quality
Install CLI, authenticate, verify connectionSetup/datahub-setup
Configure default scopes and profilesSetup/datahub-setup

Disambiguation Rules

When the intent is ambiguous, use these rules:

"Tag" requests

  • All tag operations (PII, sensitive, important, reviewed, team-x) → Enrich (general metadata)

"Domain" requests

  • Filter search to a domain → Search (scoped search)
  • Configure default domain → Setup (profile configuration)

"Quality" or "health" requests

  • Failing assertions, active incidents, health status → Quality
  • Create assertions, run quality checks, raise incidents → Quality
  • Subscribe to assertion failures or incidents → Quality
  • Metadata quality/documentation/ownership coverage → Use Search to gather the data and synthesize the answer

Lineage vs. Search

  • "What feeds into X" / "what depends on X" / "impact of changing X" → Lineage
  • "What dashboards use table X" → Lineage (relationship traversal)
  • "Who owns X" / "what is X" → Search (metadata lookup)

Setup vs. other skills

  • "Set up" / "install" / "authenticate" / "verify connection" → Setup
  • "Configure defaults" / "set default platform" / "create profile" → Setup
  • "Check if DataHub is working" → Setup (connectivity verification)

CLI Attribution

When running datahub CLI commands, pass -C skill=<name> on the root command so usage can be attributed:

bash
datahub -C skill=datahub-search search "revenue"datahub -C skill=datahub-enrich graphql --query '...'datahub -C skill=datahub-lineage lineage --urn "..."

Use the skill name from the YAML frontmatter. If -C is not recognized, omit it — the command works the same without it.


Critical Rules

  1. Never guess the skill. If the intent is genuinely ambiguous, ask the user to clarify.
  2. One skill per request unless the user explicitly asks for multiple operations.
  3. Lineage is for lineage only — not for general "what is this entity?" questions (that's Search).
  4. Search handles ad-hoc questions. "Who owns X?" and "what columns does X have?" are Search questions, not Lineage.
  5. Enrich handles all metadata writes — descriptions, tags, glossary terms, ownership, deprecation.
  6. Quality handles data quality — assertions, incidents, health checks, subscriptions.
  7. Setup handles environment and configuration — CLI install, auth, connectivity, default scopes.

来源与署名

来源:datahub-project/datahub-skills位于skills/using-datahub提交c6d0ded

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架