mysql-best-practices/SKILL.md
MySQL 8.x best practices for high-performance, secure SaaS applications. Use when designing database schemas, writing queries, optimizing performance, implementing multi-tenant isolation, configuring servers, setting up replication, hardening...
npx skillsauth add peterbamuhigire/skills-web-dev mysql-best-practicesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
mysql-best-practices or would be better handled by a more specific companion skill.references, examples only as needed.SKILL.md first, then load only the referenced deep-dive files that are necessary for the task.references/ directory for deep detail after reading the core workflow below.examples/ directory for concrete patterns when implementation shape matters.Production-grade MySQL patterns for high-performance, secure, scalable SaaS applications.
Core Principle: Performance is query response time. Optimize queries and indexes first, tune server second, scale hardware last.
Access Policy (Required): Frontend clients must never access the database directly. All data access must flow through backend services exposed via APIs.
Deep References: references/query-performance.md, references/indexing-deep-dive.md, references/server-tuning-mycnf.md, references/security-hardening.md, references/high-availability.md, references/advanced-sql-patterns.md, references/backup-recovery.md, references/transaction-locking.md, references/benchmarking-tools.md
SQL References: references/stored-procedures.sql, references/triggers.sql, references/partitioning.sql
| Environment | OS | Database | Notes |
|---|---|---|---|
| Development | Windows 11 (WAMP) | MySQL 8.4.7 | User: root, no password |
| Staging | Ubuntu VPS | MySQL 8.x | User: peter, password required |
| Production | Debian VPS | MySQL 8.x | User: peter, password required |
Cross-platform rules:
utf8mb4_unicode_ci collation (never utf8mb4_0900_ai_ci or utf8mb4_general_ci)database/migrations-production/ with -production suffixExtended guidance for mysql-best-practices was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
When to UseSchema DesignIndexingQuery PerformanceSecurityTransactions & LockingAdvanced SQLServer TuningOperationsMySQL 8 Exclusive FeaturesChecklistdata-ai
Use when adding AI-powered analytics to a SaaS platform — semantic search over business data, natural language queries, trend detection, anomaly alerts, and AI-generated insights for dashboards. Covers embeddings, NL2SQL, and per-tenant analytics...
data-ai
Design AI-powered analytics dashboards — what metrics to show, how to display AI predictions and confidence, drill-down patterns, KPI cards, trend visualisation, AI Insights panels, export design, and role-based dashboard variants. Invoke when...
development
Use when designing, building, reviewing, or upgrading production software systems that must be secure, performant, maintainable, scalable, and user-centered. Apply before writing specs, code, architecture, APIs, databases, mobile apps, SaaS platforms, or ERP systems.
development
Professional web app UI using commercial templates (Tabler/Bootstrap 5) with strong frontend design direction when needed. Use for CRUD interfaces, dashboards, admin panels with SweetAlert2, DataTables, Flatpickr. Clone seeder-page.php, use...