postgresql-16-docs

postgresql-16-docs is a skill for Claude Code, Codex from cookieMonsterDev/agents-skills. It costs 81 tokens per session (1,239 once invoked), scanned A, original, MIT.

A reference skill for PostgreSQL 16, a database system used to store and query structured data. It uses the official PostgreSQL 16 documentation to answer questions about the database.

In plain words
What is it for?
Use it to write or explain SQL, configure and secure servers, tune queries, manage backups and replication, and troubleshoot PostgreSQL 16.
Why use it?
It reduces the risk of relying on outdated advice or instructions for a different PostgreSQL version.

Skill for Claude CodeCodex

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/cookiemonsterdev/agents-skills/postgresql-16-docs
Any agent
npx skills add cookieMonsterDev/agents-skills --skill postgresql-16-docs
Clone the repo
git clone --depth 1 https://github.com/cookieMonsterDev/agents-skills

Made for: Claude Code, Codex.

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-16-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/cookiemonsterdev/agents-skills/postgresql-16-docs.svg)](https://agentmods.dev/skills/cookiemonsterdev/agents-skills/postgresql-16-docs)
Your own site
<a href="https://agentmods.dev/skills/cookiemonsterdev/agents-skills/postgresql-16-docs"><img src="https://agentmods.dev/badge/skills/cookiemonsterdev/agents-skills/postgresql-16-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,239 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.00081 $0.01239
Opus 5 $0.00041 $0.00620
Sonnet 5 $0.00016 $0.00248
Haiku 4.5 $0.00008 $0.00124

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

Security

Grade A, and why

postgresql-16-docs 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 3d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

docs-skills/postgresql-16-docs/SKILL.md · 111 lines

How it starts

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

PostgreSQL questions are easy to answer from stale memory or the wrong major version. Use this skill to ground answers in the official PostgreSQL 16 documentation and return the closest authoritative page instead of generic database advice.

When to Use

Use this skill when the request is about:

  • PostgreSQL concepts, terminology, or product boundaries
  • SQL syntax, DDL, DML, queries, data types, functions, operators, or type conversion
  • Indexes, full text search, concurrency, MVCC, locking, or isolation levels
  • Query performance, planner behavior, parallel query, or statistics
  • Installation, server setup, configuration parameters, or runtime operation
  • Client authentication, roles, privileges, databases, schemas, or localization
  • Routine maintenance, vacuuming, backups, restore, or WAL
  • High availability, physical replication, logical replication, or failover
  • Monitoring, activity views, disk usage, logs, or troubleshooting server behavior
  • Client interfaces such as libpq, large objects, ECPG, or the information schema
  • Server programming: triggers, event triggers, rules, PL/pgSQL, SPI, or extensions
  • SQL command reference, client utilities, or server applications
  • PostgreSQL 16 release notes, new features, or version-specific behavior

Do not use this skill for:

  • A different PostgreSQL major version when the user explicitly needs that version. Say which version you are using and offer to switch docs if needed.
  • Application framework ORM configuration unless the question is specifically about PostgreSQL behavior or SQL.
  • Managed cloud database console operations when the question is about provider-specific UI rather than PostgreSQL docs.
  • Non-PostgreSQL databases such as MySQL, SQLite, or MongoDB.

Workflow

1. Classify the request

Decide which bucket the question belongs to before searching:

  • Getting started or tutorials
  • SQL language and data modeling
  • Query writing and performance
  • Server administration and configuration
  • Security, roles, and authentication
  • Backup, restore, and reliability
  • Replication and high availability
  • Monitoring and troubleshooting
  • Client interfaces and drivers
  • Server programming and extensions
  • SQL or utility reference
  • Internals, limits, or appendix material

Read the full file on GitHub · 111 lines

Files

What ships with it

2 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. 3d ago First seen · 111 lines · 81 tokens per session scan A e3d5adedd2ef

Subscribe to this mod's changes

postgresql-16-docs is a skill published in the GitHub repository cookieMonsterDev/agents-skills (4 stars, last pushed 14d ago), licensed MIT. It adds 81 tokens to every session and 1,239 once invoked, about $0.0004 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

postgres-drizzle

Proactively apply when creating APIs, backends, or data models. Triggers on PostgreSQL, Postgres, Drizzle, drizzle-orm, drizzle-kit, database, schema, pgTable, tables, columns, indexes, queries, migrations, ORM, relations, relational queries, joins, transactions, SQL, connection pooling, PgBouncer, N+1, JSONB, RLS…

ccheney/robust-skills · 119 tokens

postgresql-review

PostgreSQL query review, optimalisering og beste praksis for Nav-applikasjoner.

navikt/copilot · 21 tokens

postgresql

PostgreSQL schema design, query optimization, indexing, and administration. Use when working with PostgreSQL, JSONB, partitioning, RLS, CTEs, window functions, or EXPLAIN ANALYZE.

iliaal/ai-skills · 48 tokens

okf-postgresql

PostgreSQL connector that produces and ingests Open Knowledge Format (OKF) bundles from database schemas and table/column descriptions. Use when documenting or cataloging a PostgreSQL database, extracting its schema and comments into OKF, or syncing descriptions back with COMMENT ON statements.

xSAVIKx/okf-skills · 60 tokens

drizzle-migrations

How to safely add, edit, and verify Drizzle migrations in the skills-observability backend (PostgreSQL + Drizzle ORM). Covers the schema-first generation flow, the strict monotonicity invariant of journal.json when timestamps (whose violation has silently skipped migrations in production), idempotent SQL patterns, and…

PackmindHub/skillsight · 227 tokens

encore-database

Work with PostgreSQL in Encore.ts using SQLDatabase from encore.dev/storage/sqldb — schema migrations and SQL queries.

encoredev/skills · 34 tokens