SQL 查询
SkillDatabases & dataLets your agent run safe SQL queries to read data from a selected table.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the SQL 查询 skill
About this capability
Safely query the currently selected data table using SQL (data query)
What this skill tells your AI
The instructions your AI receives, as published by zafer-liu/data-analysis-agent in skills/sql/SKILL.md and read by ahel’s review.
先读取已授权分析表的 schema,确认真实表名与字段名,再编写只读 SQL。优先聚合并限制返回行数,不猜测字段;SQL 数据源只能查询用户已选择的分析表。解释查询口径并总结结果。
Tool routing
- Use
get_schemabefore writing SQL to confirm real table and field names. - Use
get_table_detailwhen a specific table needs deeper metadata. - Use
query_datafor read-only SQL. Prefer aggregate queries and explicitLIMITfor previews. - Do not use write, export, cleanup, or analysis tools from this skill.
Implementation reference
- Schema/query tool entries:
agent/tools/business/data.py::_tool_get_schema,agent/tools/business/data.py::_tool_get_table_detail,agent/tools/business/data.py::_tool_query_data - SQL validation:
agent/validate.py
Signals
- GitHub stars
- 3k
- Forks
- 221
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
sql-zafer-liu- Source
- github.com/zafer-liu/data-analysis-agent