What problem does it solve? Designing and operating MySQL or MariaDB databases in production involves subtle decisions around schema defaults, index ordering, transaction locking, upsert syntax differences between engines, and connection pool tuning. This Skill gives database administrators and backend developers concrete, version-aware SQL patterns and review checklists so they avoid common correctness, locking, and performance pitfalls. ## Core Features & Use Cases - Schema and Indexing Patterns: Default table definitions with utf8mb4, BIGINT UNSIGNED keys, DECIMAL for money, composite index ordering rules, and EXPLAIN risk signals. - Query and Transaction Patterns: Cross-engine upserts, keyset pagination, JSON generated columns, full-text search, deadlock avoidance, and SKIP LOCKED queue claims. - Operations Guidance: Connection pool configuration for SQLAlchemy and mysql2, slow query diagnostics, replication lag handling, security hardening, and InnoDB configuration starting points. - Use Case: While reviewing a migration that adds an index to a large orders table, use this Skill to verify index column order with EXPLAIN, check MySQL versus MariaDB syntax differences, and produce a validation and rollback plan. ## Quick Start Ask the AI to review your MySQL schema design or slow query using the mysql-patterns skill and return the highest-risk issues with exact SQL fixes.