/kdbx-knowledge:kdbxfrom kdbx-knowledge
Provides guidance for KDB-X modules, AI libraries (vector search, HNSW, IVF, BM25), GPU acceleration, Parquet, kURL REST client, and object storage. Helps resolve module-not-found errors and ll vs use issues.
Ships in kdbx-knowledge. 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.
Read when SKILL.md points to them.
Unified compute engine: time-series analytics + vector search + GPU-accelerated compute in one runtime. GA April 2026. Multi-language (q, Python, SQL), native Parquet/Arrow, 25+ community modules. Community Edition free at developer.kx.com.
| Need | Skill |
|---|---|
| KDB-X modules, AI libs, Parquet, kURL, GPU, objstor | This skill |
| q language syntax, operators, table queries | /q |
| KDB-X Python library | /pykx |
| KDB.AI cloud vector database | /kdbai |
Always use, NEVER \l (\l doesn't bind native functions):
.pq:use`kx.pq / Parquet .pq.t:use`kx.pq.t / Virtual tables
.kurl:use`kx.kurl / REST client .ai:use`kx.ai / AI libraries
.gpu:use`kx.gpu / GPU accel .objstor:use`kx.objstor / Object storage
.rest:use`kx.rest / REST server
trades: pq `:trades.parquet / Virtual table (row-group pruning)
select from trades where date > 2024.01.01
meta: op `:data.parquet / File metadata
vt: (.pq.t:use`kx.pq.t)[`tt] tbl / Wrap kdb+ table as virtual
Compression: snappy, gzip, brotli, lz4, zstd.
/ .kurl.sync (url; method; options) -> (statusCode; body)
resp:.kurl.sync ("https://api.example.com/data"; `GET; ::)
resp:.kurl.sync ("https://api.example.com"; `POST; enlist[`body]!enlist .j.j data)
resp:.kurl.sync ("https://s3.example.com/f"; `PUT; enlist[`file]!enlist `:path/to/file.csv)
opts:`headers`body!(("Content-Type";"x-api-key")!("application/json";"key123"); .j.j data)
.kurl.async ("https://api.example.com/data"; `GET; enlist[`callback]!enlist (`;{show x}))
/ Auth: .kurl.init`aws then .kurl.register (type; domain; tenant; info)
/ Types: `aws_cred`aws_sts`oauth2`oauth2_jwt`azure`basic
.kurl.aws.registerByCredentialsFile `:~/.aws/credentials / or register manually
Options: `headers`body`file`callback`service`region
.objstor.init[] / Register all vendors (or .objstor.init`aws)
/ URI schemes: :s3:// :ms:// :gs:// — standard kdb+ file ops work:
hcount `$":s3://bucket/path/file" / read1, key, get also work
Env vars: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, AZURE_STORAGE_ACCOUNT, AZURE_STORAGE_SHARED_KEY, GCP_TOKEN. S3-compatible: KX_S3_ENDPOINT.
| Index | Namespace | Use Case |
|---|---|---|
| HNSW | .ai.hnsw | Fast approximate search (default) |
| Flat | .ai.flat | Exact search, small datasets |
| IVF | .ai.ivf | Large-scale partitioned |
| IVFPQ | .ai.pq | Compressed, memory-constrained |
| BM25 | .ai.bm25 | Text/keyword search |
| Fuzzy | .ai.fuzzy | Approximate string match |
| Hybrid | .ai.hybrid | Vector + BM25 via RRF |
| TSS | .ai.tss | Time series similarity + anomaly |
| DTW | .ai.dtw | Dynamic time warping |
/ HNSW (most common): embs and hnsw are SEPARATE objects
vecs:{(x;y)#(x*y)?1e}[1000;10]
hnsw:.ai.hnsw.put[();();vecs;`L2;32;1%log 32;64]
res:.ai.hnsw.search[vecs;hnsw;first vecs;5;`L2;32] / metric MUST match put
merged:.ai.hybrid.rrf[(vecResults; bm25Results); 60] / RRF fusion
Full API signatures: See ai-reference.md
T:.gpu.to trades / Move to GPU (all columns)
T:.gpu.xto[`price`size] trades / Mixed residency
.gpu.select[T;enlist(=;`sym;enlist`AAPL);0b;()] / GPU qSQL (functional select)
.gpu.aj[`sym`time; Trade; Quote] / GPU as-of join (needs `g#)
.gpu.xasc[`time] T / GPU sort
Requires NVIDIA data center GPUs, CUDA 13.1, driver v590+. 10x-25x speedups, near-linear multi-GPU scaling and a GPU-enabled kdb-x license.
select avg price by 5 xbar time from trades where sym=`AAPL / q
s)SELECT AVG(price) FROM trades WHERE sym='AAPL' GROUP BY time/5 / SQL
| Error | Cause | Fix |
|---|---|---|
nyi | \l instead of use | .mod:use\kx.mod` |
module not found | QHOME not set | getenv\QHOME` |
length on search | Dim mismatch | count queryVec must match index |
| Wrong results | Metric mismatch put/search | Same metric in both |
rank on search | Empty index | Verify data populated |
type on hnsw.put | Wrong vector type | Cast to real |
q — q language syntaxpykx — KDB-X Python librarykdbai — KDB.AI vector databasekxmeta-author / kxmeta-discover — aimeta annotation authoring and discoveryWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kxsystems/kx-skills --plugin kdbx-knowledge4 skills in this plugin
/kdbx-db-serviceUse this skill whenever working with the KDB-X DB Service - a containerised time-series database distributed via Docker Compose. Trigger for any task involving: setting up or resetting the DB Service, ingesting data (CSV, streaming, REST, or third-party sources like OneTick), writing or optimising queries (Python client, q client, or REST/qSQL), or planning an end-to-end ingest pipeline. Also trigger for schema design questions, troubleshooting ingest jobs, or any reference to `dbservice_client`, `session.import_files`, `session.import_data`, `session.query_simple`, `session.query_sql`, `session.query_q`, `session.querySimple`, `session.querySQL`, `session.queryQ`, or the DB Service REST API on port 8080. Also trigger for: "run the FX recipe", "FX ingest recipe", "run the OneTick recipe", "run the OneTick LSE recipe", "run the OneTick LSE runbook", or any request to set up the full OneTick batch pipeline end-to-end from download through to ingest. Do NOT trigger for: KX Dashboards configuration; generic Docker Compose questions unrelated to the DB Service stack; or plain kdb+/q questions that don't reference the DB Service.
/kxmeta-authorWriting qdoc annotations for `aimeta` so the compiler publishes tables and functions correctly. Mandatory `@kind`/`@name` markers, the chained `@col` modifier form, q-language traps that silently drop items, and the recompile loop. Use when adding or editing `/ @kind ...` annotation blocks in a q codebase that loads `aimeta`, or when annotated items aren't surfacing in `meta.json`. For the wire model & tag vocabulary see ../../reference/agent-guide.md./kxmeta-discoverDiscovering metadata on a running kdb+ process via `aimeta` — cold-start probing, the `/meta` HTTP route, `kx-meta discover`, qIPC fallback, and reading the `tier` / `references[]` fields in the response. Use when an agent needs to learn what tables and functions a kdb+ host exposes, when interpreting `kx-meta discover` output, when handling tier-1 fallback gracefully, or when walking `references[]` for vocabulary resolution. For the wire model and full `meta.json` shape see ../../reference/agent-guide.md.Other plugins' skills for the same job