SkillAgentSearch skills...

db

Query the database — schemas, tables, records

Install / Use

npx skills add brain-bootstrap/claude-code-brain-bootstrap

Installs into whichever agent you are using.

About this skill

Claude Commands

Claude Code slash commands

Quality Score

41/100

Supported Platforms

Claude Code

description: Query the database — schemas, tables, records disable-model-invocation: true effort: low argument-hint: "[schemas|tables|describe table|query SQL]"

Query the database: $ARGUMENTS

Instructions

Determine action from arguments:

| Argument | Action | |----------|--------| | schemas | {{DB_LIST_SCHEMAS_CMD}} | | tables | {{DB_LIST_TABLES_CMD}} | | describe <table> | {{DB_DESCRIBE_CMD}} <table> | | <raw-sql> | {{DB_QUERY_CMD}} "<sql>" \| cat |

SQLite note: If commands show $DB_PATH, set the env var to the actual DB file path before running (it varies by deployment/runtime config). Check project docs or config files for the configured path.

⚠️ Always use non-interactive mode:

  • PostgreSQL: psql -c "SQL" | cat
  • MySQL: mysql -e "SQL" | cat
  • SQLite: sqlite3 db.sqlite "SQL"
  • MongoDB: mongosh --eval "db.collection.find()" --quiet

Related Skills

View on GitHub
GitHub Stars0
CategoryData
Updated5mo ago
Forks0

Security Score

78/100

Audited on Apr 25, 2026

1 medium1 low1 info