Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
astronomer avatar

Checking Freshness

  • 854 installs
  • 412 repo stars
  • Updated July 27, 2026
  • astronomer/agents

checking-freshness is a data agent skill that quickly verifies whether database tables contain recent data before developers or agents make decisions on potentially stale datasets.

About

checking-freshness is an Astronomer agents skill for fast data currency checks when users ask if data is up to date, when a table was last updated, or whether datasets are stale. For each table, the skill locates timestamp columns such as _loaded_at, _updated_at, created_at, load_date, etl_timestamp, ingestion_time, or business dates like event_date. It fits upstream of analytics queries and agent workflows that assume fresh warehouse tables. Developers reach for checking-freshness before running pipelines, dashboards, or autonomous agents on tables with unknown load schedules.

  • Automatically identifies common timestamp columns including _loaded_at, updated_at, created_at, and ingestion_time
  • Runs MAX(timestamp) queries with age calculations in hours and minutes
  • Analyzes recent row counts by day over the past week
  • Applies a clear Fresh / Stale status scale based on data age
  • Queries INFORMATION_SCHEMA when column names are unknown

Checking Freshness by the numbers

  • 854 all-time installs (skills.sh)
  • +15 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #331 of 2,066 Data Science & ML skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/astronomer/agents --skill checking-freshness

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs854
repo stars412
Security audit3 / 3 scanners passed
Last updatedJuly 27, 2026
Repositoryastronomer/agents

How do you check if database tables are fresh?

Quickly verify whether database tables contain recent data before making decisions or running downstream agent workflows.

Who is it for?

Data engineers and agent workflows that must confirm warehouse table currency before queries or automated decisions.

Skip if: Full data quality suites, schema migrations, or pipeline orchestration where dedicated Airflow or dbt tooling is required.

When should I use this skill?

The user asks if data is up to date, when a table was last updated, or whether data is stale before use.

What you get

Freshness verdict per table with last-update timestamps and stale-data warnings

  • Per-table freshness assessment
  • Last-update timestamp findings

Files

SKILL.mdMarkdownGitHub ↗

Data Freshness Check

Quickly determine if data is fresh enough to use.

Freshness Check Process

For each table to check:

1. Find the Timestamp Column

Look for columns that indicate when data was loaded or updated:

  • _loaded_at, _updated_at, _created_at (common ETL patterns)
  • updated_at, created_at, modified_at (application timestamps)
  • load_date, etl_timestamp, ingestion_time
  • date, event_date, transaction_date (business dates)

Query INFORMATION_SCHEMA.COLUMNS if you need to see column names.

2. Query Last Update Time

SELECT
    MAX(<timestamp_column>) as last_update,
    CURRENT_TIMESTAMP() as current_time,
    TIMESTAMPDIFF('hour', MAX(<timestamp_column>), CURRENT_TIMESTAMP()) as hours_ago,
    TIMESTAMPDIFF('minute', MAX(<timestamp_column>), CURRENT_TIMESTAMP()) as minutes_ago
FROM <table>

3. Check Row Counts by Time

For tables with regular updates, check recent activity:

SELECT
    DATE_TRUNC('day', <timestamp_column>) as day,
    COUNT(*) as row_count
FROM <table>
WHERE <timestamp_column> >= DATEADD('day', -7, CURRENT_DATE())
GROUP BY 1
ORDER BY 1 DESC

Freshness Status

Report status using this scale:

StatusAgeMeaning
Fresh< 4 hoursData is current
Stale4-24 hoursMay be outdated, check if expected
Very Stale> 24 hoursLikely a problem unless batch job
UnknownNo timestampCan't determine freshness

If Data is Stale

Check Airflow for the source pipeline:

1. Find the DAG: Which DAG populates this table? Use af dags list and look for matching names.

2. Check DAG status:

  • Is the DAG paused? Use af dags get <dag_id>
  • Did the last run fail? Use af dags stats
  • Is a run currently in progress?

3. Diagnose if needed: If the DAG failed, use the debugging-dags skill to investigate.

On Astro

If you're running on Astro, you can also:

  • DAG history in the Astro UI: Check the deployment's DAG run history for a visual timeline of recent runs and their outcomes
  • Astro alerts for SLA monitoring: Configure alerts to get notified when DAGs miss their expected completion windows, catching staleness before users report it

On OSS Airflow

  • Airflow UI: Use the DAGs view and task logs to verify last successful runs and SLA misses

Output Format

Provide a clear, scannable report:

FRESHNESS REPORT
================

TABLE: database.schema.table_name
Last Update: 2024-01-15 14:32:00 UTC
Age: 2 hours 15 minutes
Status: Fresh

TABLE: database.schema.other_table
Last Update: 2024-01-14 03:00:00 UTC
Age: 37 hours
Status: Very Stale
Source DAG: daily_etl_pipeline (FAILED)
Action: Investigate with **debugging-dags** skill

Quick Checks

If user just wants a yes/no answer:

  • "Is X fresh?" -> Check and respond with status + one line
  • "Can I use X for my 9am meeting?" -> Check and give clear yes/no with context

Related skills

FAQ

Which columns does checking-freshness look for?

checking-freshness searches for _loaded_at, _updated_at, created_at, load_date, etl_timestamp, ingestion_time, and business dates such as event_date or transaction_date.

When should checking-freshness run in a workflow?

checking-freshness should run before analytics, dashboards, or agent workflows when table currency is unknown or users ask whether data is stale or recently updated.

Is Checking Freshness safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Data Science & MLdatabasesanalyticspipelines

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.