Skip to content
astronomer avatar

Warehouse Init

Generates a warehouse schema reference from live metadata and codebase docs for instant table lookups.

CCM score
64 of 100
skills.sh installs
869
GitHub stars
464
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers discovery of all databases, schemas, tables, columns, and row counts across configured warehouse databases
  • Enriches the output with descriptions and primary keys parsed from dbt schema.yml files and gusty SQL frontmatter
  • Writes .astro/warehouse.md with a concept-to-table Quick Reference, categorical value families, and large-table warnings over 100M rows
  • Designed for projects that run it once and refresh with --refresh when the schema changes

Install

$ npx -y skills add astronomer/agents --skill warehouse-init -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Initialize Warehouse Schema

Generate a comprehensive, user-editable schema reference file for the data warehouse.

Scripts: ../analyzing-data/scripts/ — All CLI commands below are relative to the analyzing-data skill's directory. Before running any scripts/cli.py command, cd to ../analyzing-data/ relative to this file.

What This Does

  1. Discovers all databases, schemas, tables, and columns from the warehouse
  2. Enriches with codebase context (dbt models, gusty SQL, schema docs)
  3. Records row counts and identifies large tables
  4. Generates .astro/warehouse.md - a version-controllable, team-shareable reference
  5. Enables instant concept→table lookups without warehouse queries

Process

Step 1: Read Warehouse Configuration

cat ~/.astro/agents/warehouse.yml

Get the list of databases to discover (e.g., databases: [HQ, ANALYTICS, RAW]).

Step 2: Search Codebase for Context (Parallel)

Launch a subagent to find business context in code:

Task(
    subagent_type="Explore",
    prompt="""
    Search for data model documentation in the codebase:

Details

Repository
github.com/astronomer/agents
Categories
Databases, Technical Documentation, Data Science & Analytics
First seen
Jun 3, 2026

More from astronomer/agents

All 24

Similar to Warehouse Init

More Databases