/data-and-ai-tools:vector-store-stingerfrom data-and-ai-tools
Designs vector storage for pgvector schemas, HNSW/IVFFlat indexes, hybrid search, and migrations. Provides opinionated recommendations based on project context.
Ships in data-and-ai-tools. 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.
You are equipping vector-store-wasp-drone - the Wasp Nest's authority on vector and embedding storage. This skill covers the domain generally: schema and column design, index selection, distance-operator correctness, hybrid storage-layer search, migrations, and dataset versioning, across whichever store a project actually runs.
Neon Postgres plus pgvector plus Drizzle is the primary, default option for this repo's stack. Deep Lake (the columnar, versioned dataset engine a prior product on this codebase's history was built on) stays fully documented as a supported alternative for any project already running it. Qdrant and managed/serverless services (Pinecone-style) are documented as further alternatives with their own tradeoffs. See guides/00-selection-matrix.md for how to choose.
Opinionation is the product, scoped to whichever store is in play. On this repo's default: "add an HNSW index with vector_cosine_ops, not IVFFlat, because the table takes continuous writes" - not "here are two index types, pick one." On a Deep Lake project: the original Deep Lake opinions (single-source the schema, heal additively, never blanket) still apply in full, unchanged.
drizzle/schema.ts or equivalent, and confirm pgvector is the extension in use; for a Deep Lake project: deeplake-schema.ts / deeplake-api.ts). If it is a greenfield decision with no store chosen yet, start at guides/00-selection-matrix.md instead of assuming.guides/00-principles.md before writing any finding. The severity rubric, the store-agnostic non-negotiables (dimension is a schema fact, match the operator class, hybrid beats vector-only for most product search), and the cross-Drone handoff rules live there.| Invocation | Store | Primary guide(s) | Output |
|---|---|---|---|
| No store chosen yet / greenfield | any | 01-evidence-led-store-fit.md, 02-projection-consistency-and-eval.md; selection matrix is dated context | One source-backed recommendation, accepted evaluation/projection criteria and explicit unknowns |
| New table / schema design | pgvector (default) | pgvector-01-schema-and-drizzle.md | Drizzle schema with a vector(n) column and dimension rationale |
| Index selection / tuning | pgvector (default) | pgvector-02-indexing.md | HNSW or IVFFlat recommendation with operator class and parameters |
| Hybrid lexical + vector search | pgvector (default) | pgvector-03-hybrid-search.md | tsvector + vector column pair, GIN + HNSW indexes, fusion handoff to retrieval-wasp-drone |
| Migration (extension, column, index, dimension change) | pgvector (default) | pgvector-04-migrations.md | Migration plan with the extension-first, diff-the-generated-SQL, and dimension-change-is-a-plan rules applied |
| New table / greenfield schema | Deep Lake | deeplake-01-schema-design.md + deeplake-02-indexing.md | templates/schema-spec.md + starter ColumnDef[] in templates/columndef-table-spec.ts |
| Schema review | Deep Lake | deeplake-01-schema-design.md + deeplake-00-principles.md | Findings report per templates/audit-template.md |
| Schema-heal plan | Deep Lake | deeplake-03-schema-healing.md | templates/migration-plan.md (additive heal plan) |
| Indexing audit | Deep Lake | deeplake-02-indexing.md | Findings report listing missing / redundant lookup, BM25, and vector indexes |
| Query audit | Deep Lake | deeplake-05-querying-deeplakeapi.md | Prioritized remediation report |
| Storage-backend choice | Deep Lake | deeplake-08-storage-backends.md | examples/storage-backend-choice-walkthrough.md-shaped matrix |
| Dataset versioning | Deep Lake | deeplake-04-versioning-branches.md | ADR via templates/ADR.md when architectural |
| Evaluating a dedicated vector database | Qdrant / managed | alt-01-qdrant.md / alt-02-managed-vector-services.md | A recommendation grounded in the selection matrix's escape hatches |
guides/00-principles.md and pgvector-01-schema-and-drizzle.md / deeplake-06-embeddings-jsonb-versioning.md.guides/00-principles.md and pgvector-02-indexing.md.retrieval-wasp-drone and the embedding model to embeddings-runtime-wasp-drone.security-wasp-drone.CREATE EXTENSION vector is its own migration, applied before any vector column migration. See pgvector-04-migrations.md.pgvector-02-indexing.md.vector column. A known Drizzle Kit bug has quoted the vector(n) type in generated SQL, which Postgres rejects. See pgvector-04-migrations.md.deeplake-schema.ts. Every column lives in a readonly ColumnDef[]. See deeplake-01-schema-design.md.ADD COLUMN IF NOT EXISTS. Deep Lake returns HTTP 500 (not 409) on a duplicate add. See deeplake-03-schema-healing.md.validateSchema() enforces it. See deeplake-01-schema-design.md.deeplake-06-embeddings-jsonb-versioning.md.sqlStr() / sqlLike() / sqlIdent(). See deeplake-05-querying-deeplakeapi.md.Store-agnostic; see guides/00-principles.md for the full rubric. Summary:
IF NOT EXISTS add, a missing DEFAULT on a NOT NULL column, a true UPDATE on a Deep Lake append-only table, a raw interpolated table name. Blocks merge.creds_key where a BYOC backend would rotate cleanly.library-wasp-drone.typescript-node-wasp-drone.security-wasp-drone.retrieval-wasp-drone for recall and embeddings-runtime-wasp-drone for the embedding model. This Stinger picks the column/collection shape and the search operator, then stops.quality-wasp-drone.neon-drizzle-wasp-drone.Numbered/prefixed so the layering is obvious: principles and selection first, then one prefix per implementation.
guides/00-principles.md - store-agnostic non-negotiables, severity rubric, cross-Drone boundaries.guides/00-selection-matrix.md - which store, with an explicit escape-hatch table off pgvector.guides/pgvector-01-schema-and-drizzle.md - Drizzle vector() columns, dimension discipline, the extension-migration step.guides/pgvector-02-indexing.md - HNSW vs IVFFlat, distance operators and operator classes, tuning parameters.guides/pgvector-03-hybrid-search.md - tsvector + vector column pairing, GIN + HNSW, fusion handoff.guides/pgvector-04-migrations.md - extension-first ordering, the Drizzle Kit quoting bug, dimension-change-is-a-plan, concurrent index builds.guides/deeplake-00-principles.md through guides/deeplake-08-storage-backends.md - the original Deep Lake material (ColumnDef schema, indexing, schema healing, versioning, DeeplakeApi querying, embeddings/JSONB, no-ORM, storage backends), unchanged.guides/alt-01-qdrant.md - Qdrant as an alternative: in-graph filtering, when it beats pgvector, the operational tradeoff.guides/alt-02-managed-vector-services.md - Pinecone-style managed services as an alternative: zero-ops tradeoff, lock-in, cost at scale.templates/schema-spec.md, templates/migration-plan.md, templates/indexes-decision-tree.md, templates/columndef-table-spec.ts, templates/ADR.md, templates/audit-template.md (Deep Lake-shaped; reusable structurally for pgvector findings).examples/new-deeplake-table.md, examples/schema-heal-add-column.md, examples/storage-backend-choice-walkthrough.md (Deep Lake-specific, kept as worked examples of that implementation).library/ tree - standalone: library/requirements/reports/vector-store/<date>-<topic>.md; feature-tied: library/requirements/<lifecycle>/prd-<###>-<title>/reports/<date>-<type>-report.md; ADRs: library/knowledge/private/architecture/ADR-<n>-<topic>.md. Use templates/audit-template.md as the starting skeleton.guides/pgvector-02-indexing.md), a Deep Lake guide section, or references/research/ (raw or distilled).guides/00-selection-matrix.md explicitly rather than defaulting from habit; for this repo the default is pgvector unless an escape hatch clearly applies.Part of The Wasp Nest, curated by [Mario Aldayuz a.k.a @thenotoriousllama]
examples/new-deeplake-table.md (opens in a new tab)examples/normalized-vector-fit-cases.md (opens in a new tab)examples/schema-heal-add-column.md (opens in a new tab)examples/storage-backend-choice-walkthrough.md (opens in a new tab)guides/00-principles.md (opens in a new tab)guides/00-selection-matrix.md (opens in a new tab)guides/01-evidence-led-store-fit.md (opens in a new tab)guides/02-projection-consistency-and-eval.md (opens in a new tab)guides/alt-01-qdrant.md (opens in a new tab)guides/alt-02-managed-vector-services.md (opens in a new tab)guides/deeplake-00-principles.md (opens in a new tab)guides/deeplake-01-schema-design.md (opens in a new tab)guides/deeplake-02-indexing.md (opens in a new tab)guides/deeplake-03-schema-healing.md (opens in a new tab)guides/deeplake-04-versioning-branches.md (opens in a new tab)guides/deeplake-05-querying-deeplakeapi.md (opens in a new tab)guides/deeplake-06-embeddings-jsonb-versioning.md (opens in a new tab)guides/deeplake-07-no-orm-columndef.md (opens in a new tab)guides/deeplake-08-storage-backends.md (opens in a new tab)guides/pgvector-01-schema-and-drizzle.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vector-database, pgvector, hnsw, ivfflat, hybrid-search, schema-design
15 skills in this plugin
/ai-coding-tools-stingerChoose, configure or troubleshoot AI coding tools, and write bounded task briefs. Use for tool comparison, prompt context, task scope, acceptance, ownership and verification./ai-tools-platform-stingerChoose AI providers, gateways and local models. Use for AI stack setup, retry and spend budgets, feature margin or local hardware fit. Read guides/ for the decision path./bifrost-stingerBifrost AI gateway specialist: maximhq/bifrost architecture, admin and inference API surface, virtual keys, semantic cache, .so plugins, tags, fork freeze and upgrade policy. Use for any Bifrost work./cursor-ide-stingerConfigure Cursor agents, rules, hooks, MCP, and SDK automation. Use for Cursor integration or IDE productivity issues. Read guides/ for the decision path./db-stingerDesign PostgreSQL data layers. Use for schema, indexes, migrations, query performance, ORM choice, or serverless databases. Read guides/ for the decision path./deeplake-dataset-stingerDesign and maintain Wasp Nestmind Deep Lake datasets. Use for ColumnDef schemas, healing, versioned writes, or hybrid indexing. Read guides/ for the decision path.npx claudepluginhub legioncodeinc/vibe-coding-tools --plugin data-and-ai-toolsOther plugins' skills for the same job