database-admin

Analyze slow queries with EXPLAIN ANALYZE and propose indexing strategies.

3|2|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/grasberg/sofia --skill database-admin-grasberg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-admin
Source: https://github.com/grasberg/sofia/tree/main/workspace/skills/database-admin
Command: npx skills add https://github.com/grasberg/sofia --skill database-admin-grasberg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagnose and optimize database performance, reliability, and data integrity across multiple database systems.

Core Features & Use Cases

  • Performance tuning: analyze slow queries with EXPLAIN ANALYZE and apply indexing strategies.
  • High availability & backups: plan replication, backup procedures, and PITR.
  • Migration readiness: design zero-downtime migrations and rollback procedures.

Quick Start

Diagnose a slow query in PostgreSQL and propose an index to accelerate it.

Frequently Asked Questions about database-admin

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

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

To diagnose slow queries, use EXPLAIN ANALYZE to evaluate execution plans and apply targeted indexing strategies to resolve performance bottlenecks. This approach isolates query execution issues and guides indexing improvements across PostgreSQL and MySQL.

What's the best way to plan database replication and PITR backups?

Planning database replication and PITR requires structured backup procedures and high availability configuration. This Skill provides deployment guidance for replication setups and Point-in-Time Recovery across PostgreSQL, MySQL, MongoDB, and Redis to ensure data reliability.

Can I execute zero-downtime database migrations with rollback procedures?

Yes, you can execute zero-downtime database migrations by designing migration-safe changes and rollback procedures. This Skill guides you through migration readiness planning to ensure data integrity and system availability during structural database modifications.

Does this database tuning approach work with MongoDB and Redis deployments?

This database tuning approach works with MongoDB and Redis deployments alongside relational systems like PostgreSQL and MySQL. It diagnoses performance bottlenecks and applies optimization strategies tailored to each specific database environment.

Why does my database query performance degrade under high availability replication setups?

Database query performance often degrades under replication setups due to unanalyzed execution bottlenecks and indexing gaps. Using EXPLAIN ANALYZE-driven tuning identifies these query plan issues and optimizes indexing to maintain performance during high availability operations.