Postgresql Table Design
Helps with PostgreSQL, design as part of working with databases and data persistence workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add postgresql-table-design npx -- -y @trustedskills/postgresql-table-design
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"postgresql-table-design": {
"command": "npx",
"args": [
"-y",
"@trustedskills/postgresql-table-design"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill helps design PostgreSQL tables by generating schema definitions based on user requirements. It supports defining columns, data types, constraints, and relationships between tables. The output is typically in SQL format, ready to be executed in a PostgreSQL environment.
When to use it
- You need to create a new database schema from scratch.
- You want to refine an existing table structure for better performance or normalization.
- You're working on a project that requires multiple related tables with foreign key relationships.
- You’re preparing a prototype and need quick, accurate SQL definitions.
Key capabilities
- Generates normalized table schemas
- Supports common PostgreSQL data types (e.g.,
VARCHAR,DATE,BOOLEAN) - Includes constraints like
PRIMARY KEY,FOREIGN KEY, andUNIQUE - Handles relationships between tables
Example prompts
- "Design a table for storing user information with email, name, and registration date."
- "Create a normalized schema for an e-commerce system including users, products, and orders."
- "Generate SQL to create a table for tracking blog posts with title, content, and author reference."
Tips & gotchas
- Provide clear details about the data you want to store; vague prompts may lead to incomplete schemas.
- Review generated SQL for compatibility with your specific PostgreSQL version.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.