pgvector-knowledge-patch

pgvector-knowledge-patch is a skill for Claude Code from Nevaberry/nevaberry-plugins. It costs 9 tokens per session (1,617 once invoked), scanned A, original, MIT.

A reference guide for pgvector, a PostgreSQL extension that stores and searches numerical representations of data. It covers upgrades, vector indexes, filtered nearest-neighbor searches, storage, and deployment.

In plain words
What is it for?
Use it to upgrade pgvector, build or tune vector indexes, search for similar items with filters, store vector values, or deploy the extension on PostgreSQL or Aurora PostgreSQL.
Why use it?
Extension and PostgreSQL version changes can make an upgrade unsupported or change how searches and indexes behave. The guide helps plan compatible deployments and query changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the knowledge-patch plugin — 197 skills, 1 hook shipped together

Good fit Use it to upgrade pgvector, build or tune vector indexes, search for similar items with filters, store vector values, or deploy the extension on PostgreSQL or Aurora PostgreSQL.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nevaberry/nevaberry-plugins/pgvector-knowledge-patch
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 Nevaberry/nevaberry-plugins --skill pgvector-knowledge-patch
Clone the repo
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins

Made for: Claude Code.

Or install knowledge-patch, the plugin that ships this one along with the rest of its 197 skills, 1 hook.

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 pgvector-knowledge-patch

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/pgvector-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/pgvector-knowledge-patch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,617 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00009 $0.01617
Opus 5.5 $0.00004 $0.00647
Sonnet 5.5 $0.00002 $0.00323
Haiku 4.5 $0.00001 $0.00162

Measured today against content hash 16b56551acde, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pgvector-knowledge-patch scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/knowledge-patch/patches-claude/pgvector-knowledge-patch/SKILL.md · 174 lines

How it starts

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

pgvector Knowledge Patch

Use this skill when upgrading pgvector, building vector indexes, planning filtered nearest-neighbor queries, working with vector values, or deploying the extension.

Reference index

Reference Topics
Compatibility and Deployment PostgreSQL and Aurora compatibility, hosted extension versions, container tags, packages, portable builds, Windows linking
Indexing and Storage IVFFlat upgrade requirements, build resources, vector storage, sparse casts, comparisons, norms, averages
Iterative Scans and Filtered Search Iterative scan limits, planner changes, relaxed result ordering, tenant partitions, distance cutoffs

Upgrade requirements and changed behavior

PostgreSQL compatibility

pgvector 0.8.0 drops PostgreSQL 12 support. Upgrade the PostgreSQL server before installing this extension release on a PostgreSQL 12 deployment.

For pgvector 0.8.0, the minimum Aurora PostgreSQL engine versions are 13.20, 14.17, 15.12, 16.8, and 17.4 in their respective major series. pgvector added support for PostgreSQL 18 RC1 in 0.8.1.

IVFFlat upgrade and build requirements

When upgrading from 0.2.7 or 0.3.0 to 0.3.1 or later, recreate every existing IVFFlat index after the upgrade to ensure all rows are indexed.

Upgrade to pgvector 0.8.6 or later before building IVFFlat indexes on 32-bit systems. This release fixes a buffer overflow during index creation.

Sparse array casts and empty averages

Starting in 0.8.6, casting an array to sparsevec rejects inputs that exceed the type's limit on nonzero elements. An array that cast successfully on an older release can now raise an error.

Starting in pgvector 0.8.7, an ungrouped avg(embedding) query returns SQL NULL when its filter matches no rows.

Filtered nearest-neighbor queries

Check the plan when result counts change

The revised index costing in 0.8.0 can change which plan serves a filtered nearest-neighbor query even when hnsw.iterative_scan is off. If a query returns more rows after upgrading, use EXPLAIN to check whether the planner switched from an HNSW index scan to an exact scan followed by a sort.

Read the full file on GitHub · 174 lines

Files

What ships with it

4 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. today First seen · 174 lines · 9 tokens per session scan A 16b56551acde

Subscribe to this mod's changes

pgvector-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (25 stars, last pushed yesterday), licensed MIT. It adds 9 tokens to every session and 1,617 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

pgvector-knowledge-patch compared with skills from other repositories

pgvector-knowledge-patch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pgvector-knowledge-patchNevaberry/nevaberry-pluginsSkill25yesterdayMITA9Claude Code
pgvector-semantic-searchtimescale/pg-aiguideSkill1.9k3d agoApache-2.0A190Cursor
postgres-hybrid-text-searchtimescale/pg-aiguideSkill1.9k3d agoApache-2.0A162Cursor
cloudflare-vectorizesecondsky/claude-skillsSkill2572d agoMITA37Claude Code
vector-db-rag-expertroedyrustam/vibes-plugSkill1315d agoMITA47Cursor
postgres-semantic-searchlaguagu/claude-code-nextjs-skillsSkill755d agoMITA90Claude Code
managing-databasesrileyhilliard/claude-essentialsSkill133todayMITA61Claude Code