该 Skill 用于:
输入:
输出:
#e3f2fd、#bbdefb、#2196f3)
#e3f2fd、#bbdefb、#2196f3)
config.yaml 完全自定义
config.yaml 中修改数据源路径。
config.yaml 中调整可视化参数(图表类型、列名、标题等)。
```bash
python run.py
4.生成的报告将保存为 output.md(可配置)。在 Typora 或 Markor 中打开即可查看带样式的可视化结果。
本技能生成的报告完全遵循以下格式要求:
markdown ...(四个反引号)内,防止外层提前闭合。
style 属性中。
display: flex、gap、border-radius、box-shadow。
#b3e5fc,行间使用 border-bottom 分隔。
linear-gradient(145deg, #bbdefb, #b2dfdb)。
安装命令:
bash
pip install pandas matplotlib pyyaml
config.yaml)
| 参数 | 类型 | 描述 |
| :---------------- | :------ | :-------------------------------------- |
| data_source | string | CSV/JSON 文件路径(留空则使用示例数据) |
| chart_type | string | bar、line 或 scatter |
| x_column | string | X 轴列名 |
| y_column | string | Y 轴列名 |
| title | string | 报告标题 |
| output_file | string | 输出 Markdown 文件路径 |
| include_mermaid | boolean | 是否包含处理流程图 |
skill.md – 本说明文档
config.yaml – 用户设置
run.py – 主执行脚本
prompt.md – 含内联 CSS 的 HTML/Markdown 模板
schema.json – 配置文件 JSON 校验 schema
yaml
# config.yaml
data_source: "sales.csv"
chart_type: "bar"
x_column: "Month"
y_column: "Revenue"
title: "月度销售报告"
output_file: "sales_report.md"
include_mermaid: true
运行 python run.py 即可生成报告。
共 6 个版本