← 返回
未分类 中文

Excel Report

Create formatted Excel report workbooks from CSV files using openpyxl. Use when the user provides or references a .csv file and asks to convert it to .xlsx,...
使用 openpyxl 从 CSV 文件创建格式化的 Excel 报表工作簿。当用户提供或引用 .csv 文件并要求将其转换为 .xlsx 时使用。
ms-yun
未分类 clawhub v1.0.0 1 版本 99530.5 Key: 无需
★ 0
Stars
📥 212
下载
💾 0
安装
1
版本
#latest

概述

Excel Report

Convert CSV files into polished Excel .xlsx reports with the bundled openpyxl script.

Workflow

  1. Locate the input CSV file and decide an output .xlsx path. Default to the same basename beside the CSV unless the user specifies otherwise.
  2. Use the bundled script:
python3 /home/ubuntu/.openclaw/workspace/skills/excel-report/scripts/csv_to_excel_report.py input.csv output.xlsx
  1. Verify the workbook was created. For important outputs, inspect the workbook with openpyxl or run a quick file check.
  2. Return the generated .xlsx file path, and attach it with MEDIA: when replying in a channel that supports file delivery.

What the script does

  • Reads CSV with UTF-8 BOM support and delimiter sniffing.
  • Creates an Excel workbook with a Report sheet.
  • Styles the header row with a dark blue fill and white bold text.
  • Converts numeric-looking cells to numbers and applies thousands separators.
  • Adds a bold total row with SUM formulas for numeric columns.
  • Adds a simple bar chart for the first numeric column using the first column as categories, limited to the first 10 data rows.
  • Adds an Excel table, filters, frozen header row, and autosized columns.

Options

  • Omit the output path to create input.xlsx beside the CSV.
  • Use --sheet-name "Name" to set the worksheet title.

Dependency

The script requires openpyxl. If it is missing, install it in the active Python environment before running:

python3 -m pip install openpyxl

Do not use pandas for the core conversion unless the user explicitly asks; this skill is designed around openpyxl.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-25 17:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,924
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,223 📥 267,293
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,370 📥 319,642