According to AlphaMoat, as of 2026-10, MySQL has 22,826 downloads and 10 stars — ranked by downloads #1,242 among 10,914 AI skills in this ranking, and #84 of 1,069 in Development.
The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.
| Platform | Downloads | Stars | Comments |
|---|---|---|---|
| ClawHub ↗ | 6.0K | 6 | - |
| SkillHub ↗ | 22.8K | 10 | — |
Platforms count differently and update at different times.
It covers character sets, indexing, transactions, and common production patterns. Key points include using utf8mb4 rather than the three-byte utf8 that cannot store emoji, matching the connection charset, watching for JOIN slowdowns when collations differ across tables, and treating REPLACE INTO as delete-then-insert that changes the auto-increment ID and fires cascading deletes.
Profile published 2026-10-27
Generated from the skill’s documentation as examples; not results of actual runs.
The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.
| Month | Downloads | MoM | Stars |
|---|---|---|---|
| 2026-10 | 22.8K | — | 10 |
| 2026-09 | 10.1K | — | 10 |
| 2026-08 | 7.7K | +15.6% | 10 |
| 2026-07 | 6.7K | +13.8% | 9 |
| 2026-06 | 5.9K | +22.3% | 8 |
| 2026-05 | 4.8K | — | 8 |
| 2026-03 | 3.5K | — | 6 |
The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.
---
name: MySQL
slug: mysql
version: 1.0.1
description: Write correct MySQL queries with proper character sets, indexing, transactions, and production patterns.
metadata: {"clawdbot":{"emoji":"🐬","requires":{"bins":["mysql"]},"os":["linux","darwin","win32"]}}
---
## Quick Reference
| Topic | File | |-------|------| | Index design deep dive | `indexes.md` | | Transactions and locking | `transactions.md` | | Query optimization | `queries.md` | | Production config | `production.md` | ## Character Set Traps - `utf8` is broken—only 3 bytes, can't store emoji; always use `utf8mb4` - `utf8mb4_unicode_ci` for case-insensitive sorting; `utf8mb4_bin` for exact byte comparison - Collation mismatch in JOINs kills performance—ensure consistent collation across tables - Connection charset must match: `SET NAMES utf8mb4` or connection string parameter - Index on utf8mb4 column larger—may hit index size limits; consider prefix index ## Index Differences from PostgreSQL - No partial indexes—can't `WHERE active = true` in index definition - No expression indexes until MySQL 8.0.13—must use generated columns before that - TEXT/BLOB needs prefix length: `INDEX (description(100))`—without length, error - No INCLUDE for covering—add columns to index itself: `INDEX (a, b, c)` to cover c - Foreign keys auto-indexed only in InnoDB—verify engine before assuming ## UPSERT Patterns - `INSERT ... ON DUPLICATE KEY UPDATE`—not standard SQL; needs unique key conflict - `LAST_INSERT_ID()` for auto-increment—no RETURNING clause like PostgreSQL - `REPLACE INTO` deletes then inserts—changes auto-increment ID, triggers DELETE cascade - Check affected rows: 1 = inserted, 2 = updated (counter-intuitive) ## Locking Traps - `SELECT ... FOR UPDATE` locks rows—but gap locks may lock more than expected - InnoDB uses next-key locking—prevents phantom reads but can cause deadlocks - Lock wait timeout default 50s—`innodb_lock_wait_timeout` for adjustment - `FOR UPDATE SKIP LOCKED` exists in MySQL 8+—queue pattern - InnoDB default isolation is REPEATABLE READ, not READ COMMITTED like PostgreSQL - Deadlocks are expected—code must catch and retry, not just fail ## GROUP BY Strictness - `sql_mode` includes `ONLY_FULL_GROUP_BY` by default in MySQL 5.7+ - Non-aggregated columns must be in GROUP BY—unlike old MySQL permissive mode - `ANY_VALUE(column)` to silence error when you know values are same - Check sql_mode on legacy databases—may behave differently ## InnoDB vs MyISAM - Always use InnoDB—transactions, row locking, foreign keys, crash recovery - MyISAM still default for some system tables—don't use for application data - Check engine: `SHOW TABLE STATUS`—convert with `ALTER TABLE ... ENGINE=InnoDB` - Mixed engines in JOINs work but lose transaction guarantees ## Query Quirks - `LIMIT offset, count` different order than PostgreSQL's `LIMIT count OFFSET offset` - `!=` and `<>` both work; prefer `<>` for SQL standard - No transactional DDL—`ALTER TABLE` commits immediately, can't rollback - Boolean is `TINYINT(1)`—`TRUE`/`FALSE` are just 1/0 - `IFNULL(a, b)` instead of `COALESCE` for two args—though COALESCE works ## Connection Management - `wait_timeout` kills idle connections—default 8 hours; pooler may not notice - `max_connections` default 151—often too low; each uses memory - Connection pools: don't exceed max_connections across all app instances - `SHOW PROCESSLIST` to see active connections—kill long-running with `KILL <id>` ## Replication Awareness - Statement-based replication can break with non-deterministic functions—UUID(), NOW() - Row-based replication safer but more bandwidth—default in MySQL 8 - Read replicas have lag—check `Seconds_Behind_Master` before relying on replica reads - Don't write to replica—usually read-only but verify ## Performance - `EXPLAIN ANALYZE` only in MySQL 8.0.18+—older versions just EXPLAIN without actual times - Query cache removed in MySQL 8—don't rely on it; cache at application level - `OPTIMIZE TABLE` for fragmented tables—locks table; use pt-online-schema-change for big tables - `innodb_buffer_pool_size`—set to 70-80% of RAM for dedicated DB server
【全栈能力】编程大神.Skill:面向复杂真实项目的高阶全栈编程助手。不止生成代码,而是从一句目标接手陌生代码库,拆解需求、补齐实现、追到根因、完成重构、联调前后端,并把结果推进到能运行、能验证、能交付。覆盖 Web、后端、脚本、iOS、安卓、鸿蒙 ArkUI、微信小程序及其他技术栈,支持中英文工程、疑难 Bug、跨模块任务和长任务续做;用构建、日志、真实入口、设备或接口证据说明结果。仅问概念时直接回答,要求落地时持续推进到验收或明确阻塞。
编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。
编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。
编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。
工程专题、鸿蒙与微信小程序开发的集成派生版
编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。
适用场景:全栈编程助手。接到需求先读现有代码和约束,再动手:Java/PHP 开发、接口设计、缺陷定位、代码评审、重构、测试用例、性能排查、技术选型与文档产出,也做 CMS 二次开发、前端页面和 MySQL 调优。每次改动先给方案和影响范围,改完必须跑验证,交付附交接说明。适合要把代码真正跑通、而不是只要片段的场景。写完代码常要配套的造价、法律、工程文档,站内已有现成技能,用「查找技能」按需求找即可。
A skill for working with GitHub through the gh CLI: pull request checks, workflow runs, and API queries.
Turns corrections and self-review into tiered memory and promotes or archives it by use.
Creates, inspects, and edits Excel files while keeping formulas, formatting, and workbook structure intact.
A working guide for Word and DOCX documents that keeps styles, numbering, and layout intact after edits.
An AI video generation and orchestration skill across several model APIs.
A data-analysis skill that turns databases, spreadsheets, and raw exports into decision-ready conclusions.
Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.