chore(g3fo-db-ops): sync SKILL.md and db_ops implementation from project

Made-with: Cursor
This commit is contained in:
2026-03-16 16:05:34 +08:00
parent 23df8ffd75
commit cf6dc208ef
2 changed files with 29 additions and 5 deletions
+13 -4
View File
@@ -13,11 +13,20 @@ Guide for performing database operations in the G3FO project, including automate
**本技能不再使用 MCP MySQL**,改用 Python 程序 `scripts/db_ops.py` 执行所有数据库操作。
### 安装依赖
### 安装依赖与运行前提
```bash
pip install -r .claude/skills/g3fo-db-ops/scripts/requirements.txt
```
> **重要:本技能依赖本机可用的 Python 解释器。若未安装 Python 或 `python` 不在 PATH 中,在 Cursor 的 Shell 里直接执行脚本会出现 Windows `Exit code: 9009`(命令未找到)错误。**
1. 在本机安装 Python(3.8+),并确认命令行中可以直接运行:
```bash
python --version
```
如命令无效,请将 Python 安装目录加入系统 PATH,或使用 `py` / `python3` 等本机实际命令名。
2. 安装依赖:
```bash
pip install -r .claude/skills/g3fo-db-ops/scripts/requirements.txt
```
### 默认连接配置