npx skills add ...
npx skills add astronomer/agents --skill profiling-tables
Deep-dive data profiling for a specific table. Use when the user asks to profile a table, wants statistics about a dataset, asks about data quality, or needs to understand a table's structure and content. Requires a table name.
npx skills add astronomer/agents --skill profiling-tables
Generate a comprehensive profile of a table that a new team member could use to understand the data.
Query column metadata:
If the table name isn't fully qualified, search INFORMATION_SCHEMA.TABLES to locate it first.
Run via run_sql:
For each column, gather appropriate statistics based on data type:
For columns that look like categorical/dimension keys:
This reveals:
Get representative rows:
If the table is large and you want variety, sample from different time periods or categories.
Summarize quality across dimensions:
Provide a structured profile:
2-3 sentences describing what this table contains, who uses it, and how fresh it is.
| Column | Type | Nulls% | Distinct | Description |
|---|---|---|---|---|
| ... | ... | ... | ... | ... |
List any data quality concerns discovered.
3-5 useful queries for common questions about this data.