Zum Inhalt springen
Skillpedia
Datenbanken29k · #9792

dbx

Was er macht

Dieser Skill lässt einen KI-Agenten das Kommandozeilenwerkzeug DBX nutzen, um Datenbankschemata anzusehen, sichere, nur lesende Abfragen auszuführen und Schema-Dokumentation zu erzeugen. Er ist für Menschen, die DBX schon nutzen und wollen, dass ein Agent sicher mit ihren Datenbanken arbeitet.

Wann du ihn nutzt

  • ✓Wenn du willst, dass ein Agent ein Datenbankschema erkundet oder eine Frage aus den Daten beantwortet.
  • ✓Wenn du eine Dokumentation oder ein DBML-Diagramm aus einer Datenbank erzeugen willst.
  • ✓Wenn du eine Tabelle zur Prüfung in DBX Desktop öffnen willst.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/t8y2/dbx/blob/main/skills/dbx/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Sieh dir meine Verkaufsdatenbank an und sag mir, wie viele Bestellungen letzten Monat eingegangen sind, mit nur lesenden Abfragen.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent listet deine DBX-Verbindungen auf, untersucht das Schema und führt begrenzte, nur lesende Abfragen über das DBX-Werkzeug aus. Schreibende Vorgänge sind blockiert, außer du genehmigst genau diese Operation ausdrücklich.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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.
Häufige Fragen

Kann der Agent meine Daten ändern?

Standardmäßig nicht. Abfragen sind nur lesend, und schreibende Vorgänge brauchen die ausdrückliche Genehmigung genau dieser Operation.

Werden meine Verbindungspasswörter angezeigt?

Nein. Die Verbindungsliste lässt Geheimnisse weg.

Was ist, wenn mehrere Verbindungen passen könnten?

Der Agent fragt dich, welche Verbindung er nutzen soll.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
29k
Platz im Ranking
#9792
Lizenz
Apache-2.0
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Ähnliche Skills