Use when working with "Excel", "spreadsheets", "XLSX files", "CSV data", "formulas", "openpyxl", "pandas Excel", or asking about "Excel manipulation", "spreadsheet analysis", "financial models"
Creates and edits Excel spreadsheets with formulas, formatting, and financial modeling standards.
/plugin marketplace add eyadsibai/ltk/plugin install ltk@ltk-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Create, edit, and analyze spreadsheets with formulas and formatting.
| Task | Best Tool |
|---|---|
| Data analysis | pandas |
| Formulas & formatting | openpyxl |
| Simple CSV | pandas |
| Financial models | openpyxl |
import pandas as pd
# Read Excel
df = pd.read_excel('file.xlsx') # First sheet
all_sheets = pd.read_excel('file.xlsx', sheet_name=None) # All sheets
# Analyze
df.head() # Preview
df.info() # Column info
df.describe() # Statistics
# Write
df.to_excel('output.xlsx', index=False)
from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill, Alignment
wb = Workbook()
sheet = wb.active
# Add data
sheet['A1'] = 'Revenue'
sheet['B1'] = 1000
sheet.append(['Q1', 'Q2', 'Q3', 'Q4'])
# Add formula (NEVER hardcode calculations!)
sheet['B5'] = '=SUM(B1:B4)'
# Formatting
sheet['A1'].font = Font(bold=True)
sheet['A1'].fill = PatternFill('solid', fgColor='FFFF00')
sheet.column_dimensions['A'].width = 15
wb.save('output.xlsx')
# ❌ WRONG - Hardcoding
total = df['Sales'].sum()
sheet['B10'] = total # Hardcodes 5000
# ✅ CORRECT - Excel formula
sheet['B10'] = '=SUM(B2:B9)'
from openpyxl import load_workbook
wb = load_workbook('existing.xlsx')
sheet = wb.active
# Modify
sheet['A1'] = 'New Value'
sheet.insert_rows(2)
sheet.delete_cols(3)
# Add sheet
new_sheet = wb.create_sheet('NewSheet')
wb.save('modified.xlsx')
| Color | Use |
|---|---|
| Blue text | Hardcoded inputs |
| Black text | Formulas |
| Green text | Links to other sheets |
| Yellow fill | Needs attention |
# Currency
sheet['A1'].number_format = '$#,##0'
# Percentage
sheet['B1'].number_format = '0.0%'
# Negative in parentheses
sheet['C1'].number_format = '#,##0;(#,##0)'
| Error | Cause | Fix |
|---|---|---|
| #REF! | Invalid reference | Check cell exists |
| #DIV/0! | Division by zero | Add IF check |
| #VALUE! | Wrong data type | Verify inputs |
| #NAME? | Unknown function | Check spelling |
load_workbook() not pandas for editsdata_only=True loses formulas on savepip install pandas openpyxl xlrd
This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.