About testing-dags
A skill for iteratively testing, debugging, and fixing Airflow DAGs with Airflow VS Code extension tools. It guides users from triggering a run through diagnosis and retesting.
Key features
- 01Trigger and monitor DAG runs
- 02Analyze failed runs
- 03Inspect run details and logs
- 04Apply fixes and retest
- 05Compare DAG history
Use cases
- 01Test a DAG after a code change
- 02Diagnose a failed DAG run
- 03Review task logs for an error
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ necatiarslan/ airflow-vscode-extension --skill testing-dagsAfter installing, type/testing-dagsin Claude Code to confirm it loaded.
Details
From the project READMEDAG 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
Comments
Markdown supported