testing-dags

testing-dags is a skill for Claude Code from astronomer/agents. It costs 77 tokens per session (2,580 once invoked), scanned A, original, Apache-2.0.

A guide for testing Apache Airflow workflows through repeated test, debugging, and repair cycles. A DAG is Airflow's definition of a workflow and its task dependencies.

In plain words
What is it for?
Parse DAGs, run their tests, trigger a workflow and wait for its result, inspect failures, and fix problems through iterative testing.
Why use it?
It helps catch syntax, import, workflow, and runtime problems and then investigate failures using the appropriate Airflow commands.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the astronomer-data plugin — 35 skills, 3 commands shipped together

Good fit Parse DAGs, run their tests, trigger a workflow and wait for its result, inspect failures, and fix problems through iterative testing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/astronomer/agents/testing-dags
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add astronomer/agents --skill testing-dags
Clone the repo
git clone --depth 1 https://github.com/astronomer/agents

Made for: Claude Code.

Or install astronomer-data, the plugin that ships this one along with the rest of its 35 skills, 3 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for testing-dags

README.md
[![agentmods](https://agentmods.dev/badge/skills/astronomer/agents/testing-dags/github.svg)](https://agentmods.dev/skills/astronomer/agents/testing-dags)
Your own site
<a href="https://agentmods.dev/skills/astronomer/agents/testing-dags"><img src="https://agentmods.dev/badge/skills/astronomer/agents/testing-dags/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for testing-dags

Your own site · 80×15
<a href="https://agentmods.dev/skills/astronomer/agents/testing-dags"><img src="https://agentmods.dev/badge/skills/astronomer/agents/testing-dags.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.02580
Opus 5.5 $0.00031 $0.01032
Sonnet 5.5 $0.00015 $0.00516
Haiku 4.5 $0.00008 $0.00258

Measured 3mo ago against content hash 5c03dde0d39b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testing-dags scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/testing-dags/SKILL.md · 414 lines

How it starts

The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DAG Testing Skill

Use af commands to test, debug, and fix DAGs in iterative cycles.

Running the CLI

These commands assume af is on PATH. Run via astro otto to get it automatically, or install standalone with uv tool install astro-airflow-mcp.


Quick Validation with Astro CLI

If the user has the Astro CLI available, these commands provide fast feedback without needing a running Airflow instance:

# Parse DAGs to catch import errors, syntax issues, and DAG-level problems
astro dev parse

# Run pytest against DAGs (runs tests in tests/ directory)
astro dev pytest

Use these for quick validation during development. For full end-to-end testing against a live Airflow instance, continue to the trigger-and-wait workflow below.


FIRST ACTION: Just Trigger the DAG

When the user asks to test a DAG, your FIRST AND ONLY action should be:

af runs trigger-wait <dag_id>

DO NOT:

  • Call af dags list first
  • Call af dags get first
  • Call af dags errors first
  • Use grep or ls or any other bash command
  • Do any "pre-flight checks"

Just trigger the DAG. If it fails, THEN debug.


Testing Workflow Overview

┌─────────────────────────────────────┐
│ 1. TRIGGER AND WAIT                 │
│    Run DAG, wait for completion     │
└─────────────────────────────────────┘
                 ↓
        ┌───────┴───────┐
        ↓               ↓
   ┌─────────┐    ┌──────────┐
   │ SUCCESS │    │ FAILED   │
   │ Done!   │    │ Debug... │
   └─────────┘    └──────────┘
                       ↓
        ┌─────────────────────────────────────┐
        │ 2. DEBUG (only if failed)           │
        │    Get logs, identify root cause    │
        └─────────────────────────────────────┘
                       ↓
        ┌─────────────────────────────────────┐
        │ 3. FIX AND RETEST                   │
        │    Apply fix, restart from step 1   │
        └─────────────────────────────────────┘

Philosophy: Try first, debug on failure. Don't waste time on pre-flight checks — just run the DAG and diagnose if something goes wrong.

Read the full file on GitHub · 414 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 414 lines · 77 tokens per session scan A 5c03dde0d39b

Subscribe to this mod's changes

testing-dags is a skill published in the GitHub repository astronomer/agents (465 stars, last pushed today), licensed Apache-2.0. It adds 77 tokens to every session and 2,580 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

testing-dags compared with skills from other repositories

testing-dags next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testing-dagsastronomer/agentsSkill465todayApache-2.0A77Claude Code
workers-developmentcloudflare/skillsSkill3.6k6d agoApache-2.0A68Claude Code
workers-profilingcloudflare/skillsSkill3.6k6d agoApache-2.0A31Claude Code
loom-code-migrationcosmix/loomSkill66yesterdayMITA15Claude Code, Codex
loom-debuggingcosmix/loomSkill66yesterdayMITA24Claude Code
observability-debuggingnavikt/copilotSkill652d agoMITA38Claude Code, Codex
loom-dead-code-checkcosmix/loomSkill66yesterdayMITA29Claude Code