Postgresql
Schema design guidance for PostgreSQL covering data types, constraints, indexing, and table patterns, with explicit gotchas.
- CCM score
- 55 of 100
- skills.sh installs
- 664
- GitHub stars
- 50.5K
- last updated
- Jul 14, 2026
Own this skill? Claim it
What it does
- Covers PostgreSQL-specific schema work: data type choice, NOT NULL and constraint design, indexing, partitioning, and RLS policies
- Enforces rules such as
TIMESTAMPTZovertimestamp,NUMERICfor money,TEXToverchar(n)orvarchar(n), and identity columns overserial - Flags gotchas including unquoted identifiers,
UNIQUE NULLS NOT DISTINCTon PG15+, manual FK indexing, and sequence gaps - Designed for schema design and review on PostgreSQL, not for non-PostgreSQL databases or query tuning alone
Install
$ npx -y skills add sickn33/agentic-awesome-skills --skill postgresql -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
Details
- Repository
- github.com/sickn33/agentic-awesome-skills
- Category
- Databases
- First seen
- Jun 3, 2026
More from sickn33/agentic-awesome-skills
All 682- 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
Similar to Postgresql
More Databasesdatabase-designsickn33/agentic-awesome-skills2.3K installsDecision-focused guide for choosing databases, ORMs, and schema designs, with indexing and migration guidance for each choice.
design-postgres-tablestimescale/pg-aiguide685 installsOpinionated PostgreSQL table-design reference covering data types, constraints, indexing, JSONB, and partitioning.
postgres-best-practicessickn33/agentic-awesome-skills361 installsCurated Postgres performance and schema rules across 8 prioritized categories for writing and reviewing queries.
schema-consistency-checkerpatricio0312rev/skills266 installsAudits database schemas for naming, type, nullability, and constraint violations with fix recommendations.