dbx
하는 일
AI 에이전트가 DBX 명령줄 도구로 데이터베이스 스키마를 살펴보고, 안전한 읽기 전용 쿼리를 실행하고, 스키마 문서를 만들 수 있게 합니다. 이미 DBX를 쓰고 있으며 에이전트가 데이터베이스를 안전하게 다루기를 원하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓에이전트가 데이터베이스 스키마를 살펴보거나 데이터로 질문에 답하기를 원할 때.
- ✓데이터베이스에서 문서나 DBML 다이어그램을 만들고 싶을 때.
- ✓검토를 위해 테이블을 DBX Desktop에서 열고 싶을 때.
스킬 링크
https://github.com/t8y2/dbx/blob/main/skills/dbx/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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
- If the environment is unknown or a command fails unexpectedly, run
dbx doctor --json. - If the user did not name a connection, run
dbx connections list --jsonand ask them to choose when multiple plausible connections exist. - Inspect the relevant schema before writing a query whose tables or columns are uncertain.
- Prefer
--jsonfor machine-readable results. - Keep exploratory queries bounded with
--limit 50 --timeout 10sunless 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-writesunless the user explicitly approves the exact write operation. - Never add
--allow-dangerous-sqlunless 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 listintentionally 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 --jsoncan execute directly. - Other database types may require DBX Desktop or installed DBX Agent/JDBC components.
dbx openalways requires DBX Desktop.- When
DBX_WEB_URLis 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: rundbx 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.
댓글
- …
비슷한 스킬
discrawl
394k에이전트가 저장된 로컬 Discord 메시지 보관본을 검색하고 요약하며, 최신 상태를 확인하고 다이렉트 메시지를 읽도록 돕습니다.
clickhouse-io
280k에이전트가 ClickHouse 데이터베이스의 쿼리와 스키마를 최적화하도록 돕습니다. 고성능 분석 작업의 모범 사례를 적용합니다. 분석 쿼리가 느릴 때 씁니다.
scientific-db-pubmed-database
280k생의학 분야의 과학 논문을 에이전트가 검색하도록 돕습니다. 특정 의학 정보가 필요한 연구에 유용합니다.