kdbx-db-service

kdbx-db-service is a skill for Claude Code from KxSystems/kx-skills. It costs 167 tokens per session (4,177 once invoked), scanned A, original, Apache-2.0.

A guide for using KDB-X DB Service, a Docker-based time-series database for storing and querying data arranged by time.

In plain words
What is it for?
It supports database setup and resets, data imports from files or streams, connections to outside sources, and query work.
Why use it?
It helps avoid guesswork when setting up the database, loading data, or writing queries for this specific service.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the kdbx-knowledge plugin — 4 skills shipped together

Good fit It supports database setup and resets, data imports from files or streams, connections to outside sources, and query work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kxsystems/kx-skills/kdbx-db-service
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add KxSystems/kx-skills --skill kdbx-db-service
Clone the repo
git clone --depth 1 https://github.com/KxSystems/kx-skills

Made for: Claude Code.

Or install kdbx-knowledge, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kdbx-db-service

README.md
[![agentmods](https://agentmods.dev/badge/skills/kxsystems/kx-skills/kdbx-db-service/github.svg)](https://agentmods.dev/skills/kxsystems/kx-skills/kdbx-db-service)
Your own site
<a href="https://agentmods.dev/skills/kxsystems/kx-skills/kdbx-db-service"><img src="https://agentmods.dev/badge/skills/kxsystems/kx-skills/kdbx-db-service/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kdbx-db-service

Your own site · 80×15
<a href="https://agentmods.dev/skills/kxsystems/kx-skills/kdbx-db-service"><img src="https://agentmods.dev/badge/skills/kxsystems/kx-skills/kdbx-db-service.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,177 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00167 $0.04177
Opus 5.5 $0.00067 $0.01671
Sonnet 5.5 $0.00033 $0.00835
Haiku 4.5 $0.00017 $0.00418

Measured 6d ago against content hash 91b263fd7a93, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kdbx-db-service scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. **Python goes through `dbservice_client`**; curl is for health checks and raw-response debugging. Write each placeholder the user fills in as a named variable or a quoted string, for example `job_id = "YOUR_JOB_ID"`,
plugins/kdbx-knowledge/skills/kdbx-db-service/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

KDB-X DB Service Skill

Critical Rules

  1. Python goes through dbservice_client; curl is for health checks and raw-response debugging. Write each placeholder the user fills in as a named variable or a quoted string, for example job_id = "YOUR_JOB_ID", so the code parses and runs once the user edits it.
  2. Reduce on the server. Use query_simple groupBy + agg, or query_sql with a GROUP BY on every aggregate. An ungrouped count(*) returns HTTP 400, and an ungrouped min/max on a multi-partition table returns one value per partition instead of one number (0.1.1). Count rows per date with GROUP BY and sum client-side. A raw fetch of a dense table OOM-kills the aggregator.
  3. Bound every query_simple with full timestamps: startTS='2026.03.02D00:00:00.000' or ISO '2026-03-02T00:00:00'. The q date literal '2026.03.02D' is rejected with HTTP 400 (docs format unspecified). Cap raw rows with limit=. In query_sql, write dates as DATE '2026-03-02' (a q literal such as 2026.03.02 is a SQL parse error). To peek at a few rows or check a schema, use query_preview(table=..., limit=5), not query_simple.
  4. Check what is loaded before every import. Run list_tables() and a per-date server-side count for the file's date range, grouped by date: SELECT trddate, count(sym) AS n FROM trades WHERE trddate >= DATE '2026-01-15' AND trddate < DATE '2026-01-16' GROUP BY trddate (an ungrouped count fails, rule 2). Done when the count for those dates is zero, or the user has chosen to replace (REST mode: "overwrite", only with the complete dataset for those dates, see Core Operations) or append. merge (the default) appends, and importing the same file twice doubled the row count (2 to 4). If the data is already there, tell the user and ask.
  5. Treat deletion as permanent. Before any delete:
    • Confirm the scope with the user. Deletes cannot be undone.
    • Pass filter deliberately. It is mandatory, and filter=[] deletes every row in the window, not none.
    • Pass a startTS/endTS window. Omitting the window deletes the whole table.
    • Use timezone-naive timestamps. An aware datetime is rejected.
    • Repair a duplicated partition only by re-import. Re-import the complete dataset over REST with mode: "overwrite" (the Python import_files has no mode argument), after a backup and the user's confirmation of the scope (Core Operations).
  6. Live docs win over this skill. The docs may describe a newer product than the 0.1.1 this skill was verified against. Say so when they could not be fetched.
  7. Containers belong to a project. Before any docker rm, docker compose down or prune of a kx-db-* container, read the owning project (docker inspect, label com.docker.compose.project.working_dir). Then take one branch:
    • Owner is the project you are working in (its working_dir is the folder you are in): say so and proceed.
    • Owner is another project, or unknown: show the user the owner and proceed only on the user's yes.
  8. prtnCol names a timestamp column. DB Service requires the partition column to be a timestamp type, even where kdb+ conventions would partition by a date. Pick the timestamp column (ts, timestamp) for prtnCol, and keep a separate date column for the date-level queries. See references/07-tables.md.

Read the full file on GitHub · 177 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · -109 lines · -91 tokens per session scan B → A 91b263fd7a93
  2. 3mo ago First seen · 286 lines · 258 tokens per session scan B 34f4eb3c9716

Subscribe to this mod's changes

kdbx-db-service is a skill published in the GitHub repository KxSystems/kx-skills (23 stars, last pushed 7d ago), licensed Apache-2.0. It adds 167 tokens to every session and 4,177 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

kdbx-db-service compared with skills from other repositories

kdbx-db-service next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kdbx-db-serviceKxSystems/kx-skillsSkill237d agoApache-2.0A167Claude Code
create-prprisma/ormSkill48ktodayApache-2.0A47Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill32ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.9ktodayApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
bex-keyvaluebex-co/bexSkill1.6ktodayApache-2.0A117Claude Code, Codex
pentesting-mysqlxalgorix/xalgorixSkill1.6ktodayApache-2.0A65Claude Code, Codex