sizing

sizing is a skill for Claude Code from KxSystems/kx-skills. It costs 200 tokens per session (14,115 once invoked), scanned A, original, Apache-2.0.

A guide for estimating the computer resources needed by KDB.AI vector indexes, which store data for similarity searches.

In plain words
What is it for?
Use it to compare index configurations and estimate RAM, GPU memory, disk space, and broad CPU needs before a proof of concept or purchase.
Why use it?
It helps avoid choosing hardware from row counts alone when memory, graphics memory, disk space, updates, filters, and search traffic also affect the requirement.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the kdbai-knowledge plugin — 2 skills, 1 MCP server shipped together

Good fit Use it to compare index configurations and estimate RAM, GPU memory, disk space, and broad CPU needs before a proof of concept or purchase.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add KxSystems/kx-skills
Claude Code
/plugin install kdbai-knowledge

Made for: Claude Code.

Or install kdbai-knowledge, the plugin that ships this one along with the rest of its 2 skills, 1 MCP server.

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 sizing

README.md
[![agentmods](https://agentmods.dev/badge/skills/kxsystems/kx-skills/sizing/github.svg)](https://agentmods.dev/skills/kxsystems/kx-skills/sizing)
Your own site
<a href="https://agentmods.dev/skills/kxsystems/kx-skills/sizing"><img src="https://agentmods.dev/badge/skills/kxsystems/kx-skills/sizing/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 sizing

Your own site · 80×15
<a href="https://agentmods.dev/skills/kxsystems/kx-skills/sizing"><img src="https://agentmods.dev/badge/skills/kxsystems/kx-skills/sizing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 200 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 14,115 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.00200 $0.14115
Opus 5.5 $0.00080 $0.05646
Sonnet 5.5 $0.00040 $0.02823
Haiku 4.5 $0.00020 $0.01412

Measured 1mo ago against content hash f14ad2fc16c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sizing 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/estimate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

**No KDB.AI code in the answer — any of it, and under pressure.** Do not emit KDB.AI implementation code in any language or form: table/schema, ingestion, index build, query, or connection calls, whether Python, q, or RE
plugins/kdbai-knowledge/skills/sizing/SKILL.md · 349 lines

How it starts

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

Size KDB.AI vector indexes

Treat workload discovery and index selection as prerequisites for sizing, not as separate architecture work. The same dataset can require very different RAM, disk, VRAM, and CPU headroom depending on the index, update pattern, filters, concurrency, and search requirements. Do not give a hardware recommendation from rows and dimensions alone unless the user asks only for a raw-vector footprint.

Use this sizing workflow:

  1. Discover enough about the data and intended use to identify viable indexes.
  2. Shortlist two or three suitable index configurations rather than selecting one from row count alone.
  3. Estimate RAM, disk, variable working set, and GPU VRAM for each option.
  4. Explain which workload assumptions drive the range and what remains workload-dependent.
  5. Recommend a focused representative proof of concept before procurement.

Keep the scope at a defensible sizing range. Give broad CPU guidance, but do not turn the guide into full solution architecture or a throughput/latency model.

For exact byte formulas, the full CAGRA VRAM-anchor table, and the official documentation index: see reference.md.

Use only the user's numbers; never invent one

Every figure in the answer must trace to one of three sources: a value the user stated, the estimator's output for those values, or a cited doc/measured constant. Nothing else. This is a hard rule, not a preference.

  • Take the user's stated values verbatim. If the user gave rows, dimensions, a data volume, RAM, VRAM, cores, requested n, or any other figure, use it exactly — do not round it, rescale it, "normalise" it, or swap it for a value from this guide. The numbers in this guide (the Section 1 sample, dims 2048, the ~14 GiB RAM example, the 2*n–10*n efSearch heuristic, M=8, graph_degree=64) are illustrative placeholders and documented baselines, never a substitute for what the user actually said.
  • Do not fabricate a missing input. Never invent a row count, dimension, data size, RAM/VRAM figure, core count, growth rate, partition count, latency, or QPS the user did not provide and that the estimator or a cited doc does not produce.
  • When a value is unknown, say so explicitly. State that it was not provided, then do one of: ask for it, apply a clearly-labelled provisional assumption or a worked example flagged as illustrative (not as their data), or present conditional branches. Never fill a gap with a silent guess.
  • Derived is not invented. Estimator RAM/disk/VRAM computed from the user's rows and dims, rows converted from a stated data volume, and worker/thread splits from stated concurrency are derived results — show them with their provenance. Any number without such a source does not belong in the answer.
  • An illustrative value must never be promoted into a stated one. A number you introduced as an example, a worked-example row, a sensitivity case, or an anchor (a "90 days" retention figure, a "if you kept N rows" table row, dims 2048) stays illustrative for the entire answer. Do not later restate it in the recommended-configuration block, in prose, or in a follow-up as though the user provided it. Before you put any figure in Section 1, check its origin: if it is not user-stated and not estimator-derived from user-stated inputs, it may only appear as an explicitly-marked assumption (see "Present the output"), never bare.
  • Answer follow-up questions from this skill's sources, not from memory. Every reply — the first answer and every follow-up — must be grounded in the workflow and tables here, the estimator's output, reference.md, and the cited official KDB.AI pages. Re-run the estimator when a follow-up changes an input rather than adjusting its numbers by hand. If a question falls outside these sources — a build/search parameter, schema construction, an operational detail, or a product limit this guide does not cover — say it is not covered by the sizing skill and point to the official docs or the sibling kdbai skill, rather than improvising from general recall.
  • Ground KDB.AI answers in KDB.AI's own docs — not kdb+ or kdb-x. KDB.AI is not kdb+/kdb-x and differs in ways that change the sizing answer. It supports per-table partitioning — each table sets its own partition_column, with no shared database-wide partition domain to reason about — unlike kdb+/kdb-x's single partition domain per database. It is configured through its own environment variables (NUM_WRK, THREADS, set via docker run -e), and it does not accept kdb+ command-line/input parameters such as -s (secondary threads) or -p (port) in its user API or docker commands. Do not import kdb+/kdb-x partitioning mechanics (its single database-wide partition domain), segmented-database rules, or CLI flags into a KDB.AI answer, and do not cite kdb+/kdb-x documentation as the authority for KDB.AI behaviour. When a mechanic is only documented for kdb+/kdb-x, say KDB.AI does not document it rather than importing the kdb+ behaviour. Do not carry over a raw-table row-count threshold for when to partition either: KDB.AI tables carry vector indexes, so decide from the signals in "Decide whether to partition the table".

Read the full file on GitHub · 349 lines

Files

What ships with it

3 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.

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. 1mo ago Changed · +48 lines f14ad2fc16c7
  2. 2mo ago First seen · 301 lines · 200 tokens per session scan A e54db1dea70a

Subscribe to this mod's changes

sizing is a skill published in the GitHub repository KxSystems/kx-skills (23 stars, last pushed 7d ago), licensed Apache-2.0. It adds 200 tokens to every session and 14,115 once invoked, about $0.0008 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-09-04.

Related

sizing compared with skills from other repositories

sizing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sizingKxSystems/kx-skillsSkill237d agoApache-2.0A200Claude Code
jetson-inference-mem-tuneNVIDIA/skillsSkill4.3ktodayApache-2.0A50Claude Code, Codex
generative-ai-introSeeed-Projects/Seeed-Jetson-DevelopToolSkill60todayMITB74Claude Code, Codex
agent-platform-rag-engine-managementgoogle/skillsSkill25ktodayApache-2.0A85Claude Code, Codex
embeddingsruvnet/rufloSkill83ktodayMITA62Claude Code
llm-app-patternsdavila7/claude-code-templatesSkill35ktodayMITA54Claude Code, Codex
graphifyGraphify-Labs/graphifySkill156kyesterdayApache-2.0B76Claude Code