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.
npx skills add dayfinggg/openai-codex-agent-skills --skill postgresgit clone --depth 1 https://github.com/dayfinggg/openai-codex-agent-skillsWrote 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.
[](https://agentmods.dev/skills/dayfinggg/openai-codex-agent-skills/postgres)<a href="https://agentmods.dev/skills/dayfinggg/openai-codex-agent-skills/postgres"><img src="https://agentmods.dev/badge/skills/dayfinggg/openai-codex-agent-skills/postgres/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.
<a href="https://agentmods.dev/skills/dayfinggg/openai-codex-agent-skills/postgres"><img src="https://agentmods.dev/badge/skills/dayfinggg/openai-codex-agent-skills/postgres.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.00394 |
| Opus 5.5 | $0.00014 | $0.00158 |
| Sonnet 5.5 | $0.00007 | $0.00079 |
| Haiku 4.5 | $0.00003 | $0.00039 |
Grade A, and why
postgres 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 today.
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.
What it actually says
Use the PostgreSQL procedure that owns the requested result. Establish the database version, connection scope, and relevant schemas before applying version-sensitive SQL.
Read host integration once when using these bundled procedures.
| Task | Read |
|---|---|
| Understand an existing database or establish query meaning | Schema exploration |
| Design tables, types, keys, constraints, or indexes | Table design |
| Plan or perform a PostgreSQL schema migration | Migration procedure |
| Design spatial data with PostGIS | PostGIS tables |
| Implement vector similarity search with pgvector | Vector search |
| Combine keyword and semantic search | Hybrid text search |
| Configure an explicitly selected TimescaleDB deployment | Hypertable setup |
| Evaluate existing tables for hypertable conversion | Candidate analysis |
| Convert tables to hypertables | Hypertable migration |
Use the complete procedure overview only when a task spans several areas and the correct ownership remains unclear.
Load the selected procedure and only its task-relevant supporting files. Preserve plain PostgreSQL when an extension has not been selected. For database-independent rollout compatibility, use the installed database-migration-rollout skill when that release work is requested.
What ships with it
25 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.
- references/backfill-strategies.md 2.3 KB
- references/complete-example.md 2.0 KB
- references/design-postgis-tables.md 16 KB
- references/design-postgres-tables.md 16 KB
- references/find-hypertable-candidates.md 9.3 KB
- references/migrate-postgres-tables-to-hypertables.md 14 KB
- references/overview.md 2.7 KB
- references/pgvector-semantic-search.md 14 KB
- references/postgres-database-migration.md 23 KB
- references/postgres-hybrid-text-search.md 11 KB
- references/schema-exploration/guide.md 3.7 KB
- references/schema-exploration/references/data-values.md 5.9 KB
- references/schema-exploration/references/extensions.md 1.8 KB
- references/schema-exploration/references/foreign-tables.md 4.0 KB
- references/schema-exploration/references/overview.md 5.9 KB
- references/schema-exploration/references/partitioning-and-inheritance.md 6.7 KB
- references/schema-exploration/references/psql.md 2.1 KB
- references/schema-exploration/references/query-authoring.md 2.1 KB
- references/schema-exploration/references/routines.md 2.9 KB
- references/schema-exploration/references/security.md 2.5 KB
- references/schema-exploration/references/tables.md 7.7 KB
- references/schema-exploration/references/triggers.md 1.6 KB
- references/schema-exploration/references/views.md 2.4 KB
- references/setup-timescaledb-hypertables.md 17 KB
- references/validation-queries.md 3.4 KB
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.
- today First seen · 26 lines · 34 tokens per session scan A 4a3b4975846f
postgres is a skill published in the GitHub repository dayfinggg/openai-codex-agent-skills (8 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 394 once invoked, about $0.0001 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-10-30.
Other skills, from other repositories
factory-data-layer
Database schema, ORM, and migration conventions across builds. Drizzle as default with domain-partitioned schema modules, shared timestamps helper, multi-tenancy keys with cascade delete, pgTableCreator prefixing, JSONB for flexible attributes, schema-derived type exports, polymorphic table patterns, ESLint Drizzle…
database-reviewer
PostgreSQL specialist for evidence-backed review of query correctness and performance, schema design, indexes, transactions and migration safety in the assigned scope.
postgresql-optimization
PostgreSQL optimization — query tuning, indexing strategies, EXPLAIN analysis, configuration, maintenance, and monitoring. Use when slow queries, missing indexes, vacuum lag, or performance bottlenecks are suspected.
db-patterns
SocialApp database patterns — pgx usage, migrations, repository layer, transactions, common queries.
review-database
Use when the user asks for a database review, SQL review, migration review, migration safety check, schema review, schema design review, query performance review, index review, connection pool review, transaction management review, "is this migration safe", "will this lock the table", or a squawk run. Applies to…
qlocalclonedb
Clone a staging tenant's database into a named local Postgres DB for realistic local testing — copies schema + data so you can reproduce issues against production-shaped data. Use before local E2E when you need real tenant data; qspinuplocal calls it when a project ships a local-DB bootstrap.