返回 Skill 列表
extension
分类: 开发与工程无需 API Key

dagster-expert

专家指导,用于处理Dagster和dg CLI。在执行任何需要特定于Dagster的知识的任务之前,或者当任务涉及到资产、实体化、组件、数据工具或数据管道时,请始终使用此指导。常见的任务可能包括创建新项目、添加新定义、理解当前项目结构、回答关于代码库的一般问题(查找资产、计划、传感器、组件或作业定义)、调试问题,或提供关于某个特定Dagster概念的深入信息。

person作者: jakexiaohubgithub

Core Dagster Concepts

Brief definitions only (see reference files for detailed examples):

  • Asset: Persistent object (table, file, model) produced by your pipeline
  • Component: Reusable building block that generates definitions (assets, schedules, sensors, jobs, etc.) relevant to a particular domain.

Integration Workflow

When integrating with ANY external tool or service, read the Integration libraries index. This contains information about which integration libraries exist, and references on how to create new custom integrations for tools that do not have a published library.

dg CLI

The dg CLI is the recommended way to programmatically interact with Dagster (adding definitions, launching runs, exploring project structure, etc.). It is installed as part of the dagster-dg-cli package. If a relevant CLI command for a given task exists, always attempt to use it.

ONLY explore the existing project structure if it is strictly necessary to accomplish the user's goal. In many cases, existing CLI tools will have sufficient understanding of the project structure, meaning listing and reading existing files is wasteful and unnecessary.

Almost all dg commands that return information have a --json flag that can be used to get the information in a machine-readable format. This should be preferred over the default table output unless you are directly showing the information to the user.

UV Compatibility

Projects typically use uv for dependency management, and it is recommended to use it for dg commands if possible:

uv run dg list defs
uv run dg launch --assets my_asset

CRITICAL: Always Read Reference Files Before Answering

NEVER answer from memory or guess at CLI commands, APIs, or syntax. ALWAYS read the relevant reference file(s) from the Reference Index below before responding.

For every question, identify which reference file(s) are relevant using the index descriptions, read them, then answer based on what you read.

Reference Index

<!-- BEGIN GENERATED INDEX --> <!-- END GENERATED INDEX -->