Pular para o conteúdo
Skillpedia
Bancos de dados29 mil · #9792

dbx

O que ela faz

Ela permite que um agente de IA use a ferramenta de linha de comando DBX para ver esquemas de banco de dados, executar consultas seguras somente leitura e gerar documentação de esquemas. É para quem já usa o DBX e quer que um agente trabalhe com os bancos de forma segura.

Quando usar

  • ✓Quando você quer que um agente explore o esquema de um banco ou responda uma pergunta com base nos dados.
  • ✓Quando você quer uma documentação ou um diagrama DBML gerado a partir de um banco.
  • ✓Quando você quer uma tabela aberta no DBX Desktop para revisão.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/t8y2/dbx/blob/main/skills/dbx/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Dê uma olhada no meu banco de vendas e me diga quantos pedidos foram feitos no mês passado, usando apenas consultas somente leitura.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente lista suas conexões do DBX, inspeciona o esquema e executa consultas somente leitura limitadas pela ferramenta DBX. Gravações ficam bloqueadas, a menos que você aprove explicitamente a operação exata.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.
Perguntas frequentes

O agente pode alterar meus dados?

Não por padrão. As consultas são somente leitura, e gravações precisam de aprovação explícita da operação exata.

As senhas das minhas conexões aparecem?

Não. A lista de conexões deixa de fora os segredos.

E se várias conexões puderem combinar?

O agente pede que você escolha qual conexão usar.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
29 mil
Posição no ranking
#9792
Licença
Apache-2.0
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Skills parecidas