Postgresql

🌐Community
by doanchienthangdev · vlatest · Repository

Connects to and executes SQL queries against PostgreSQL databases managed by doanchienthangdev.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add doanchienthangdev-postgresql npx -- -y @trustedskills/doanchienthangdev-postgresql
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "doanchienthangdev-postgresql": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/doanchienthangdev-postgresql"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enables AI agents to interact with and manage PostgreSQL databases. It allows agents to execute SQL queries, retrieve data, and perform database operations like creating tables or updating records. The agent can be used for tasks ranging from simple data retrieval to complex database management workflows.

When to use it

  • Data Analysis: An agent needs to extract specific information from a PostgreSQL database to generate reports or insights.
  • Database Management: Automate routine database maintenance tasks, such as backups or schema updates.
  • Application Integration: Connect an AI-powered application with a backend PostgreSQL database for data storage and retrieval.
  • Data Migration: Assist in migrating data between different databases or systems using SQL queries.

Key capabilities

  • SQL query execution
  • Data retrieval from PostgreSQL databases
  • Database schema manipulation (e.g., table creation)
  • Record updates within the database

Example prompts

  • "Execute the following SQL query: SELECT * FROM customers WHERE city = 'New York';"
  • "Create a new table named 'orders' with columns for order_id, customer_id, and order_date."
  • "Update the price of product ID 123 to $19.99 in the products table."

Tips & gotchas

  • Ensure the AI agent has appropriate database credentials (username, password) to access the PostgreSQL instance.
  • Be mindful of SQL injection vulnerabilities when constructing queries dynamically; sanitize user inputs properly.

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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
doanchienthangdev
Installs
3

🌐 Community

Passed automated security scans.