1
0
forked from erp-dev/erp
Files
erpnew/.skills/README.md
2026-03-09 22:40:02 +08:00

44 lines
1011 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Skills 使用说明
## Flower Database Access Skill
### 位置
`.skills/flower-db-access/SKILL.md`
### 用途
为可信AI agent提供只读数据库访问能力用于
- 数据分析和统计
- 问题调试
- 报告生成
- 业务数据查询
### 特性
✅ 读取所有业务表(客户、订单、库存、生产等)
✅ 支持复杂SQL查询和JOIN
✅ 支持聚合和统计分析
❌ 禁止所有写操作
❌ 禁止访问认证相关表
### 快速开始
```bash
# 测试数据库连接
PGPASSWORD=postgres psql -h 127.0.0.1 -p 5432 -U postgres -d flower -c "\dt"
# 查询示例
PGPASSWORD=postgres psql -h 127.0.0.1 -p 5432 -U postgres -d flower -c "
SELECT id, customer_id, sales_date, status
FROM business_salesorder
WHERE merchant_id = 1
ORDER BY created_at DESC
LIMIT 10;
"
```
### 详细文档
查看 [SKILL.md](.skills/flower-db-access/SKILL.md) 获取完整使用指南。
## 其他Skills
如果需要其他自定义skills可以在此目录下创建新的skill文件夹。