Xlsx

From SeifBenayed/cloclo · View interactive version

Xlsx is an AI agent skill from the GitHub repository SeifBenayed/cloclo. 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 spreadshee

How to use this skill

Skill file

Requirements for Outputs

All Excel files

Professional Font

Zero Formula Errors

Preserve Existing Templates (when updating templates)

Financial models

Color Coding Standards

Unless otherwise stated by the user or existing template

Industry-Standard Color Conventions

Number Formatting Standards

Required Format Rules

Formula Construction Rules

Assumptions Placement
Formula Error Prevention
Documentation Requirements for Hardcodes

Workflow

Use the Spreadsheet tool for everything

The Spreadsheet tool handles ALL operations natively — no Python, no Bash, no dependencies.

Available actions

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: "=..." } |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.