sql-expert

Design and optimize SQL databases across PostgreSQL, MySQL, and SQL Server.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/JonathanMitchell1234/Stock-Swing-Trading-Bot --skill sql-expert-jonathanmitchell1234
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-expert
Source: https://github.com/JonathanMitchell1234/Stock-Swing-Trading-Bot/tree/main/.agents/skills/sql-expert
Command: npx skills add https://github.com/JonathanMitchell1234/Stock-Swing-Trading-Bot --skill sql-expert-jonathanmitchell1234

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of database management by providing expert-level assistance in designing robust schemas, writing efficient queries, optimizing performance, and administering databases across multiple popular SQL systems.

Core Features & Use Cases

  • Database Design: Create normalized, efficient Entity-Relationship models.
  • Advanced Querying: Write complex SQL queries using JOINs, subqueries, CTEs, and window functions.
  • Performance Optimization: Implement indexing strategies and tune queries for speed.
  • Administration: Understand transactions, isolation levels, and locking mechanisms.
  • Use Case: A developer needs to design a new database schema for a social media platform, ensuring scalability and efficient data retrieval for user profiles, posts, and comments. This Skill can provide the SQL DDL and best practices.

Quick Start

Use the sql-expert skill to generate a PostgreSQL CREATE TABLE statement for a 'products' table with columns for id, name, price, and description.

Frequently Asked Questions about sql-expert

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

FAQPage Schema
How do I write complex SQL queries using CTEs and window functions?

You can write complex SQL queries using Common Table Expressions and window functions by combining JOINs and subqueries. This Skill generates these advanced statements to handle multi-level data retrieval logic across PostgreSQL, MySQL, and SQL Server.

What is the best way to design a normalized database schema for scalability?

The best way to design a normalized database schema for scalability is to construct efficient Entity-Relationship models. This process generates robust table structures and SQL DDL optimized for high-volume data retrieval across relational database systems.

How do I optimize PostgreSQL query performance and implement indexing strategies?

PostgreSQL query performance optimization is achieved by implementing targeted indexing strategies and tuning complex statements. This method analyzes execution patterns to reduce latency and ensure rapid data retrieval within the database.

Does this support database administration tasks like managing transactions and isolation levels?

Database administration tasks including managing transactions, isolation levels, and locking mechanisms are fully supported. It provides guidance on these mechanisms across PostgreSQL, MySQL, and SQL Server to maintain data integrity during concurrent operations.

Can I generate SQL DDL for specific tables like a products table in MySQL?

You can generate SQL DDL for specific tables like a products table in MySQL by defining the required columns and data types. This provides the exact CREATE TABLE statements and best practices needed for immediate database deployment.