miudblisted
Install: claude install-skill vanducng/skills
# miudb
Headless database CLI for agent-safe SQL work against saved database
connections. Prefer direct `miudb` commands for one-shot machine-readable
output and scripted checks. Use `miudb mcp serve` only when configuring an MCP
host, and use `miudb serve` only for Neovim/custom protocol clients.
Do not use `sqlit` for miudb tasks.
## When to use
- "Run this SQL on `<connection>`"
- "List schemas/tables/columns for `<connection>`"
- "Smoke-test my saved database connections"
- "Check a tunnel-backed connection"
- "Add a new database connection"
- Any task naming a connection that appears in `miudb connections list`
## Install/verify
```bash
brew install vanducng/tap/miudb # first install
miudb upgrade # self-update to the latest release
miudb version --output json # v0.8.0 or newer
miudb commands --output json
```
If the catalog lacks a command you need, run `miudb upgrade`, or build from the
local checkout:
```bash
cd /Users/vanducng/git/personal/miu-db
go build -buildvcs=false -o ./.miu-db/miudb ./cmd/miudb
```
## Default local config
`miudb` uses a native Go store by default:
```text
~/.config/miu/db/connections.json
~/.config/miu/db/credentials.json
```
Sensitive values are classified before persistence. New database and SSH
passwords are stored outside `connections.json` by default using the OS
Keychain/keyring service named `miudb`.
For migrated configs, `miudb` reads `credentials-export.json` from the same
directory when `cre