更新开发文档和技能索引,优化角色驱动的技能使用规范。调整了各角色的主技能和辅助技能的描述,确保开发者在不同目录下遵循相应的开发风格和流程。增加了变更关联检查的要求,确保代码变更后进行必要的检查以防漏改。
This commit is contained in:
20
.cursor/scripts/db-exec/README.md
Normal file
20
.cursor/scripts/db-exec/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# db-exec - MySQL 直接执行脚本
|
||||
|
||||
当 MCP MySQL 因端口非 3306 无法连接时,用此脚本执行 SQL。
|
||||
|
||||
## 首次使用
|
||||
|
||||
```bash
|
||||
cd .cursor/scripts/db-exec
|
||||
npm install
|
||||
```
|
||||
|
||||
## 用法
|
||||
|
||||
```bash
|
||||
# 从项目根目录执行
|
||||
node .cursor/scripts/db-exec/run.js "SELECT 1"
|
||||
node .cursor/scripts/db-exec/run.js -f migrations/xxx.sql
|
||||
```
|
||||
|
||||
凭证自动从 `soul-api/.env` 的 `DB_DSN` 读取。
|
||||
Reference in New Issue
Block a user