Agent Skills
› Zafer-Liu/Data-Analysis-Agent
› chart
chart
GitHub根据数据特征和可视化目标(比较、趋势等)智能选择并生成业务图表。流程包括检查Schema、查询最小数据集、选定图表类型及映射字段,确保标题坐标轴明确。
Trigger Scenarios
需要生成数据可视化图表
用户询问数据分布或趋势
需要将数据转换为图形展示
Install
npx skills add Zafer-Liu/Data-Analysis-Agent --skill chart -g -y
SKILL.md
Frontmatter
{
"icon": "📊",
"name": "chart",
"description": "根据当前数据选择并生成合适的业务图表(visualization 可视化)",
"allowedTools": [
"get_schema",
"query_data",
"select_chart",
"generate_chart"
]
}
图表分析
先检查字段、口径和数据量,再查询绘图所需的最小数据集。根据比较、趋势、分布、关系或构成目标选择图形;标题、坐标轴和单位必须明确。若用户未指定图形,说明选择理由并生成最合适的一种。
Tool routing
- Use
get_schemato inspect available tables and fields. - Use
query_datato verify the minimum data needed for the chart and avoid guessing column names. - Use
select_chartwhen the user intent does not already determine a chart type. - Use
generate_chartwith the selected chart id and explicit field mapping.
Implementation reference
- Tool entries:
agent/tools/business/data.py::_tool_select_chart,agent/tools/business/data.py::_tool_generate_chart - Chart implementation:
Function/Charts_generation/chart_generate.py - Chart catalog:
Function/Charts_generation/charts/
Version History
- d6a2c3e Current 2026-07-24 12:12


