AGENT SKILL
tool
数据库连接检查工具,用于系统运维与诊断。
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- tool
- license
- MIT
- description
- 数据库连接检查工具,用于系统运维与诊断。
02 资源文件 2
- 其他.credentials195 B
- 其他.db-config2.8 KB
03 SKILL.md 正文
Database Connection Checker
Quickly validate database connectivity and configuration sanity for common relational databases (MySQL, PostgreSQL, SQLite).
When to Use
- You need to verify that a database connection string is well-formed and reachable.
- You need to confirm required environment variables for database access are present.
- You are troubleshooting "cannot connect" errors reported by an application.
How It Works
- Locate configuration – Looks for the most common database configuration files in the project or user directory.
- Parse and sanitize – Reads the connection settings (host, port, user, database name) and checks they follow expected patterns.
- Test connectivity – Performs a lightweight TCP reachability check to the database host/port.
- Report – Summarizes findings (e.g., "host reachable", "missing password field") without printing secrets.
Usage Example
> Use the Database Connection Checker to validate my Postgres config.
The tool will:
- Scan for
.env,.db-config, and.config/db/settingsfiles. - Display a checklist of which required values exist (username, host, port, database name).
- Report whether the port is open.
Notes
- Password fields are never printed in the final report.
- If no config file is found, the tool will suggest creating
.db-configwith standard key/value pairs. - The tool respects common ignore patterns and will not recurse into subdirectories unless asked.
Output Format
Return a concise markdown table:
| Check | Status |
|--------------|----------|
| Config found | ✅ |
| Host present | ✅ |
| Port open | ✅/❌ |
| Credentials | hidden |
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
★ 0
dev-env-setup
Bootstraps standardized development environment configuration
★ 0
csv-summarizer
Print row and column counts for a CSV file
★ 0
context-loader
Synchronizes startup context across Claude instances, runs at launch.
★ 0
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
★ 0
data-processor
Process data with custom algorithms
★ 0