/skills:postgres-vector-graphfrom skills
Use when working with pgvector or Apache AGE on PostgreSQL — HNSW/IVFFlat, filtered or hybrid vector search, Cypher and agtype, or combining relational, vector and graph.
Ships in skills. 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.
Use a relational system of record, typed vector columns, and explicit graph projections unless the workload demonstrates a better ownership model. Do not add a graph merely because the application uses an LLM.
(tenant_id, business_id) joins; versioned
embedding spaces; provenance; ownership; deletion behavior; consistency lag.
An AGE internal graph ID is not an application key or a foreign key.Preserve the distance operator as the ANN ordering expression; apply settings inside the transaction executing that query. Example assumes the lab schema:
BEGIN;
SET LOCAL hnsw.iterative_scan = 'strict_order';
SELECT doc_id FROM skill_lab.document
WHERE tenant_id = 1 AND model_id = 'demo-v1'
ORDER BY embedding <=> '[1,0,0]'::public.vector(3) LIMIT 10;
COMMIT;
Cross the graph boundary with explicit output types and a stable business key:
SELECT d.doc_id, d.title
FROM ag_catalog.cypher('skill_graph', $$
MATCH (n:document) WHERE n.tenant_id = 1 RETURN n.doc_id
$$) AS g(doc_id ag_catalog.agtype)
JOIN skill_lab.document AS d
ON d.tenant_id = 1 AND d.doc_id = g.doc_id::bigint;
The graph session must already be initialized. These are shapes, not proof of index use or tenant isolation. See the full examples and role tests.
| Task | Load |
|---|---|
| PG18 capabilities and extension gates | Version matrix, PG18 baseline |
| Schema, constraints, transactions, plans | Schema, Planner, Transactions |
| Vector choice and index tuning | Types/metrics, ANN indexes |
| Filtered ANN or too few results | Filtered ANN |
| Large embeddings or model replacement | Quantization/migration |
| AGE setup, queries, values, parameters | Cypher, Types/drivers |
| Graph modeling, loading, indexes | Modeling, Advanced features |
| Cross-model design or consistency | Architecture, Outbox |
| Hybrid search / RRF | FTS + vector, Three-way fusion |
| Graph eligibility before similarity | Graph-first |
| Similarity seeds followed by traversal | Vector-first |
| Security or tenant isolation | SQL RLS, AGE RLS |
| Deployment, load, recovery, diagnosis | Operations index |
| Other skills / composed profile | Companion skills, Dependency manifest |
ts_rank / ts_rank_cd are not BM25; strict_order is not exact ANN recall.MERGE replay behavior is not a concurrent uniqueness guarantee.Give the selected architecture, version gate, executable or explicitly schematic examples, correctness tests, performance experiment, and rollback/recovery plan. Use README for installation and all references for progressive discovery. Consult optional companions only when installed and approved; absence never disables this standalone skill.
LICENSE (opens in a new tab)MANIFEST.json (opens in a new tab)README.md (opens in a new tab)THIRD_PARTY.md (opens in a new tab)VALIDATION.md (opens in a new tab)dependencies.json (opens in a new tab)examples/metrics-input.json (opens in a new tab)examples/python/vector_first_graph.py (opens in a new tab)examples/sql/00_preflight.sql (opens in a new tab)examples/sql/01_bootstrap.sql (opens in a new tab)examples/sql/02_schema_and_seed.sql (opens in a new tab)examples/sql/03_hybrid_fts_vector.sql (opens in a new tab)examples/sql/04_graph_seed.sql (opens in a new tab)examples/sql/05_graph_first_vector.sql (opens in a new tab)examples/sql/06_three_way_fusion.sql (opens in a new tab)examples/sql/07_atomic_rollback.sql (opens in a new tab)examples/sql/08_rls_setup.sql (opens in a new tab)examples/sql/09_rls_assertions.sql (opens in a new tab)examples/sql/10_filtered_ann.sql (opens in a new tab)references/INDEX.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (getty/skills) — no native marketplace selected
npx claudepluginhub p/getty-skills129 skills in this plugin
/ai-playable-gamesUse when building a game or simulation that bots or LLM agents must play — observation and order interface, agent API or MCP server, AI seats beside humans, fog of war, replays; or when an AI player cheats, stalls, misreads the state or follows text other players wrote./ai-web-scrapingUse when scraping, crawling or extracting structured data from websites, especially with an LLM — Crawl4AI, Firecrawl, Scrapy, Crawlee, Playwright, browser-use; building a dataset or RAG corpus, watching pages for changes, or a scraper that returns empty, duplicated or invented records./cedar-engineeringUse when writing, validating or debugging Cedar authorization policies — .cedar and .cedarschema files, permit/forbid, entities and hierarchies, RBAC/ABAC/ReBAC, templates, multi-tenant access, partial evaluation, Amazon Verified Permissions, migrating to or from Cedar.Other plugins' skills for the same job