Individual skill
postgres
PostgreSQL best practices, query optimization, connection troubleshooting, and performance improvement. Load when working with Postgres databases.
.agent/skills/postgres/SKILL.md
Source commit eba65ebbb0a78c4a7fd25aab28e94966eddbca5b
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Network or broad shell
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 336
- Repository last updated
- Aug 31, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agentic-ai Repository topic
- ai Repository topic
- claude-code Repository topic
- codex Repository topic
- prd Repository topic
- ralph Repository topic
- ralph-loop Repository topic
- ralph-wiggum Repository topic
- engineering Derived category
- data Derived category
- data-databases Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 6,493 bytesreferences/backup-recovery.mddoc · 2,688 bytesreferences/index-optimization.mddoc · 2,275 bytesreferences/indexing.mddoc · 2,075 bytesreferences/memory-management-ops.mddoc · 2,782 bytesreferences/monitoring.mddoc · 3,524 bytesreferences/mvcc-transactions.mddoc · 2,302 bytesreferences/mvcc-vacuum.mddoc · 2,593 bytesreferences/optimization-checklist.mddoc · 787 bytesreferences/partitioning.mddoc · 3,014 bytesreferences/process-architecture.mddoc · 2,723 bytesreferences/ps-cli-api-insights.mddoc · 2,068 bytesreferences/ps-cli-commands.mddoc · 1,866 bytesreferences/ps-connection-pooling.mddoc · 3,194 bytesreferences/ps-connections.mddoc · 1,415 bytesreferences/ps-extensions.mddoc · 1,076 bytesreferences/ps-insights.mddoc · 3,432 bytesreferences/query-patterns.mddoc · 2,514 bytesreferences/replication.mddoc · 3,831 bytesreferences/schema-design.mddoc · 1,950 bytesreferences/storage-layout.mddoc · 2,494 bytesreferences/wal-operations.mddoc · 2,826 bytes
Read excerpt
# PlanetScale Postgres
## Generic Postgres
| Topic | Reference | Use for |
| ---------------------- | ---------------------------------------------------------------- | --------------------------------------------------------- |
| Schema Design | [references/schema-design.md](https://raw.githubusercontent.com/planetscale/database-skills/main/skills/postgres/references/schema-design.md) | Tables, primary keys, data types, foreign keys |
| Indexing | [references/indexing.md](https://raw.githubusercontent.com/planetscale/database-skills/main/skills/postgres/references/indexing.md) | Index types, composite indexes, performance |
| Index Optimization | [references/index-optimization.md](https://raw.githubusercontent.com/planetscale/database-skills/main/skills/postgres/references/index-optimization.md) | Unused/duplicate index queries, index audit |
| Partitioning | [references/partitioning.md](https://raw.githubusercontent.com/planetscale/database-skills/main/skills/postgres/references/partitioning.md) | Large tables, time-series, data retention |
| Query Patterns | [references/query-patterns.md](https://raw.githubusercontent.com/planetscale/database-skills/main/skills/postgres/references/query-patterns.md) | SQL anti-patterns, JOINs, pagination, batch queries |
| Optimization Checklist | [references/optimization-checklist.md](https://raw.githubusercontent.com/planetscale/database-skills/main/skills/postgres/references/optimization-checklist.md) | Pre-optimization audit, cleanup, readiness checks |
| MVCC and VACUUM | [references/mvcc-vacuum.md](https://raw.githubusercontent.com/planetscale/database-skills/main/skills/postgres/references/mvcc-vacuum.md) | Dead tuples, long transactions, xid wraparound prevention |