# mysql

This skill guides MySQL administration and development, from query work and index tuning to backups and replication.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 506 installs · ★ 1
- Author: pluginagentmarketplace
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pluginagentmarketplace/custom-plugin-sql/tree/HEAD/skills/mysql/SKILL.md
- Updated: 2026-01-05
- HTML: https://affpapa.org/en/nevibecode/skills/pluginagentmarketplace-mysql

## What it does

The skill covers MySQL query development and server administration. It can guide work with `SELECT`, `JOIN`, subqueries, `INSERT`, `UPDATE`, `DELETE`, stored procedures, triggers, and events. Its scope also includes database creation, users, privileges, the InnoDB and MyISAM engines, and character sets.

For performance work, it uses `EXPLAIN`, index tuning, the slow query log, and Performance Schema. It also covers `mysqldump`, binary logs, replication, Group Replication, MySQL Router, ProxySQL, and failover strategies. SQL fundamentals, Linux basics, and networking concepts are prerequisites, so those areas need to be familiar before tackling the administration tasks.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-sql --skill mysql -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/mysql/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/mysql/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-sql --skill mysql -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/mysql/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-sql --skill mysql -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/mysql/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pluginagentmarketplace/custom-plugin-sql mysql
```

2. **Manually: put the files in place**
- File: `.github/skills/mysql/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-sql --skill mysql -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-sql --path skills/mysql
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/mysql/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-sql --skill mysql -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/pluginagentmarketplace/custom-plugin-sql/tree/HEAD/skills/mysql/SKILL.md

## When to use it
- inspect a query plan with `EXPLAIN`
- tune indexes and investigate slow queries
- create MySQL users with the right privileges
- plan backups with `mysqldump`
- configure replication and a failover strategy

## Example prompts
- Review this MySQL query with several `JOIN` clauses and suggest suitable indexes.
- Check the MySQL user setup and write SQL for the required privileges.
- Plan a backup flow with `mysqldump` and outline the replication setup.

## Similar
- [xlsx](https://affpapa.org/en/nevibecode/skills/xlsx.md) — skill · 187223 installs
- [google-agents-cli-observability](https://affpapa.org/en/nevibecode/skills/google-agents-cli-observability.md) — skill · 511300 installs
- [caveman-evidence-review](https://affpapa.org/en/nevibecode/skills/caveman-evidence-review.md) — skill · 104500 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs
- [performance-optimization](https://affpapa.org/en/nevibecode/skills/performance-optimization.md) — skill · 65200 installs
- [supabase](https://affpapa.org/en/nevibecode/skills/supabase.md) — skill · 8 installs

## Other versions with the same name
- [mysql · planetscale](https://affpapa.org/en/nevibecode/skills/mysql.md) — 8500 installs
- [mysql · sanjay3290](https://affpapa.org/en/nevibecode/skills/sanjay3290-mysql.md) — 420 installs
- [mysql · bagelhole](https://affpapa.org/en/nevibecode/skills/devops-skills-mysql.md) — 350 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
