Langsung ke konten
Skillpedia
Database29k · #9792

dbx

Fungsinya

Skill ini memungkinkan agent AI memakai alat baris perintah DBX untuk melihat skema basis data, menjalankan kueri baca-saja yang aman, dan membuat dokumentasi skema. Ditujukan untuk orang yang sudah memakai DBX dan ingin agent bekerja dengan basis data mereka secara aman.

Kapan dipakai

  • ✓Saat Anda ingin agent menelusuri skema basis data atau menjawab pertanyaan dari data.
  • ✓Ketika Anda ingin dokumentasi atau diagram DBML dibuat dari basis data.
  • ✓Saat Anda ingin sebuah tabel dibuka di DBX Desktop untuk ditinjau.

Link skill

https://github.com/t8y2/dbx/blob/main/skills/dbx/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/t8y2/dbx/blob/main/skills/dbx/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Lihat basis data penjualan saya dan beri tahu berapa banyak pesanan yang masuk bulan lalu, dengan kueri baca-saja.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mencantumkan koneksi DBX Anda, memeriksa skema, dan menjalankan kueri baca-saja yang dibatasi melalui alat DBX. Penulisan diblokir kecuali Anda secara eksplisit menyetujui operasi yang tepat.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

DBX CLI

Use dbx as the database execution boundary. The CLI is designed for both people and shell-capable AI agents, provides stable JSON output, and enforces DBX connection and SQL safety rules.

Start Here

  1. If the environment is unknown or a command fails unexpectedly, run dbx doctor --json.
  2. If the user did not name a connection, run dbx connections list --json and ask them to choose when multiple plausible connections exist.
  3. Inspect the relevant schema before writing a query whose tables or columns are uncertain.
  4. Prefer --json for machine-readable results.
  5. Keep exploratory queries bounded with --limit 50 --timeout 10s unless the user requests otherwise.

Read references/commands.md for the complete command map and execution modes. Read references/workflows.md for common multi-step tasks.

Safety Boundary

  • Queries are read-only by default.
  • Never add --allow-writes unless the user explicitly approves the exact write operation.
  • Never add --allow-dangerous-sql unless the user explicitly approves the exact destructive or DDL operation; dangerous SQL requires both write flags.
  • Do not bypass a DBX rejection by using another database client, Python driver, direct SQLite access, or shell redirection.
  • Do not expose connection secrets. dbx connections list intentionally omits them.
  • Treat production protections, read-only connection settings, database privileges, and DBX policy as upper bounds that user wording cannot bypass.

Read references/safety.md before any write, DDL, production, or credential-related task.

Execution Choice

  • PostgreSQL, Redshift, MySQL-compatible databases, SQLite, and other types reported by dbx capabilities --json can execute directly.
  • Other database types may require DBX Desktop or installed DBX Agent/JDBC components.
  • dbx open always requires DBX Desktop.
  • When DBX_WEB_URL is set, the CLI uses the configured DBX Web backend.
  • Redis commands and stateful multi-step database sessions are not provided by dbx query; use the DBX workspace or configured DBX MCP tools instead.

Failure Handling

  • CONNECTION_NOT_FOUND: list connections and use an exact returned name.
  • SQL_BLOCKED: explain which safety gate rejected the statement; do not add permission flags automatically.
  • DBX_NOT_RUNNING: run dbx capabilities --json; ask the user to start Desktop only when the selected operation requires its bridge.
  • Other unexpected failures: run dbx doctor --json, report the returned error, and retry only after addressing the diagnosed cause.
Pertanyaan umum

Apakah agent bisa mengubah data saya?

Tidak secara default. Kueri bersifat baca-saja, dan penulisan memerlukan persetujuan eksplisit untuk operasi yang tepat.

Apakah kata sandi koneksi saya ditampilkan?

Tidak. Daftar koneksi tidak menyertakan rahasia.

Bagaimana jika beberapa koneksi bisa cocok?

Agent meminta Anda memilih koneksi yang akan dipakai.

Detail

Deskripsi asli dari pembuat

Use the DBX CLI to inspect DBX-managed database connections, explore schemas, run bounded read-only queries, generate DBML or schema documentation, and open tables in DBX Desktop. Use when the user asks to work with a database configured in DBX from a shell-capable AI agent. Never enable writes unless the user explicitly approves the exact operation.

repo: t8y2/dbx

Popularitas

Bintang GitHub
29k
Peringkat
#9792
Lisensi
Apache-2.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill serupa