ClaudeSuperPower

add-adapter-method

Command

Add a new method to both Airflow adapters

Type this in Claude Code
/add-adapter-method [method-name]
method-name
optional
Claude can also invoke this on its own inherits all session tools

What it tells Claude to do

35 lines

The prompt this command injects, verbatim. Worth reading before you run it.

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

## Steps

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

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

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

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

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

```python
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.

Shipped by 3 plugins

Installing any of these installs this command.

More than one plugin defines this name. Installing two of them together means they compete for the same invocation — pick one, or expect the later install to win.

What this can do

Capabilities declared in this component's own frontmatter — not inferred.

Inherit all session tools

Declares no tool restrictions — inherits every session tool

~10 tokens of context used while enabled, before you invoke anything

Trust

87/100 · Excellent

2 factors scored below maximum

Reviews

Log in to leave a review.

No reviews yet — be the first.

Explore related

Other things in this space — across every part of the ecosystem, not just commands.