infrastructure/skills/vectorchord/SKILL.md
VectorChord PostgreSQL extension for optimized vector similarity search. Use when working with VectorChord, vector indices, or smart search performance.
npx skillsauth add overthinkos/overthink-plugins vectorchordInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Property | Value |
|----------|-------|
| Dependencies | postgresql |
| Ports | none |
| Volumes | none |
| Service | none |
| Install files | task: |
| Variable | Value |
|----------|-------|
| VECTORCHORD_VERSION | 1.1.1 |
| POSTGRES_SHARED_PRELOAD_LIBRARIES | vchord.so |
unzip (RPM / PAC) -- for extracting VectorChord release archivesThe candy is multi-distro (Fedora + Arch/CachyOS). On Arch, pgvector comes from
the AUR (see /charly-infrastructure:postgresql).
Downloads VectorChord from GitHub releases (tensorchord/VectorChord) and installs the extension:
postgres --versionpg_config --pkglibdir and
pg_config --sharedir — this resolves correctly on both Fedora
(/usr/lib64/pgsql, /usr/share/pgsql) and Arch/CachyOS
(/usr/lib/postgresql, /usr/share/postgresql)postgresql-<PG_MAJOR>-vchord_<VERSION>_<ARCH>-linux-gnu.zipvchord.so to pkglibdir and .control/.sql files to sharedir/extension/Supports both x86_64 and aarch64 architectures. PostgreSQL version is detected dynamically.
VectorChord provides the vchordrq index type for PostgreSQL, replacing pgvector's ivfflat with an optimized approximate nearest-neighbor search algorithm. Key differences:
shared_preload_libraries -- VectorChord's .so must be loaded at PostgreSQL startup via the POSTGRES_SHARED_PRELOAD_LIBRARIES env var (consumed by the postgresql candy's entrypoint)CREATE EXTENSION vchord CASCADE; (handled by the immich candy's migration script)# charly.yml -- used alongside postgresql for Immich smart search
my-image:
candy:
- postgresql
- vectorchord
- immich
/charly-immich:immich/charly-immich:immich-ml/charly-infrastructure:postgresql -- required dependency (provides PostgreSQL server and pgvector)/charly-immich:immich -- primary consumer (migration script creates the extension)Use when the user asks about:
vchordrq index type/charly-image:layer — candy authoring reference (charly.yml schema, task verbs, service declarations)/charly-check:check — declarative testing (check: block, charly check box, charly check live)tools
Use when authoring or modifying a charly PLUGIN — a candy with a `plugin:` block that contributes Providers (verbs/kinds/deploy-targets/steps/builders/commands), its own CUE schema, builtin (compiled-in) or external (out-of-tree git repo). Covers the unified Provider model, the per-plugin CUE-schema contract (single source → Go params for dev + schema-over-Describe RPC for runtime), the SDK, and the loader.
tools
The CUE data-validation / configuration CLI (cue), pinned to v0.16.1. Use when working with the cue candy, installing the cue binary into a box or onto a target:local dev host, or running the offline schema-vendoring pipeline that feeds charly's egress validation.
tools
CUE EGRESS validation — validating (and, where it adds value, generating) the config files charly WRITES to a system BEFORE the bytes hit disk. MUST be invoked before working on charly/egress.go, the vendored schemas under candy/plugin-egress/egress-schemas/vendor/, the ValidateEgress / registerVendoredEgressKind path, the offline `task cue:vendor` pipeline, or adding an egress schema for any written artifact (cloud-init, k8s manifests, traefik routes, runtime config, install ledger, systemd/quadlet units, ssh_config, libvirt XML).
tools
Kubernetes cluster-probe declarative check verb — the `kube:` check verb (nodes, pods, ingress, storage class, addon health, apply/delete, and arbitrary resource GETs) served out-of-process by the candy/plugin-kube plugin (vendored client-go; no external kubectl required).