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 ynulihao-postgresql-table-design npx -- -y @trustedskills/ynulihao-postgresql-table-design
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"ynulihao-postgresql-table-design": {
"command": "npx",
"args": [
"-y",
"@trustedskills/ynulihao-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, ensuring proper data types and constraints are included. The agent can also help optimize existing table designs for performance or clarity.
When to use it
- You need to create a new database table but aren't sure how to structure it.
- You want to review an existing PostgreSQL table design for potential improvements.
- You require assistance in selecting appropriate data types and constraints for your columns.
- You are migrating a schema from another database system and need help adapting it to PostgreSQL.
Key capabilities
- Generates
CREATE TABLESQL statements. - Suggests appropriate data types based on descriptions.
- Includes constraint suggestions (e.g., primary keys, foreign keys).
- Optimizes existing table designs.
Example prompts
- "Create a PostgreSQL table for storing customer information with fields for name, email, and address."
- "Review this SQL
CREATE TABLEstatement and suggest improvements: [SQL Statement]" - "I need to store product data including name, price, and category. What would be a good table design?"
Tips & gotchas
The skill requires a basic understanding of database concepts and PostgreSQL syntax for optimal results. Providing clear and detailed descriptions of the desired table structure will yield more accurate and useful suggestions.
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.