Skip to content
Databases
Skill

/dbx

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.

From plugin
dbx
31k1 skill6 agents

Claude Code

$ npx -y skills add t8y2/dbx --skill dbx --agent claude-code

SKILL.md

dbx.SKILL.md
name: dbx
version: 1.1.0
description: "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."
metadata:
  requires:
    bins: ["dbx"]
  cliHelp: "dbx --help"

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](references/commands.md) for the complete command map and execution modes. Read [references/workflows.md](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](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.
Read more
@t8y2
Ships withdbx

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

31k1 skill6 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
30.6k
Star history of t8y2/dbx on GitHub, a chart by star-history.com

More skills from other plugins.

docsite-link-sweep

docsite-link-sweep

Sweep the googleapis/mcp-toolbox docs for broken and non-canonical links, report each finding with its cause, and apply the safe…

mcp-toolboxtoday17k
@googleapis@googleapisInstall Skill
query-builder

query-builder

Convert natural language questions into SQL queries. Activates when users ask data questions in plain English like "show me users…

whodb1d5.1k
@clidey@clideyInstall Skill

Questions about dbx.

Which coding agents can use dbx?
dbx installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.