analyzing-timescaledb
Installation
SKILL.md
TimescaleDB Analysis Skill
Analyze and optimize TimescaleDB hypertables with safe, read-only operations.
MANDATORY: Two-Phase Execution
You MUST follow this two-phase pattern. Skipping Phase 1 causes hallucinated hypertable/column names.
Phase 1: Discovery (ALWAYS run first)
#!/bin/bash
# 1. Check TimescaleDB version
psql "$TIMESCALE_URI" -c "SELECT extversion FROM pg_extension WHERE extname = 'timescaledb';"
# 2. List hypertables
psql "$TIMESCALE_URI" -c "SELECT hypertable_schema, hypertable_name, num_dimensions, num_chunks, compression_enabled FROM timescaledb_information.hypertables ORDER BY hypertable_name;"