mysql-patterns
MySQL and MariaDB schema, query, indexing, transaction, replication, and connection-pool patterns for production backends.
npx skills add mturac/everything-openai-codex --skill mysql-patterns --agent codex
Same command for any agent — swap --agent for claude-code, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# MySQL Patterns Use this skill when working on MySQL or MariaDB schema design, migrations, slow-query investigation, queue-style transactions, connection pools, or production database configuration. Prefer exact version checks before applying a feature-specific pattern because MySQL and MariaDB have diverged in several SQL details. ## Activation - Designing MySQL or MariaDB tables, indexes, and constraints - Reviewing migrations before they run on large production tables - Debugging slow queries, lock waits, deadlocks, or connection exhaustion - Adding keyset pagination, upserts, full-text search, JSON columns, or queues - Configuring application connection pools, read replicas, TLS, or slow logs ## Version Check Start by identifying the engine and version: ```sql SELECT VERSION(); SHOW VARIABLES LIKE 'version_comment'; ``` Keep MySQL and MariaDB guidance separate when syntax differs: - MySQL documents row aliases as the replacement for `VALUES(col)` in `ON DUPLICATE KEY UPDATE`; `VALUES(col)` is deprecated there. - MariaDB documents `VALUES(col)` as the supported way to reference inserted values in `ON DUPLICATE KEY UPDATE`; use it for cross-engine compatibility. - `SKIP LOCKED`
- Activation
- Version Check
- Schema Defaults
- Indexing
- Query Patterns
- Upsert
- Keyset Pagination
- JSON Fields
- Full-Text Search
- Transactions
- Connection Pools
- Diagnostics
- Replication
- Security
What does the mysql-patterns skill do?
MySQL and MariaDB schema, query, indexing, transaction, replication, and connection-pool patterns for production backends.
How do I install it?
Run `npx skills add mturac/everything-openai-codex --skill mysql-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From mturac/everything-openai-codex, a repository with 84 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
