public-postgres-expert-base

public-postgres-expert-base is a skill for Claude Code, Codex from seed-forge/harness-ai-kit. It costs 57 tokens per session (696 once invoked), scanned A, original, Apache-2.0.

A reference guide to PostgreSQL, a relational database that stores structured data in tables. It covers table design, indexes, JSONB data, partitioning, and database extensions.

In plain words
What is it for?
Choosing data types and primary keys, designing indexes, storing flexible JSON data, partitioning large tables, and selecting PostgreSQL extensions.
Why use it?
It gives another skill a shared set of PostgreSQL design principles and terminology for planning or reviewing database work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Choosing data types and primary keys, designing indexes, storing flexible JSON data, partitioning large tables, and selecting PostgreSQL extensions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seed-forge/harness-ai-kit/public-postgres-expert-base
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.

Any agent
npx skills add seed-forge/harness-ai-kit --skill public-postgres-expert-base
Clone the repo
git clone --depth 1 https://github.com/seed-forge/harness-ai-kit

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 public-postgres-expert-base

README.md
[![agentmods](https://agentmods.dev/badge/skills/seed-forge/harness-ai-kit/public-postgres-expert-base/github.svg)](https://agentmods.dev/skills/seed-forge/harness-ai-kit/public-postgres-expert-base)
Your own site
<a href="https://agentmods.dev/skills/seed-forge/harness-ai-kit/public-postgres-expert-base"><img src="https://agentmods.dev/badge/skills/seed-forge/harness-ai-kit/public-postgres-expert-base/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for public-postgres-expert-base

Your own site · 80×15
<a href="https://agentmods.dev/skills/seed-forge/harness-ai-kit/public-postgres-expert-base"><img src="https://agentmods.dev/badge/skills/seed-forge/harness-ai-kit/public-postgres-expert-base.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 696 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00057 $0.00696
Opus 5.5 $0.00023 $0.00278
Sonnet 5.5 $0.00011 $0.00139
Haiku 4.5 $0.00006 $0.00070

Measured 3mo ago against content hash fe1582ef4bcb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

public-postgres-expert-base 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 3mo 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/public-postgres-expert-base/SKILL.md · 62 lines

How it starts

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

PostgreSQL Knowledge Base

Source: Adapted from planetscale/database-skills (PostgreSQL skill).

Schema Design

  • Prefer BIGSERIAL or BIGINT GENERATED ALWAYS AS IDENTITY for PKs.
  • Use TIMESTAMPTZ (with timezone) over TIMESTAMP.
  • TEXT and VARCHAR have similar performance in PostgreSQL — prefer TEXT unless length constraint is meaningful.
  • Use NUMERIC for money, never FLOAT/REAL.
  • JSONB (binary) over JSON (text) for structured data.

Indexing

Type Use for
B-Tree (default) Equality, range, sorting
GIN JSONB, fulltext, arrays, containment
GiST Geometry, range types, nearest-neighbor
BRIN Sequential data (timestamps, IDs) on large tables
Hash Equality only (rarely needed)
  • Partial indexes: CREATE INDEX ... WHERE condition — index only relevant rows.
  • Expression indexes: CREATE INDEX ... ON t (lower(name)).
  • Covering indexes: INCLUDE (col1, col2) for index-only scans.
  • CONCURRENTLY for creating indexes without blocking writes.

JSONB

  • Store structured, semi-structured, or variable-schema data.
  • Index with GIN: CREATE INDEX ... USING GIN (data jsonb_path_ops).
  • Query: data->>'key' (text), data->'key' (jsonb), data @> '{"key": "val"}' (containment).
  • Generated columns for frequently queried JSONB paths.

Partitioning

  • Declarative partitioning (range, list, hash) for large tables.
  • Partition key must be part of every unique/PK constraint.
  • ATTACH PARTITION / DETACH PARTITION for maintenance.
  • Partition pruning: queries automatically skip irrelevant partitions.

Extensions

  • pg_trgm: trigram similarity for fuzzy search.
  • pgvector: vector similarity search (AI/embeddings).
  • pg_stat_statements: query performance analysis.
  • uuid-ossp: UUID generation.
  • postgis: geospatial data.

Connection Management

  • Use connection pooling (PgBouncer) — PostgreSQL connections are expensive (~5-10 MB each).
  • Pool sizing: start with 2 * CPU cores + 1.
  • Use prepared_statements for parameterized queries.
  • Set statement_timeout to prevent runaway queries.

Read the full file on GitHub · 62 lines

Files

What ships with it

3 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. 3mo ago First seen · 62 lines · 57 tokens per session scan A fe1582ef4bcb

Subscribe to this mod's changes

public-postgres-expert-base is a skill published in the GitHub repository seed-forge/harness-ai-kit (26 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 57 tokens to every session and 696 once invoked, about $0.0002 per session on Opus 5.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

public-postgres-expert-base compared with skills from other repositories

public-postgres-expert-base next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
public-postgres-expert-baseseed-forge/harness-ai-kitSkill263mo agoApache-2.0A57Claude Code, Codex
postgresql-table-designwshobson/agentsSkill43k2d agoMITA37Claude Code
database-optimizerJeffallan/claude-skillsSkill13ktodayMITA54Claude Code
postgres-proJeffallan/claude-skillsSkill13ktodayMITA41Claude Code
postgres-database-migrationtimescale/pg-aiguideSkill1.9ktodayApache-2.0A220Cursor
timescaledb-hyperfunctionstimescale/pg-aiguideSkill1.9ktodayApache-2.0A298Cursor
design-postgis-tablestimescale/pg-aiguideSkill1.9ktodayApache-2.0A31Cursor