PostgreSQL Database

A set of development patterns for connecting FreePascal or Lazarus programs to PostgreSQL, an open-source relational database. It covers SQL features such as JSON data, database changes, and text search.

In plain words
What is it for?
Use it when building applications that store data in PostgreSQL, including connection code, database migrations, reusable SQL procedures, record updates, and full-text search.
Why use it?
It gives you a consistent way to work with PostgreSQL without having to decide how to handle common database tasks from scratch.

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/delphicleancode/lazarus-spec-kit/postgresql-database
Any agent
npx skills add delphicleancode/lazarus-spec-kit --skill postgresql-database
Clone the repo
git clone --depth 1 https://github.com/delphicleancode/lazarus-spec-kit

Made for: Claude Code, Codex.

Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,400 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00040 $0.08400
Opus 5 $0.00020 $0.04200
Sonnet 5 $0.00008 $0.01680
Haiku 4.5 $0.00004 $0.00840

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

Security

Grade A, and why

PostgreSQL Database 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 2d 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.

.claude/skills/postgresql-database/SKILL.md · 1,049 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 2d ago First seen · 1,049 lines · 40 tokens per session scan A 92a46296e7d8

Subscribe to this mod's changes

PostgreSQL Database is a skill published in the GitHub repository delphicleancode/lazarus-spec-kit (17 stars, last pushed 4mo ago), with no licence file. It adds 40 tokens to every session and 8,400 once invoked, about $0.0002 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

cloud-sql-postgres-health

Use these skills when you need to audit database health, identify storage bloat, find invalid indexes, analyze table statistics, and manage maintenance configurations like autovacuum.

gemini-cli-extensions/cloud-sql-postgresql · 40 tokens

cloud-sql-postgres-vectorassist

Use these skills to set up and optimize production-ready vector workloads by simply expressing your intent and performance requirements.

gemini-cli-extensions/cloud-sql-postgresql · 29 tokens

cloud-sql-postgres-data

Use these skills when you need to explore the database structure, discover schema objects like views or stored procedures, and execute custom SQL queries to interact with your data.

gemini-cli-extensions/cloud-sql-postgresql · 39 tokens

cloud-sql-postgres-admin

Use these skills when you need to provision new Cloud SQL instances, create databases and users, clone existing environments, and monitor the progress of long-running operations.

gemini-cli-extensions/cloud-sql-postgresql · 38 tokens

cloud-sql-postgres-lifecycle

Use these skills when you need to manage the lifecycle of your instances, including performing backups and restores, checking major version upgrade compatibility, and monitoring overall instance status.

gemini-cli-extensions/cloud-sql-postgresql · 40 tokens

cloud-sql-postgres-replication

Use these skills when you need to monitor replication health, manage sync states between nodes, and audit database roles and security settings to ensure environment integrity.

gemini-cli-extensions/cloud-sql-postgresql · 38 tokens