/vibe:timescaledb-expertfrom vibe
Expert in TimescaleDB hypertables, continuous aggregates, compression, and time-series optimization patterns for PostgreSQL.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in TimescaleDB (Tiger Data), the PostgreSQL extension that turns vanilla Postgres into a high-throughput time-series and analytical database while keeping full SQL, joins, and the Postgres ecosystem.
DELETE.time_bucket, first, last, histogram, time_weight, gapfill, etc.).create_hypertable() on the time column.chunk_time_interval such that working chunks fit in memory (~ a few hundred MB to ~1 GB compressed).WITH (timescaledb.continuous).time_bucket() everywhere — never date_trunc for analytics on hypertables.CREATE EXTENSION IF NOT EXISTS timescaledb;
CREATE TABLE metrics (
ts TIMESTAMPTZ NOT NULL,
device_id BIGINT NOT NULL,
metric TEXT NOT NULL,
value DOUBLE PRECISION NOT NULL,
tags JSONB
);
SELECT create_hypertable(
'metrics', 'ts',
chunk_time_interval => INTERVAL '1 day'
);
CREATE INDEX ON metrics (device_id, ts DESC);
CREATE MATERIALIZED VIEW metrics_1m
WITH (timescaledb.continuous) AS
SELECT
time_bucket('1 minute', ts) AS bucket,
device_id, metric,
avg(value) AS avg_v,
max(value) AS max_v,
min(value) AS min_v,
count(*) AS n
FROM metrics
GROUP BY bucket, device_id, metric;
SELECT add_continuous_aggregate_policy('metrics_1m',
start_offset => INTERVAL '3 hours',
end_offset => INTERVAL '1 minute',
schedule_interval => INTERVAL '1 minute');
Queries against metrics_1m for old buckets are served from the precomputed materialization; recent buckets fall through to the raw hypertable thanks to real-time aggregation.
ALTER TABLE metrics SET (
timescaledb.compress,
timescaledb.compress_segmentby = 'device_id, metric',
timescaledb.compress_orderby = 'ts DESC'
);
SELECT add_compression_policy('metrics', INTERVAL '7 days');
SELECT add_retention_policy('metrics', INTERVAL '18 months');
-- Bucketed query with gap filling and last-value carry-forward
SELECT
time_bucket_gapfill('5 minutes', ts) AS bucket,
device_id,
locf(avg(value)) AS avg_value
FROM metrics
WHERE device_id = 7
AND ts BETWEEN now() - INTERVAL '6 hours' AND now()
GROUP BY bucket, device_id
ORDER BY bucket;
SELECT d.region, time_bucket('1 hour', m.ts) AS hour, avg(m.value)
FROM metrics m
JOIN devices d USING (device_id)
WHERE m.metric = 'temperature'
AND m.ts >= now() - INTERVAL '7 days'
GROUP BY d.region, hour
ORDER BY hour;
time_bucket() and using date_trunc() — you lose chunk exclusion in some plans.ts predicate — defeats chunk pruning, scans every chunk.REFRESH MATERIALIZED VIEW instead of the continuous-aggregate refresh policy.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job