← All skills
Tencent SkillHub · Data Analysis

PostgreSQL Database

PostgreSQL 数据库操作技能。用于执行SQL查询、表管理、备份恢复、性能监控等数据库操作。触发条件:用户提到 PostgreSQL、postgres、数据库查询、SQL查询、表结构、数据库备份等。

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

PostgreSQL 数据库操作技能。用于执行SQL查询、表管理、备份恢复、性能监控等数据库操作。触发条件:用户提到 PostgreSQL、postgres、数据库查询、SQL查询、表结构、数据库备份等。

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, references/postgres_commands.md, scripts/backup.py, scripts/query.py, scripts/schema_export.py

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 10 sections Open source page

Overview

This skill provides comprehensive PostgreSQL database operations including query execution, schema management, backup/restore, and performance monitoring.

1. SQL Query Execution (scripts/query.py)

Execute SQL queries against PostgreSQL databases with support for: SELECT queries with result formatting INSERT/UPDATE/DELETE operations Transaction support Query result export (JSON, CSV)

2. Schema Export (scripts/schema_export.py)

Export database schema information: Table structures (columns, types, constraints) Indexes and foreign keys Views and triggers Export to JSON/Markdown format

3. Database Backup (scripts/backup.py)

Database backup and restore operations: Full database backup using pg_dump Table-specific backup Point-in-time recovery support Backup rotation management

4. Performance Monitoring

Monitor database performance: Query execution plans (EXPLAIN ANALYZE) Index usage statistics Table size and row counts Connection pool status

Query Database

python scripts/query.py --dbname mydb --query "SELECT * FROM users LIMIT 10"

Export Schema

python scripts/schema_export.py --dbname mydb --output schema.json

Backup Database

python scripts/backup.py --dbname mydb --backup-dir /backups

Requirements

PostgreSQL client tools (psql, pg_dump) Python 3.7+ psycopg2 or asyncpg library

Configuration

Set environment variables: PGHOST - Database host PGPORT - Database port (default: 5432) PGDATABASE - Database name PGUSER - Database user PGPASSWORD - Database password

Category context

Data access, storage, extraction, analysis, reporting, and insight generation.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
3 Scripts2 Docs
  • SKILL.md Primary doc
  • references/postgres_commands.md Docs
  • scripts/backup.py Scripts
  • scripts/query.py Scripts
  • scripts/schema_export.py Scripts