Chart
BusinesschartChart is an Agent Skill for business published in the Zafer-Liu/Data-Analysis-Agent repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
根据当前数据选择并生成合适的业务图表
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Zafer-Liu/Data-Analysis-Agent/blob/HEAD/skills/chart/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/chart, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
图表分析
先检查字段、口径和数据量,再查询绘图所需的最小数据集。根据比较、趋势、分布、关系或构成目标选择图形;标题、坐标轴和单位必须明确。若用户未指定图形,说明选择理由并生成最合适的一种。
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/