Skills
All Skills

Database Queries

v1.5.0
agentmag · Data & Files
15.9K installs478 starsMITUpdated 2026-04-14

Query SQL and NoSQL databases, inspect schemas, run migrations, and generate reports from live data.

sqlmongodbdatabasequeriespostgres
npx agentmag add database-queries

About

The Database Queries skill connects your agent directly to databases. It supports PostgreSQL, MySQL, MongoDB, SQLite, and Redis — with schema inspection, query generation, read/write operations, and result formatting.

Safety-first: configurable read-only mode, query timeouts, row limits, and transaction rollback. Your agent can answer questions from live data, generate reports, and even help with schema design and migrations.

Capabilities

  • Natural language to SQL/MongoDB query generation
  • Schema inspection and documentation
  • Read and write operations with transaction support
  • Result formatting as tables, JSON, or narratives
  • Configurable read-only mode and row limits
  • Support for PostgreSQL, MySQL, MongoDB, SQLite, Redis

Compatible agents

Claude CodeCursorWindsurfAider

Add Database Queries to your agent

One command to install. Works with all major coding agents.

Building an agent skill? Submit it for free or get featured placement.