Db specialized fit

From Hainrixz/claude-db · View interactive version

Db specialized fit is an AI agent skill from the GitHub repository Hainrixz/claude-db. Specialized-engine fitness (M20) — checks whether a vector, time-series/OLAP, graph, or search store is configured correctly for its job. M20a vector (dimensions match the embedding model, distance metric matches how the model was trained, HNSW/IVFFlat params present), M20b time-series/OLAP (hyperta

How to use this skill

Skill file

<!-- Copyright (c) 2026 Enrique Rocha (@soyenriquerocha) · tododeia.com · id er-f37b7121 -->

db-specialized-fit (M20) — vector · time-series · graph · search

M20 covers purpose-built engines whose correctness depends on parameters a generic relational audit

ignores. Sub-modules carry a letter (M20a..M20d); the scorer maps them to the parent M20 in the

paradigm profile (Vector / Time-series / Graph categories in references/scoring-model.md).

M20a — Vector (pgvector, Qdrant, Pinecone, Weaviate)

Feeds: design (Métrica & dimensión, Modelo-version, Metadata/filtro) + performance (Índice & params,

Búsqueda filtrada, Recall-vs-latencia).

(e.g. vector(1536) for text-embedding-3-small). A mismatch is a hard bug (design, sev 5).

trained; a mismatch silently wrecks recall. Sev-5 only when the model is declared in-repo; else

directional and do not cap (per scoring-model honesty rule).

declared, not a brute-force seq scan on a large table (performance).

M20b — Time-series / OLAP (TimescaleDB, InfluxDB, ClickHouse)

Feeds: design (Hypertable-fit, Retención, Precisión-ts & tz) + performance (Chunk/retención,

Continuous-agg, Compresión, Query).

with a sane chunk interval (not one giant chunk, not millions of tiny ones).

M20c — Graph (Neo4j)

Feeds: design (Modelado-aristas, Nodos/traversal) + performance (Índice-lookup, Traversal, Supernodo).

traversals need them; no relationship modeled as a node-pair table that defeats the graph engine.

(CREATE CONSTRAINT ... IS UNIQUE), so traversals don't begin with a full label scan.

(performance). Sev escalation requires live degree evidence; else directional.

M20d — Search (Elasticsearch, OpenSearch)

Feeds: design (mapping/analyzer correctness) + performance (query/shard layout).

text); analyzer matches language; keyword vs text chosen deliberately.

Tier-0 static checks

Parse declared schema/config: pgvector vector(N) columns + CREATE INDEX ... USING hnsw/ivfflat;

Qdrant/Pinecone collection config (size, distance); Timescale create_hypertable/add_*_policy;

ClickHouse ENGINE = MergeTree ... ORDER BY; Neo4j constraint/index DDL; ES mappings/settings JSON.

Cross-check declared embedding-model dim/metric against any model id referenced in repo code.

Tier-1 verification query

and \d <table> for the vector(N) dim.

Findings

Emit per schema/finding.schema.json. Example ids:

confidence established when the model id is in-repo).

if model declared, else warn/directional, axis both).

Each finding: evidence.observed quotes the real DDL/collection config verbatim (secrets redacted);

verification.reproduce is a runnable command above using $DATABASE_URL; verification.method is

schema_introspect, index_check, ddl_parse, or explain_plan; expected_impact carries

{axis, confidence, magnitude, rationale} — banded, never a naked %.

Honesty

Inferred mismatches are directional and never cap. Supernode/hot-partition sev-5 needs live degree

evidence; otherwise directional or needs_api, never a silent pass.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.