Skip to content

Python and JavaScript guide for reading, writing, formatting, and transforming Excel workbooks programmatically.

CCM score
48 of 100
skills.sh installs
607
GitHub stars
79
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers openpyxl for cell access, styling, and formulas, pandas for DataFrame reading and writing, and the JavaScript xlsx library
  • Includes snippets for reading sheets, appending rows, bold headers, fill colors, number formats, and SUM formulas
  • Provides pandas recipes for filtering, group-by aggregation, pivot tables, multi-sheet export, and merging several files
  • Designed for converting CSV and Excel data, with reminders to close workbooks and process large files in chunks

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill xlsx -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Excel/XLSX Manipulation

Working with Excel files programmatically.

Python (openpyxl)

Reading Excel

from openpyxl import load_workbook

wb = load_workbook('data.xlsx')
ws = wb.active  # Get active sheet

# Read cell
value = ws['A1'].value

# Iterate rows
for row in ws.iter_rows(min_row=2, values_only=True):
    print(row)

Writing Excel

from openpyxl import Workbook

wb = Workbook()
ws = wb.active
ws.title = "Data"

# Write data
ws['A1'] = 'Name'
ws['B1'] = 'Age'
ws.append(['John', 30])
ws.append(['Jane', 25])

wb.save('output.xlsx')

Formatting

from openpyxl.styles import Font, PatternFill

# Bold header
ws['A1'].font = Font(bold=True)

# Background color
ws['A1'].fill = PatternFill(start_color="FFFF00", fill_type="solid")

# Number format
ws['B2'].number_format = '0.00'  # Two decimals

Formulas

# Add formula
ws['C2'] = '=A2+B2'

# Sum column
ws['D10'] = '=SUM(D2:D9)'

Python (pandas)

Reading Excel

import pandas as pd

# Read sheet
df = pd.read_excel('data.xlsx', sheet_name='Sheet1')

# Read multiple sheets
dfs = pd.read_excel('data.xlsx', sheet_name=None)

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Categories
Office Files & Slides, Python
First seen
Jun 3, 2026

Questions

What does the xlsx skill help an agent do?

The xlsx skill covers working with Excel files programmatically. It shows how to read and write workbooks, format cells, add formulas, and move data between Excel, CSV and pandas using openpyxl, pandas and the JavaScript xlsx library.

How do I install the xlsx skill?

Run npx -y skills add bobmatnyc/claude-mpm-skills --skill xlsx -y in your project. Once installed, the agent can use the xlsx patterns when you ask it to work with spreadsheet files.

Which skills lead the xlsx skill in the Office Files & Slides category?

The xlsx skill sits in the Office Files & Slides category on Claude Marketplaces. The other top skills listed there are slideshow, lark-doc, lark-drive, lark-sheets and lark-whiteboard.

Which tools and libraries does the xlsx skill need?

The skill's examples use Python with openpyxl and pandas, and JavaScript with the xlsx package. You need those libraries available in your project to run the code the skill describes.

More from bobmatnyc/claude-mpm-skills

All 154