mysql-python-shim

A tool to install/repair/update/package a Windows `mysql` command implemented in Python and PyMySQL. Used to redirect `mysql` typed in PowerShell/CMD to the Python implementation, support interactive MySQL connection input, sync to the current user's local bin directory, or package this capability as a reusable Codex skill.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "mysql-python-shim" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5999dc5a2481bda6739d7a8d47b9faa7c2a3a68b7178b63e9a15092d070ce74f. Verify the upstream source and version against https://skillhub.cn/skills/user_c9af6e01/mysql-python-shim before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A tool to install/repair/update/package a Windows `mysql` command implemented in Python and PyMySQL. Used to redirect `mysql` typed in PowerShell/CMD to the Python implementation, support interactive MySQL connection input, sync to the current user's local bin directory, or package this capability as a reusable Codex skill.

0 Downloads

Introduction source: third_party · user_c9af6e01 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: mysql-python-shim
description: 安装、修复、更新或打包一个基于 Python 和 PyMySQL 实现的 Windows `mysql` 命令。适用于用户希望在 PowerShell/CMD 中输入 `mysql` 时重定向到 Python 实现、需要交互式输入 MySQL 连接信息、需要同步到当前用户本地 bin 目录,或需要将该能力封装成可公开复用的 Codex skill。

MySQL Python 命令桥接

工作流程

在 Windows 上维护或分发 Python 版 mysql 命令时使用此 skill。

  1. 优先运行内置同步脚本:
python scripts/install_or_sync.py
  1. 验证命令是否可被系统识别:
Get-Command mysql
mysql --help
  1. 如果已有连接信息,使用显式参数测试连接:
mysql -h <host> -P 3306 -u <user> -p -D <database>
  1. 如果用户直接运行 mysql,桥接脚本应先提示输入 Host、Port、User、Database、Password,然后再进入 SQL 交互提示符。

行为

  • 将文件安装到当前用户的 .local\bin 目录。
  • 确保该本地 bin 目录已加入 Windows 用户 PATH。
  • 如果当前 Python 环境无法导入 PyMySQL,自动安装该依赖。
  • 保留 MySQL 常见参数风格:-h、-P、-u、-p、-D、-e。
  • 将该桥接脚本视为轻量客户端,不要把它当作 Oracle 官方 mysql.exe 的完整替代品。

公开分发

公开分享时,分发完整的 mysql-python-shim 文件夹或包含以下内容的 zip 包:

  • SKILL.md
  • agents/openai.yaml
  • scripts/install_or_sync.py
  • scripts/mysql_py.py

不要包含 __pycache__ 等本地缓存目录。 不要在 skill 包中包含 .cmd、.bat 等可能被平台拦截的脚本文件;安装脚本会在用户本地动态生成 mysql.cmd。

资源

  • scripts/install_or_sync.py:将桥接脚本同步到用户 PATH 目录。
  • scripts/mysql_py.py:Python MySQL 客户端实现。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供 Windows 环境下 Python 实现的 mysql 命令桥接,解决无官方客户端时的连接需求
  • 适用于开发、运维等通用场景,具有明确实用价值
Trigger Precision85/100

Highlights

  • description 完整覆盖安装、修复、更新、打包等核心使用场景
  • 触发词边界清晰,能有效区分同类数据库工具
Structure and Standards90/100

Areas to improve

  • 缺少 When to Use 显式章节 Reported severity: Minor

    文档未设置独立的 When to Use 章节来明确使用时机

    Recommendation: 建议增加 When to Use 章节,明确说明何时应使用此 Skill

Execution Reliability70/100

Areas to improve

  • 异常处理机制未详细说明 Reported severity: Minor

    未明确说明网络失败、权限不足等常见异常的处理方式

    Recommendation: 建议在文档中补充关键异常场景的处理说明或重试机制

Highlights

  • 提及自动安装 PyMySQL 依赖和 PATH 配置,提升执行成功率
  • 参数风格兼容官方 mysql 客户端,降低使用门槛
Evidence Verifiability (mean of the first four)80/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.