database-ops

Design relational database schemas and generate migration scripts for PostgreSQL, MySQL, and SQLite.

4|1|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/AreteDriver/ai-skills --skill database-ops-aretedriver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-ops
Source: https://github.com/AreteDriver/ai-skills/tree/main/personas/api/database-ops
Command: npx skills add https://github.com/AreteDriver/ai-skills --skill database-ops-aretedriver

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the complex and error-prone tasks of database schema design, migration scripting, query optimization, and troubleshooting.

Core Features & Use Cases

  • Schema Design: Create robust, normalized database schemas with appropriate indexes and constraints.
  • Migration Authoring: Generate safe, reversible migration scripts for schema changes.
  • Query Optimization: Analyze and improve the performance of slow SQL queries.
  • Troubleshooting: Diagnose and resolve database issues like deadlocks and connection problems.
  • Use Case: You need to design a new PostgreSQL schema for an e-commerce platform, including product and order tables, and then create the initial migration script.

Quick Start

Design a PostgreSQL schema for an e-commerce platform with product and order tables, including necessary indexes and relationships.

Frequently Asked Questions about database-ops

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

FAQPage Schema
How do I optimize slow SQL queries in PostgreSQL or MySQL?

To optimize slow SQL queries, you analyze execution plans and improve indexing or query structure. This involves diagnosing bottlenecks, adding appropriate indexes, and rewriting raw SQL or ORM patterns to enhance performance tuning and operational safety.

What is the best way to design a normalized database schema with proper constraints?

Database schema design involves creating robust, normalized table structures with appropriate indexes and constraints. This ensures data integrity, prevents anomalies, and provides a performant foundation for relational database operations like e-commerce product and order tracking.

How do I generate safe and reversible migration scripts for schema changes?

Migration authoring generates safe, reversible migration scripts for schema changes. This process ensures operational safety by allowing you to apply structural updates to your database without risking data loss or breaking existing application functionality.

Can I use raw SQL and ORM patterns interchangeably for database troubleshooting?

Yes, database troubleshooting supports both raw SQL and ORM patterns. This allows you to diagnose and resolve issues like deadlocks and connection problems effectively, regardless of whether your application uses direct queries or abstracted ORM operations.

How do I resolve database deadlocks and connection problems?

Resolving database deadlocks and connection problems requires diagnosing transaction blocking and resource contention. By troubleshooting these operational issues, you restore stable database connectivity and ensure data integrity across concurrent system processes.

Does database performance tuning work for SQLite as well as PostgreSQL and MySQL?

Performance tuning applies to PostgreSQL, MySQL, and SQLite systems. You can analyze and improve slow SQL queries across these relational databases by adjusting schema design, indexes, and query execution patterns to maintain operational efficiency.