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.
npx skills add khalilbenaz/claude-skills-collection --skill mysql-tunergit clone --depth 1 https://github.com/khalilbenaz/claude-skills-collectionWrote 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.
[](https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/mysql-tuner)<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/mysql-tuner"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/mysql-tuner/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.
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/mysql-tuner"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/mysql-tuner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, 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 MCP Rug Pull · line 204 Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.Fix: Pin the image: image:tag or image@sha256:abc123
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00085 | $0.02338 |
| Opus 5.5 | $0.00034 | $0.00935 |
| Sonnet 5.5 | $0.00017 | $0.00468 |
| Haiku 4.5 | $0.00009 | $0.00234 |
Grade A, and why
mysql-tuner 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MySQL Tuner
Workflow
1. Activer et analyser le slow query log
# my.cnf / my.ini
slow_query_log = 1
slow_query_log_file = /var/log/mysql/slow.log
long_query_time = 1 # secondes ; descendre à 0.5 en prod chargée
log_slow_extra = 1 # MySQL 8.0.14+ : rows_examined, tmp_tables…
log_queries_not_using_indexes = 1
Analyser avec pt-query-digest (Percona Toolkit) :
pt-query-digest /var/log/mysql/slow.log \
--limit 20 \
--output report \
> /tmp/digest.txt
Critères de triage : rank par rows_examined / rows_sent (ratio > 100 = suspect), puis par durée totale cumulée.
2. Auditer les index existants
-- Requêtes sans index en production (MySQL 8+)
SELECT * FROM sys.statements_with_full_table_scans
ORDER BY no_index_used_count DESC LIMIT 20;
-- Index jamais utilisés
SELECT * FROM sys.schema_unused_indexes
WHERE object_schema NOT IN ('mysql','information_schema','performance_schema');
-- Doublons d'index
SELECT * FROM sys.schema_redundant_indexes;
EXPLAIN ANALYZE sur toute requête suspecte (MySQL 8.0.18+) :
EXPLAIN ANALYZE
SELECT u.id, o.total
FROM users u
JOIN orders o ON o.user_id = u.id
WHERE u.status = 'active' AND o.created_at > '2026-01-01';
Signaux d'alerte dans le plan : Full table scan, Using filesort, Using temporary, rows_examined >> rows_returned.
3. Concevoir la stratégie d'indexation
Règle du leftmost prefix — l'index (a, b, c) couvre WHERE a=?, WHERE a=? AND b=?, mais pas WHERE b=?.
Critères de décision :
| Cas | Solution |
|---|---|
| Filtre sur colonne haute cardinalité | Index simple |
| Filtre multi-colonnes fréquent | Index composite (sélectivité décroissante en tête) |
| SELECT ne lit que quelques colonnes | Covering index (col_filtre, col1_select, col2_select) |
| LIKE 'prefix%' | Index B-Tree classique (OK) |
| LIKE '%suffix' | Full-text index ou Elasticsearch |
| JSON path fréquent | Generated column + index |
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.
- 2mo ago First seen · 249 lines · 85 tokens per session scan A 37aa89028454
mysql-tuner is a skill published in the GitHub repository khalilbenaz/claude-skills-collection (27 stars, last pushed 3mo ago), licensed MIT. It adds 85 tokens to every session and 2,338 once invoked, about $0.0003 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-09-03.
mysql-tuner compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mysql-tunerkhalilbenaz/claude-skills-collection | Skill | 27 | 3mo ago | MIT | A | 85 | Claude Code, Codex |
| frappe-errors-databaseImpertio-Studio/Frappe_Claude_Skill_Package | Skill | 212 | 2mo ago | none | A | 142 | Claude Code, Codex |
| sql-optimization-patternswshobson/agents | Skill | 43k | yesterday | MIT | A | 44 | Claude Code |
| muse_dbasgeirtj/system_prompts_leaks | Skill | 74k | 2d ago | CC0-1.0 | A | 0 | Claude Code, Codex |
| optimizeFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | yesterday | CC-BY-SA-4.0 | A | 15 | Claude Code |
| database-patternssoftspark/ai-toolkit | Skill | 180 | 13d ago | Apache-2.0 | A | 55 | Claude Code |
| debugsoftspark/ai-toolkit | Skill | 180 | 13d ago | Apache-2.0 | A | 34 | Claude Code |