Postgres
Connects to and queries PostgreSQL databases using SQL, retrieving data based on user instructions.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add alemar11-postgres npx -- -y @trustedskills/alemar11-postgres
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"alemar11-postgres": {
"command": "npx",
"args": [
"-y",
"@trustedskills/alemar11-postgres"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to interact with and query PostgreSQL databases. It can execute SQL queries, retrieve data based on specified criteria, and potentially perform database management tasks. The agent can use this skill to access information stored in a structured format within the database.
When to use it
- Data Extraction: Retrieve specific records from a database for reporting or analysis. For example, "Get me all customer orders placed last month."
- Database Queries: Answer questions based on data residing in a PostgreSQL database. For instance, “What is the average price of products in the ‘electronics’ category?”
- Data Updates (with appropriate permissions): Modify data within the database, such as updating product prices or customer information. "Change the shipping address for customer ID 123."
- Database Schema Exploration: Describe the tables and columns present in a PostgreSQL database. “What tables exist in this database?”
Key capabilities
- SQL Query Execution
- Data Retrieval
- PostgreSQL Database Interaction
Example prompts
- "Run the query 'SELECT * FROM customers WHERE city = 'New York''."
- "Find all products with a price greater than $50."
- “What are the names of all columns in the ‘products’ table?”
Tips & gotchas
- Requires access to a PostgreSQL database and appropriate credentials.
- The agent needs to be properly configured with connection details for the target database.
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.