Setup Timescaledb Hypertables
Automates TimescaleDB hypertable creation and configuration for efficient time-series data storage and querying.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add setup-timescaledb-hypertables npx -- -y @trustedskills/setup-timescaledb-hypertables
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"setup-timescaledb-hypertables": {
"command": "npx",
"args": [
"-y",
"@trustedskills/setup-timescaledb-hypertables"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill automates the creation and configuration of TimescaleDB hypertables, which are designed for efficient storage and querying of time-series data. It streamlines the process of setting up a hypertable with appropriate partitioning, ordering, and indexing to optimize performance for insert-heavy workloads. The skill facilitates creating tables suitable for storing data that is frequently inserted but rarely modified.
When to use it
This skill is useful in scenarios involving:
- Storing sensor readings or metrics from devices.
- Managing event logs, such as user activity or application events.
- Tracking financial transactions and order records.
- Handling sequential data with auto-incrementing IDs and timestamps.
- Building append-only datasets for historical record keeping.
Key capabilities
- Automates the creation of TimescaleDB hypertables.
- Configures partitioning based on a time or integer column (e.g.,
timestamp,event_time). - Sets ordering by timestamp, typically in descending order (
DESC). - Enables columnstore compression for improved performance with insert-heavy data patterns.
- Allows specifying sparse indexes to optimize query performance.
Example prompts
Here are some example prompts you might give an AI agent using this skill:
- "Create a TimescaleDB hypertable named 'sensor_data' partitioned by timestamp and ordered by timestamp descending."
- "Set up a hypertable for event logs, partitioning by the 'created_at' column."
- “Generate a TimescaleDB hypertable with sparse indexes on value_1, value_2, and value_3.”
Tips & gotchas
- The
partition_columnmust be a timestamp or integer column that exhibits good temporal/sequential distribution. - Columnstore compression is disabled if the table contains vector columns (pgvector).
- Review the TimescaleDB selection guide for optimal partitioning and ordering strategies based on your specific data patterns.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.