mysql-cli
Skill8 starsChanged 7 months agoApache-2.0View on GitHub
Perform MySQL operations using the mysql CLI. Use for inspecting schemas, running read-only queries, and troubleshooting databases across environments.
- Deletes or force-pushes
- Installs packages
In this repository54 other files it gives its agents.
- alibabacloud-cliSkill
- ansible-cliSkill
- appdynamics-cliSkill
- argocd-cliSkill
- aws-cliSkill
- aws-cloudwatch-cliSkill
- azure-cliSkill
- bash-lintingSkill
- betterstack-cliSkill
- bitbucket-cliSkill
- chef-cliSkill
- code-reviewSkill
- commit-codeSkill
- create-dockerfileSkill
- create-terraform-helm-upgrade-planSkill
- datadog-cliSkill
- digitalocean-cliSkill
- dockerfile-lintingSkill
- dynatrace-cliSkill
- elasticsearch-cliSkill
- gcp-cliSkill
- github-cliSkill
- gitlab-cliSkill
- go-lintingSkill
- grafana-cliSkill
- grafana-loki-cliSkill
- graylog-cliSkill
- helm-cliSkill
- hetzner-cliSkill
- huaweicloud-cliSkill
- jaeger-cliSkill
- jenkins-cliSkill
- jira-and-confluence-cliSkill
- kibana-cliSkill
- kubernetes-cliSkill
- loggly-cliSkill
- maintenance-check-aws-eksSkill
- maintenance-create-ticket-on-jiraSkill
- ms-teams-cliSkill
- newrelic-cliSkill
- oci-cliSkill
- packer-cliSkill
- papertrail-cliSkill
- postgresql-cliSkill
- prometheus-cliSkill
- python-lintingSkill
- rollbar-cliSkill
- salesforce-cliSkill
- sentry-cliSkill
- slack-cliSkill
- splunk-cliSkill
- terraform-cliSkill
- terraform-lintingSkill
- vault-cliSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use the connection table and rules below when constructing all mysql commands.
- Distinctive: line 12
Update the table below with your connection details before using this skill:
- Distinctive: line 19
If the target environment is unclear, ask the user before running any command.
- Very specific: line 23
If mysql is not installed or no connection group is configured, inform the user that setup is required and ask them to complete the …
- Very specific: line 33
Always use --defaults-group-suffix or --login-path from ~/.my.cnf — never pass raw host/user/password on the command line, where they could …
- Distinctive: line 84
NEVER target a connection group not listed in the configuration table above.
- Very specific: line 85
NEVER pass -h, -u, or -p<password> directly on the command line — always use --defaults-group-suffix backed by ~/.my.cnf, so credentials …
- Very specific: line 86
NEVER print, display, or store the contents of ~/.my.cnf or any credential value.
- Very specific: line 87
NEVER run DELETE, DROP, TRUNCATE, GRANT, or REVOKE without explicit user instruction — these are destructive or security-sensitive.
- Very specific: line 88
Always run EXPLAIN on unfamiliar or complex queries before executing them against a large table, to catch missing indexes or full table …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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-clientConfigure ~/.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)
| Command | Description |
INSERT / UPDATE | Insert or update rows |
CREATE TABLE / CREATE INDEX | Create new schema objects |
ALTER TABLE | Modify an existing table's structure |
Never run — requires explicit human approval
| Command | Reason |
DELETE FROM ... (without a WHERE reviewed by the user) | Can irreversibly remove rows at scale |
DROP TABLE / DROP DATABASE | Irreversible destruction of data or structure |
TRUNCATE | Irreversibly wipes all rows from a table |
GRANT / REVOKE | Alters access control, security-sensitive |
| Any DDL/DML against the production group | A human must execute changes against production data |
Rules
- NEVER target a connection group not listed in the configuration table above. If a command references an unfamiliar group, stop and ask the user to confirm.
- NEVER pass
-h,-u, or-p<password>directly on the command line — always use--defaults-group-suffixbacked by~/.my.cnf, so credentials never appear in shell history or process listings. - NEVER print, display, or store the contents of
~/.my.cnfor any credential value. - NEVER run
DELETE,DROP,TRUNCATE,GRANT, orREVOKEwithout explicit user instruction — these are destructive or security-sensitive. - Always run
EXPLAINon unfamiliar or complex queries before executing them against a large table, to catch missing indexes or full table scans. - For any
UPDATE/DELETE, always show the equivalentSELECT ... WHERE ...first and confirm the row count before proceeding.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

