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 tonyma163-postgresql-table-design npx -- -y @trustedskills/tonyma163-postgresql-table-design
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"tonyma163-postgresql-table-design": {
"command": "npx",
"args": [
"-y",
"@trustedskills/tonyma163-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, including defining column names, data types, and constraints. It can generate SQL CREATE TABLE statements based on provided requirements or descriptions of the desired table structure. The skill aims to produce efficient and well-structured database schemas suitable for various applications.
When to use it
- You need to create a new PostgreSQL table but are unsure about optimal column types or constraints.
- You have a description of data you want to store, and require SQL code to represent that in a relational database.
- You're refactoring an existing database schema and need help generating the updated
CREATE TABLEstatements. - You’re prototyping a new application and need a quick way to define your initial database structure.
Key capabilities
- Generates SQL
CREATE TABLEstatements. - Suggests appropriate PostgreSQL data types for columns.
- Defines primary keys, foreign keys, and other constraints.
- Creates table structures based on textual descriptions.
Example prompts
- "Create a table to store customer information with fields for name, email, and address."
- "Design a table called 'orders' that links to a 'customers' table and includes order date and total amount."
- "Generate SQL code for a table representing products, including product ID, name, price, and category."
Tips & gotchas
The skill’s effectiveness depends on clear and detailed descriptions of the desired table structure. Providing context about the intended use of the data will help it suggest more appropriate column types and constraints.
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.