Labsco
astronomer logo

setting-up-astro-project

โ˜… 397

by astronomer ยท part of astronomer/agents

Initialize and configure Astro/Airflow projects with dependencies, connections, and environment setup. Scaffolds complete project structure with astro dev init , including directories for DAGs, plugins, tests, and configuration files Manage Python and OS-level dependencies via requirements.txt and packages.txt , with custom Dockerfile support for complex setups Configure connections, variables, and pools declaratively in airflow_settings.yaml , with export/import commands for environment...

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup
๐Ÿงฉ One of 7 skills in the astronomer/agents package โ€” works on its own, and pairs well with its siblings.

Initialize and configure Astro/Airflow projects with dependencies, connections, and environment setup. Scaffolds complete project structure with astro dev init , including directories for DAGs, plugins, tests, and configuration files Manage Python and OS-level dependencies via requirements.txt and packages.txt , with custom Dockerfile support for complex setups Configure connections, variables, and pools declaratively in airflow_settings.yaml , with export/import commands for environment...

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates โ€” shown here so you can audit it before installing. You don't need to read it to use the skill.

by astronomer

Initialize and configure Astro/Airflow projects with dependencies, connections, and environment setup. Scaffolds complete project structure with astro dev init , including directories for DAGs, plugins, tests, and configuration files Manage Python and OS-level dependencies via requirements.txt and packages.txt , with custom Dockerfile support for complex setups Configure connections, variables, and pools declaratively in airflow_settings.yaml , with export/import commands for environment... npx skills add https://github.com/astronomer/agents --skill setting-up-astro-project Download ZIPGitHub397

Initialize a New Project

Copy & paste โ€” that's it
astro dev init

Don't pass --airflow-version or --runtime-version unless the user explicitly asks for a specific pin. Plain astro dev init resolves to the latest Astro Runtime โ€” that's the right default. Specifying a version risks pinning to a stale value from training data. If the user wants to know what was installed, read the generated Dockerfile afterward instead of guessing.

Creates this structure:

Copy & paste โ€” that's it
project/
โ”œโ”€โ”€ dags/ # DAG files
โ”œโ”€โ”€ include/ # SQL, configs, supporting files
โ”œโ”€โ”€ plugins/ # Custom Airflow plugins
โ”œโ”€โ”€ tests/ # Unit tests
โ”œโ”€โ”€ Dockerfile # Image customization
โ”œโ”€โ”€ packages.txt # OS-level packages
โ”œโ”€โ”€ requirements.txt # Python packages
โ””โ”€โ”€ airflow_settings.yaml # Connections, variables, pools

Adding Dependencies

Python Packages (requirements.txt)

Copy & paste โ€” that's it
apache-airflow-providers-snowflake==5.3.0
pandas==2.1.0
requests>=2.28.0

OS Packages (packages.txt)

Copy & paste โ€” that's it
gcc
libpq-dev

Custom Dockerfile

For complex setups (private PyPI, custom scripts):

Copy & paste โ€” that's it
FROM quay.io/astronomer/astro-runtime:12.4.0

RUN pip install --extra-index-url https://pypi.example.com/simple my-package

After modifying dependencies: Run astro dev restart

Related Skills

  • managing-astro-local-env: Start, stop, and troubleshoot the local environment

  • authoring-dags: Write and validate DAGs (uses MCP tools)

  • testing-dags: Test DAGs (uses MCP tools)

  • deploying-airflow: Deploy DAGs to production (Astro, Docker Compose, Kubernetes)