mysql-patterns

Provide standardized MySQL and MariaDB schema, query, and operational patterns.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/nazrulsoftwaredev/NIT_CRM_2 --skill mysql-patterns-nazrulsoftwaredev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mysql-patterns
Source: https://github.com/nazrulsoftwaredev/NIT_CRM_2/tree/main/.agents/skills/mysql-patterns
Command: npx skills add https://github.com/nazrulsoftwaredev/NIT_CRM_2 --skill mysql-patterns-nazrulsoftwaredev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the complexity of maintaining high-performance, reliable, and secure MySQL and MariaDB databases by providing standardized patterns for schema design, query optimization, and production operations.

Core Features & Use Cases

  • Schema & Query Optimization: Provides best practices for indexing, keyset pagination, and JSON column usage to ensure efficient data access.
  • Operational Reliability: Offers guidance on transaction management, deadlock prevention, and connection pooling to maintain system stability under load.
  • Security & Maintenance: Includes patterns for least-privilege user management, replication monitoring, and safe migration strategies.

Quick Start

Use the mysql-patterns skill to review the schema and indexing strategy for the new orders table to ensure it supports high-concurrency writes and efficient pagination.

Frequently Asked Questions about mysql-patterns

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

FAQPage Schema
What are the best practices for MySQL schema design and indexing in high-traffic applications?

MySQL schema design and indexing best practices emphasize efficient data access through strategic indexing, keyset pagination, and JSON column usage to support high-concurrency writes and reliable query optimization across diverse database environments.

How do I prevent deadlocks and manage transactions safely in MariaDB?

To prevent deadlocks and manage transactions safely in MariaDB, apply standardized architectural patterns for transaction management and deadlock prevention alongside connection pooling to maintain system stability under heavy operational load.

How do I configure MySQL and MariaDB for high availability and replication monitoring?

Configuring MySQL and MariaDB for high availability involves applying production-grade configuration patterns that include replication monitoring and least-privilege security measures to ensure operational reliability across distributed database environments.

Does this database optimization approach work for both MySQL and MariaDB environments?

Yes, this database optimization approach works for both MySQL and MariaDB environments by providing standardized architectural patterns and operational guidance that cover schema design, query optimization, and production configuration across diverse database setups.

What are the limitations of keyset pagination and JSON column usage in MySQL?

Keyset pagination and JSON column usage in MySQL require careful indexing strategies to avoid performance bottlenecks, and standardized patterns help address these limitations by ensuring efficient data access and adherence to best practices for high-concurrency systems.