
Postgresql
This walks Claude through PostgreSQL schema design with opinionated best practices baked in. It covers the practical stuff: when to use BIGINT GENERATED ALWAYS AS IDENTITY versus UUID, why you need to manually index foreign keys, how to pick between JSONB and proper columns, and which data types to avoid entirely (no VARCHAR, no TIMESTAMP without timezone, no SERIAL). The normalize-first rule is solid, and the gotchas section actually explains MVCC and sequence gaps instead of glossing over them. Use this when you're designing tables from scratch or reviewing a schema for performance and maintainability. It's thorough without being academic, and it'll stop you from making the common mistakes that bite you six months later.
- skills.sh installs
- 664
- GitHub stars
- 43.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add sickn33/antigravity-awesome-skills --skill postgresql --agent claude-codeInstalls into .claude/skills of the current project.
Files
PostgreSQL Table Design
Use this skill when
- Designing a schema for PostgreSQL
- Selecting data types and constraints
- Planning indexes, partitions, or RLS policies
- Reviewing tables for scale and maintainability
Do not use this skill when
- You are targeting a non-PostgreSQL database
- You only need query tuning without schema changes
- You require a DB-agnostic modeling guide
Instructions
- Capture entities, access patterns, and scale targets (rows, QPS, retention).
- Choose data types and constraints that enforce invariants.
- Add indexes for real query paths and validate with
EXPLAIN. - Plan partitioning or RLS where required by scale or access control.
- Review migration impact and apply changes safely.
Safety
- Avoid destructive DDL on production without backups and a rollback plan.
- Use migrations and staging validation before applying schema changes.
Core Rules
Sponsors
Details
- Repository
- github.com/sickn33/antigravity-awesome-skills
- Categories
- Backend & APIs, Databases
- First seen
- Jun 3, 2026
More from sickn33/antigravity-awesome-skills
All 708- Viral Generator Builder662
- Test Fixing661
- Behavioral Modes659
- Loki Mode658
- Observability Engineer656
- Tiktok Automation648
- Aws Skills645
- Environment Setup Guide645
- Remotion Best Practices644
- Paid Ads642
- Pentest Checklist634
- Code Refactoring Tech Debt630
- Crewai630
- Api Documenter628
- Langfuse628
- Avalonia Layout Zafiro625
- Pricing Strategy621
- Email Systems616
- Backend Development Feature Development615
- Social Content615
- Cloud Architect614
- Ui Skills605
- Using Superpowers604
- Mobile Security Coder603