Skip to content
Back to skills

578 Scaffold 6bc369dd

ASecurity

Scaffold Dagster definitions including Python objects (assets, schedules, sensors) and integration components. **ALWAYS use `dg scaffold` for new definitions.** Do not manually create definition files. **IMPORTANT**: All paths are relative to the `defs/` directory, NOT the current working directory or root of the project.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmentpythonbash

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 578-scaffold_6bc369dd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 578 Scaffold 6bc369dd?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 578 Scaffold 6bc369dd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-578-scaffold-6bc369dd/badge)](https://www.skillsdirectory.com/skills/tools-only-578-scaffold-6bc369dd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# dg scaffold - Create Definitions

Scaffold Dagster definitions including Python objects (assets, schedules, sensors) and integration components.

**ALWAYS use `dg scaffold` for new definitions.** Do not manually create definition files.

**IMPORTANT**: All paths are relative to the `defs/` directory, NOT the current working directory or root of the project.

## Recommended Directory Structure

```
defs/
├── assets/
│   ├── customers.py
│   └── sales/
│       └── revenue.py
├── schedules/
│   └── daily_refresh.py
└── sensors/
    └── file_watcher.py
```

## Python Objects

```bash
dg scaffold defs dagster.asset <path>.py
dg scaffold defs dagster.schedule <path>.py
dg scaffold defs dagster.sensor <path>.py
```

**Examples:**

```bash
# Asset
dg scaffold defs dagster.asset assets/customers.py
dg scaffold defs dagster.asset assets/sales/revenue.py

# Schedule
dg scaffold defs dagster.schedule schedules/daily_refresh.py

# Sensor
dg scaffold defs dagster.sensor sensors/file_watcher.py
```

---

## Integration Components

```bash
dg scaffold defs <component_type> <name> [--json-params '{...}']
```

**Examples:**

```bash
# dbt
dg scaffold defs dagster_dbt.DbtProjectComponent my_dbt --json-params '{
  "project_dir": "dbt_project"
}'

# Sling
dg scaffold defs dagster_sling.SlingReplicationComponent my_sling --json-params '{
  "replication_config": "replication.yaml"
}'
```

**Find available components:**

```bash
dg list components
dg list components --package dagster_dbt
```

**For integration-specific configuration and parameters, use the dagster-integrations skill.**

---

## Custom Components

```bash
# Reusable component type
dg scaffold component MyComponentType
```

Creates a new component class that can be instantiated multiple times via YAML.

---

## Validation Checklist

After scaffolding, always run:

```bash
dg check defs && dg list defs
```

This verifies:

- Definition syntax is valid
- All imports resolve correctly
- Definition appears in the registry

---

## Generated Structure

**Python objects:** Single `.py` file at specified path.

**Integration components:** Directory with `defs.yaml`:

```
defs/
└── my_dbt/
    └── defs.yaml
```

---

## See Also

- [list.md](./list.md) - Discover component types with `dg list components`
- [check.md](./check.md) - Validate definitions after scaffolding
- [launch.md](./launch.md) - Test scaffolded assets
- **dagster-integrations skill** - Integration-specific configuration and parameters

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.