Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
sanjay3290 avatar

Mysql

  • 336 installs
  • 364 repo stars
  • Updated July 9, 2026
  • sanjay3290/ai-skills

mysql is an agent automation skill that assists MySQL tasks for developers who need database setup, querying, and routine operations in Claude Code workflows.

About

mysql is a developer automation skill intended to help with MySQL-related tasks inside agent workflows. mysql can be used during implementation and troubleshooting when developers need help shaping SQL queries, reasoning about schema changes, or planning operational steps for a MySQL-backed service. mysql is positioned for Claude Code workflows, which suggests it is meant to be invoked as a reusable tool during backend work rather than as a one-time template. Developers reach for mysql when a project depends on MySQL and they want agent-driven assistance that stays focused on database artifacts like schemas, indexes, and queries.

  • Extends Claude Code agent capabilities
  • Activates on relevant task triggers
  • Integrates with Claude Code workflow

Mysql by the numbers

  • 336 all-time installs (skills.sh)
  • +8 installs in the week ending Jul 26, 2026 (Skillselion tracking)
  • Ranked #2,161 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/sanjay3290/ai-skills --skill mysql

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs336
repo stars364
Last updatedJuly 9, 2026
Repositorysanjay3290/ai-skills

How do I automate MySQL tasks with an agent?

mysql: agent skill for task automation in Claude Code workflows.

Who is it for?

mysql is best for developers working on MySQL-backed services who want agent assistance for SQL and database operations.

Skip if: mysql is not for developers using only SQLite/Postgres or who cannot access a MySQL instance from their environment.

When should I use this skill?

Invoke when a developer mentions MySQL, SQL query help, schema changes, migrations, indexing, or database connectivity errors.

What you get

SQL query drafts, schema/migration guidance, and operational steps for MySQL database tasks.

  • sql queries
  • schema guidance

Files

SKILL.mdMarkdownGitHub ↗

MySQL Read-Only Query Skill

Execute safe, read-only queries against configured MySQL databases.

Requirements

  • Python 3.8+
  • mysql-connector-python: pip install -r requirements.txt

Setup

Create connections.json in the skill directory or ~/.config/claude/mysql-connections.json.

Security: Set file permissions to 600 since it contains credentials:

chmod 600 connections.json
{
  "databases": [
    {
      "name": "production",
      "description": "Main app database - users, orders, transactions",
      "host": "db.example.com",
      "port": 3306,
      "database": "app_prod",
      "user": "readonly_user",
      "password": "your-password",
      "ssl_disabled": false
    }
  ]
}

Config Fields

FieldRequiredDescription
nameYesIdentifier for the database (case-insensitive)
descriptionYesWhat data this database contains (used for auto-selection)
hostYesDatabase hostname
portNoPort number (default: 3306)
databaseYesDatabase name
userYesUsername
passwordYesPassword
ssl_disabledNoSet to true to disable SSL (default: false)
ssl_caNoPath to CA certificate file
ssl_certNoPath to client certificate file
ssl_keyNoPath to client private key file

Usage

List configured databases

python3 scripts/query.py --list

Query a database

python3 scripts/query.py --db production --query "SELECT * FROM users LIMIT 10"

List tables

python3 scripts/query.py --db production --tables

Show schema

python3 scripts/query.py --db production --schema

Limit results

python3 scripts/query.py --db production --query "SELECT * FROM orders" --limit 100

Database Selection

Match user intent to database description:

User asks aboutLook for description containing
users, accountsusers, accounts, customers
orders, salesorders, transactions, sales
analytics, metricsanalytics, metrics, reports
logs, eventslogs, events, audit

If unclear, run --list and ask user which database.

Safety Features

  • Read-only session: Connection uses MySQL SET SESSION TRANSACTION READ ONLY (primary protection)
  • Query validation: Only SELECT, SHOW, DESCRIBE, EXPLAIN, WITH queries allowed
  • Single statement: Multiple statements per query rejected
  • SSL support: Configurable SSL with CA, client cert, and key support
  • Query timeout: 30-second max_execution_time enforced (MySQL 5.7.8+)
  • Memory protection: Max 10,000 rows per query to prevent OOM
  • Column width cap: 100 char max per column for readable output
  • Credential sanitization: Error messages don't leak passwords

Troubleshooting

ErrorSolution
Config not foundCreate connections.json in skill directory
Authentication failedCheck username/password in config
Connection timeoutVerify host/port, check firewall/VPN
SSL errorTry "ssl_disabled": true for local databases
Permission warningRun chmod 600 connections.json
max_execution_time not supportedUpgrade to MySQL 5.7.8+ or MariaDB 10.1.1+

Exit Codes

  • 0: Success
  • 1: Error (config missing, auth failed, invalid query, database error)

Workflow

1. Run --list to show available databases 2. Match user intent to database description 3. Run --tables or --schema to explore structure 4. Execute query with appropriate LIMIT

Related skills

Forks & variants (1)

Mysql has 1 known copy in the catalog totaling 11 installs. They canonicalize to this original listing.

How it compares

Pick a MySQL-specific helper when your project database is MySQL; pick a database-agnostic SQL helper when you need portability across engines.

FAQ

What is the mysql skill intended to help with?

mysql is intended to help developers automate and execute MySQL-related work such as drafting SQL queries, planning schema changes, and handling routine database operations. mysql is positioned for Claude Code workflows where database tasks come up repeatedly during backend devel

When should an agent invoke mysql?

mysql should be invoked when a developer asks about MySQL schemas, indexes, migrations, or SQL query construction and troubleshooting. mysql is most helpful when the desired output is a concrete database artifact such as a query, schema change plan, or operational checklist.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.