mysql-aiops

mysql-aiops is a skill for Claude Code from AIops-tools/MySQL-AIops. It costs 490 tokens per session (4,547 once invoked), scanned A, original, MIT.

A governed operations toolkit for MySQL 8.x and MariaDB 10.6+, databases that store and query application data. It provides read and write tools for checking servers, diagnosing issues, and carrying out database administration.

In plain words
What is it for?
Use it to inspect server health, connections, variables, status, databases, sessions, slow queries, locks, replication, and storage; it also supports selected administrative changes.
Why use it?
It brings common database checks and investigations into one workflow while recording actions in a local audit log and protecting stored credentials. It can help investigate slow queries, lock waits, replication, and storage fragmentation.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: built for openclaw.

Part of the mysql-aiops plugin — 1 skill, 1 MCP server shipped together

Good fit Use it to inspect server health, connections, variables, status, databases, sessions, slow queries, locks, replication, and storage; it also supports selected administrative changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiops-tools/mysql-aiops/mysql-aiops
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 AIops-tools/MySQL-AIops --skill mysql-aiops
Clone the repo
git clone --depth 1 https://github.com/AIops-tools/MySQL-AIops

Made for: Claude Code.

Or install mysql-aiops, the plugin that ships this one along with the rest of its 1 skill, 1 MCP server.

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-aiops

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiops-tools/mysql-aiops/mysql-aiops/github.svg)](https://agentmods.dev/skills/aiops-tools/mysql-aiops/mysql-aiops)
Your own site
<a href="https://agentmods.dev/skills/aiops-tools/mysql-aiops/mysql-aiops"><img src="https://agentmods.dev/badge/skills/aiops-tools/mysql-aiops/mysql-aiops/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-aiops

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiops-tools/mysql-aiops/mysql-aiops"><img src="https://agentmods.dev/badge/skills/aiops-tools/mysql-aiops/mysql-aiops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 490 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,547 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00490 $0.04547
Opus 5 $0.00245 $0.02273
Sonnet 5 $0.00098 $0.00909
Haiku 4.5 $0.00049 $0.00455

Measured 8d ago against content hash 25ea203e8bf6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

mysql-aiops scanned grade A with 0 findings 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 8d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mysql-aiops/SKILL.md · 213 lines

How it starts

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

MySQL AIops

Disclaimer: Community-maintained open-source project, not affiliated with, endorsed by, or sponsored by Oracle Corporation or the MariaDB Foundation. "MySQL" and "MariaDB" trademarks belong to their owners. Source at github.com/AIops-tools/MySQL-AIops under the MIT license.

Governed MySQL / MariaDB DBA operations — 35 MCP tools, every one wrapped with the bundled @governed_tool harness: a local unified audit log under ~/.mysql-aiops/, token/runaway budget guard, undo-token recording, and descriptive risk-tier labels. The account password is stored encrypted (~/.mysql-aiops/secrets.enc, Fernet + scrypt) — never plaintext on disk.

Standalone: the governance harness is bundled in the package (mysql_aiops.governance) — mysql-aiops has no external skill-family dependency. Behaviour is covered by a mock-based test suite; docs/VERIFICATION.md is the checklist for a live run against a real MySQL / MariaDB server.

What This Skill Does

Domain Tools Count Read or Write
Overview server health snapshot (version+flavor, connections, replica role) 1 1 read
Server version+flavor, variables, status, databases, engines, connection stats 6 6 read
Activity sessions, long-running queries, transactions, lock waits 4 4 read
Queries top-N statement digests, EXPLAIN FORMAT=JSON 2 2 read
Indexes unused, redundant/duplicate, cardinality stats 3 3 read
Tables sizes, data_free fragmentation, engine/row-format status 3 3 read
Replication replica status/lag, binlog/GTID 2 2 read
Analysis (flagship) slow-query RCA, lock-wait & deadlock RCA, replication-lag RCA, fragmentation 4 4 read
Writes kill-session, kill-query, drop-index 3 3 write (high)
optimize, analyze-table, create-index, SET GLOBAL, reset-stats 5 5 write (medium)
Undo undo list, undo apply 2 1 read / 1 write

Read the full file on GitHub · 213 lines

Files

What ships with it

4 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. 8d ago First seen · 213 lines · 490 tokens per session scan A 25ea203e8bf6

Subscribe to this mod's changes

mysql-aiops is a skill published in the GitHub repository AIops-tools/MySQL-AIops (0 stars, last pushed 6d ago), licensed MIT. It adds 490 tokens to every session and 4,547 once invoked, about $0.0024 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

postgres-aiops

Use this skill whenever the user needs to operate or troubleshoot a PostgreSQL server/cluster as a DBA — a one-shot cluster health overview; server reads (version/uptime, settings, extensions, databases, roles); activity (sessions, idle-in-transaction, long-running queries, locks); query stats (pgstatstatements top-N…

AIops-tools/Postgres-AIops · 443 tokens

queue-aiops

Use this skill whenever the user needs to operate a redis cache or a rabbitmq broker — a one-shot overview, redis memory posture (used vs maxmemory, eviction policy, fragmentation), SLOWLOG and a SCAN-budgeted big-key sample (never KEYS ), connected clients, CONFIG get/set, rabbitmq queues with backlog depth…

AIops-tools/Queue-AIops · 339 tokens

whodb

Query and explore databases via MCP. Use when the user asks to inspect schemas, run SQL, browse tables, analyze data quality, generate ER diagrams, or work with PostgreSQL, MySQL, MariaDB, TiDB, SQLite, MongoDB, Redis, ClickHouse, Elasticsearch, or DuckDB.

clidey/whodb · 64 tokens

schema-designer

Help design database schemas, create tables, and plan data models. Activates when users ask to create tables, design schemas, or model data relationships.

clidey/whodb · 34 tokens

query-builder

Convert natural language questions into SQL queries. Activates when users ask data questions in plain English like "show me users who signed up last week" or "find orders over $100".

clidey/whodb · 40 tokens

graphjin-eval

Create, extend, run, baseline, and diagnose GraphJin agent evaluations through the graphjin eval CLI.

dosco/graphjin · 27 tokens