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 herdiansah-postgresql-table-design npx -- -y @trustedskills/herdiansah-postgresql-table-design
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"herdiansah-postgresql-table-design": {
"command": "npx",
"args": [
"-y",
"@trustedskills/herdiansah-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 provided descriptions or requirements, ensuring proper data types and constraints are included. The skill aims to produce efficient and well-structured table designs suitable for various database applications.
When to use it
- You need to create a new table in your PostgreSQL database but aren't sure about the optimal schema.
- You have a description of data you want to store, and require SQL code to represent it as a relational table.
- You are refactoring an existing database and need assistance designing improved tables.
- You’re prototyping a new application and need quick generation of initial database schemas.
Key capabilities
- Generates
CREATE TABLEstatements - Suggests appropriate data types
- Incorporates constraints (e.g., primary keys, foreign keys)
Example prompts
- "Create a table to store customer information with fields for name, email, and address."
- "Design a PostgreSQL table for products, including product ID, name, price, and category.”
- “Generate SQL code for a table representing orders, linked to customers and products.”
Tips & gotchas
The skill’s output is intended as a starting point. Review the generated SQL carefully and adjust it based on your specific needs and database design principles.
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.