← 返回 Skills 市场
postgres-tool
作者
liuzongwen
· GitHub ↗
· v1.0.0
· MIT-0
135
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install postgres-tool
功能描述
PostgreSQL database management tool for querying databases, exporting results, inspecting schemas, and safely performing UPDATE/DELETE operations with automa...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install postgres-tool - 安装完成后,直接呼叫该 Skill 的名称或使用
/postgres-tool触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
postgres-tool 是什么?
PostgreSQL database management tool for querying databases, exporting results, inspecting schemas, and safely performing UPDATE/DELETE operations with automa... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 135 次。
如何安装 postgres-tool?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install postgres-tool」即可一键安装,无需额外配置。
postgres-tool 是免费的吗?
是的,postgres-tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
postgres-tool 支持哪些平台?
postgres-tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 postgres-tool?
由 liuzongwen(@liuzongwen)开发并维护,当前版本 v1.0.0。
推荐 Skills