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 nilecui-postgresql-table-design npx -- -y @trustedskills/nilecui-postgresql-table-design
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"nilecui-postgresql-table-design": {
"command": "npx",
"args": [
"-y",
"@trustedskills/nilecui-postgresql-table-design"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill assists in designing PostgreSQL tables. It can generate SQL CREATE TABLE statements based on a description of the data to be stored, including specifying column names, data types, and constraints. The tool aims to produce efficient and well-structured table designs for relational databases.
When to use it
- You need to create a new database table but are unsure about optimal schema design.
- You have a description of the data you want to store and require SQL code to implement it.
- You're prototyping a database structure and need quick generation of
CREATE TABLEstatements. - You’re refactoring an existing database and want assistance in designing improved table structures.
Key capabilities
- Generates
CREATE TABLESQL statements. - Handles column name suggestions.
- Suggests appropriate data types for columns.
- Incorporates constraints (e.g., primary keys, foreign keys).
Example prompts
- "Design a table to store customer information including name, address, and order history."
- "Create a PostgreSQL table schema for products with attributes like ID, name, price, and category."
- “I need a table to track book loans from a library. Include fields for book title, borrower, due date.”
Tips & gotchas
The quality of the generated SQL depends heavily on the clarity and completeness of your description. Providing detailed information about the data being stored will lead to better table designs.
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.