postgresql-expert

postgresql-expert is a skill for Claude Code, Codex from vosslab/vosslab-skills. It costs 64 tokens per session (1,064 once invoked), scanned A, original, MIT.

A PostgreSQL database development and operations guide. PostgreSQL is a database system used to store structured application data and run queries against it.

In plain words
What is it for?
It is for schemas, migrations, indexes, query plans, transactions, backups, replication, connection pooling, extensions, and recovery work.
Why use it?
It helps choose database changes from the actual workload, data model, and operational needs instead of guesswork.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the vosslab-skills plugin — 42 skills, 14 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/vosslab/vosslab-skills/postgresql-expert
Any agent
npx skills add vosslab/vosslab-skills --skill postgresql-expert
Clone the repo
git clone --depth 1 https://github.com/vosslab/vosslab-skills

Made for: Claude Code, Codex.

Or install vosslab-skills, the plugin that ships this one along with the rest of its 42 skills, 14 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 postgresql-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/vosslab/vosslab-skills/postgresql-expert.svg)](https://agentmods.dev/skills/vosslab/vosslab-skills/postgresql-expert)
Your own site
<a href="https://agentmods.dev/skills/vosslab/vosslab-skills/postgresql-expert"><img src="https://agentmods.dev/badge/skills/vosslab/vosslab-skills/postgresql-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,064 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.1 $0.00064 $0.01064
Opus 5 $0.00032 $0.00532
Sonnet 5 $0.00013 $0.00213
Haiku 4.5 $0.00006 $0.00106

Measured 5d ago against content hash 8b4be92d693a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

postgresql-expert 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.

skills/experts/postgresql-expert/SKILL.md · 91 lines

How it starts

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

PostgreSQL expert

Overview

Use this skill to make PostgreSQL changes from a stated workload, data model, and operational constraint. Start with the query, schema, cluster role, or recovery objective that the user needs to improve, then gather measured evidence before choosing a database change.

Keep application contracts, database schema, migration, query, and operations concerns explicit. Choose PostgreSQL-native types, constraints, transactions, and indexes that fit the observed access pattern. Treat a replica, a backup, and a tested recovery procedure as separate capabilities.

Workflow

  1. Classify the PostgreSQL task and select its evidence route.
  • Name the affected schema, query, migration, cluster, pooler, or recovery target.
  • Consult references/topic_index.md for the current-documentation route and executable oracle.
  • Read references/task_selection.md when the work crosses an application or front-end boundary.
  1. Detect the project shape and establish a database contract.
  • Decide whether the target is an existing service or a greenfield database-backed project.
  • Existing: inventory migrations, schema definitions, queries, connection settings, monitoring, backup jobs, and deployment runbooks before changing behavior.
  • Greenfield: write the data model, invariants, transaction boundaries, access patterns, and recovery objective before selecting an ORM, pooler, or index set.
  • Read references/project_workflow.md for both project shapes.
  1. Capture a baseline that represents the workload.
  • Reproduce the relevant query, write path, maintenance symptom, or recovery procedure with representative data and a recorded environment.
  • Capture EXPLAIN (ANALYZE, BUFFERS) before plan-affecting schema, statistics, or index changes.
  • Inspect transaction age, locks, table and index growth, replication state, or backup artifacts when the task concerns cluster operations.

Read the full file on GitHub · 91 lines

Files

What ships with it

7 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. 5d ago First seen · 91 lines · 64 tokens per session scan A 8b4be92d693a

Subscribe to this mod's changes

postgresql-expert is a skill published in the GitHub repository vosslab/vosslab-skills (2 stars, last pushed 10d ago), licensed MIT. It adds 64 tokens to every session and 1,064 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-31.

Related

Other skills, from other repositories

alloydb-basics

Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB Model Context Protocol (MCP) tools for automated database operations. Use when creating, configuring, or administering AlloyDB databases. Do NOT use for general PostgreSQL instances (e.g. Cloud SQL) or other GCP databases.

google/skills · 72 tokens

postgresql-table-design

Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features.

wshobson/agents · 37 tokens

db-repair

Auto-fix gbrain's Postgres access so the brain stays available. When any gbrain command or MCP tool result carries a GBRAINDBACCESS marker (or an operator reports the brain database is down), run the hardcoded gbrain db-repair ladder: diagnose, apply the safe tier, verify. The action is ALWAYS the hardcoded command …

garrytan/gbrain · 96 tokens

claimable-postgres

Provision instant temporary Postgres databases via Claimable Postgres by Neon (neon.new) with no login, signup, or credit card. Supports REST API, CLI, and SDK. Use when users ask for a quick Postgres environment, a throwaway DATABASEURL for prototyping/tests, or "just give me a DB now". Triggers include: "quick…

neondatabase/mcp-server-neon · 123 tokens

dsql

Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, foreign key…

awslabs/agent-plugins · 229 tokens

volcengine-rds-postgresql

使用火山引擎 RDS PostgreSQL,帮助用户完成 RDS PostgreSQL 相关的实例管理、数据库操作、账号管理和运维任务,可直接调用 uv run ./scripts/callrdspostgresql.py 脚本获取实时结果。.

bytedance/agentkit-samples · 63 tokens