본문으로 건너뛰기
Skillpedia
데이터베이스29k · #9792

dbx

하는 일

AI 에이전트가 DBX 명령줄 도구로 데이터베이스 스키마를 살펴보고, 안전한 읽기 전용 쿼리를 실행하고, 스키마 문서를 만들 수 있게 합니다. 이미 DBX를 쓰고 있으며 에이전트가 데이터베이스를 안전하게 다루기를 원하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓에이전트가 데이터베이스 스키마를 살펴보거나 데이터로 질문에 답하기를 원할 때.
  • ✓데이터베이스에서 문서나 DBML 다이어그램을 만들고 싶을 때.
  • ✓검토를 위해 테이블을 DBX Desktop에서 열고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/t8y2/dbx/blob/main/skills/dbx/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 판매 데이터베이스를 살펴보고, 읽기 전용 쿼리로 지난달 주문이 몇 건이었는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 DBX 연결 목록을 확인하고 스키마를 살펴본 뒤, DBX 도구로 범위가 제한된 읽기 전용 쿼리를 실행합니다. 정확한 작업을 명시적으로 승인하지 않으면 쓰기 작업은 차단됩니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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.
자주 묻는 질문

에이전트가 제 데이터를 바꿀 수 있나요?

기본적으로는 아닙니다. 쿼리는 읽기 전용이며, 쓰기에는 정확한 작업에 대한 명시적 승인이 필요합니다.

연결 비밀번호가 보이나요?

아닙니다. 연결 목록에는 비밀 정보가 포함되지 않습니다.

여러 연결이 해당될 수 있으면 어떻게 하나요?

에이전트가 어떤 연결을 사용할지 선택하도록 요청합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
29k
순위
#9792
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

비슷한 스킬