MySQLTuner-perl: Skill for Claude Code

.agent/skills/diagnose-replication-lag/SKILL.md

diagnose_replication_lag is a skill for Claude Code, Codex from major/MySQLTuner-perl. It costs 32 tokens per session (404 once invoked), scanned A, original, GPL-3.0.

A workflow for diagnosing replication lag and failures between MySQL or MariaDB database servers. Replication copies database changes from one server to another, and lag means the copy is behind.

In plain words
What is it for?
Use it to investigate delayed replicas, failed I/O or SQL threads, GTID mismatches, and overloaded parallel workers.
Why use it?
It focuses investigation on network or disk threads, SQL workers, GTID synchronisation, and worker saturation instead of treating all delay as the same problem.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

This is major/MySQLTuner-perl's own configuration. It tells Claude Code and Codex how to work on MySQLTuner-perl itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything MySQLTuner-perl configures →

About the project

Major/MySQLTuner-perl is a Perl script that examines a MySQL-compatible database installation and suggests configuration changes for better performance and stability. Database administrators use it to review configuration and status data for MySQL, MariaDB, and Percona Server. The catalogue add-ons support workflows for running and interpreting MySQLTuner.

major/MySQLTuner-perl · 9,476 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to major/MySQLTuner-perl. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/major/MySQLTuner-perl/master/.agent/skills/diagnose-replication-lag/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/major/MySQLTuner-perl

Made for: Claude Code, Codex.

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 diagnose_replication_lag

README.md
[![agentmods](https://agentmods.dev/badge/skills/major/mysqltuner-perl/diagnose-replication-lag/github.svg)](https://agentmods.dev/skills/major/mysqltuner-perl/diagnose-replication-lag)
Your own site
<a href="https://agentmods.dev/skills/major/mysqltuner-perl/diagnose-replication-lag"><img src="https://agentmods.dev/badge/skills/major/mysqltuner-perl/diagnose-replication-lag/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 diagnose_replication_lag

Your own site · 80×15
<a href="https://agentmods.dev/skills/major/mysqltuner-perl/diagnose-replication-lag"><img src="https://agentmods.dev/badge/skills/major/mysqltuner-perl/diagnose-replication-lag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 404 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 unknown 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.00032 $0.00404
Opus 5.5 $0.00013 $0.00162
Sonnet 5.5 $0.00006 $0.00081
Haiku 4.5 $0.00003 $0.00040

Measured 16d ago against content hash 624aec7ca649, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diagnose_replication_lag 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 16d 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.

.agent/skills/diagnose-replication-lag/SKILL.md · 31 lines

The source is not reproduced here

Licensed GPL-3.0

The repository is licensed GPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 16d ago First seen · 31 lines · 32 tokens per session scan A 624aec7ca649

Subscribe to this mod's changes

diagnose_replication_lag is a skill published in the GitHub repository major/MySQLTuner-perl (9,476 stars, last pushed 9d ago), licensed GPL-3.0. It adds 32 tokens to every session and 404 once invoked, about $0.0001 per session on Opus 5.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-10-22.

Related

diagnose_replication_lag compared with skills from other repositories

diagnose_replication_lag next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnose_replication_lagmajor/MySQLTuner-perlSkill9.5k9d agoGPL-3.0A32Claude Code, Codex
reproduce-buggoogleapis/mcp-toolboxSkill17kyesterdayApache-2.0A130Claude Code, Codex
triage-issuesgoogleapis/mcp-toolboxSkill17kyesterdayApache-2.0A164Claude Code, Codex
postgresql-indexingprowler-cloud/prowlerSkill15kyesterdayApache-2.0A108Claude Code
graphjin-evaldosco/graphjinSkill3.2k5d agoApache-2.0A27Claude Code, Codex
axiom-audit-grdb-performanceCharlesWiltgen/AxiomSkill1.3kyesterdayMITA43Codex
django-perf-reviewgetsentry/skillsSkill1.1kyesterdayApache-2.0A55Claude Code