agency-database-optimizer

Optimize PostgreSQL and MySQL database schemas, indexes, and query plans.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/jay6697117/agency-agents-antigravity --skill agency-database-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agency-database-optimizer
Source: https://github.com/jay6697117/agency-agents-antigravity/tree/main/.agents/skills/agency-database-optimizer
Command: npx skills add https://github.com/jay6697117/agency-agents-antigravity --skill agency-database-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams improve database performance by designing scalable schemas, optimizing queries, and implementing robust indexing and migration practices.

Core Features & Use Cases

  • Optimized Schema Design for high-traffic apps with proper foreign keys, constraints, and indexing strategies.
  • Query Optimization with EXPLAIN ANALYZE, join optimization, and N+1 query prevention.
  • Safe Migrations with reversible, low-lock changes and concurrency-safe indexing.
  • Connection Pooling patterns and deployment considerations for serverless environments.
  • Use Case: A startup with rising read traffic migrates from naive schemas to normalized/denormalized designs to balance performance.

Quick Start

Describe your current workload and I will propose a tuned schema, indexing plan, and safe migration strategy.

Frequently Asked Questions about agency-database-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize slow PostgreSQL queries using EXPLAIN ANALYZE?

To optimize slow PostgreSQL queries, use EXPLAIN ANALYZE to inspect query plans and identify bottlenecks. You can then apply indexing best practices to optimize joins and prevent N+1 query issues.

What is the best way to design scalable database schemas for high traffic?

Designing scalable database schemas for high traffic requires proper foreign keys, constraints, and indexing strategies. You balance performance by transitioning from naive schemas to normalized or denormalized designs based on read traffic.

How do I run safe database migrations without locking tables?

Running safe database migrations without locking tables requires reversible, low-lock changes and concurrency-safe indexing. This approach ensures deployments remain stable across workloads from startups to scale-ups.

Does this database optimization approach work with MySQL and modern cloud databases?

Yes, this database optimization approach works with MySQL and modern cloud databases. It applies schema design, query tuning, and migration strategies universally across various platforms.

How do I implement connection pooling for serverless database environments?

To implement connection pooling for serverless database environments, apply specific connection pooling patterns and deployment considerations. This manages connections efficiently during high read traffic in serverless architectures.