Mysql Patterns
Schema, indexing, query, transaction, and connection-pool patterns for MySQL and MariaDB production backends, with version-specific guidance.
- CCM score
- 73 of 100
- skills.sh installs
- 9.1K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers table design, composite indexing with
EXPLAINchecks, upserts, keyset pagination, JSON columns, full-text search, and short locking transactions - Separates MySQL and MariaDB syntax where they diverge, such as
ON DUPLICATE KEY UPDATErow aliases versusVALUES(col) - Sets defaults for keys, money, character sets, and soft deletes, and warns against
OFFSETpaging and blind index additions - Designed for backend teams reviewing migrations, debugging slow queries or deadlocks, and tuning pool settings in SQLAlchemy or
mysql2
Install
$ npx -y skills add affaan-m/ecc --skill mysql-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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:
SELECT VERSION();
SHOW VARIABLES LIKE 'version_comment';
Keep MySQL and MariaDB guidance separate when syntax differs:
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Databases, Backend & APIs
- First seen
- Jul 14, 2026
Questions
What does the mysql-patterns skill cover?
The mysql-patterns skill covers MySQL and MariaDB schema design, query and indexing patterns, transactions, replication, and connection-pool configuration for production backends. It tells the agent to check the engine version first, since MySQL and MariaDB differ in some SQL details.
How do I install the mysql-patterns skill?
Run npx -y skills add affaan-m/ecc --skill mysql-patterns -y in your project. The agent can then design MySQL or MariaDB tables and indexes, review migrations, and debug slow queries or deadlocks.
Which other database skills are listed alongside mysql-patterns?
mysql-patterns sits in the Databases category, which it ranks in the top 100 of. Other skills listed in that category include supabase-postgres-best-practices, prisma-client-api, prisma-database-setup, prisma-cli and prisma-postgres, but mysql-patterns focuses only on MySQL and MariaDB.
More from affaan-m/ecc
All 257- Production Audit9K
- Make Interfaces Feel Better9K
- Motion Patterns9K
- Motion Foundations9K
- Motion Advanced8.9K
- Ecc Guide8.9K
- Mle Workflow8.9K
- Django Celery8.8K
- Homelab Network Setup8.8K
- Ios Icon Gen8.8K
- Agentic Os8.8K
- Skill Stocktake8.8K
- Ui To Vue8.8K
- Network Interface Health8.7K
- Homelab Wireguard Vpn8.7K
- Netmiko Ssh Automation8.7K
- Homelab Network Readiness8.7K
- Cisco Ios Patterns8.7K
- Plan Orchestrate8.7K
- Angular Developer8.7K
- Network Config Validation8.7K
- Quarkus Patterns8.7K
- Skill Scout8.6K
- Cost Tracking8.6K
Similar to Mysql Patterns
More Databasesmysql-best-practicesmindrally/skills2.8K installsMySQL schema, indexing, and query guidance covering InnoDB defaults, data types, and performance tuning.
mysqlplanetscale/database-skills9.2K installsPlan, review, and tune MySQL/InnoDB schemas, indexes, queries, transactions, and operations.
postgres-patternsaffaan-m/ecc15.2K installsPostgreSQL reference covering index selection, data types, RLS policies, and slow-query diagnosis in one quick-reference sheet.
sql-optimizationgithub/awesome-copilot16.4K installsUniversal SQL tuning guide covering query rewrites, indexing, pagination, and execution plan analysis across major engines.
database-patternsyonatangross/orchestkit226 installsDatabase design and Alembic migration patterns covering schema normalization, indexing, and drift detection.
sql-best-practicesmindrally/skills847 installsOpinionated SQL style guide covering formatting, joins, indexing, transactions, and injection safety for query writing.