managing-databases

managing-databases is a skill for Claude Code, Codex from rileyhilliard/claude-essentials. It costs 51 tokens per session (1,427 once invoked), scanned A, original, MIT.

Guidance for choosing and using PostgreSQL, DuckDB, Parquet, PGVector, and Neo4j in database systems. These technologies store, query, analyze, or connect data in different ways.

In plain words
What is it for?
Use it when designing schemas, selecting storage, optimizing queries, configuring vector or graph workloads, or diagnosing database performance.
Why use it?
It helps match a storage system to the job and provides checks for common query and performance problems.

Skill for Claude CodeCodex

Part of the ce plugin — 17 skills, 1 command, 4 agents shipped together

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.

agentmods
npx agentmods add skills/rileyhilliard/claude-essentials/managing-databases
Any agent
npx skills add rileyhilliard/claude-essentials --skill managing-databases
Clone the repo
git clone --depth 1 https://github.com/rileyhilliard/claude-essentials

Made for: Claude Code, Codex.

Or install ce, the plugin that ships this one along with the rest of its 17 skills, 1 command, 4 agents.

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 managing-databases

README.md
[![agentmods](https://agentmods.dev/badge/skills/rileyhilliard/claude-essentials/managing-databases.svg)](https://agentmods.dev/skills/rileyhilliard/claude-essentials/managing-databases)
Your own site
<a href="https://agentmods.dev/skills/rileyhilliard/claude-essentials/managing-databases"><img src="https://agentmods.dev/badge/skills/rileyhilliard/claude-essentials/managing-databases.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,427 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00051 $0.01427
Opus 5 $0.00026 $0.00714
Sonnet 5 $0.00010 $0.00285
Haiku 4.5 $0.00005 $0.00143

Measured 5d ago against content hash 27c249c87209, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

managing-databases 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 5d ago.

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/ce/skills/managing-databases/SKILL.md · 151 lines

How it starts

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

Database Management

Decision guidance for PostgreSQL, DuckDB, Parquet, and Neo4j in hybrid storage architectures.

Contents

  • When to use which database
  • PostgreSQL quick reference
  • DuckDB quick reference
  • Parquet quick reference
  • PGVector quick reference
  • Neo4j quick reference
  • Cross-database conventions
  • Performance debugging checklist

When to use which database

Workload Use Why
Transactional (CRUD, users, sessions) PostgreSQL ACID, row-level locking, indexes
Analytical (aggregations, scans) DuckDB Columnar, vectorized, parallel
Data storage/interchange Parquet Compressed, columnar, portable
Metadata + relationships PostgreSQL Foreign keys, constraints
Ad-hoc exploration DuckDB Fast on Parquet, no ETL needed
Time-series with point lookups PostgreSQL + partitioning Partition pruning + indexes
Time-series analytics DuckDB on Parquet Scan performance
Vector similarity search PostgreSQL + PGVector HNSW/IVFFlat indexes, hybrid search
RAG / semantic search PostgreSQL + PGVector Embeddings + metadata in same DB
Graph traversals / relationships Neo4j Native graph, index-free adjacency
Pattern matching / fraud detection Neo4j Multi-hop traversal, path finding
Knowledge graphs / ontologies Neo4j Flexible schema, relationship-first

Hybrid pattern example:

  • PostgreSQL: transactional data, relationships, users (metadata)
  • DuckDB + Parquet: analytical content, aggregations, time-series

Read the full file on GitHub · 151 lines

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. 5d ago First seen · 151 lines · 51 tokens per session scan A 27c249c87209

Subscribe to this mod's changes

managing-databases is a skill published in the GitHub repository rileyhilliard/claude-essentials (128 stars, last pushed 17d ago), licensed MIT. It adds 51 tokens to every session and 1,427 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

pgvector-semantic-search

Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…

timescale/pg-aiguide · 190 tokens

postgres-hybrid-text-search

Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). Trigger when user asks to: Combine keyword and semantic search Implement hybrid search or multi-modal retrieval Use BM25/pgtextsearch with pgvector together Implement RRF (Reciprocal…

timescale/pg-aiguide · 162 tokens

ai-vector-brain

Builds vector-brain implementations for repos, docs hubs, and compliance corpora. Use when creating pgvector retrieval brains with scripts, SQL, manifests, and evals.

vasilyu1983/AI-Agents-public · 40 tokens

postgres-semantic-search

PostgreSQL-based semantic and hybrid search with pgvector and ParadeDB. Use when implementing vector search, semantic search, hybrid search, or full-text search in PostgreSQL. Covers pgvector indexing, hybrid FTS/BM25 + RRF, ParadeDB, reranking, halfvec, multilingual search, query translation, and domain evals.…

laguagu/claude-code-nextjs-skills · 228 tokens

vector-db-rag-expert

Expert guide for high-performance Vector Databases, RAG architectures, pgvector HNSW indexing, hybrid search (Dense + BM25), and semantic chunking / Panduan ahli Vector DB, arsitektur RAG, pgvector HNSW, dan hybrid search.

roedyrustam/vibes-plug · 62 tokens

laravel-vector-search

Use when implementing semantic/vector search in Laravel 13 with PostgreSQL + pgvector.

fusengine/agents · 22 tokens