exploring-bitwarden-data
Installation
SKILL.md
Explore Bitwarden Database
Read-only access to a local Bitwarden database, across all three dev providers.
Read-only, defense in depth
- Database login is read-only at the server — mutations will fail regardless of what you send.
- Allowed:
SELECT,WITH(CTEs), andINFORMATION_SCHEMA/sys.*introspection.
Cross-provider rules
- Secrets. Never echo, log,
cat,printenv, orhexdumpany password env var. Set passwords inline on the command (e.g.,SQLCMDPASSWORD="$BW_MSSQL_PASSWORD" sqlcmd ...); neverexportthem. - Result presentation. Format <20 rows as a markdown table; summarize larger sets as top-N + count. Always echo the SQL ran. Trim CLI footers (
(N rows affected),Query OK) before presenting. - Heredoc footgun. Use single-quoted heredoc tags (
<<'SQL') — without quotes, bash expands$inside the SQL before the database CLI sees it, breaking column references.
Provider selection
First arg picks the provider — mssql (default), mysql, or postgresql. Read the matching provider reference before composing SQL.