postgres

Execute SQL queries and manage PostgreSQL database schemas.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/zangxin75/openclaw-skills --skill postgres-zangxin75
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres
Source: https://github.com/zangxin75/openclaw-skills/tree/main/postgres
Command: npx skills add https://github.com/zangxin75/openclaw-skills --skill postgres-zangxin75

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the management of PostgreSQL databases, allowing users to execute queries, manage schemas, and monitor performance without needing deep SQL expertise.

Core Features & Use Cases

  • SQL Query Execution: Run custom SQL queries directly against your database.
  • Schema Management: Create, alter, and drop database schemas and tables.
  • Performance Monitoring: Identify and optimize slow-running queries.
  • Use Case: You need to quickly retrieve a list of all users who registered in the last month. You can ask the Skill to "Show all users registered in the last 30 days".

Quick Start

Use the postgres skill to run the query: SELECT * FROM users LIMIT 10.

Frequently Asked Questions about postgres

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I execute SQL queries against a PostgreSQL database?

To execute SQL queries against a PostgreSQL database, you can use this Skill to run custom SELECT statements directly. It manages database interaction by securely connecting via a configured DATABASE_URL environment variable to retrieve or manipulate your data.

How do I manage database schemas and tables in PostgreSQL?

Managing PostgreSQL schemas involves creating, altering, and dropping database structures. This Skill handles schema management tasks directly, allowing you to modify table structures and organize your database schema without needing deep SQL expertise.

Can I monitor PostgreSQL performance and identify slow queries?

You can monitor PostgreSQL performance to identify and optimize slow-running queries. The Skill provides performance monitoring capabilities to help you analyze query execution, pinpoint bottlenecks, and streamline database operations.

Do I need a specific environment setup to manage PostgreSQL databases?

Yes, managing PostgreSQL databases with this Skill requires a configured DATABASE_URL environment variable. This secure connection string is necessary for executing commands, running queries, and performing administrative tasks.

What is the best way to retrieve recent records from a PostgreSQL database?

The best way to retrieve recent records from a PostgreSQL database is to run a custom SQL query. For example, you can ask the Skill to show all users registered in the last 30 days, and it will execute the query directly against your database.

Are there limitations when using this Skill for database administration?

The primary limitation for PostgreSQL database administration is the strict requirement for a DATABASE_URL environment variable. Without this secure connection configured, the Skill cannot execute SQL queries, manage schemas, or monitor performance.