一键导入
wrenai-query
WrenAI natural language to SQL query tool. IMPORTANT: Use exec tool to run the script directly, DO NOT implement the logic yourself.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
WrenAI natural language to SQL query tool. IMPORTANT: Use exec tool to run the script directly, DO NOT implement the logic yourself.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
获取网页完整内容的首选工具。当你需要搜索信息、读取URL、分析网页内容时,优先使用此技能而非 web_search 工具。支持浏览器指纹模拟、7种提取策略、Cookie、批量爬取,200-700ms响应。
Create scheduled tasks for recurring or one-time automated execution. Use when users want to set up tasks that run automatically at specified times (daily, weekly, monthly, cron, or one-time).
Analyze uploaded documents (PDF, Word, Excel, PPT) using local RAG system at http://localhost:9000. Use when user uploads a file and asks to analyze, summarize, or extract information from it.
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. USE THIS SKILL for ALL spreadsheet files including .xls (Excel 97-2003), .xlsx, .xlsm, .csv, .tsv. Use for: (1) Reading or analyzing spreadsheet data, (2) Creating new spreadsheets with formulas and formatting, (3) Modifying existing spreadsheets while preserving formulas, (4) Data analysis and visualization, (5) Recalculating formulas. IMPORTANT: For .xls files (legacy Excel format), you MUST use this skill - do NOT attempt to read them directly as they are binary files.
| name | wrenai-query |
| description | WrenAI natural language to SQL query tool. IMPORTANT: Use exec tool to run the script directly, DO NOT implement the logic yourself. |
YOU MUST FOLLOW THESE INSTRUCTIONS EXACTLY. DO NOT DEVIATE.
USE THE EXEC TOOL. RUN THIS EXACT COMMAND:
sh "/data/.skills/wrenai-query/scripts/wrenai" "user's natural language query here" pg
DO NOT:
WHY:
The script at /data/.skills/wrenai-query/scripts/wrenai already does everything:
Just execute the command and parse the JSON output.
sh "/data/.skills/wrenai-query/scripts/wrenai" "Query last month's KPI indicators" pg
sh "/data/.skills/wrenai-query/scripts/wrenai" "统计各渠道的业务办理量" mssql
sh "/data/.skills/wrenai-query/scripts/wrenai" "查询员工信息" hr
The script returns JSON:
{
"success": true,
"query": "查询上个月江西省的KPI指标",
"sql": "SELECT * FROM ...",
"execution_success": true,
"results": {
"records": [...],
"columns": [...],
"total_rows": 10
},
"analysis": "AI analysis text"
}
Parse this JSON to get the data. DO NOT try to execute the SQL yourself.
| Instance | Database | Use Case |
|---|---|---|
| pg | PostgreSQL | CBNBI business data, KPIs |
| mssql | SQL Server | Fanwei system data |
| hr | SQL Server | HR system data |
DO NOT USE THIS INFORMATION TO IMPLEMENT YOUR OWN SOLUTION.
/api/v1/run_sqlIf you find yourself writing Python code to call WrenAI API, YOU ARE DOING IT WRONG.
Use the script. That's it.