Skip to content
Data
Command

/add-adapter-method

Add a new method to both Airflow adapters

From plugin
astronomer-data
4593 skills3 commands
> /plugin marketplace add astronomer/agents
> /plugin install astronomer-data@astronomer

Command definition

add-adapter-method.md
description: Add a new method to both Airflow adapters
argument-hint: [method-name]

Add method `$ARGUMENTS` to both V2 and V3 adapters.

Steps

1. Add abstract method to `adapters/base.py`:

@abstractmethod
def method_name(self, param: str) -> dict[str, Any]:
    pass

2. Implement in `adapters/airflow_v2.py`:

def method_name(self, param: str) -> dict[str, Any]:
    return self._call(f"endpoint/{param}")

3. Implement in `adapters/airflow_v3.py`:

def method_name(self, param: str) -> dict[str, Any]:
    return self._call(f"endpoint/{param}")

Version Differences

| Feature | Airflow 2.x | Airflow 3.x | |---------|-------------|-------------| | API path | `/api/v1` | `/api/v2` | | Assets | `datasets` | `assets` | | DAG runs | `execution_date` | `logical_date` |

Normalize V2 responses to match V3 field names when they differ.

@astronomer
Ships withastronomer-data

AI agent tooling for data engineering workflows. Includes an MCP server for Airflow, a CLI tool (af) for interacting with Airflow from your terminal, and skills that extend AI coding agents with specialized capabilities for working with Airflow and data

Stars on GitHub

Momentum

stars in total
459
Star history of astronomer/agents on GitHub, a chart by star-history.com

Other commands on astronomer-data.

More commands from other plugins.

COMMANDS.generated

COMMANDS.generated

Command

<!-- Generated from backend/logic/schema.py. Do not edit. Run `hogli build:projections`. -->

posthog11d41k
@posthog@posthogInstall Command
recall
Auto-invoked

recall

Command

Search past session observations and lessons for relevant context. Wrap the `memory_smart_search` and `memory_lesson_recall` MCP…

@rohitg00@rohitg00Install Command