database
Interact with databases using persistent config files or environment variables.
Skill by bos-hieu
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/bos-hieu-database
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/database
Tools it pre-approves 7
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Bash(gorun*),Bash(catBash(lsBash(printenv*)
What's inside
- Skill name
database- Description
- Interact with databases using persistent config files or environment variables. Supports multiple named databases (auto-detected from env, project config, and global config), PostgreSQL, MySQL, SQLite, and MongoDB. Manage database connections with --add-db, --edit-db, --remove-db. Select which database to use with --db.
- License
- MIT
- Allowed tools
- Bash(go, run, *),, Bash(cat, *),, Bash(ls, *),, Bash(printenv, *)
- Instructions
- 87 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Files (2)
- SKILL.md
- db_query.go
SKILL.md (first lines)
When the user asks to query a database, use `${CLAUDE_SKILL_DIR}` to reference the Go file.
**Never print raw passwords. Never save credentials to memory files or auto-memory.**
## Configuration
Databases discovered from (highest priority first):
1. Project config: `.claude/db-config.yaml`
2. Global config: `~/.claude/db-config.yaml`
3. Environment variables (see patterns below)
```yaml
# .claude/db-config.yaml
databases:
prod:
dsn: "postgres://user:pass@host:5432/mydb?sslmode=require"
staging:
driver: postgres
host: staging.example.com
port: "5432"
user: admin
password: secret
dbname: myapp
mongo-db:
driver: mongodb
dsn: "mongodb://admin:secret@host:27017/mydb?authSource=admin"
```
### Environment Variable Patterns
- Component-based: `<PREFIX>_DB_HOST`, `<PREFIX>_DB_PORT`, `<PREFIX>_DB_USER`, `<PREFIX>_DB_PASSWORD`, `<PREFIX>_DB_NAME`, `<PREFIX>_DB_DRIVER`, `<PREFIX>_DB_SSL_MODE`
- DSN-based: `<NAME>_DSN=postgres://...`, `DATABASE_URL=postgres://...`, `MONGODB_URI=mongodb://...`
## Config Management
```bash
go run ${CLAUDE_SKILL_DIR}/db_query.go [flag]
```
| Flag | Description |
|---|---|
| `--add-db <name>` | Add database (with `--dsn` or `--host --port --user --password --dbname`) |
| `--edit-db <name>` | Edit database (only updates provided fields) |
| `--remove-db <name>` | Remove database |
| `--global` | Target global config instead of project |
| `--list` | List all detected databases (masks passwords) |
Connection flags for add/edit: `--dsn`, `--host`, `--port`, `--user`, `--password`, `--dbname`, `--driver` (postgres/mysql/mongodb), `--ssl-mode`.
## Query Flags
| Flag | Description |
|---|---|
| `--db <name>` | Select database |
| `--query <sql/json>` | Run SQL query or MongoDB JSON filter |
| `--tables` | List all tables/collections |
| `--describe <table>` | Show columns/fields, types, nullability |
| `--rows <n>` | Max result rows (default 20) |
| `--format <table\|csv\|json>` | Output format (default: table) |
| `--no-header` | Suppress column headers |
### MongoDB-Specific Flags
| Flag | Description |
|---|---|
| `--collection <name>` | Collection name (required for `--query`) |
| `--sort <json>` | Sort specification |
| `--project <json>` | Field projection |
| `--skip <n>` | Documents to skip |
| `--aggregate <json>` | Aggregation pipeline as JSON array |
| `--count` | Count matching documents |
| `--distinct <field>` | Get distinct values |
## Supported Drivers
| Driver | DSN prefix / port heuristic |
|---|---|
| PostgreSQL | `postgres://`, `postgresql://`, port 5432 |
| MySQL | `mysql://`, port 3306 |
| SQLite | `sqlite://`, `file:`, `.db`/`.sqlite` |
| MongoDB | `mongodb://`, `mongodb+srv://`, port 27017 |
## Security
- Passwords always shown as `***`. Config files created with `0600` permissions.
- Prefer read-only DB users. Gitignore `.claude/db-config.yaml`.From bos-hieu/agent-skills, MIT.
More from bos-hieu/agent-skills
- 0.409score
ssh
bos-hieu
Manage SSH connections to servers with bastion/jump host support, tunneling, file transfer, multi-host execution, and system monitoring.
SkillDFreshness: DClaude Code +9 - 0.409score
openclaw-docker-setup
bos-hieu
Use when setting up OpenClaw in Docker, running OpenClaw gateway in a container, troubleshooting a Dockerized OpenClaw installation, or managing plugins in an…
SkillDFreshness: DClaude Code +9 - 0.406score
confluence
bos-hieu
Manage Confluence pages — create, read, update, search, and delete wiki pages.
SkillDFreshness: DClaude Code +9 - 0.406score
generating-claude-instructions
bos-hieu
Generate a CLAUDE.md file at the project root by deeply exploring the actual source code.
SkillDFreshness: DClaude Code +9 - 0.406score
go-issue-solver
bos-hieu
Golang coding tool to analyze and solve any issue in the codebase.
SkillDFreshness: DClaude Code +9 - 0.406score
google-docs
bos-hieu
Manage Google Docs — create, read, append, prepend, find-and-replace, and list documents.
SkillDFreshness: DClaude Code +9 - 0.406score
google-drive
bos-hieu
Manage Google Drive files — list, upload, download, search, share, and organize files and folders.
SkillDFreshness: DClaude Code +9 - 0.406score
google-sheets
bos-hieu
Manage Google Sheets — create, read, write, append, and format spreadsheets via the Google Sheets REST API v4 with persistent config for credentials.
SkillDFreshness: DClaude Code +9 - 0.406score
jira
bos-hieu
Manage Jira issues — create, read, update, transition, search, comment, and assign issues.
SkillDFreshness: DClaude Code +9 - 0.406score
prd
bos-hieu
Generate professional Product Requirements Documents, user stories, feature specs, competitive analyses, release notes, and stakeholder updates.
SkillDFreshness: DClaude Code +9 - 0.406score
xlsx
bos-hieu
Read Excel .xlsx and macro-enabled .xlsm files with Go.
SkillDFreshness: DClaude Code +9 - 0.406score
browser-test
bos-hieu
Run and debug Playwright browser tests for this project (API, E2E, smoke).
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Mar 31, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/bos-hieu/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from bos-hieu
- 0.409score
ssh
bos-hieu
Manage SSH connections to servers with bastion/jump host support, tunneling, file transfer, multi-host execution, and system monitoring.
SkillDFreshness: DClaude Code +9 - 0.409score
openclaw-docker-setup
bos-hieu
Use when setting up OpenClaw in Docker, running OpenClaw gateway in a container, troubleshooting a Dockerized OpenClaw installation, or managing plugins in an…
SkillDFreshness: DClaude Code +9 - 0.406score
generating-claude-instructions
bos-hieu
Generate a CLAUDE.md file at the project root by deeply exploring the actual source code.
SkillDFreshness: DClaude Code +9 - 0.406score
google-docs
bos-hieu
Manage Google Docs — create, read, append, prepend, find-and-replace, and list documents.
SkillDFreshness: DClaude Code +9 - 0.406score
google-drive
bos-hieu
Manage Google Drive files — list, upload, download, search, share, and organize files and folders.
SkillDFreshness: DClaude Code +9 - 0.406score
go-issue-solver
bos-hieu
Golang coding tool to analyze and solve any issue in the codebase.
SkillDFreshness: DClaude Code +9
Cite this page
database skill. Agent Mart. https://agentmart.dev/skills/bos-hieu-database (last updated 2026-10-24)