Skills for Real Engineers. Straight from my .agents directory.
setup-timescaledb-hypertables
Agent skill fromtimescale/pg-aiguide
Use this skill when creating database schemas or tables for Timescale, TimescaleDB, TigerData, or Tiger Cloud, especially for time-series, IoT, metrics, events, or log data. Use this to improve the performance of any insert-heavy table. **Trigger when user asks to:** - Create or design SQL schemas/tables AND Timescale/TimescaleDB/TigerData/Tiger Cloud is available - Set up hypertables, compression, retention policies, or continuous aggregates - Configure partition columns, segment_by, order_by, or chunk intervals - Optimize time-series database performance or storage - Create tables for sensors, metrics, telemetry, events, or transaction logs **Keywords:** CREATE TABLE, hypertable, Timescale, TimescaleDB, time-series, IoT, metrics, sensor data, compression policy, continuous aggregates, columnstore, retention policy, chunk interval, segment_by, order_by Step-by-step instructions for hypertable creation, column selection, compression policies, retention, continuous aggregates, and in
How to install setup-timescaledb-hypertables
npx skills add timescale/pg-aiguide# or add only this skill to Claude Code: copy the folder
skills/setup-timescaledb-hypertables/
# into
~/.claude/skills/setup-timescaledb-hypertables/ (all projects)
.claude/skills/setup-timescaledb-hypertables/ (one project)
1# TimescaleDB Complete Setup23Instructions for insert-heavy data patterns where data is inserted but rarely changed:45- **Time-series data** (sensors, metrics, system monitoring)6- **Event logs** (user events, audit trails, application logs)7- **Transaction records** (orders, payments, financial transactions)8- **Sequential data** (records with auto-incrementing IDs and timestamps)9- **Append-only datasets** (immutable records, historical data)1011## Step 1: Create Hypertable1213```sql14CREATE TABLE your_table_name (15 timestamp TIMESTAMPTZ NOT NULL,16 entity_id TEXT NOT NULL, -- device_id, user_id, symbol, etc.17 category TEXT, -- sensor_type, event_type, asset_class, etc.18 value_1 DOUBLE PRECISION, -- price, temperature, latency, etc.19 value_2 DOUBLE PRECISION, -- volume, humidity, throughput, etc.20 value_3 INTEGER, -- count, status, level, etc.21 metadata JSONB -- flexible additional data22) WITH (23 tsdb.hypertable,24 tsdb.partition_column='timestamp',25 tsdb.enable_columnstore=true, -- Disable if table has vector columns26 tsdb.segmentby='entity_id', -- See selection guide below27 tsdb.orderby='timestamp DESC', -- See selection guide below28 tsdb.sparse_index='minmax(value_1),minmax(value_2),minmax(value_3)' -- see selection guide below29);30```3132### Compression Decision3334- **Enable by default** for insert-heavy patterns35…
Excerpt shown under the repository's Apache-2.0 license.
More skills in pg-aiguide
Similar skill repositories
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
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.
Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
