MySQLTuner-perl: Skill for Claude Code

.agent/skills/detect-fragmented-tables/SKILL.md

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

A database maintenance tool for MySQL's InnoDB storage engine. It finds tables with heavily scattered storage, estimates reclaimable disk space, checks lock impact, and produces defragmentation commands.

In plain words
What is it for?
Use it to inspect storage fragmentation, estimate recoverable space, assess locking concerns, and prepare defragmentation commands.
Why use it?
It helps database operators identify wasted space and possible disruption before changing table storage. This provides a basis for safer cleanup rather than guessing which tables need maintenance.

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/detect-fragmented-tables/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 detect_fragmented_tables

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/major/mysqltuner-perl/detect-fragmented-tables"><img src="https://agentmods.dev/badge/skills/major/mysqltuner-perl/detect-fragmented-tables.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 496 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.00496
Opus 5.5 $0.00013 $0.00198
Sonnet 5.5 $0.00006 $0.00099
Haiku 4.5 $0.00003 $0.00050

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

Security

Grade A, and why

detect_fragmented_tables 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/detect-fragmented-tables/SKILL.md · 33 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 · 33 lines · 32 tokens per session scan A deb6d1cf7747

Subscribe to this mod's changes

detect_fragmented_tables 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 496 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

detect_fragmented_tables compared with skills from other repositories

detect_fragmented_tables next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
detect_fragmented_tablesmajor/MySQLTuner-perlSkill9.5k9d agoGPL-3.0A32Claude Code, Codex
create-prprisma/ormSkill48kyesterdayApache-2.0A48Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill31kyesterdayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.8kyesterdayApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex
nornicdb-cypher-queriesorneryd/NornicDBSkill923todayMITA79Claude Code, Codex
volcengine-rds-postgresqlbytedance/agentkit-samplesSkill484todayApache-2.0A63Claude Code, Codex