Skip to content
DevBuildKit
AgentsSkillsCommandsPacksPricingDocsBlogTools
Log inGet DevBuildKit

/db-optimize

Diagnose slow queries or data-access code with real execution plans, find root causes (N+1, unusable indexes, offset pagination, over-fetching), and propose ranked fixes with measurement plans. Does not apply schema changes.

CommandEngineeringv1.0.0
  1. Commands
  2. /db-optimize

What it does

Diagnose slow queries or data-access code with real execution plans, find root causes (N+1, unusable indexes, offset pagination, over-fetching), and propose ranked fixes with measurement plans. Does not apply schema changes.

Category
databaseperformance
Platforms
backend
Frameworks and tools
postgresql
Capabilities
databaseperformancereview

Example tasks

  • /db-optimize SELECT * FROM orders WHERE user_id = $1 ORDER BY created_at DESC
  • /db-optimize the /orders endpoint takes 4s
  • /db-optimize slow-query-log.txt

Works with

Related skills

  • SQL Query Optimization· skill
  • Database Indexing· skill
  • PostgreSQL· skill

Requires (installed automatically)

  • Database Optimizer· agent

Recommended alongside

  • PostgreSQL Specialist· agent
  • Migration Specialist· agent

Permissions summary

  • Files

    Reads files only

  • Shell

    Runs a limited set of commands

  • Network

    No network

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/commands/<id>.md
OpenAI CodexAdapter.codex/prompts/<id>.md
CursorNative.cursor/commands/<id>.md
VS Code (Copilot)Native.github/prompts/<id>.prompt.md
Generic markdownAdapterdocs/forgekit/commands/<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 (18 lines in total).

  1. 01Output format
Unlock with DevBuildKit

Version and changelog

Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.

Changelog — /db-optimize

1.0.0

  • Initial release.

Build with this command

Create Demo Project

Install in CLI

$ devbuild add command db-optimize

Dependencies (database-optimizer) are resolved automatically.

Included in the Engineering tier of DevBuildKit.

Get DevBuildKit
IDdb-optimize
Version1.0.0
TierEngineering
Arguments<query | endpoint | symptom>
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.