Pgpm Sql Conventions
Ensures SQL queries adhere to PostgreSQL best practices for readability and maintainability, improving code quality and collaboration.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add pgpm-sql-conventions npx -- -y @trustedskills/pgpm-sql-conventions
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"pgpm-sql-conventions": {
"command": "npx",
"args": [
"-y",
"@trustedskills/pgpm-sql-conventions"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill ensures SQL queries adhere to PostgreSQL's naming and formatting conventions. It automatically applies consistent capitalization, uses underscores for multi-word identifiers, and enforces other best practices. The goal is improved readability, maintainability, and consistency across database schemas and scripts.
When to use it
- Generating new SQL code: Automatically format newly created tables, views, or stored procedures.
- Refactoring existing SQL: Standardize the formatting of legacy SQL codebases for better clarity.
- Collaborative development: Enforce consistent coding standards across a team working on PostgreSQL databases.
- Automated database deployments: Guarantee that deployment scripts adhere to established conventions.
Key capabilities
- Automatic capitalization of keywords and identifiers.
- Replacement of spaces with underscores in identifiers (e.g.,
first namebecomesfirst_name). - Enforcement of PostgreSQL naming conventions for objects.
Example prompts
- "Format this SQL query:
SELECT * FROM First Name WHERE Last_Name = 'Smith'" - "Generate a table creation statement for a table called 'Customer Details' adhering to PostgreSQL conventions."
- “Standardize the formatting of this SQL script.”
Tips & gotchas
This skill requires access to the SQL code being processed. It is most effective when integrated into an automated workflow or used as part of a larger development pipeline.
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.