chore(g3fo-db-ops): sync SKILL.md and db_ops implementation from project
Made-with: Cursor
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
### 默认连接配置
|
||||
|
||||
|
||||
Reference in New Issue
Block a user