testing-dags
DAG Testing Skill
Use the Airflow VS Code extension tools to test, debug, and fix DAGs in iterative cycles.
First Action: Trigger the DAG
When the user asks to test a DAG, your first action should be:
trigger_dag_runwith the provided DAG ID and config
Do not do pre-flight checks unless the user asks for them.
Testing Workflow Overview
- Trigger and monitor
- If success, summarize
- If failed, debug
- Fix and retest
Phase 1: Trigger and Monitor
- Trigger:
trigger_dag_run - Monitor:
- Use
get_dag_runsto check state - If a specific run ID is known, use
get_dag_run_detail
- Use
Response Interpretation
- Success: summarize duration and outcome
- Failed: move to Phase 2
- Running: ask whether to keep polling
Phase 2: Debug Failures
- Use
analyse_dag_latest_runfor a full analysis of the latest run - If a specific run ID is known, use
get_dag_run_detail - If task logs are needed, open
go_to_dag_log_view
Phase 3: Fix and Retest
- Apply fixes in the DAG or related systems
- Re-trigger with
trigger_dag_run - Re-check with
get_dag_runsorget_dag_run_detail
Notes
- Prefer
analyse_dag_latest_runfor fast triage - Use
get_dag_historywhen comparing across days
More from necatiarslan/airflow-vscode-extension
migrating-airflow-2-to-3
Guide for migrating Apache Airflow 2.x projects to Airflow 3.x. Use when the user mentions Airflow 3 migration, upgrade, compatibility issues, breaking changes, or wants to modernize their Airflow codebase.
29airflow-hitl
Use when the user needs human-in-the-loop workflows in Airflow (approval/reject, form input, or human-driven branching). Covers ApprovalOperator, HITLOperator, HITLBranchOperator, HITLEntryOperator. Requires Airflow 3.1+.
28annotating-task-lineage
Annotate Airflow tasks with data lineage using inlets and outlets. Use when the user wants to add lineage metadata to tasks, specify input/output datasets, or enable lineage tracking for operators without built-in OpenLineage extraction.
28airflow
Manages Apache Airflow operations including listing, running, and debugging DAGs, viewing logs, and checking server status using the VS Code extension tools.
27authoring-dags
Workflow and best practices for writing Apache Airflow DAGs. Use when the user wants to create a new DAG, write pipeline code, or asks about DAG patterns and conventions. For testing and debugging DAGs, see the testing-dags skill.
27debugging-dags
Comprehensive DAG failure diagnosis and root cause analysis. Use for complex debugging requests requiring deep investigation like "diagnose and fix the pipeline" or "full root cause analysis".
27