mysql-cli

mysql-cli is a skill for Claude Code, Codex from abdullahkhawer/devops-skills. It costs 28 tokens per session (926 once invoked), scanned B, original, Apache-2.0.

A command-line skill for working with MySQL, a database system that stores structured application data. It uses saved connection settings to inspect database schemas and run read-only queries.

In plain words
What is it for?
Use it to examine tables and schemas, query data without changing it, and troubleshoot MySQL databases.
Why use it?
It reduces the risk of exposing database passwords in shell history or process listings. It also helps keep production and non-production connections distinct.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to examine tables and schemas, query data without changing it, and troubleshoot MySQL databases.

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

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 mysql-cli

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/mysql-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/mysql-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 926 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.
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.00028 $0.00926
Opus 5.5 $0.00011 $0.00370
Sonnet 5.5 $0.00006 $0.00185
Haiku 4.5 $0.00003 $0.00093

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

Security

Grade B, and why

mysql-cli 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 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.

Asks for rootmediumPrivilege escalation

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

Configure `~/.my.cnf` with a named `[<group>]` section per environment (`host`, `port`, `database`, `user`, `password`), and `chmod 600 ~/.my.cnf`. Never share credential file contents with the assistant.
skills/mysql-cli/SKILL.md · 89 lines

How it starts

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

MySQL CLI Skill

Use the connection table and rules below when constructing all mysql commands.

Configuration

Update the table below with your connection details before using this skill:

Environment Config Group Name (in ~/.my.cnf)
Production <your-prod-group>
Staging / Non-Prod <your-nonprod-group>

If the target environment is unclear, ask the user before running any command.

Prerequisites (one-time setup by user)

If mysql is not installed or no connection group is configured, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.

brew install mysql-client && brew link --force mysql-client

Configure ~/.my.cnf with a named [<group>] section per environment (host, port, database, user, password), and chmod 600 ~/.my.cnf. Never share credential file contents with the assistant.

Command Format

Always use --defaults-group-suffix or --login-path from ~/.my.cnf — never pass raw host/user/password on the command line, where they could leak into shell history or process listings:

mysql --defaults-group-suffix=<group> -e "<SQL>"

Examples

# Non-Prod — list tables
mysql --defaults-group-suffix=<your-nonprod-group> -e "SHOW TABLES;"

# Non-Prod — describe a table
mysql --defaults-group-suffix=<your-nonprod-group> -e "DESCRIBE <table_name>;"

Available Commands

Read-only (safe, no confirmation needed)

Command Description
SHOW DATABASES; List databases
SHOW TABLES; List tables
DESCRIBE <table>; Describe a table's schema
SHOW INDEX FROM <table>; List indexes for a table
SHOW GRANTS FOR <user>; Show a user's grants (informational, not a mutation)
SELECT ... Any read-only query
EXPLAIN <query>; Show a query plan without executing it
SHOW PROCESSLIST; List currently running queries

Mutating operations (confirm with user before running)

Read the full file on GitHub · 89 lines

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. 2mo ago First seen · 89 lines · 28 tokens per session scan B b014e5be1233

Subscribe to this mod's changes

mysql-cli is a skill published in the GitHub repository abdullahkhawer/devops-skills (11 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 28 tokens to every session and 926 once invoked, about $0.0001 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-09-23.

Related

mysql-cli compared with skills from other repositories

mysql-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mysql-cliabdullahkhawer/devops-skillsSkill112mo agoApache-2.0B28Claude Code, Codex
mongodb-query-optimizerfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A98Claude Code
solr-querygriddynamics/rosettaSkill3825d agoApache-2.0A27Claude Code, Codex
proposal-troubleshoothutzelmann/thesis-proposal-skillsSkill106d agoMITA66Claude Code
epistemic-graph-troubleshootingKnuckles-Team/epistemic-graphSkill111mo agoMITA82Claude Code, Codex
remote-serveranatolykoptev/dozorSkill624d agoMITA45Claude Code, Codex
db-migration-helperwu529778790/shenzjd-skillsSkill42mo agoMITA32Claude Code, Codex