Saltar al contenido
Skillpedia
Bases de datos29 mil · #9792

dbx

Qué hace

Permite que un agente de IA use la herramienta de línea de comandos DBX para revisar esquemas de bases de datos, ejecutar consultas seguras de solo lectura y generar documentación de esquemas. Es para personas que ya usan DBX y quieren que un agente trabaje con sus bases de datos de forma segura.

Cuándo usarla

  • ✓Cuando quieres que un agente explore el esquema de una base de datos o responda una pregunta con los datos.
  • ✓Cuando quieres documentación o un diagrama DBML generado a partir de una base de datos.
  • ✓Cuando quieres abrir una tabla en DBX Desktop para revisarla.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/t8y2/dbx/blob/main/skills/dbx/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Revisa mi base de datos de ventas y dime cuántos pedidos se hicieron el mes pasado, usando solo consultas de lectura.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente enumera tus conexiones de DBX, inspecciona el esquema y ejecuta consultas limitadas de solo lectura con la herramienta DBX. Las escrituras se bloquean salvo que apruebes explícitamente la operación exacta.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes

¿Puede el agente cambiar mis datos?

No por defecto. Las consultas son de solo lectura, y las escrituras necesitan una aprobación explícita de la operación exacta.

¿Se muestran mis contraseñas de conexión?

No. La lista de conexiones omite los secretos.

¿Qué pasa si varias conexiones podrían coincidir?

El agente te pide que elijas qué conexión usar.

Detalles

Descripción original del 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

Popularidad

Estrellas en GitHub
29 mil
Posición en el ranking
#9792
Licencia
Apache-2.0
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Skills parecidas