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.
npx skills add 1821471638/fastadmin-ai-skills --skill mysql-dev-dbgit clone --depth 1 https://github.com/1821471638/fastadmin-ai-skillsWrote 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.
[](https://agentmods.dev/skills/1821471638/fastadmin-ai-skills/mysql-dev-db)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.pyhelper 连接数据库,不要临时生成 PHP PDO 脚本。 - 如果当前工作目录存在
scripts/mysql_dev_db.py,优先执行就近 helper;否则再按当前 shell 调用全局 skill helper。 - 命令示例必须按当前 shell 写路径变量:PowerShell 用
$env:USERPROFILE,cmd 用%USERPROFILE%,Bash/Git Bash/Linux/macOS 用$HOME。 - 优先使用
mysqlCLI,因为它最接近真实 MySQL 执行行为,适合执行.sql文件、初始化表结构和排查 SQL 错误。 - 只有
mysqlCLI 不可用时,才使用PyMySQL作为兜底。
配置读取规则
先从当前工作目录读取数据库配置。按以下顺序查找:
.env.env.local.env.development.ai/config.json中的mysql_dev_db- 当前 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
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.
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.
- 9d ago First seen · 127 lines · 106 tokens per session scan A a1658a6c33a6
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.
Other skills, from other repositories
whodb
Query and explore databases via MCP. Use when the user asks to inspect schemas, run SQL, browse tables, analyze data quality, generate ER diagrams, or work with PostgreSQL, MySQL, MariaDB, TiDB, SQLite, MongoDB, Redis, ClickHouse, Elasticsearch, or DuckDB.
schema-designer
Help design database schemas, create tables, and plan data models. Activates when users ask to create tables, design schemas, or model data relationships.
query-builder
Convert natural language questions into SQL queries. Activates when users ask data questions in plain English like "show me users who signed up last week" or "find orders over $100".
graphjin-eval
Create, extend, run, baseline, and diagnose GraphJin agent evaluations through the graphjin eval CLI.
graphjin-env
Use when setting up a training or evaluation loop against a GraphJin agent environment — running the container, reading /health, driving episodes hosted or step-by-step or with your own agent over MCP, splitting train from eval, exporting trajectories, and deciding whether two rewards can be compared.
Drizzle ORM Testing
Testing patterns for Drizzle ORM covering migration testing, query builder testing, transaction testing, and database integration testing with PostgreSQL, SQLite, and MySQL.