Loading...
Loading...
Read, edit, analyze, and create Microsoft Excel files (.xlsx, .xls, .xlsm, .csv, .tsv). Use when a user asks to: (1) Open/read/inspect an Excel file, (2) Edit or modify spreadsheet data, formulas, or formatting, (3) Analyze spreadsheet data and provide insights, statistics, or trends, (4) Create new Excel files with data, formulas, charts, or formatting, (5) Convert between CSV/TSV and Excel formats, (6) Build financial models or dashboards in Excel.
npx skill4agent add sentry01/copilot-cli-skills excel-toolkitpython3 scripts/setup_deps.pyscripts/inspect_excel.pyscripts/analyze_excel.pyscripts/recalc.pypython3 scripts/inspect_excel.py data.xlsx # Structure only
python3 scripts/inspect_excel.py data.xlsx --data # With data preview
python3 scripts/inspect_excel.py data.xlsx --sheet "Sales" # Specific sheet
python3 scripts/inspect_excel.py data.xlsx --data --rows 50 # More preview rowspython3 scripts/analyze_excel.py data.xlsx # Basic stats
python3 scripts/analyze_excel.py data.xlsx --correlations # With correlations
python3 scripts/analyze_excel.py data.xlsx --sheet "Revenue" # Specific sheetpython3 scripts/recalc.py output.xlsx [timeout_seconds]import pandas as pd
df = pd.read_excel('file.xlsx') # First sheet
df = pd.read_excel('file.xlsx', sheet_name='Sales') # Named sheet
all_sheets = pd.read_excel('file.xlsx', sheet_name=None) # All sheets as dict
df = pd.read_excel('file.xlsx', dtype={'id': str}) # Force typesfrom openpyxl import Workbook
from openpyxl.styles import Font, PatternFill, Alignment
wb = Workbook()
ws = wb.active
ws.title = "Data"
ws['A1'] = 'Category'
ws['A1'].font = Font(bold=True)
ws.append(['Sales', 1500])
ws['B3'] = '=SUM(B2:B2)'
ws.column_dimensions['A'].width = 18
wb.save('output.xlsx')from openpyxl import load_workbook
wb = load_workbook('existing.xlsx') # preserves formulas
ws = wb['Sheet1']
ws['A1'] = 'Updated'
ws.insert_rows(2)
wb.save('modified.xlsx')ws['B10'] = df['Sales'].sum()ws['B10'] = '=SUM(B2:B9)'python3 scripts/recalc.py output.xlsxdata_only=Trueload_workbook()scripts/inspect_excel.pyscripts/analyze_excel.py --correlationsreferences/advanced-patterns.mdreferences/advanced-patterns.md