MySQL database development standards. Triggers when working with MySQL databases, queries, schema design, or optimization.
Resources
4Install
npx skillscat add jcastillotx/vibe-skeleton-app/mysql-best-practices Install via the SkillsCat registry.
SKILL.md
MySQL Best Practices
Comprehensive coding standards for MySQL database development, optimized for AI agents and LLMs.
Overview
This skill provides 24 rules organized across 8 categories:
- Query Optimization (query-) - EXPLAIN, N+1 prevention, pagination [CRITICAL]
- Security (security-) - Prepared statements, least privilege, encryption [CRITICAL]
- Schema Design (schema-) - Data types, normalization, constraints [HIGH]
- Indexing Strategy (index-) - Composite indexes, covering indexes [HIGH]
- Transaction Management (txn-) - ACID, isolation levels, deadlocks [MEDIUM-HIGH]
- Connection Management (conn-) - Pooling, timeouts [MEDIUM]
- Backup & Recovery (backup-) - Strategies, point-in-time recovery [MEDIUM]
- Replication (repl-) - Master-slave, read replicas [LOW-MEDIUM]
Usage
Reference this skill when:
- Designing database schemas
- Writing or optimizing SQL queries
- Implementing indexes
- Managing transactions
- Configuring connections
Build
pnpm build # Compile rules to AGENTS.md
pnpm validate # Validate rule files