Skip to main content

sql

使用 SQL 安全查询当前已选择的数据表(query 数据查询)

소스 정보

저장소
Zafer-Liu/Data-Analysis-Agent
최근 소스 활동
2026년 10월 24일 14:41
감지된 SKILL.md 언어
다국어 혼합
스타
2,617
포크
233

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
sql
description
使用 SQL 安全查询当前已选择的数据表(query 数据查询)
icon
🗄️
tags
["mode-business","mode-ml","mode-empirical","data-preparation"]
allowedTools
["get_schema","get_table_detail","query_data"]
# SQL 查询 先读取已授权分析表的 schema,确认真实表名与字段名,再编写只读 SQL。优先聚合并限制返回行数,不猜测字段;SQL 数据源只能查询用户已选择的分析表。解释查询口径并总结结果。 ## Tool routing 1. Use `get_schema` before writing SQL to confirm real table and field names. 2. Use `get_table_detail` when a specific table needs deeper metadata. 3. Use `query_data` for read-only SQL. Prefer aggregate queries and explicit `LIMIT` for previews. 4. 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`
GitHub에서 보기