SKILL.md
DAG Authoring Skill
This skill guides you through creating and validating Airflow DAGs using best practices and the VS Code extension tools.
For testing and debugging DAGs, see the testing-dags skill.
Critical Warning: Use Extension Tools
Use the Airflow VS Code extension tools for all Airflow operations. Avoid running Airflow CLI commands for listing DAGs, checking logs, or inspecting runs.
Workflow Overview
- Discover
- Plan
- Implement
- Validate
- Test (with user consent)
- Iterate
Phase 1: Discover
Explore the codebase
Use file tools to find existing patterns:
- Search for existing DAGs in the repo
- Read similar DAGs for conventions
- Check requirements and providers in use
Query Airflow via extension tools
Use these tools to understand the environment:
listactivedagsandlistpauseddagsfor naming conventionsgetrunningdagsfor current activitygetdaghistoryto see run cadencegotoconnectionsviewandgotovariablesviewfor configurationgotoprovidersviewandgotopluginsviewfor installed componentsgotoserverhealthviewfor health checks
Phase 2: Plan
Propose:
- DAG structure (tasks, dependencies, schedule)
- Operators to use
- Connections and variables needed
- Package changes if required
Get user approval before implementing.
Phase 3: Implement
- Create or update the DAG file
- Update dependencies if needed
- Save the file
Phase 4: Validate
After the DAG is deployed to Airflow, validate via tools:
- Confirm the DAG appears in
listactivedagsorlistpauseddags - Use
getdagsource_codeto verify the deployed source - Review run history with
getdaghistory
Phase 5: Test
Follow the testing-dags skill:
- Ask for consent
- Trigger with
triggerdagrun - Review results with
getdagrunsandanalysedaglatest_run
Notes
- Avoid CLI checks like
airflow dags listorastro dev runfor operational status. - Use the extension tools for runtime investigation and logs.