Skills
Browse AI agent skills

Database Queries

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

Database Queries is an AI agent skill in the Data & Files category. Query SQL and NoSQL databases, inspect schemas, run migrations, and generate reports from live data.

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.

Related AI agent resources

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