From app-dev
This skill should be used when the user asks to "write a MySQL query", "configure my.cnf", "choose a storage engine", "tune MySQL performance", "set up MySQL replication", or mentions "mysql", "mariadb", "innodb", "my.cnf", "mysqldump", "mysql replication", "mysql tuning", "mysql index", "mysql json", "charset", "collation". Provides MySQL/MariaDB-specific expertise for SQL, storage engines, types, configuration, and tuning.
npx claudepluginhub iwritec0de/claude-plugin-marketplace --plugin app-devThis skill uses the workspace's default tool permissions.
You are a MySQL/MariaDB expert specializing in InnoDB, query optimization, and database administration.
Provides Ktor server patterns for routing DSL, plugins (auth, CORS, serialization), Koin DI, WebSockets, services, and testApplication testing.
Conducts multi-source web research with firecrawl and exa MCPs: searches, scrapes pages, synthesizes cited reports. For deep dives, competitive analysis, tech evaluations, or due diligence.
Provides demand forecasting, safety stock optimization, replenishment planning, and promotional lift estimation for multi-location retailers managing 300-800 SKUs.
You are a MySQL/MariaDB expert specializing in InnoDB, query optimization, and database administration.
utf8 is broken (3-byte, no emoji); utf8mb4 is true UTF-8utf8mb4_unicode_ci for case-insensitive, utf8mb4_bin for exact| Engine | Use Case | Notes |
|---|---|---|
| InnoDB | Everything (default) | ACID, row locks, crash recovery, FK support |
| MEMORY | Temporary lookup tables | Lost on restart, table-level locks |
| MyISAM | Legacy only | No transactions, no FK, table locks — avoid |
| Type | Use Case | Example |
|---|---|---|
JSON | Flexible data (MySQL 5.7+) | data->>'$.name', JSON_EXTRACT() |
ENUM | Fixed small sets | ENUM('active','inactive','deleted') |
SET | Multiple choice from fixed set | SET('read','write','admin') |
| Generated columns | Derived/computed data | GENERATED ALWAYS AS (price * qty) STORED |
BINARY(16) | UUID storage (compact) | UUID_TO_BIN(UUID(), 1) for ordered UUIDs |
-- Common Table Expression
WITH monthly AS (
SELECT DATE_FORMAT(created_at, '%Y-%m') AS month, SUM(total) AS revenue
FROM orders GROUP BY month
) SELECT * FROM monthly WHERE revenue > 10000;
-- Window function
SELECT name, salary, RANK() OVER (PARTITION BY department ORDER BY salary DESC) AS dept_rank
FROM employees;
-- JSON query
SELECT * FROM products WHERE data->>'$.category' = 'electronics';
-- Full-text search
SELECT *, MATCH(title, body) AGAINST('database optimization' IN BOOLEAN MODE) AS relevance
FROM articles WHERE MATCH(title, body) AGAINST('database optimization' IN BOOLEAN MODE);
Read reference/advanced-sql.md for CTEs, JSON functions, partitioning, and generated columns.
Key my.cnf settings:
| Setting | Default | Recommendation |
|---|---|---|
innodb_buffer_pool_size | 128MB | 70-80% of RAM |
innodb_log_file_size | 48MB | 1-2GB |
innodb_flush_log_at_trx_commit | 1 | 1 (safe) or 2 (faster, slight risk) |
max_connections | 151 | Based on workload + pool size |
slow_query_log | OFF | ON (always in production) |
long_query_time | 10 | 1 (catch more slow queries) |
Read reference/tuning.md for InnoDB tuning, buffer pool sizing, and monitoring.
gtid_mode=ON)Read reference/administration.md for replication setup, backup strategies, and user management.
utf8 — use utf8mb4 for full Unicode supportSELECT * in production — fetch only needed columnsreference/advanced-sql.md — CTEs, window functions, JSON, full-text, partitioningreference/administration.md — Backups, replication, user management, SSLreference/tuning.md — InnoDB tuning, buffer pool, slow query analysis