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★ 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
- QuestDB is not PostgreSQL. No
HAVING,QUALIFY,DISTINCT ON,NULLS FIRST/LAST,INTERVAL '1 hour',time_bucket(),CREATE INDEX, constraints, triggers or rowDELETE. - Time filters use TICK:
WHERE ts IN '$now-1h..$now',IN '$today',IN '[2025-01]'. Notts >= dateadd(...), notBETWEEN, notnow() - INTERVAL. Keepdateadd()/interval()only for bounds computed from variables or columns. SAMPLE BYaligns to calendar by default. Never writeALIGN TO CALENDARunless you also addTIME ZONEorWITH OFFSET.- 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. - Dashboards go in the Web Console via the QuestDB MCP server (notebooks with live charts, variables, per-cell refresh). Grafana only on request.
- Every time-series table has a designated timestamp, partitioning, and
DEDUP keys when replays are possible. WAL is the default; do not write
the
WALkeyword. - Retention:
TTLon open source (and on materialized views everywhere);STORAGE POLICYon Enterprise tables. - Use SYMBOL for repeated strings, VARCHAR for unique strings
(
STRINGis legacy). Arrays are 1-indexed. - 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 whencolis 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 * 2fails): aggregate in a CTE, compute outside. CASE WHEN uuid_col IS NULLfails:CASE WHEN uuid_col IS NOT NULL THEN 0 ELSE 1 END.- TICK
..works only between$variables, not literal dates. There is nomsunit: write100T.
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
Установить questdb в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic