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.
npx skills add KxSystems/kx-skills --skill kdbx-db-servicegit clone --depth 1 https://github.com/KxSystems/kx-skillsWrote 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.
[](https://agentmods.dev/skills/kxsystems/kx-skills/kdbx-db-service)<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.
<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>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.
| Model | Per session | Once 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 |
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"`, 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
- 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 examplejob_id = "YOUR_JOB_ID", so the code parses and runs once the user edits it. - Reduce on the server. Use
query_simplegroupBy+agg, orquery_sqlwith aGROUP BYon every aggregate. An ungroupedcount(*)returns HTTP 400, and an ungroupedmin/maxon a multi-partition table returns one value per partition instead of one number (0.1.1). Count rows per date withGROUP BYand sum client-side. A raw fetch of a dense table OOM-kills the aggregator. - Bound every
query_simplewith 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 withlimit=. Inquery_sql, write dates asDATE '2026-03-02'(a q literal such as2026.03.02is a SQL parse error). To peek at a few rows or check a schema, usequery_preview(table=..., limit=5), notquery_simple. - 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 (RESTmode: "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. - Treat deletion as permanent. Before any delete:
- Confirm the scope with the user. Deletes cannot be undone.
- Pass
filterdeliberately. It is mandatory, andfilter=[]deletes every row in the window, not none. - Pass a
startTS/endTSwindow. Omitting the window deletes the whole table. - Use timezone-naive timestamps. An aware
datetimeis rejected. - Repair a duplicated partition only by re-import. Re-import the complete dataset over REST with
mode: "overwrite"(the Pythonimport_fileshas nomodeargument), after a backup and the user's confirmation of the scope (Core Operations).
- 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.
- Containers belong to a project. Before any
docker rm,docker compose downor prune of akx-db-*container, read the owning project (docker inspect, labelcom.docker.compose.project.working_dir). Then take one branch:- Owner is the project you are working in (its
working_diris 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.
- Owner is the project you are working in (its
prtnColnames 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) forprtnCol, and keep a separate date column for the date-level queries. Seereferences/07-tables.md.
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- recipes/01-streaming-ingest.md 3.3 KB
- recipes/02-batch-ingest.md 5.8 KB
- references/01-setup.md 15 KB
- references/02-onetick.md 9.7 KB
- references/03-troubleshooting.md 15 KB
- references/04-advanced-features.md 12 KB
- references/05-ingestion-methods.md 2.3 KB
- references/06-query-guide.md 11 KB
- references/07-tables.md 1.5 KB
- references/08-live-docs-index.md 5.0 KB
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.
- 6d ago Changed · -109 lines · -91 tokens per session scan B → A 91b263fd7a93
- 3mo ago First seen · 286 lines · 258 tokens per session scan B 34f4eb3c9716
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.
kdbx-db-service compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kdbx-db-serviceKxSystems/kx-skills | Skill | 23 | 7d ago | Apache-2.0 | A | 167 | Claude Code |
| create-prprisma/orm | Skill | 48k | today | Apache-2.0 | A | 47 | Claude Code, Codex |
| schema-explorationlangchain-ai/deepagents | Skill | 32k | today | MIT | A | 57 | Claude Code, Codex |
| atlas-mssqlariga/atlas | Skill | 8.9k | today | Apache-2.0 | A | 163 | Claude Code |
| ha-data-storesshiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 115 | Claude Code, Codex |
| bex-keyvaluebex-co/bex | Skill | 1.6k | today | Apache-2.0 | A | 117 | Claude Code, Codex |
| pentesting-mysqlxalgorix/xalgorix | Skill | 1.6k | today | Apache-2.0 | A | 65 | Claude Code, Codex |