excel-heredoc-workaround
Installation
SKILL.md
Excel Heredoc Workaround
Purpose
When creating Excel files with openpyxl, execute_code_sandbox may fail due to environment issues. This skill provides a robust workaround: fall back to run_shell with inline Python heredoc scripts to create properly formatted spreadsheets with styling.
When to Use
- You need to create
.xlsxfiles with openpyxl execute_code_sandboxfails with openpyxl-related errors- You need styling, formatting, or complex spreadsheet features
- Direct shell execution with Python heredoc is available
Step-by-Step Instructions
Step 1: Attempt execute_code_sandbox First
Try creating the Excel file using execute_code_sandbox: