xlsx

skillcreatorai/ai-agent-skills · updated Apr 8, 2026

$npx skills add https://github.com/skillcreatorai/ai-agent-skills --skill xlsx
0 commentsdiscussion
summary

xlsx

skill.md

Excel/Spreadsheet Processing

Reading and Analyzing Data

import pandas as pd

# Read Excel
df = pd.read_excel('file.xlsx')  # Default: first sheet
all_sheets = pd.read_excel('file.xlsx', sheet_name=None)  # All sheets as dict

# Analyze
df.head()      # Preview data
df.info()      # Column info
df.describe()  # Statistics

# Write Excel
df.to_excel('output.xlsx', index=False)

Creating Excel Files with openpyxl

from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill, Alignment

wb = Workbook()
sheet = wb.active

# Add data
sheet['A1'] = 'Hello'
sheet['B1'] = 'World'
sheet.append(['Row', 'of', 'data'])

# Add formula - ALWAYS use formulas, not hardcoded values
sheet['B2'] = '=SUM(A1:A10)'

# Formatting
sheet['A1'].font = Font(bold=True, color='FF0000')
sheet['A1'].fill = PatternFill('solid', start_color='FFFF00')
sheet['A1'].alignment = Alignment(horizontal='center')

# Column width
sheet.column_dimensions['A'].width = 20

wb.save('output.xlsx')

Editing Existing Files

from openpyxl import load_workbook

wb = load_workbook('existing.xlsx')
sheet = wb.active

# Modify cells
sheet['A1'] = 'New Value'
sheet.insert_rows(2)
sheet.delete_cols(3)

# Add new sheet
new_sheet = wb.create_sheet('NewSheet')
new_sheet['A1'] = 'Data'

wb.save('modified.xlsx')

Critical: Use Formulas, Not Hardcoded Values

# BAD - Hardcoding calculated values
total = df['Sales'].sum()
sheet['B10'] = total  # Hardcodes 5000

# GOOD - Using Excel formulas
sheet['B10'] = '=SUM(B2:B9)'
sheet['C5'] = '=(C4-C2)/C2'  # Growth rate
sheet['D20'] = '=AVERAGE(D2:D19)'

Financial Model Standards

  • Blue text: Hardcoded inputs
  • Black text: ALL formulas
  • Green text: Links from other worksheets
  • Yellow background: Key assumptions

Best Practices

  • Use data_only=True to read calculated values
  • For large files: Use read_only=True or write_only=True
  • Formulas are preserved but not evaluated by openpyxl

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.754 reviews
  • Chinedu Perez· Dec 20, 2024

    I recommend xlsx for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Omar Khanna· Dec 20, 2024

    Useful defaults in xlsx — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Shikha Mishra· Dec 8, 2024

    Keeps context tight: xlsx is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Aanya Kim· Dec 8, 2024

    xlsx reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Aanya Chen· Dec 4, 2024

    xlsx has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Henry Iyer· Nov 27, 2024

    I recommend xlsx for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Aditi Brown· Nov 23, 2024

    xlsx fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Charlotte Wang· Nov 11, 2024

    xlsx reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Zara Desai· Nov 11, 2024

    Registry listing for xlsx matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Maya Wang· Nov 3, 2024

    Keeps context tight: xlsx is the kind of skill you can hand to a new teammate without a long onboarding doc.

showing 1-10 of 54

1 / 6