Install
openclaw skills install csvtoexcelConvert CSV files to professionally formatted Excel workbooks with Chinese character support, automatic formatting, and multi-sheet capabilities. Use when users need to: (1) Convert single CSV to Excel, (2) Combine multiple CSV files into one Excel with separate sheets, (3) Format CSV data with headers, borders, and auto-adjusted columns, (4) Handle Chinese or other non-ASCII characters in CSV files, or (5) Create professional Excel reports from CSV data.
openclaw skills install csvtoexcelThis skill enables conversion of CSV files to Excel format with professional formatting, proper encoding handling for Chinese characters, and support for combining multiple CSV files into a single Excel workbook with separate sheets.
Use the csv_to_excel.py script for all conversions:
# Single CSV to Excel
python scripts/csv_to_excel.py input.csv output.xlsx
# Multiple CSVs to one Excel (each becomes a sheet)
python scripts/csv_to_excel.py file1.csv file2.csv file3.csv --output combined.xlsx
# With custom sheet names
python scripts/csv_to_excel.py sales.csv inventory.csv --output report.xlsx --sheet-names "销售数据" "库存数据"
User says: "Convert this data.csv to Excel"
python scripts/csv_to_excel.py data.csv data.xlsx
User says: "Combine these CSV files into one Excel, each file as a separate sheet"
python scripts/csv_to_excel.py sales_2024.csv sales_2025.csv inventory.csv --output report.xlsx
Result: report.xlsx with 3 sheets named "sales_2024", "sales_2025", "inventory"
User says: "Create an Excel with these CSVs and name the sheets in Chinese"
python scripts/csv_to_excel.py q1.csv q2.csv q3.csv q4.csv --output 年度报告.xlsx --sheet-names "第一季度" "第二季度" "第三季度" "第四季度"
User says: "This CSV has Chinese text and it shows as garbled characters in Excel"
The script automatically detects encoding and handles Chinese characters:
python scripts/csv_to_excel.py 中文数据.csv 输出.xlsx
The script tries these encodings in order:
The script requires openpyxl:
pip install openpyxl
Issue: Chinese characters still appear garbled
Issue: Sheet name error
Issue: Empty sheets created
Issue: Script not found
python .kiro/skills/csv-to-excel/scripts/csv_to_excel.py