← Back to Skills Marketplace
liuzongwen

postgres-tool

by liuzongwen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
135
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install postgres-tool
Description
PostgreSQL database management tool for querying databases, exporting results, inspecting schemas, and safely performing UPDATE/DELETE operations with automa...
Usage Guidance
This skill appears to do what it claims, but review the following before installing: 1) Remove or replace the bundled config/db_config.json — do not leave plaintext credentials in the package or deploy it as-is to production. 2) Be aware the scripts auto-load db_config.json from your current working directory first — ensure no sensitive db_config.json exists in any directories where the agent may run. 3) Inspect scripts/postgres_tool.py to confirm backup locations and restore behavior meet your policies (it writes backups under the skill directory). 4) Only install dependencies from trusted sources (the repo expects local wheel files or pip installs). 5) Run the skill in an isolated/test environment first and confirm interactive confirmation behavior (input prompts) or adjust automation flags (like --force) carefully. If you want a higher assurance, ask the author to remove default credentials and require explicit config or environment variables for DB access.
Capability Analysis
Type: OpenClaw Skill Name: postgres-tool Version: 1.0.0 The postgres-tool skill bundle is a legitimate database management utility designed for PostgreSQL operations, including querying, schema inspection, and data modification. The primary script, scripts/postgres_tool.py, implements robust safety features such as automatic CSV backups before UPDATE/DELETE operations and mandatory user confirmation. The bundle includes extensive documentation for safe usage (SAFETY_GUIDE.md) and offline deployment (OFFLINE_DEPLOYMENT_GUIDE.md), and its diagnostic tool (scripts/diagnose_deps.py) only performs standard environment checks. No evidence of data exfiltration, malicious execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description, scripts, and docs align with a Postgres management utility (querying, export, schema inspection, safe UPDATE/DELETE with backups). There are no unexpected external-service credentials or unrelated binaries requested. However the package includes a config/db_config.json with plaintext credentials (127.0.0.1:5432, user postgres, password postgres) bundled into the repo — reasonable for examples but potentially dangerous if left in production deployments.
Instruction Scope
SKILL.md instructs the agent to invoke the packaged scripts directly and explicitly says the scripts will 'automatically search and load' db_config.json without user-specified path. The implementation searches the current working directory first, then skill/config, then skill root — meaning the skill may read a db_config.json anywhere the agent runs (potentially picking up sensitive local configs). The instructions do not ask the agent to access unrelated system files or external endpoints, but the implicit auto-load behavior increases the chance of unintended credential use/exposure.
Install Mechanism
No install spec in registry; installation is manual (pip install or offline wheels). All dependency instructions use standard pip and local wheel directories; there are no downloads from unknown URLs or extract-from-remote steps in the bundle. The offline install scripts are local and expected for an internal/offline workflow.
Credentials
The skill declares no required env vars or primary credential, but the code expects a db_config.json file containing DB credentials. Shipping a plaintext config with default admin-like credentials inside the package (config/db_config.json) is disproportionate and risky. The design relies on file-based credentials instead of declared environment variables, and the auto-search across working directories increases the likelihood of loading unintended/sensitive credentials. Requiring DB credentials is reasonable for the tool's purpose, but how they are provided (and the bundled example credentials) should be reviewed.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and will only write backups into its own SKILL_ROOT/backups directory. It can run autonomously by default (normal), but it does not request elevated system-wide privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install postgres-tool
  3. After installation, invoke the skill by name or use /postgres-tool
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of postgres-tool. - Provides safe PostgreSQL database management: query, export, inspect schema, UPDATE/DELETE with automatic backup and recovery. - Supports offline and online dependency installation, with troubleshooting guidance. - Includes scripts for SELECT, schema browsing, exporting data to CSV/Excel, and recovery from backups. - Implements safety checks: confirmation for data modifications, previews, and easy rollback. - Detailed documentation for installation, usage, safety, and error handling in both English and Chinese.
Metadata
Slug postgres-tool
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is postgres-tool?

PostgreSQL database management tool for querying databases, exporting results, inspecting schemas, and safely performing UPDATE/DELETE operations with automa... It is an AI Agent Skill for Claude Code / OpenClaw, with 135 downloads so far.

How do I install postgres-tool?

Run "/install postgres-tool" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is postgres-tool free?

Yes, postgres-tool is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does postgres-tool support?

postgres-tool is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created postgres-tool?

It is built and maintained by liuzongwen (@liuzongwen); the current version is v1.0.0.

💬 Comments