Manages Apache Airflow operations including listing, testing, running, and debugging DAGs, viewing task logs, checking connections and variables, and monitoring system health. Use when working with Airflow DAGs, pipelines, workflows, or tasks, or when the user mentions testing dags, running pipelines, debugging workflows, dag failures, task errors, dag status, pipeline status, list dags, show connections, check variables, or airflow health.
View on GitHubSelect agents to install to:
npx add-skill https://github.com/astronomer/agents/blob/main/skills/airflow/SKILL.md -a claude-code --skill airflowInstallation paths:
.claude/skills/airflow/# Airflow Operations
Use `af` commands to query, manage, and troubleshoot Airflow workflows.
## Running the CLI
Run all `af` commands using uvx (no installation required):
```bash
uvx --from astro-airflow-mcp@latest af <command>
```
Throughout this document, `af` is shorthand for `uvx --from astro-airflow-mcp@latest af`.
## Instance Configuration
Manage multiple Airflow instances with persistent configuration:
```bash
# Add a new instance
af instance add prod --url https://airflow.example.com --token "$API_TOKEN"
af instance add staging --url https://staging.example.com --username admin --password admin
# List and switch instances
af instance list # Shows all instances in a table
af instance use prod # Switch to prod instance
af instance current # Show current instance
af instance delete old-instance
# Override instance for a single command
af --instance staging dags list
```
Config file: `~/.af/config.yaml` (override with `--config` or `AF_CONFIG` env var)
Tokens in config can reference environment variables using `${VAR}` syntax:
```yaml
instances:
- name: prod
url: https://airflow.example.com
auth:
token: ${AIRFLOW_API_TOKEN}
```
Or use environment variables directly (no config file needed):
```bash
export AIRFLOW_API_URL=http://localhost:8080
export AIRFLOW_AUTH_TOKEN=your-token-here
# Or username/password:
export AIRFLOW_USERNAME=admin
export AIRFLOW_PASSWORD=admin
```
Or CLI flags: `af --airflow-url http://localhost:8080 --token "$TOKEN" <command>`
## Quick Reference
| Command | Description |
|---------|-------------|
| `af health` | System health check |
| `af dags list` | List all DAGs |
| `af dags get <dag_id>` | Get DAG details |
| `af dags explore <dag_id>` | Full DAG investigation |
| `af dags source <dag_id>` | Get DAG source code |
| `af dags pause <dag_id>` | Pause DAG scheduling |
| `af dags unpause <dag_id>` | Resume DAG scheduling |
| `af dags errors` | List import errors |
| `af dags warnings` | List DAG warnings |Issues Found: