← Back to list

db-explorer
by cristianoliveira
My dotfiles for macOS and NixOS. :sunglasses: :package:
⭐ 15🍴 1📅 Jan 21, 2026
SKILL.md
name: db-explorer description: Connect to PostgreSQL, MySQL, or SQLite databases to explore schema structure, table relationships, and generate ERD diagrams. Use when the user asks to explore a database, document schema, or understand table relationships.
Database Explorer
Analyze database schema and generate Markdown documentation with Mermaid ERD diagrams.
Workflow
- Check credentials: Run
scripts/db_connect.py --check-env - If credentials missing: Ask the user for:
- Database type (postgres/mysql/sqlite)
- For SQLite: path to the .db file
- For PostgreSQL/MySQL: host, port, database name, username, password
- Test connection:
scripts/db_connect.py --test --type <type> --host <host> --database <db> --user <user> --password <pass> - Extract schema:
scripts/schema_extractor.py --output markdown --file .tmp/docs/db-schema-{dbname}.md
Environment Variables (optional)
Users can pre-set credentials to skip prompts:
- PostgreSQL:
PGHOST,PGPORT,PGDATABASE,PGUSER,PGPASSWORD - MySQL:
MYSQL_HOST,MYSQL_TCP_PORT,MYSQL_DATABASE,MYSQL_USER,MYSQL_PWD - SQLite:
SQLITE_DATABASE - Alternative:
DATABASE_URL(e.g.,postgresql://user:pass@host:5432/dbname)
Mermaid ERD Notation
||--||One-to-one||--o{One-to-many||--|{One-to-many (required)
Security
- Never log or echo passwords in output
- Query system tables only, never user data
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon




