astronomer avatar

Warehouse Init

Generates a complete warehouse schema reference file by discovering all your databases, tables, and columns, then enriching them with context from dbt models, Gusty SQL, and schema docs. Runs parallel subagents to crawl multiple databases at once and identifies large tables that need date filters. The output is a version-controlled markdown file with concept-to-table mappings, categorical value families, and the data layer hierarchy. The real win is turning "find me customer data" from a 10-query fishing expedition into an instant lookup. After generation, it can append a Quick Reference table to your CLAUDE.md so the schema is always in context for queries. Run once per project, refresh when your schema changes or you want to update business context.

skills.sh installs
841
GitHub stars
459
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/astronomer/agents
Categories
Frontend Development, Sales & Marketing
First seen
Jun 3, 2026

More from astronomer/agents

All 24
1makisuo avatareffect-best-practicesmakisuo/skillsEnforces Effect-TS patterns for services, errors, layers, and atoms. Use when writing code with Effect.Service, Schema.TaggedError, Layer composition, or effect841skills.sh installs
2netresearch avatarsecurity-auditnetresearch/security-audit-skillUse when conducting security assessments — OWASP Top 10 / API / LLM, CWE Top 25, CVSS scoring — auditing PHP/TYPO3, APIs, frontend, Terraform/K8s/Docker IaC, AW839skills.sh installs
3bitjaru avatarss-pagebitjaru/styleseedScaffold a new mobile page/screen using the StyleSeed layout patterns835skills.sh installs
4mindrally avatarthree-jsmindrally/skillsExpert guidance for Three.js and React Three Fiber development with modern React, TypeScript, and performance best practices834skills.sh installs
5daymade avatarscrapling-skilldaymade/claude-code-skillsInstall, troubleshoot, and use Scrapling CLI to extract HTML, Markdown, or text from webpages. Use this skill whenever the user mentions Scrapling, `uv tool ins827skills.sh installs
6aaronvanston avatarpresentation-designaaronvanston/skills-presentationsVisual design guidance for bold, minimal presentations. Provides layout patterns, typography hierarchy, color specifications, and slide composition rules. Use w819skills.sh installs