Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/t8y2/dbx/dbxnpx skills add t8y2/dbx --skill dbxgit clone --depth 1 https://github.com/t8y2/dbxWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/t8y2/dbx/dbx)<a href="https://agentmods.dev/skills/t8y2/dbx/dbx"><img src="https://agentmods.dev/badge/skills/t8y2/dbx/dbx.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00061 | $0.01739 |
| Opus 5 | $0.00030 | $0.00870 |
| Sonnet 5 | $0.00012 | $0.00348 |
| Haiku 4.5 | $0.00006 | $0.00174 |
Grade A, and why
dbx scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DBX CLI
Prerequisite: DBX Desktop must be installed and configured with at least one connection. Run
dbx doctorto verify setup. Install CLI:npm install -g @dbx-app/cli
Core Concepts
- Connection: A named database connection configured in DBX Desktop (e.g. "prod", "local"). Identified by name.
- Schema: Tables and views within a connection. Listed via
dbx schema list. - Query: Read-only SQL executed against a connection. Gated by
--allow-writesand--allow-dangerous-sql. - Context: Compact schema dump optimized for AI prompts — smaller and more focused than full schema output.
Resource Relationships
DBX Desktop
├── Connection (named)
│ ├── Schema (tables, views)
│ │ └── Table
│ │ └── Column (name, type, nullable, default)
│ └── Query (read-only by default)
└── Context (prompt-optimized schema dump)
Commands
⛔ NEVER bypass dbx CLI for database operations. If
dbxreturnsSQL_BLOCKEDor any error, do NOT use Python sqlite3, shell redirects, or any other tool to access the database directly. Always respect the CLI's safety gates. When in doubt, tell the user what the CLI returned and ask for their decision.
1. Check Setup
dbx doctor
dbx capabilities
Use doctor when the agent starts or when a command fails — it reveals whether the desktop bridge, connection DB, and native SQLite loader are available. Use capabilities to check which databases support direct execution vs require the desktop bridge.
2. List Connections
dbx connections list --json
Returns connections without exposing secrets. Parse JSON to present a clean list to the user. Always run this first before any schema or query operation — the user might not remember connection names.
3. Explore Schema
# List all tables in a connection
dbx schema list <connection> --json
# Describe a specific table
dbx schema describe <connection> <table> --json
Use schema list to survey what's available, then schema describe on specific tables the user asks about. Present column names, types, and nullability clearly.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 172 lines · 61 tokens per session scan A 621c6c914971
dbx is a skill published in the GitHub repository t8y2/dbx (17,467 stars, last pushed 4d ago), licensed Apache-2.0. It adds 61 tokens to every session and 1,739 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
diagnose-clickhouse-clusters
Diagnose ClickHouse cluster health and provide concrete remediation.
optimize-clickhouse-sql
Optimize slow queries, analyze SQL performance, and collect evidence for expensive workloads.
clickhouse-system-queries
Query ClickHouse system tables to inspect query logs, monitor cluster health, check replication status, and analyze slow queries. Use when the user mentions "system tables", "querylog", "ClickHouse monitoring", "cluster status", "slow queries", or asks to diagnose ClickHouse operational issues.
sql-expert
Expert system for generating, validating, and optimizing ClickHouse SQL. Use this when the user needs data, queries, or analysis.
diagnose-clickhouse-errors
Diagnose ClickHouse runtime query failures when the user wants database-level cause and fix guidance from an error or numeric error code, not source-code root cause analysis.
gonavi-cli
Operate databases through the GoNavi headless CLI — the gonavi executable shipped in verified GitHub Release archives. Covers listing/adding/importing saved connections, running SQL queries against saved connections or ad-hoc connection files, exporting result sets to csv/json/md/html/xlsx, batch-executing SQL files…