agentleFS
fmindfmind/dotfiles/skills/airflow/SKILL.md

airflow

Skill13 starsChanged 4 days agoMITView on GitHub

Develop and test Airflow DAGs with the Astronomer astro CLI.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use astro for local Apache Airflow development, DAG authoring, task testing, and debugging.

    line 15
  2. Very specific:

    Stop or rebuild environment: stop containers when done or rebuild when changing dependencies in requirements.txt.

    line 47
  3. Very specific:

    Author Airflow 3 DAGs with airflow.sdk: import dag, task, and DAG from airflow.sdk.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Apache Airflow with Astronomer CLI

Use astro for local Apache Airflow development, DAG authoring, task testing, and debugging. python-stack owns Python package conventions and docker manages container runtimes.

Docker mode (the default) needs an existing Docker-compatible engine; run dot doctor --headroom before the first image pull or build. --standalone runs Airflow on the host without Docker. Workstation tools disable anonymous telemetry (ASTRO_TELEMETRY_DISABLED=1). Inspect the project's Airflow version before choosing component flags for astro dev logs and astro dev bash (--api-server and --dag-processor for Airflow 3; --webserver for Airflow 2). astro dev bash opens an interactive shell, so agents run Airflow commands through astro dev run instead.

Workflow

  1. Start local environment: --no-browser keeps the UI from opening.

    astro dev start --no-browser
  2. Validate DAG syntax and integrity: parse DAG files to catch import and configuration errors without waiting for the scheduler.

    astro dev parse
  3. Test tasks and runs: execute unit tests or run individual tasks directly inside the local environment.

    astro dev pytest
    astro dev run tasks test <dag_id> <task_id>
  4. Inspect service and task logs: select the relevant component and keep --follow opt-in.

    astro dev logs --scheduler
    astro dev logs --api-server
  5. Stop or rebuild environment: stop containers when done or rebuild when changing dependencies in requirements.txt.

    astro dev stop
    # After changing requirements.txt or Dockerfile:
    astro dev restart

Gotchas

  • Author Airflow 3 DAGs with airflow.sdk: import dag, task, and DAG from airflow.sdk; ruff check --select AIR3 flags removed and deprecated Airflow 2 imports before astro dev upgrade-test.
  • Proxy URLs replace fixed ports: by default a shared reverse proxy serves each project at http://<project>.localhost:6563 on random backend ports; astro dev proxy status lists each project's URL and Postgres port. --no-proxy restores fixed ports (8080 for the API server or webserver, 5432 for Postgres), which can collide with local services.
  • Task tests record no state: astro dev run tasks test runs a single task without recording state in the Airflow database; upstream task dependencies must be handled or mocked.
  • Run upgrade-test before upgrading: before moving to a newer Airflow or Astro Runtime (including Airflow 2 to 3), run astro dev upgrade-test (optionally --airflow-version <version>); it reports dependency changes, DAG import errors, and deprecation lint in an upgrade-test-<current>--<new>/ folder inside the project and temporarily appends pytest-html to requirements.txt; --fix rewrites project files with ruff fixes, including unsafe ones.

Official Skills

Upstream: Astronomer Agent Skills at astronomer/agents (including Airflow 2-to-3 migration). Its airflow skill drives the af CLI and shares this skill's name: preview it, never install it under that name, and install only selected non-colliding skills under the shared vendor-skill policy.

Documentation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.