Skip to content
Back to skills

Mysql

ASecurity

Read-only MySQL/MariaDB queries over pymysql with named connection profiles. SELECT-only by default (--write to override); returns rows as JSON; schema/table introspection. MySQL has no read-only intent, so the write-guard is the enforcement.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
toolspythongobashsqldatabase

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add Procesio-Externals/procesio-cli --skill mysql --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mysql?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mysql
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/procesio-externals-mysql/badge)](https://www.skillsdirectory.com/skills/procesio-externals-mysql)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mysql
description: Read-only MySQL/MariaDB queries over pymysql with named connection profiles. SELECT-only by default (--write to override); returns rows as JSON; schema/table introspection. MySQL has no read-only intent, so the write-guard is the enforcement.
---

# mysql

Read-only MySQL/MariaDB queries over pymysql with named connection profiles. SELECT-only by default (--write to override); returns rows as JSON; schema/table introspection. MySQL has no read-only intent, so the write-guard is the enforcement.

## How to call it

```bash
python scripts/run-tool.py mysql <action> [--args]
# e.g. mysql query --profile default --sql "SELECT * FROM issues LIMIT 10"
```

One JSON object on stdout for success; `{"error": {"code", "message", "details"}}` and a non-zero exit on failure. Progress and logs go to stderr only.

**Start with `query`.**

## Actions

| action | required args | what it does |
|---|---|---|
| `add-profile` | `--name`, `--host` | Store a connection profile (config only; set the password separately via set-credential). |
| `columns` | `--profile`, `--table` | List a table's columns (name, type, nullable, key, length, default). |
| `migrate` | `--profile` | Forward-only versioned migration runner. mode=list (default, read-only) shows applied/pending + drift + danger warnings; mode=apply (gated by --apply) runs… |
| `profiles` | — | List configured connection profiles (no passwords). |
| `query` | `--profile`, `--sql` | Run read-only SQL (SELECT by default; --write allows non-SELECT). Params bound via %s placeholders, never interpolated. |
| `schema-diff` | `--left`, `--right` | Compare two schema sides and report objects added/removed/changed with a unified diff per change. Each side is a mirror directory OR profile:NAME (extracted… |
| `schema-extract` | `--profile` | Mirror every object in the database to local .sql files (one per object) under <out>/schema/<Type>/. Read-only and incremental: a re-run with no changes writes… |
| `tables` | `--profile` | List tables and views, optionally restricted to one schema. |
| `test-connection` | `--profile` | Connect and return the masked connection string + server version (never the password). |

---

Generated from `tools/mysql/tool.yaml` by `scripts/build-tool-skill.py`. Do not edit by hand — change the manifest and regenerate.

Files in this skill

  • MOVED-TO-CENTRAL.md1.3 KB
  • README.md8.6 KB
  • SKILL.md2.3 KB
  • connection.py6.4 KB
  • main.py19.6 KB
  • profiles.template.json3 B
  • schema.py15.1 KB
  • tests/conftest.py943 B
  • tests/test_manifest_sync.py2.5 KB
  • tests/test_mysql.py6.4 KB
  • tests/test_mysql_schema.py12.8 KB
  • tool.yaml8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.