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 agentmods add skills/vikasudasi/skill-vault/postgres-sql-fundamentalsnpx skills add vikasudasi/skill-vault --skill postgres-sql-fundamentalsgit clone --depth 1 https://github.com/vikasudasi/skill-vaultWrote 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/vikasudasi/skill-vault/postgres-sql-fundamentals)<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/postgres-sql-fundamentals"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/postgres-sql-fundamentals.svg" alt="Measured on agentmods" 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 | $0.00038 | $0.01402 |
| Opus 5 | $0.00019 | $0.00701 |
| Sonnet 5 | $0.00008 | $0.00280 |
| Haiku 4.5 | $0.00004 | $0.00140 |
Grade A, and why
postgres-sql-fundamentals 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PostgreSQL Fundamentals (When You Outgrow SQLite)
Use when a single-file SQLite DB hits its ceilings — concurrent writes, a shared
server with many clients, or multi-process isolation — and you move to a networked
Postgres. This is the Postgres counterpart to Skill Vault's sqlite-optimization;
where that skill tunes a single file, this one runs a real server with
connections, roles, and a query planner.
SQLite → Postgres decision table
| concern | SQLite | Postgres |
|---|---|---|
| concurrency | single writer, WAL-readers | MVCC: concurrent reads+writers |
| deployment | embedded, one file | server, clients connect over TCP |
| data types | flexible/affinity | strict, rich (arrays, JSONB, enum) |
| migration | ad-hoc | real migrations, DDL transactions |
| backups | file copy / .backup |
pg_dump / WAL + PITR |
| user management | none | roles, grants, row-level security |
Reach for Postgres when you have real concurrent writers, multiple app instances, or need production guarantees. For a single-user local tool, SQLite (WAL) is still the right call.
psql basics
psql "postgresql://user:pass@host:5432/db"
| command | purpose |
|---|---|
\l |
list databases |
\dt |
list tables |
\d table |
describe table + indexes |
\d+ table |
detailed (incl. sizes) |
\x |
expanded output (friendly) |
\timing |
show query time |
\q |
quit |
Connect with a URL or named database; use PGPASSWORD/~/.pgpass rather than
typing secrets at the prompt in logs.
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.
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.
- 4d ago First seen · 132 lines · 38 tokens per session scan A 207ae775482a
postgres-sql-fundamentals is a skill published in the GitHub repository vikasudasi/skill-vault (0 stars, last pushed 19d ago), licensed Apache-2.0. It adds 38 tokens to every session and 1,402 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-31.
Other skills, from other repositories
database-patterns
Database design and migration patterns for Alembic migrations, schema design (SQL/NoSQL), and database versioning. Use when creating migrations, designing schemas, normalizing data, managing database versions, or handling schema drift.
postgis
Use when extending PostgreSQL with spatial data types, spatial indexes (GiST/SP-GiST), geometry functions (STIntersects, STBuffer, STTransform), and spatial queries. PostGIS: the most widely used open-source spatial database extension.
PostgreSQL
PostgreSQL 17.x — data types, DDL, DML, queries, indexes, full text search, concurrency, performance, functions.
postgresql-expert
Expert-level PostgreSQL database administration, advanced queries, performance tuning, and production operations.
postgresql
Skill "postgresql" from chaterm/terminal-skills, covering postgresql 数据库管理, 概述, 连接管理, 本地连接 and 远程连接.
PostgreSQL Database Administration
Comprehensive PostgreSQL database administration skill for customer support tech enablement, covering database design, optimization, performance tuning, backup/recovery, and advanced query techniques.