mysql

mysql is a skill for Claude Code from sanjay3290/ai-skills. It costs 79 tokens per session (997 once invoked), scanned B, original, Apache-2.0.

A read-only tool for running SQL queries against configured MySQL databases. MySQL is a database system, and SQL is the language used to request data from it.

In plain words
What is it for?
Use it to explore tables, run SELECT queries, analyze records, and choose among configured database connections based on what each contains.
Why use it?
It lets you inspect database structure and contents without changing stored data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ai-skills plugin — 25 skills shipped together

Good fit Use it to explore tables, run SELECT queries, analyze records, and choose among configured database connections based on what each contains.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sanjay3290/ai-skills/mysql
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sanjay3290/ai-skills --skill mysql
Clone the repo
git clone --depth 1 https://github.com/sanjay3290/ai-skills

Made for: Claude Code.

Or install ai-skills, the plugin that ships this one along with the rest of its 25 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mysql

README.md
[![agentmods](https://agentmods.dev/badge/skills/sanjay3290/ai-skills/mysql/github.svg)](https://agentmods.dev/skills/sanjay3290/ai-skills/mysql)
Your own site
<a href="https://agentmods.dev/skills/sanjay3290/ai-skills/mysql"><img src="https://agentmods.dev/badge/skills/sanjay3290/ai-skills/mysql/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mysql

Your own site · 80×15
<a href="https://agentmods.dev/skills/sanjay3290/ai-skills/mysql"><img src="https://agentmods.dev/badge/skills/sanjay3290/ai-skills/mysql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 997 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk pass 4 Mar 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 3
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Privilege Escalation · line 25
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 120
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.00997
Opus 5.5 $0.00032 $0.00399
Sonnet 5.5 $0.00016 $0.00199
Haiku 4.5 $0.00008 $0.00100

Measured 3mo ago against content hash 467d81a95865, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

mysql scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/query.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 600 connections.json
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • mysql — 100% identical, 0 lines differ
skills/mysql/SKILL.md · 134 lines

How it starts

The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Field Required Description
name Yes Identifier for the database (case-insensitive)
description Yes What data this database contains (used for auto-selection)
host Yes Database hostname
port No Port number (default: 3306)
database Yes Database name
user Yes Username
password Yes Password
ssl_disabled No Set to true to disable SSL (default: false)
ssl_ca No Path to CA certificate file
ssl_cert No Path to client certificate file
ssl_key No Path 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 about Look for description containing
users, accounts users, accounts, customers
orders, sales orders, transactions, sales
analytics, metrics analytics, metrics, reports
logs, events logs, events, audit

Read the full file on GitHub · 134 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 134 lines · 79 tokens per session scan B 467d81a95865

Subscribe to this mod's changes

mysql is a skill published in the GitHub repository sanjay3290/ai-skills (462 stars, last pushed 28d ago), licensed Apache-2.0. It adds 79 tokens to every session and 997 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

mysql compared with skills from other repositories

mysql next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mysqlsanjay3290/ai-skillsSkill46228d agoApache-2.0B79Claude Code
postgresqlaiskillstore/marketplaceSkill508yesterdaynoneA40Claude Code, Codex
mirrord-db-branchingaiskillstore/marketplaceSkill508yesterdaynoneA91Claude Code, Codex
insforgeaiskillstore/marketplaceSkill508yesterdaynoneA121Codex
convexaiskillstore/marketplaceSkill508yesterdaynoneA202Claude Code, Codex
firebase-developmentaiskillstore/marketplaceSkill508yesterdaynoneA67Claude Code, Codex
prisma-orm-setupaiskillstore/marketplaceSkill508yesterdaynoneA94Claude Code, Codex