Skip to content
DevBuildKit
AgentsSkillsCommandsPacksPricingDocsBlogTools
Log inGet DevBuildKit

Database Optimizer

Finds and fixes slow SQL — reads EXPLAIN plans, identifies N+1 and missing or unused indexes, rewrites queries, tunes pagination and batching, and proves the improvement with before/after measurements. Use when queries, endpoints or reports are slow or the database is the bottleneck.

AgentEngineeringv1.0.0Model: sonnet
  1. Agents
  2. Database Optimizer

What it does

Finds and fixes slow SQL — reads EXPLAIN plans, identifies N+1 and missing or unused indexes, rewrites queries, tunes pagination and batching, and proves the improvement with before/after measurements. Use when queries, endpoints or reports are slow or the database is the bottleneck.

Category
databaseperformancebackend
Platforms
backenddatabase
Frameworks and tools
postgresqlmysqlsqlsqlalchemyprismadjango-orm
Capabilities
analysiscode-generationreviewdebugging

Example tasks

  • “This report query takes 40 seconds on 30 million rows; analyse the plan and fix it.”
  • “Our API endpoint runs 300 queries per request; find the N+1 patterns and batch them.”
  • “Audit our indexes: which are missing, redundant or never used?”

Works with

Skills it relies on

  • SQL Query Optimization· skill
  • Database Indexing· skill
  • PostgreSQL· skill
  • SQL Schema Design· skill
  • Data Integrity· skill

Recommended alongside

  • PostgreSQL Specialist· agent
  • Migration Specialist· agent
  • Redis & Cache Specialist· agent
  • Backend Architect· agent
  • PostgreSQL· integration

Used by

  • /db-index
  • /db-optimize
  • /db-review

Permissions summary

  • Files

    Reads and edits files

  • Shell

    Runs a limited set of commands

  • Network

    May fetch docs from the web

Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.

Supported environments

ClientSupportInstalled as
Claude CodeNative.claude/agents/<id>.md
OpenAI CodexAdapter.codex/agents/<id>.md
CursorAdapter.cursor/rules/<id>.mdc
VS Code (Copilot)Native.github/agents/<id>.agent.md
Generic markdownAdapterdocs/forgekit/agents/<id>.md

Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.

Included in packs

  • backend

What is inside

This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (65 lines in total).

  1. 01When invoked
  2. 02Plan reading checklist
  3. 03Common causes and fixes
  4. 04Index rules
  5. 05Application-side levers
  6. 06Output format
  7. 07Guardrails
Unlock with DevBuildKit

Version and changelog

Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.

Changelog — Database Optimizer

1.0.0

  • Initial release.

Build with this agent

Create Demo Project

Install in CLI

$ devbuild add agent database-optimizer

Dependencies are resolved automatically.

Included in the Engineering tier of DevBuildKit.

Get DevBuildKit
IDdatabase-optimizer
Version1.0.0
TierEngineering
DevBuildKit

Your entire AI development team. One install.

DevBuildKit never uploads your source code. Telemetry is opt-in and anonymous.

Product

  • Agents
  • Skills
  • Commands
  • Packs
  • Features
  • Live demo
  • Pricing

Learn

  • Documentation
  • Getting started
  • CLI reference
  • Blog
  • Changelog
  • Compare

Free tools

  • All tools
  • Agent generator
  • Config converter
  • Stack detector
  • Context analyzer

Use cases

  • Android development
  • iOS development
  • SaaS development
  • Backend development
  • App Factory
  • Game development

Company

  • Terms
  • Privacy
  • Refunds
  • Log in
  • Sign up

© 2026 DevBuildKit. All rights reserved.

DevBuildKit is an independent product. Claude, Claude Code, Anthropic, OpenAI, Codex, ChatGPT, Cursor, Visual Studio Code, GitHub Copilot, Microsoft and all other product names are trademarks of their respective owners. DevBuildKit is not affiliated with, endorsed by or sponsored by any of them; names are used only to describe compatibility.