create-custom-dagster-component
Installation
SKILL.md
Create a custom Component
Overview
This skill automates the creation and validation of a new custom Dagster component using the dg CLI tool with uv as a package manager. It incorporates demo mode functionality for creating realistic demonstrations that can run locally without external dependencies. The documentation for creating good components can be found here https://docs.dagster.io/guides/build/components/creating-new-components/creating-and-registering-a-component and here https://github.com/dagster-io/dagster/blob/master/python_modules/libraries/dagster-dbt/dagster_dbt/components/dbt_project/component.py for a complex example of a component.
What This Skill Does
When invoked, this skill will:
- ✅ Create a new Dagster Component project using
dg scaffold component ComponentName - ✅ Fills in the component logic in the
build_defs()function with both real and demo mode implementations - ✅ Implement a
demo_modeboolean flag in the component YAML for toggling between real and local demo implementations - ✅ Create 3-5 realistic assets with proper dependencies and technology kinds
- ✅ Instantiate a component YAML and fill it in using the
dg scaffold defs my_module.components.ComponentName my_componentcommand - ✅ Optionally create a custom scaffolder if requested
- ✅ Validate that the component loaded correctly using
dg check defsanddg list defsto ensure that the expected component instances are all loaded. - ✅ Provide clear next steps for development