agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/mysql/SKILL.md

mysql

Skill13 starsChanged 27 days agoMITView on GitHub

The world's most popular open source database. - postgresql (Score: 0.93) Why: Direct relationship, Both are Databases, Shared ecosystem (database), Can deploy to aws, Similar network profile - prisma (Score: 0.73) Why: Direct relationship, Both are Databases, Similar network profile - drizzle (Score: 0.72) Why: Direct relationship, Both are Databases, Similar network profile

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use EXPLAIN to diagnose slow queries.

    line 44
  2. Distinctive:

    Use this when your agent works with mysql — structured patterns beat pasted docs and prevent common hallucinations.

    line 53

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MySQL Skill

The world's most popular open source database.

Ecosystem Graph Preview

graph LR
  mysql["mysql"]:::core
  classDef core fill:#f9f,stroke:#333,stroke-width:4px;
  drizzle -- "integrates with" --> mysql
  mysql -- "extended by" --> planetscale
  mysql -- "integrates with" --> prisma
  mysql -- "alternative to" --> postgresql
  postgresql -- "alternative to" --> mysql
  prisma -- "integrates with" --> mysql

Recommended Next Skills

  • postgresql (Score: 0.93) Why: Direct relationship, Both are Databases, Shared ecosystem (database), Can deploy to aws, Similar network profile
  • prisma (Score: 0.73) Why: Direct relationship, Both are Databases, Similar network profile
  • drizzle (Score: 0.72) Why: Direct relationship, Both are Databases, Similar network profile

Quick Start

MySQL is highly optimized for read-heavy web workloads. The InnoDB storage engine provides robust ACID compliance.

docker run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret mysql:8

Production Patterns

Index Optimizations

MySQL heavily relies on clustered indexes (the Primary Key). Always define an auto-incrementing integer or sequential UUID (UUID v7) as your primary key to prevent massive index fragmentation and page splits during high-volume inserts.

Architecture & Scaling

Replication

MySQL's asynchronous replication is the standard for scaling read traffic. Write to the Primary node, and read from Read Replicas, but ensure your application can handle the replication lag (milliseconds).

Error Recovery

Use EXPLAIN to diagnose slow queries. If MySQL is performing a 'filesort' or full table scan, you are missing a critical composite index.

Security Notes

Disable local_infile to prevent arbitrary file reading vulnerabilities. Ensure sql_mode includes STRICT_ALL_TABLES to prevent MySQL from silently truncating strings that exceed column lengths.

References

Why use this skill

Use this when your agent works with mysql — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Inventing column names or schema fields
  • Using deprecated driver methods or wrong connection strings
  • Omitting connection pooling or transaction boundaries

Production checklist

  • Migrations version-controlled and applied via CI
  • Connection limits and pooling configured
  • Backups and restore procedure documented

Related skills

  • planetscale — extended by
  • prisma — integrates with
  • postgresql — alternative to

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.