Skip to content
Back to skills

1530 Description Skill 9aa9f0cd

ASecurity

Airflow adapter pattern for v2/v3 API compatibility

  • 11 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
code-qualitypythonapi

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add tools-only/X-Skills --skill 1530-description-skill_9aa9f0cd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1530 Description Skill 9aa9f0cd?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1530 Description Skill 9aa9f0cd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1530-description-skill-9aa9f0cd/badge)](https://www.skillsdirectory.com/skills/tools-only-1530-description-skill-9aa9f0cd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Airflow adapter pattern for v2/v3 API compatibility
globs:
  - src/astro_airflow_mcp/adapters/**
  - src/astro_airflow_mcp/server.py
---

# Airflow Adapter Pattern

Enables compatibility with both Airflow 2.x (`/api/v1`) and 3.x (`/api/v2`).

## Architecture

```
MCP Tool → _get_adapter() → AirflowV2Adapter or AirflowV3Adapter → Airflow API
```

Version is auto-detected at startup.

## Key Files

- `adapters/base.py` - Abstract interface
- `adapters/airflow_v2.py` - Airflow 2.x (`/api/v1`)
- `adapters/airflow_v3.py` - Airflow 3.x (`/api/v2`)

## Related Files

- @api-differences.md - V2 vs V3 field/endpoint differences
- @patterns.md - Implementation patterns

## Quick Reference

```python
adapter = _get_adapter()
dags = adapter.list_dags(limit=100)
run = adapter.trigger_dag_run("my_dag", conf={"key": "value"})
```

Files in this skill

  • README.md860 B
  • skill.md850 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.