CtrlK
BlogDocsLog inGet started
Tessl Logo

migrate-postgres-tables-to-hypertables

Use this skill to migrate identified PostgreSQL tables to Timescale/TimescaleDB hypertables with optimal configuration and validation. **Trigger when user asks to:** - Migrate or convert PostgreSQL tables to hypertables - Execute hypertable migration with minimal downtime - Plan blue-green migration for large tables - Validate hypertable migration success - Configure compression after migration **Prerequisites:** Tables already identified as candidates (use find-hypertable-candidates first if needed) **Keywords:** migrate to hypertable, convert table, Timescale, TimescaleDB, blue-green migration, in-place conversion, create_hypertable, migration validation, compression setup Step-by-step migration planning including: partition column selection, chunk interval calculation, PK/constraint handling, migration execution (in-place vs blue-green), and performance validation queries.

68

Quality

85%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

77%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A highly actionable, well-sequenced migration runbook with executable SQL, explicit validation checkpoints, and troubleshooting feedback loops. Its weaknesses are token-efficiency (repeated compression/EXPLAIN blocks) and structure (a monolithic file with no reference bundle despite content that would benefit from splitting).

Suggestions

De-duplicate the compression configuration: state the 'ALTER TABLE ... SET (timescaledb.enable_columnstore, ...)' block once (e.g., in Step 1) and reference it from Option 1 and Option 2 instead of repeating it three times.

Split the troubleshooting, ongoing-monitoring view, and validation query catalog into a references/ file (e.g., references/validation.md), keeping SKILL.md as a concise overview with clearly signaled one-level-deep links.

Merge the duplicate chunk-exclusion EXPLAIN examples and fix the double '-- 4.' comment numbering in the blue-green migration sequence.

DimensionReasoningScore

Conciseness

The body is almost entirely executable SQL with almost no explanation of concepts Claude already knows, but it duplicates content: the compression 'ALTER TABLE ... SET (...)' block appears three times (Step 1, Option 1, Option 2) and the chunk-exclusion EXPLAIN test appears twice (Query Performance Tests and Troubleshooting). This fits level 3 ('mostly efficient but could be tightened') — the three repeated SQL blocks are more than level 4's 'minor instances', but the material is not padded enough for level 2.

3 / 5

Actionability

Fully executable, copy-paste-ready SQL throughout with concrete thresholds and decision rules — 'Indexes of recent chunks < 25% of RAM', 'Keep default of 7 days if unsure', '~75k rows/second' estimate, in-place for '< 1GB' vs blue-green for '> 1GB', and user-permission scripts for constraint changes. This matches the level-5 anchor; placeholders like 'your_table_name' are standard parameterization and the one internal chunk name is explicitly flagged ('Use actual chunk name').

5 / 5

Workflow Clarity

A clear three-step sequence (Optimal Configuration → Migration Planning → Performance Validation) with a pre-migration checklist, size-based option selection, explicit validation queries, success/investigate criteria, and troubleshooting feedback loops (poor compression → re-analyze segment distribution). Although destructive batch database operations normally cap this dimension at 3 without validation, validation here is explicit and thorough, so the level-5 anchor applies; the only blemish is the duplicated '-- 4.' numbering in the blue-green sequence.

5 / 5

Progressive Disclosure

The skill is a single ~440-line file with no references/, scripts/, or assets/ bundle; sections are well-organized, but content that would fit reference files (troubleshooting, the ongoing-monitoring view, compression deep-dive, validation query catalog) is inlined in SKILL.md. This fits level 3 ('content that should be separate is inline') — better than level 2's 'minimal structure' thanks to the clear section hierarchy, but ineligible for the simple-skill exception (<50 lines) needed for level 5.

3 / 5

Total

16

/

20

Passed

Description

88%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: it explicitly states both what the skill does and when to use it, with a concrete trigger list and a rich synonym keyword set. The only weaknesses are a few missing natural trigger variants and minor overlap with closely related TimescaleDB setup skills.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — 'migrate identified PostgreSQL tables to Timescale/TimescaleDB hypertables', 'partition column selection, chunk interval calculation, PK/constraint handling, migration execution (in-place vs blue-green), and performance validation queries', 'Configure compression after migration' — giving comprehensive coverage. It matches the level-5 anchor (multiple specific concrete actions) rather than level 4, since no meaningful capability gaps remain, and the imperative 'Use this skill to migrate' phrasing is not first/second person, so no voice penalty applies.

5 / 5

Completeness

It explicitly answers 'when' with a dedicated 'Trigger when user asks to' list of five concrete trigger phrases, and 'what' with 'Step-by-step migration planning including: partition column selection, chunk interval calculation, PK/constraint handling, migration execution (in-place vs blue-green), and performance validation queries.' This matches the level-5 anchor exactly; level 4 would require the 'when' to be less explicit.

5 / 5

Trigger Term Quality

It has good keyword coverage including synonyms and technical terms: 'migrate to hypertable, convert table, Timescale, TimescaleDB, blue-green migration, in-place conversion, create_hypertable, migration validation, compression setup', plus a natural 'Trigger when user asks to' list. It stops short of level 5 because common natural variations like 'time-series data', 'Postgres', or 'chunking' are absent, while clearly exceeding level 3's 'missing common variations or synonyms'.

4 / 5

Distinctiveness Conflict Risk

The niche is clear (migrating already-identified tables to hypertables, with 'Prerequisites: Tables already identified as candidates'), so it is mostly distinct from generic DB skills. However, the trigger 'Configure compression after migration' and the shared 'hypertable' keyword overlap with the sibling 'setup-timescaledb-hypertables' skill it references, fitting level 4 (minor overlap risk with closely related skills) rather than level 5's minimal conflict risk.

4 / 5

Total

18

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

Total

15

/

16

Passed

Repository
timescale/pg-aiguide
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.