---
name: "sheetjs-client-excel-processor"
description: "Parse, manipulate, and export Excel and CSV spreadsheets client-side with SheetJS."
metadata:
  author: "SheetJS"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "parse excel file in browser"
  - "export json to excel sheetjs"
  - "convert csv to xlsx javascript"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# SheetJS In-Browser Spreadsheet Engine

Processes spreadsheet files directly inside the web browser using SheetJS (xlsx): reading drag-and-drop .xlsx files, editing sheet cells, and exporting formatted workbooks without server roundtrips.

## When to Invoke
Invoke this skill whenever you need to:
- parse excel file in browser
- export json to excel sheetjs
- convert csv to xlsx javascript

## Execution SOP & Rules
1. Read dropped files using XLSX.read(data, { type: 'binary' }) inside FileReader callbacks.
2. Extract sheet data to structured objects using XLSX.utils.sheet_to_json(worksheet).
3. Create new sheets from JavaScript arrays with XLSX.utils.json_to_sheet(records).
4. Trigger client-side file downloads using XLSX.writeFile(workbook, 'export.xlsx').

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
