Requirements for Outputs
All Excel files
Professional Font
- Use a consistent, professional font (e.g., Arial, Times New Roman) for all deliverables unless otherwise instructed by the user
Zero Formula Errors
- Every Excel model MUST be delivered with ZERO formula errors (#REF!, #DIV/0!, #VALUE!, #N/A, #NAME?)
- Always verify with:
Spreadsheet { action: "check_errors", file_path: "output.xlsx" }
Preserve Existing Templates (when updating templates)
- Study and EXACTLY match existing format, style, and conventions when modifying files
- Never impose standardized formatting on files with established patterns
- Existing template conventions ALWAYS override these guidelines
Financial models
Color Coding Standards
Unless otherwise stated by the user or existing template
Industry-Standard Color Conventions
- Blue text (RGB: 0,0,255): Hardcoded inputs, and numbers users will change for scenarios
- Black text (RGB: 0,0,0): ALL formulas and calculations
- Green text (RGB: 0,128,0): Links pulling from other worksheets within same workbook
- Red text (RGB: 255,0,0): External links to other files
- Yellow background (RGB: 255,255,0): Key assumptions needing attention or cells that need to be updated
Number Formatting Standards
Required Format Rules
- Years: Format as text strings (e.g., "2024" not "2,024")
- Currency: Use $#,##0 format; ALWAYS specify units in headers ("Revenue ($mm)")
- Zeros: Use number formatting to make all zeros "-", including percentages (e.g., "$#,##0;($#,##0);-")
- Percentages: Default to 0.0% format (one decimal)
- Multiples: Format as 0.0x for valuation multiples (EV/EBITDA, P/E)
- Negative numbers: Use parentheses (123) not minus -123
Formula Construction Rules
Assumptions Placement
- Place ALL assumptions (growth rates, margins, multiples, etc.) in separate assumption cells
- Use cell references instead of hardcoded values in formulas
- Example: Use =B5*(1+$B$6) instead of =B5*1.05
Formula Error Prevention
- Verify all cell references are correct
- Check for off-by-one errors in ranges
- Ensure consistent formulas across all projection periods
- Test with edge cases (zero values, negative numbers)
- Verify no unintended circular references
Documentation Requirements for Hardcodes
- Comment or in cells beside (if end of table). Format: "Source: [System/Document], [Date], [Specific Reference], [URL if applicable]"
- Examples:
- "Source: Company 10-K, FY2024, Page 45, Revenue Note, [SEC EDGAR URL]"
- "Source: Bloomberg Terminal, 8/15/2025, AAPL US Equity"
Workflow
Use the Spreadsheet tool for everything
The Spreadsheet tool handles ALL operations natively — no Python, no Bash, no dependencies.
Available actions
- Reading:
inspect, list_sheets, get_sheet_info, read_range
- Writing:
write_range, append_rows, set_cell (supports formulas: value: "=SUM(A1:A10)")
- Searching:
find_text
- Validation:
check_errors, inspect_formulas
- Formatting:
format_cells, set_column_width
- Structure:
create, add_sheet
- Export:
export_csv
Do NOT use Python/Bash for spreadsheet operations. The Spreadsheet tool is the single source of truth.
Common Workflows
1. Inspect an existing file
Spreadsheet { action: "inspect", file_path: "data.xlsx" }
Spreadsheet { action: "list_sheets", file_path: "data.xlsx" }
Spreadsheet { action: "read_range", file_path: "data.xlsx", sheet: "Summary", range: "A1:F20" }
2. Create a new workbook
Spreadsheet { action: "create", file_path: "output.xlsx", sheets: ["Summary", "Data", "Assumptions"] }
Spreadsheet { action: "write_range", file_path: "output.xlsx", sheet: "Summary", range: "A1", values: [["Revenue","Q1","Q2","Q3","Q4"],["Product A",100,120,130,150]] }
Spreadsheet { action: "format_cells", file_path: "output.xlsx", sheet: "Summary", range: "A1:E1", format: {"bold": true, "fill": "4472C4", "color": "FFFFFF"} }
Spreadsheet { action: "set_column_width", file_path: "output.xlsx", column: "A", width: 20 }
3. Edit existing data
Spreadsheet { action: "read_range", file_path: "model.xlsx", sheet: "Input" }
Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Input", cell: "B5", value: "150000" }
Spreadsheet { action: "append_rows", file_path: "model.xlsx", sheet: "Data", rows: [["2026-Q1", 250, 180, 70]] }
4. Verify and fix errors
Spreadsheet { action: "check_errors", file_path: "output.xlsx" }
Returns:
{
"status": "success",
"totalErrors": 0,
"formulaCount": 42,
"errorSummary": {}
}
Or if errors found:
{
"status": "errors_found",
"totalErrors": 3,
"formulaCount": 42,
"errorSummary": {
"#REF!": { "count": 2, "locations": ["Sheet1!B5", "Sheet1!C10"] },
"#DIV/0!": { "count": 1, "locations": ["Sheet1!D15"] }
}
}
Fix the identified errors and check again until status: "success".
5. Search across sheets
Spreadsheet { action: "find_text", file_path: "report.xlsx", query: "revenue" }
6. Export to CSV
Spreadsheet { action: "export_csv", file_path: "data.xlsx", sheet: "Summary" }
7. Financial model with formulas
Spreadsheet { action: "create", file_path: "model.xlsx", sheets: ["Model"] }
Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Model", cell: "A1", value: "Revenue" }
Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Model", cell: "B1", value: "Q1" }
Spreadsheet { action: "format_cells", file_path: "model.xlsx", sheet: "Model", range: "A1:B1", format: {"bold": true} }
Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Model", cell: "B2", value: "100" }
Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Model", cell: "B3", value: "=B2*1.1" }
Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Model", cell: "B4", value: "=SUM(B2:B3)" }
Spreadsheet { action: "check_errors", file_path: "model.xlsx" }
Format Reference
format_cells options
{
"bold": true,
"italic": false,
"color": "FF0000",
"fill": "FFFF00",
"numFmt": "$#,##0",
"alignment": { "horizontal": "center", "vertical": "center" }
}
Financial color coding via format_cells
// Blue inputs
Spreadsheet { action: "format_cells", file_path: "model.xlsx", range: "B5:B10", format: {"color": "0000FF"} }
// Yellow assumptions
Spreadsheet { action: "format_cells", file_path: "model.xlsx", range: "B2:B4", format: {"fill": "FFFF00"} }
// Bold headers
Spreadsheet { action: "format_cells", file_path: "model.xlsx", range: "A1:F1", format: {"bold": true, "fill": "4472C4", "color": "FFFFFF"} }
Quick Reference
| Task |
Tool |
| Read data |
Spreadsheet { action: "read_range" } |
| Write values |
Spreadsheet { action: "write_range" } or set_cell |
| Check errors |
Spreadsheet { action: "check_errors" } |
| Format cells |
Spreadsheet { action: "format_cells" } |
| Find text |
Spreadsheet { action: "find_text" } |
| Create file |
Spreadsheet { action: "create" } |
| Add sheet |
Spreadsheet { action: "add_sheet" } |
| Column width |
Spreadsheet { action: "set_column_width" } |
| Export CSV |
Spreadsheet { action: "export_csv" } |
| See formulas |
Spreadsheet { action: "inspect_formulas" } |
| Formulas |
Spreadsheet { action: "set_cell", value: "=..." } |
1---2name: xlsx3description: "Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved."4allowed-tools: Spreadsheet,Read,Write,Glob,Grep5---67# Requirements for Outputs89## All Excel files1011### Professional Font12- Use a consistent, professional font (e.g., Arial, Times New Roman) for all deliverables unless otherwise instructed by the user1314### Zero Formula Errors15- Every Excel model MUST be delivered with ZERO formula errors (#REF!, #DIV/0!, #VALUE!, #N/A, #NAME?)16- **Always verify with**: `Spreadsheet { action: "check_errors", file_path: "output.xlsx" }`1718### Preserve Existing Templates (when updating templates)19- Study and EXACTLY match existing format, style, and conventions when modifying files20- Never impose standardized formatting on files with established patterns21- Existing template conventions ALWAYS override these guidelines2223## Financial models2425### Color Coding Standards26Unless otherwise stated by the user or existing template2728#### Industry-Standard Color Conventions29- **Blue text (RGB: 0,0,255)**: Hardcoded inputs, and numbers users will change for scenarios30- **Black text (RGB: 0,0,0)**: ALL formulas and calculations31- **Green text (RGB: 0,128,0)**: Links pulling from other worksheets within same workbook32- **Red text (RGB: 255,0,0)**: External links to other files33- **Yellow background (RGB: 255,255,0)**: Key assumptions needing attention or cells that need to be updated3435### Number Formatting Standards3637#### Required Format Rules38- **Years**: Format as text strings (e.g., "2024" not "2,024")39- **Currency**: Use $#,##0 format; ALWAYS specify units in headers ("Revenue ($mm)")40- **Zeros**: Use number formatting to make all zeros "-", including percentages (e.g., "$#,##0;($#,##0);-")41- **Percentages**: Default to 0.0% format (one decimal)42- **Multiples**: Format as 0.0x for valuation multiples (EV/EBITDA, P/E)43- **Negative numbers**: Use parentheses (123) not minus -1234445### Formula Construction Rules4647#### Assumptions Placement48- Place ALL assumptions (growth rates, margins, multiples, etc.) in separate assumption cells49- Use cell references instead of hardcoded values in formulas50- Example: Use =B5*(1+$B$6) instead of =B5*1.055152#### Formula Error Prevention53- Verify all cell references are correct54- Check for off-by-one errors in ranges55- Ensure consistent formulas across all projection periods56- Test with edge cases (zero values, negative numbers)57- Verify no unintended circular references5859#### Documentation Requirements for Hardcodes60- Comment or in cells beside (if end of table). Format: "Source: [System/Document], [Date], [Specific Reference], [URL if applicable]"61- Examples:62 - "Source: Company 10-K, FY2024, Page 45, Revenue Note, [SEC EDGAR URL]"63 - "Source: Bloomberg Terminal, 8/15/2025, AAPL US Equity"6465# Workflow6667## Use the Spreadsheet tool for everything6869The `Spreadsheet` tool handles ALL operations natively — no Python, no Bash, no dependencies.7071### Available actions72- Reading: `inspect`, `list_sheets`, `get_sheet_info`, `read_range`73- Writing: `write_range`, `append_rows`, `set_cell` (supports formulas: `value: "=SUM(A1:A10)"`)74- Searching: `find_text`75- Validation: `check_errors`, `inspect_formulas`76- Formatting: `format_cells`, `set_column_width`77- Structure: `create`, `add_sheet`78- Export: `export_csv`7980Do NOT use Python/Bash for spreadsheet operations. The Spreadsheet tool is the single source of truth.8182## Common Workflows8384### 1. Inspect an existing file85```86Spreadsheet { action: "inspect", file_path: "data.xlsx" }87Spreadsheet { action: "list_sheets", file_path: "data.xlsx" }88Spreadsheet { action: "read_range", file_path: "data.xlsx", sheet: "Summary", range: "A1:F20" }89```9091### 2. Create a new workbook92```93Spreadsheet { action: "create", file_path: "output.xlsx", sheets: ["Summary", "Data", "Assumptions"] }94Spreadsheet { action: "write_range", file_path: "output.xlsx", sheet: "Summary", range: "A1", values: [["Revenue","Q1","Q2","Q3","Q4"],["Product A",100,120,130,150]] }95Spreadsheet { action: "format_cells", file_path: "output.xlsx", sheet: "Summary", range: "A1:E1", format: {"bold": true, "fill": "4472C4", "color": "FFFFFF"} }96Spreadsheet { action: "set_column_width", file_path: "output.xlsx", column: "A", width: 20 }97```9899### 3. Edit existing data100```101Spreadsheet { action: "read_range", file_path: "model.xlsx", sheet: "Input" }102Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Input", cell: "B5", value: "150000" }103Spreadsheet { action: "append_rows", file_path: "model.xlsx", sheet: "Data", rows: [["2026-Q1", 250, 180, 70]] }104```105106### 4. Verify and fix errors107```108Spreadsheet { action: "check_errors", file_path: "output.xlsx" }109```110111Returns:112```json113{114 "status": "success",115 "totalErrors": 0,116 "formulaCount": 42,117 "errorSummary": {}118}119```120121Or if errors found:122```json123{124 "status": "errors_found",125 "totalErrors": 3,126 "formulaCount": 42,127 "errorSummary": {128 "#REF!": { "count": 2, "locations": ["Sheet1!B5", "Sheet1!C10"] },129 "#DIV/0!": { "count": 1, "locations": ["Sheet1!D15"] }130 }131}132```133134Fix the identified errors and check again until `status: "success"`.135136### 5. Search across sheets137```138Spreadsheet { action: "find_text", file_path: "report.xlsx", query: "revenue" }139```140141### 6. Export to CSV142```143Spreadsheet { action: "export_csv", file_path: "data.xlsx", sheet: "Summary" }144```145146### 7. Financial model with formulas147```148Spreadsheet { action: "create", file_path: "model.xlsx", sheets: ["Model"] }149Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Model", cell: "A1", value: "Revenue" }150Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Model", cell: "B1", value: "Q1" }151Spreadsheet { action: "format_cells", file_path: "model.xlsx", sheet: "Model", range: "A1:B1", format: {"bold": true} }152Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Model", cell: "B2", value: "100" }153Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Model", cell: "B3", value: "=B2*1.1" }154Spreadsheet { action: "set_cell", file_path: "model.xlsx", sheet: "Model", cell: "B4", value: "=SUM(B2:B3)" }155Spreadsheet { action: "check_errors", file_path: "model.xlsx" }156```157158## Format Reference159160### format_cells options161```json162{163 "bold": true,164 "italic": false,165 "color": "FF0000",166 "fill": "FFFF00",167 "numFmt": "$#,##0",168 "alignment": { "horizontal": "center", "vertical": "center" }169}170```171172### Financial color coding via format_cells173```174// Blue inputs175Spreadsheet { action: "format_cells", file_path: "model.xlsx", range: "B5:B10", format: {"color": "0000FF"} }176// Yellow assumptions177Spreadsheet { action: "format_cells", file_path: "model.xlsx", range: "B2:B4", format: {"fill": "FFFF00"} }178// Bold headers179Spreadsheet { action: "format_cells", file_path: "model.xlsx", range: "A1:F1", format: {"bold": true, "fill": "4472C4", "color": "FFFFFF"} }180```181182## Quick Reference183184| Task | Tool |185|------|------|186| Read data | `Spreadsheet { action: "read_range" }` |187| Write values | `Spreadsheet { action: "write_range" }` or `set_cell` |188| Check errors | `Spreadsheet { action: "check_errors" }` |189| Format cells | `Spreadsheet { action: "format_cells" }` |190| Find text | `Spreadsheet { action: "find_text" }` |191| Create file | `Spreadsheet { action: "create" }` |192| Add sheet | `Spreadsheet { action: "add_sheet" }` |193| Column width | `Spreadsheet { action: "set_column_width" }` |194| Export CSV | `Spreadsheet { action: "export_csv" }` |195| See formulas | `Spreadsheet { action: "inspect_formulas" }` |196| Formulas | `Spreadsheet { action: "set_cell", value: "=..." }` |