Xlsx

by 404kidwiz

workflow

Expert in automating Excel workflows using Node.js (ExcelJS, SheetJS) and Python (pandas, openpyxl).

Skill Details

Repository Files

1 file in this skill directory


name: xlsx description: Expert in automating Excel workflows using Node.js (ExcelJS, SheetJS) and Python (pandas, openpyxl).

XLSX Skill

Purpose

Provides expertise in creating, reading, modifying, and automating Excel spreadsheet workflows. Specializes in programmatic spreadsheet manipulation using ExcelJS, SheetJS, pandas, and openpyxl for data processing, reporting, and automation.

When to Use

  • Creating Excel reports programmatically
  • Reading and parsing XLSX files
  • Modifying existing spreadsheets while preserving formatting
  • Automating repetitive Excel tasks
  • Converting between CSV and XLSX formats
  • Building Excel templates with formulas
  • Extracting data from complex spreadsheets
  • Generating formatted financial or data reports

Quick Start

Invoke this skill when:

  • Creating Excel reports programmatically
  • Reading and parsing XLSX files
  • Modifying existing spreadsheets while preserving formatting
  • Automating repetitive Excel tasks
  • Converting between CSV and XLSX formats

Do NOT invoke when:

  • Creating Google Sheets → different API
  • Building Excel add-ins → use appropriate .NET/JS skill
  • Data analysis without Excel output → use data-analyst
  • CSV-only operations → use csv-data-wrangler

Decision Framework

Excel Task?
├── Node.js Environment → ExcelJS (full-featured) or SheetJS (parsing)
├── Python Environment → openpyxl (Excel) or pandas (data + Excel)
├── Heavy Data Processing → pandas with openpyxl engine
├── Complex Formatting → ExcelJS or openpyxl
├── Template-Based → Fill existing templates with data
└── Large Files → Streaming readers (ExcelJS streaming, pandas chunks)

Core Workflows

1. Excel Report Generation (Node.js)

  1. Initialize ExcelJS workbook
  2. Create worksheets with appropriate names
  3. Define columns with headers and widths
  4. Add data rows from source
  5. Apply styling (fonts, borders, fills)
  6. Add formulas for calculations
  7. Set print area and page setup
  8. Write to file buffer or stream

2. Spreadsheet Data Extraction (Python)

  1. Load workbook with openpyxl or pandas
  2. Identify data ranges and headers
  3. Handle merged cells and formatting
  4. Extract data into structured format
  5. Validate and clean extracted data
  6. Handle multiple sheets if needed
  7. Convert to desired output format

3. Template-Based Reporting

  1. Create master template with formatting and formulas
  2. Load template workbook
  3. Identify data insertion points
  4. Insert data while preserving formulas
  5. Update any date/reference cells
  6. Recalculate formulas if needed
  7. Save as new file (preserve template)

Best Practices

  • Use streaming mode for large files to manage memory
  • Preserve existing styles when modifying files
  • Validate data types before writing to cells
  • Handle merged cells explicitly
  • Use named ranges for maintainability
  • Test with actual Excel application, not just libraries

Anti-Patterns

  • Loading huge files in memory → Use streaming readers
  • Hardcoding cell references → Use named ranges or dynamic lookup
  • Ignoring data types → Explicitly set number, date, text types
  • Overwriting formulas → Check cell types before writing
  • Missing error handling → Handle corrupted/password-protected files

Related Skills

Dask

Parallel/distributed computing. Scale pandas/NumPy beyond memory, parallel DataFrames/Arrays, multi-file processing, task graphs, for larger-than-RAM datasets and parallel workflows.

workflowdata

Scikit Survival

Comprehensive toolkit for survival analysis and time-to-event modeling in Python using scikit-survival. Use this skill when working with censored survival data, performing time-to-event analysis, fitting Cox models, Random Survival Forests, Gradient Boosting models, or Survival SVMs, evaluating survival predictions with concordance index or Brier score, handling competing risks, or implementing any survival analysis workflow with the scikit-survival library.

workflowtooldata

Polars

Fast DataFrame library (Apache Arrow). Select, filter, group_by, joins, lazy evaluation, CSV/Parquet I/O, expression API, for high-performance data analysis workflows.

workflowapidata

Scikit Survival

Comprehensive toolkit for survival analysis and time-to-event modeling in Python using scikit-survival. Use this skill when working with censored survival data, performing time-to-event analysis, fitting Cox models, Random Survival Forests, Gradient Boosting models, or Survival SVMs, evaluating survival predictions with concordance index or Brier score, handling competing risks, or implementing any survival analysis workflow with the scikit-survival library.

workflowtooldata

Dask

Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed use polars.

codeworkflow

Anndata

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

workflowtooldata

Matplotlib

Low-level plotting library for full customization. Use when you need fine-grained control over every plot element, creating novel plot types, or integrating with specific scientific workflows. Export to PNG/PDF/SVG for publication. For quick statistical plots use seaborn; for interactive plots use plotly; for publication-ready multi-panel figures with journal styling, use scientific-visualization.

workflow

Dashboard Design

USE THIS SKILL FIRST when user wants to create and design a dashboard, ESPECIALLY Vizro dashboards. This skill enforces a 3-step workflow (requirements, layout, visualization) that must be followed before implementation. For implementation and testing, use the dashboard-build skill after completing Steps 1-3.

designtestingworkflow

Writing Effective Prompts

Structure Claude prompts for clarity and better results using roles, explicit instructions, context, positive framing, and strategic organization. Use when crafting prompts for complex tasks, long documents, tool workflows, or code generation.

codedocumentworkflow

Flowchart Creator

Create HTML flowcharts and process diagrams with decision trees, color-coded stages, arrows, and swimlanes. Use when users request flowcharts, process diagrams, workflow visualizations, or decision trees.

artcodeworkflow

Skill Information

Category:Enterprise
Last Updated:1/16/2026