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 23d 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 23d 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. 23d 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 (8 stars, last pushed 24d 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

Other skills, from other repositories

mongodb-query-optimizer

Help with MongoDB query optimization and indexing. Use only when the user asks for optimization or performance: "How do I optimize this query?", "How do I index this?", "Why is this query slow?", "Can you fix my slow queries?", "What are the slow queries on my cluster?", etc. Do not invoke for general MongoDB query…

fcakyon/claude-codex-settings · 98 tokens

solr-query

To build and debug Solr queries: eDisMax, block join, JSON facets, kNN, explain.

griddynamics/rosetta · 27 tokens

proposal-troubleshoot

Diagnose a problem with the proposal skills themselves — a script that fails, a rule applied wrongly, output that contradicts the skill's own stated mandate — and assemble a bug report when it turns out to be a real defect. Use when a skill misbehaved, not when the proposal needs improving.

hutzelmann/thesis-proposal-skills · 66 tokens

epistemic-graph-troubleshooting

Diagnose and recover a live epistemic-graph engine (the SI-native database): engine down / socket refused, host-daemon crash-loop, circuit-breaker open, backend-type errors, zombie containers, duplicate Swarm tasks, slow first boot. Use when the KG is unreachable, ingestion stalls, go tools error, or a deploy left the…

Knuckles-Team/epistemic-graph · 82 tokens

remote-server

Remote server management and troubleshooting via SSH. AUTO-CONSULT when: remote site is down, remote service issues, nginx/PHP/database errors, SSL problems on remote server, or healthcheck reports remote issues.

anatolykoptev/dozor · 45 tokens

db-migration-helper

Use when generating database migration SQL from model or schema changes — compares current vs desired schema, detects diffs, outputs reversible safe migrations.

wu529778790/shenzjd-skills · 32 tokens