Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

questdb

БесплатноБез исполняемых скриптовНе проверен

Use this skill whenever working with QuestDB, the high-performance time-series database. Trigger on any mention of QuestDB, time-series SQL with SAMPLE BY…

questdbот questdb★ 17 звёзд на GitHub

Об этом скилле

QuestDB Skill

Last updated for QuestDB 10.2 (open source) and QuestDB Enterprise 4.2. For features added in later releases, check the release notes and the docs changelog.

How to Use This Skill

This file has the rules and syntax you need for most tasks. Read a reference file only when the task needs it:

Task Read
Ingest or query from code, connect strings, REST, PGWire, ILP references/clients.md
Bulk export as fast as possible, parallel backfill, replay, generators, query-shape performance tips references/patterns.md
Build a dashboard or notebook in the Web Console (preferred over Grafana) references/dashboards-mcp.md and its references/examples/*.json
Materialized views (passthrough, EXPIRE ROWS), live views, views, DEDUP, TTL, storage policy, Parquet, indexes references/views-and-storage.md
Monitor an instance (sys.metrics, WAL telemetry, meta functions) references/monitoring.md
Any SQL beyond the examples in this file: read it before writing the query references/common-mistakes.md
"Does QuestDB have function X?", signatures, keywords, types references/sql-grammar.md
Indicators (MACD, ATR, Stochastic, Keltner, OBV, drawdown, ...) references/indicators.md
Execution quality / TCA: method, sign conventions, scorecard query, then recipes (markout, slippage, IS, venue, counterparty) references/cookbook.md (Finance: Post-Trade)
Other time-series recipes (indicators, OFI, FILL patterns, subtotals, ...) references/cookbook.md
Open-ended analysis: find issues, anomalies or patterns in a dataset references/cookbook.md (Analysing a Dataset)
End-to-end crypto feed pipeline (cryptofeed + QuestDB) references/crypto-pipeline.md
Grafana, only when the user asks for it references/grafana.md
Enterprise: auth, tokens, RBAC, replication, failover, cold storage references/enterprise.md

Working style:

  • Write the files and run them. Do not explore library sources, check package versions or re-verify infrastructure the user said is running.
  • Do not read reference files for topics already covered here, except references/common-mistakes.md, which applies to every query you write.
  • When you need syntax not covered here or in a reference, fetch the doc page as markdown (below) instead of guessing.

Defaults That Matter

  1. QuestDB is not PostgreSQL. No HAVING, QUALIFY, DISTINCT ON, NULLS FIRST/LAST, INTERVAL '1 hour', time_bucket(), CREATE INDEX, constraints, triggers or row DELETE.
  2. Time filters use TICK: WHERE ts IN '$now-1h..$now', IN '$today', IN '[2025-01]'. Not ts >= dateadd(...), not BETWEEN, not now() - INTERVAL. Keep dateadd() / interval() only for bounds computed from variables or columns.
  3. SAMPLE BY aligns to calendar by default. Never write ALIGN TO CALENDAR unless you also add TIME ZONE or WITH OFFSET.
  4. Ingest and query with QWP clients (ws::addr=host:9000;), one handle for both. ILP is a compatibility protocol for existing pipelines; REST is for small ad-hoc reads; PGWire for BI tools.
  5. Dashboards go in the Web Console via the QuestDB MCP server (notebooks with live charts, variables, per-cell refresh). Grafana only on request.
  6. Every time-series table has a designated timestamp, partitioning, and DEDUP keys when replays are possible. WAL is the default; do not write the WAL keyword.
  7. Retention: TTL on open source (and on materialized views everywhere); STORAGE POLICY on Enterprise tables.
  8. Use SYMBOL for repeated strings, VARCHAR for unique strings (STRING is legacy). Arrays are 1-indexed.
  9. Valid-looking SQL that fails. These come up most; the full list, with workarounds, is in references/common-mistakes.md:
    • col IN (SELECT ...) works only when col is a SYMBOL. For UUID, VARCHAR or numbers, JOIN (SELECT DISTINCT ...) instead.
    • A HORIZON JOIN cannot be combined with other joins, and each side must be a single table. Join dimension tables after aggregating.
    • Keyed count_distinct() rejects DOUBLE: count_distinct(px::varchar).
    • An aggregate's alias cannot be reused in the same SELECT (avg(x) AS m, m * 2 fails): aggregate in a CTE, compute outside.
    • CASE WHEN uuid_col IS NULL fails: CASE WHEN uuid_col IS NOT NULL THEN 0 ELSE 1 END.
    • TICK .. works only between $ variables, not literal dates. There is no ms unit: write 100T.

Live Documentation

Every docs page has a plain-markdown twin: append .md.

curl -s "https://questdb.com/docs/query/sql/horizon-join.md"
curl -s "https://questdb.com/docs/llms.txt"      # index of every page with its .md URL

The demo instance https://demo.questdb.io (latest release, read-only) runs any query over REST, which

Полный SKILL.md на GitHub

Установить questdb в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/clients.mdreferences/common-mistakes.mdreferences/cookbook.mdreferences/crypto-pipeline.mdreferences/dashboards-mcp.mdreferences/enterprise.mdreferences/examples/fx-live-dashboard.jsonreferences/examples/monitoring-dashboard.jsonreferences/grafana.mdreferences/indicators.mdreferences/monitoring.mdreferences/patterns.mdreferences/sql-grammar.mdreferences/views-and-storage.md

FAQ

Что делает скилл questdb?

Use this skill whenever working with QuestDB, the high-performance time-series database. Trigger on any mention of QuestDB, time-series SQL with SAMPLE BY, LATEST ON, ASOF/HORIZON/WINDOW/LATERAL JOIN, TICK interval syntax, materialized or live views, DEDUP, TTL or storage policies, ingestion or querying with the QuestDB clients (QWP over WebSocket, ILP, PGWire, REST) in Python, Java, Go, Rust, C/C++, .NET, Node.js, Ruby or the browser, building dashboards in the QuestDB Web Console through its MCP server, Grafana on QuestDB, order book or market data analytics, or monitoring a QuestDB instance with sys.metrics. QuestDB extends SQL with time-series keywords and standard PostgreSQL patterns often fail, so read this skill before writing QuestDB SQL or client code.

Как установить скилл questdb?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл questdb запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить questdb с