Skills for Real Engineers. Straight from my .agents directory.
find-hypertable-candidates
Agent skill fromtimescale/pg-aiguide
Use this skill to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables. **Trigger when user asks to:** - Analyze database tables for hypertable conversion potential - Identify time-series or event tables in an existing schema - Evaluate if a table would benefit from Timescale/TimescaleDB - Audit PostgreSQL tables for migration to Timescale/TimescaleDB/TigerData - Score or rank tables for hypertable candidacy **Keywords:** hypertable candidate, table analysis, migration assessment, Timescale, TimescaleDB, time-series detection, insert-heavy tables, event logs, audit tables Provides SQL queries to analyze table statistics, index patterns, and query patterns. Includes scoring criteria (8+ points = good candidate) and pattern recognition for IoT, events, transactions, and sequential data.
How to install find-hypertable-candidates
npx skills add timescale/pg-aiguide# or add only this skill to Claude Code: copy the folder
skills/find-hypertable-candidates/
# into
~/.claude/skills/find-hypertable-candidates/ (all projects)
.claude/skills/find-hypertable-candidates/ (one project)
1# PostgreSQL Hypertable Candidate Analysis23Identify tables that would benefit from TimescaleDB hypertable conversion. After identification, use the companion "migrate-postgres-tables-to-hypertables" skill for configuration and migration.45## TimescaleDB Benefits67**Performance gains:** 90%+ compression, fast time-based queries, improved insert performance, efficient aggregations, continuous aggregates for materialization (dashboards, reports, analytics), automatic data management (retention, compression).89**Best for insert-heavy patterns:**1011- Time-series data (sensors, metrics, monitoring)12- Event logs (user events, audit trails, application logs)13- Transaction records (orders, payments, financial)14- Sequential data (auto-incrementing IDs with timestamps)15- Append-only datasets (immutable records, historical)1617**Requirements:** Large volumes (1M+ rows), time-based queries, infrequent updates1819## Step 1: Database Schema Analysis2021### Option A: From Database Connection2223#### Table statistics and size2425```sql26-- Get all tables with row counts and insert/update patterns27WITH table_stats AS (28 SELECT29 schemaname, tablename,30 n_tup_ins as total_inserts,31 n_tup_upd as total_updates,32 n_tup_del as total_deletes,33 n_live_tup as live_rows,34 n_dead_tup as dead_rows35 FROM pg_stat_user_tables36),37table_sizes AS (38 SELECT39 schemaname, tablename,40…
Excerpt shown under the repository's Apache-2.0 license.
More skills in pg-aiguide
Similar skill repositories
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
