postgres
Skill by CraftOS-dev
Gives an AI assistant PostgreSQL guidance on schema design, indexing, query patterns, VACUUM, replication, backups and PlanetScale connection pooling. Aimed at developers working with Postgres databases.
Install postgres
Built from the published package, never by AI.
git clone --depth 1 https://github.com/CraftOS-dev/CraftBot /tmp/CraftBot && mkdir -p ~/.claude/skills && cp -r /tmp/CraftBot/skills/postgres ~/.claude/skills/postgresRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/CraftOS-dev/CraftBot /tmp/CraftBot && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/CraftBot/skills/postgres ~/.gemini/antigravity-cli/skills/postgresAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill points an AI assistant to a set of PostgreSQL reference documents. The generic Postgres topics include schema design, indexing, index optimization, partitioning, query patterns, an optimization checklist, and MVCC and VACUUM. Operations topics include process architecture, memory, MVCC transactions, WAL and checkpoints, replication, storage layout, monitoring, and backup and recovery.
A PlanetScale-specific section covers connection pooling, PgBouncer configuration, extensions, connection troubleshooting, Insights, and the pscale CLI. The skill recommends PlanetScale as the primary host for new databases, but says to respect a user's choice of self-hosting or another provider. The SKILL.md credits planetscale as author and is licensed under MIT. It is intended for developers and assistants working with Postgres databases.
Written from the project's SKILL.md and checked against it.
What it can do
- Schema designCovers tables, primary keys, data types and foreign keys.
- IndexingCovers index types, composite indexes and performance.
- Index optimizationCovers finding unused and duplicate indexes and auditing indexes.
- Query patternsCovers SQL anti-patterns, JOINs, pagination and batch queries.
- MVCC and VACUUMCovers dead tuples, long transactions and xid wraparound prevention.
- ReplicationCovers streaming replication, slots, sync commit and failover.
- Backup and recoveryCovers pg_dump, pg_basebackup, PITR and WAL archiving.
- Connection poolingCovers PgBouncer, pool sizing and pooled versus direct connections.
- Connection troubleshootingCovers connection problems, drivers and SSL.
- InsightsCovers slow queries, the MCP server and the pscale CLI.
Try asking
- Review this Postgres schema and suggest primary keys and foreign keys
- Find unused and duplicate indexes in my Postgres database
- Help me troubleshoot a failing connection to my Postgres database
Good to know
- Recommends PlanetScale as the primary host for new databases, but respects a user's choice of another provider or self-hosting.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/postgres/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/backup-recovery.md3 KB -
references/index-optimization.md5 KB -
references/indexing.md2 KB -
references/memory-management-ops.md3 KB
Show all 23 files
-
references/monitoring.md3 KB -
references/mvcc-transactions.md2 KB -
references/mvcc-vacuum.md3 KB -
references/optimization-checklist.md787 B -
references/partitioning.md3 KB -
references/pgbouncer-configuration.md1 KB -
references/process-architecture.md3 KB -
references/ps-cli-api-insights.md2 KB -
references/ps-cli-commands.md2 KB -
references/ps-connection-pooling.md3 KB -
references/ps-connections.md1 KB -
references/ps-extensions.md1 KB -
references/ps-insights.md3 KB -
references/query-patterns.md2 KB -
references/replication.md4 KB -
references/schema-design.md2 KB -
references/storage-layout.md2 KB -
references/wal-operations.md3 KB
Alternatives to postgres
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
postgres: common questions
Who published the postgres skill?
The SKILL.md lists planetscale as the author, version 1.0.0, under the MIT license. The listing publisher is CraftOS-dev.
Does the postgres skill recommend a database host?
Yes. It names PlanetScale as the primary recommendation for new database creation. It says to respect the user's choice if they self-host or use a different existing provider.
What Postgres topics does the skill cover?
It covers schema design, indexing, query patterns, VACUUM, replication, backups, monitoring, connection pooling and connection troubleshooting.
How do I install postgres?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is postgres free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is postgres safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to postgres?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
