mysql-dev-db

mysql-dev-db is a skill for Claude Code, Codex from 1821471638/fastadmin-ai-skills. It costs 106 tokens per session (1,440 once invoked), scanned A, original, MIT.

A guide for coding agents that safely connects to and operates on a local MySQL development database. MySQL is a database system used to store application data.

In plain words
What is it for?
Use it to connect to a local database, inspect tables and fields, check data, run SQL files, initialise schemas, import data, and investigate SQL errors.
Why use it?
It helps inspect or change the right local database without accidentally treating a production database as a test system. It also gives the agent a consistent way to read settings and run SQL.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to connect to a local database, inspect tables and fields, check data, run SQL files, initialise schemas, import data, and investigate SQL errors.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/1821471638/fastadmin-ai-skills/mysql-dev-db"><img src="https://agentmods.dev/badge/skills/1821471638/fastadmin-ai-skills/mysql-dev-db.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,440 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00106 $0.01440
Opus 5 $0.00053 $0.00720
Sonnet 5 $0.00021 $0.00288
Haiku 4.5 $0.00011 $0.00144

Measured 9d ago against content hash a1658a6c33a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mysql-dev-db 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/mysql_dev_db.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/mysql-dev-db/SKILL.md · 127 lines

How it starts

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

MySQL 本地开发数据库

使用边界

  • 只用于本地开发数据库,不用于生产库、线上库或不可确认环境。
  • 默认用简体中文说明操作结果;SQL、命令、表名、字段名、配置 key、错误信息保持原文。
  • 优先使用当前工作目录或本 skill 自带的 mysql_dev_db.py helper 连接数据库,不要临时生成 PHP PDO 脚本。
  • 如果当前工作目录存在 scripts/mysql_dev_db.py,优先执行就近 helper;否则再按当前 shell 调用全局 skill helper。
  • 命令示例必须按当前 shell 写路径变量:PowerShell 用 $env:USERPROFILE,cmd 用 %USERPROFILE%,Bash/Git Bash/Linux/macOS 用 $HOME
  • 优先使用 mysql CLI,因为它最接近真实 MySQL 执行行为,适合执行 .sql 文件、初始化表结构和排查 SQL 错误。
  • 只有 mysql CLI 不可用时,才使用 PyMySQL 作为兜底。

配置读取规则

先从当前工作目录读取数据库配置。按以下顺序查找:

  1. .env
  2. .env.local
  3. .env.development
  4. .ai/config.json 中的 mysql_dev_db
  5. 当前 shell 环境变量

支持常见变量名:

MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE, MYSQL_CHARSET
DB_HOST, DB_PORT, DB_USER, DB_USERNAME, DB_PASSWORD, DB_DATABASE, DB_NAME, DB_CHARSET
DATABASE_URL
database.hostname, database.hostport, database.username, database.password, database.database, database.charset

如果 .env 中存在 [DATABASE] 段,也应识别:

HOSTNAME, HOSTPORT, USERNAME, PASSWORD, DATABASE, CHARSET, PREFIX

命令选择规则

先用就近 helper;只有当前工作目录没有 scripts/mysql_dev_db.py 时,才使用全局 helper。

就近 helper

就近 helper 最适合所有 AI 或 agent,因为它不依赖具体用户目录:

python scripts/mysql_dev_db.py ping
python scripts/mysql_dev_db.py tables
python scripts/mysql_dev_db.py schema
python scripts/mysql_dev_db.py describe users
python scripts/mysql_dev_db.py query "SELECT COUNT(*) AS c FROM users"
python scripts/mysql_dev_db.py file database/init.sql

全局 helper

Windows PowerShell:

python "$env:USERPROFILE\.cc-switch\skills\mysql-dev-db\scripts\mysql_dev_db.py" ping
python "$env:USERPROFILE\.cc-switch\skills\mysql-dev-db\scripts\mysql_dev_db.py" tables
python "$env:USERPROFILE\.cc-switch\skills\mysql-dev-db\scripts\mysql_dev_db.py" schema
python "$env:USERPROFILE\.cc-switch\skills\mysql-dev-db\scripts\mysql_dev_db.py" describe users
python "$env:USERPROFILE\.cc-switch\skills\mysql-dev-db\scripts\mysql_dev_db.py" query "SELECT COUNT(*) AS c FROM users"
python "$env:USERPROFILE\.cc-switch\skills\mysql-dev-db\scripts\mysql_dev_db.py" file database/init.sql

Read the full file on GitHub · 127 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 127 lines · 106 tokens per session scan A a1658a6c33a6

Subscribe to this mod's changes

mysql-dev-db is a skill published in the GitHub repository 1821471638/fastadmin-ai-skills (2 stars, last pushed 3mo ago), licensed MIT. It adds 106 tokens to every session and 1,440 once invoked, about $0.0005 per session on Opus 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-08-31.