xlsx
Skill2 starsChanged 4 months agoMITView on GitHub
Create, read, edit, and analyse Excel spreadsheet files (.xlsx, .xlsm, .xltx, .csv, .tsv). Use whenever a spreadsheet file is the primary input or output — adding columns, computing formulas, formatting cells, building financial models, cleaning messy data, extracting tables, creating charts, or converting between tabular formats. Trigger when the user mentions an .xlsx file, "spreadsheet", "Excel", "budget", "data export", or any tabular data that belongs in a file rather than in chat.
- Installs packages
194 other projects use a version of this.
Adopted by
Most recently taken up by
- aditya-vermax/skillstheir own version, first seen Nov 8, 2026
- CloudChef/atlasclaw-providerstheir own version, first seen Nov 8, 2026
- holon-run/holontheir own version, first seen Nov 8, 2026
- rvdbreemen/OTGW-firmwaretheir own version, first seen Nov 8, 2026
- BrightGold70/skillstheir own version, first seen Nov 8, 2026
- Liang-MH/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use Video Generation, VLM and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
huang-x-hSkillVideo Generation
Implement AI-powered video generation capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to generate videos from text prompts or images, create video content programmatically, or build applications that produce video outputs. Supports asynchronous task management with status polling and result retrieval.
Also in 6 projects that use this
huang-x-hSkillVLM
Implement vision-based AI chat capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to analyze images, describe visual content, or create applications that combine image understanding with conversational AI. Supports image URLs and base64 encoded images for multimodal interactions.
Also in 6 projects that use this
dav-niu474Skillgift-evaluator
The PRIMARY tool for Spring Festival gift analysis and social interaction generation. Use this skill when users upload photos of gifts (alcohol, tea, supplements, etc.) to inquire about their value, authenticity, or how to respond socially. Integrates visual perception, market valuation, and HTML card generation.
Also in 5 projects that use this
dav-niu474SkillPodcast Generate
Generate podcast episodes from user-provided content or by searching the web for specified topics. If user uploads a text file/article, creates a dual-host dialogue podcast (or single-host upon request). If no content is provided, searches the web for information about the user-specified topic and generates a podcast. Duration scales with content size (3-20 minutes, ~240 chars/min). Uses z-ai-web-dev-sdk for LLM script generation and TTS audio synthesis. Outputs both a podcast script (Markdown) and a complete audio file (WAV).
Also in 5 projects that use this
Liang-MHSkillstock_analysis
获取 A 股、基金和港股的实时行情和技术分析数据
Also in 5 projects that use this
SeifBenayedSkillfile-reading
Use this skill when a file has been uploaded but its content is NOT in your context — only its path at /mnt/user-data/uploads/ is listed in an uploaded_files block. This skill is a router: it tells you which tool to use for each file type (pdf, docx, xlsx, csv, json, images, archives, ebooks) so you read the right amount the right way instead of blindly running cat on a binary. Triggers: any mention of /mnt/user-data/uploads/, an uploaded_files section, a file_path tag, or a user asking about an uploaded file you have not yet read. Do NOT use this skill if the file content is already visible in your context inside a documents block — you already have it.
Also in 5 projects that use this
- +1 more from huang-x-h
- +5 more from dav-niu474
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 194
- anthropics/skills★ 189ksame name
- spinabot/brigade★ 11ksame name
- netease-youdao/LobsterAI★ 6.2ksame name
- nextlevelbuilder/goclaw★ 3.7ksame name
- jjyaoao/HelloAgents★ 3.2ksame name
- anthropics/claude-agent-sdk-demos★ 2.8ksame name
- K-Dense-AI/claude-scientific-writer★ 2.6ksame name
- OpenCoworkAI/open-cowork★ 2.2ksame name
- wanxingai/LightAgent★ 1.2ksame name
- ChenglinPoly/infiAgent★ 1.2ksame name
184 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- agent-memorySkill
- ai-engineerSkill
- api-designSkill
- autoplanSkill
- backend-devSkill
- benchmarkSkill
- brand-guidelinesSkill
- code-reviewerSkill
- commit-messageSkill
- database-architectSkill
- data-engineerSkill
- debuggerSkill
- design-explorerSkill
- devex-engineerSkill
- devops-platformSkill
- doc-coauthoringSkill
- forward-deployment-engineerSkill
- frontend-designSkill
- internal-commsSkill
- java-developmentSkill
- land-and-deploySkill
- mcp-builderSkill
- office-hoursSkill
- pdfSkill
- performance-optimizerSkill
- plan-ceo-reviewSkill
- plan-design-reviewSkill
- plan-eng-reviewSkill
- pptxSkill
- product-engineerSkill
- prompt-engineerSkill
- python-developmentSkill
- qa-engineerSkill
- react-developmentSkill
- release-engineerSkill
- research-agentSkill
- retro-engineerSkill
- safety-guardrailsSkill
- security-engineerSkill
- skill-creatorSkill
- spec-authorSkill
- sre-canarySkill
- system-designSkill
- technical-writerSkill
- test-writerSkill
- theme-factorySkill
- typescript-developmentSkill
- webapp-testingSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 188 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Every spreadsheet delivered must meet these standards:
- Very specific: line 26
Zero formula errors: Never ship while recalc shows errors.
- Very specific: line 27
Use formulas, not hardcoded results: Write =SUM(B2:B9), not the Python-computed value.
- Distinctive: line 30
Input cells need a legend: If you create a template for someone to fill in, add a legend naming which cells to edit and include one example …
- Distinctive: line 239
When building financial models, apply these standards unless the existing file differs:
- Distinctive: line 337
After recalc, verify with:
“Common” is measured: kept by at least 6 in 10 of the 188 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Excel / XLSX Spreadsheets
A .xlsx file is a ZIP archive of XML. Work with it programmatically using openpyxl (formulas + formatting) or pandas (bulk data). Choose the right tool for the job and apply it precisely.
| Task | Tool |
| Create or edit with formulas and formatting | openpyxl |
| Bulk data in/out, pivot analysis | pandas (read_excel, to_excel) |
| Quick read of content | markitdown file.xlsx |
| Reading both formulas AND cached values | Two load_workbook passes — see gotchas |
openpyxl,pandas, andmarkitdownare typically pre-installed. Import directly. Only runpip installif an import fails.
Non-Negotiable Standards
Every spreadsheet delivered must meet these standards:
- Professional font throughout. Arial or Calibri for data, Times New Roman for formal reports. No default Calibri 11 unless that is the existing convention.
- Zero formula errors. Never ship while
recalcshows errors. A#DIV/0!,#REF!, or#NAME?in a delivered file is a failure. - Use formulas, not hardcoded results. Write
=SUM(B2:B9), not the Python-computed value. The sheet must recalculate when inputs change. - Follow the user's spec literally. Exact tab names, exact column headers, exact formula logic. Never redesign what was asked.
- Document every assumption. Hardcoded numbers need a cell comment or adjacent label with the source. "Source: Company 10-K, FY2024, Page 45" is correct. Unexplained magic numbers are not.
- Input cells need a legend. If you create a template for someone to fill in, add a legend naming which cells to edit and include one example row showing expected format.
- Editing existing files: match conventions exactly. Find the designated input cells (usually distinguished by font color or fill). Write only there. Leave all existing formulas untouched.
Reading a Spreadsheet
import subprocess
# Quick content read (no cell coordinates — use for overview only)
result = subprocess.run(["markitdown", "file.xlsx"], capture_output=True, text=True)
print(result.stdout)
# Read into pandas (values only, no formulas)
import pandas as pd
df = pd.read_excel("file.xlsx", sheet_name="Sheet1")
print(df.head())
print(df.dtypes)
# Read formulas (openpyxl — formulas as strings, no cached values)
import openpyxl
wb = openpyxl.load_workbook("file.xlsx")
ws = wb["Sheet1"]
print(ws["B10"].value) # prints the formula string e.g. "=SUM(B2:B9)"
# Read cached values (openpyxl data_only — values only, no formulas)
# WARNING: data_only=True is destructive if you save — loses all formulas
wb_vals = openpyxl.load_workbook("file.xlsx", data_only=True)
ws_vals = wb_vals["Sheet1"]
print(ws_vals["B10"].value) # prints the last-saved calculated valueReading Both Formulas and Values (Two-Pass)
# CORRECT: two separate loads
wb_formulas = openpyxl.load_workbook("file.xlsx") # formulas
wb_values = openpyxl.load_workbook("file.xlsx", data_only=True) # cached values
ws_f = wb_formulas["Sheet1"]
ws_v = wb_values["Sheet1"]
for row in ws_f.iter_rows(min_row=2, values_only=False):
for cell in row:
formula = cell.value
value = wb_values["Sheet1"].cell(cell.row, cell.column).value
if formula and str(formula).startswith("="):
print(f"{cell.coordinate}: formula={formula}, value={value}")Creating a Spreadsheet
Basic Creation with openpyxl
import openpyxl
from openpyxl.styles import (
Font, PatternFill, Alignment, Border, Side, numbers
)
from openpyxl.utils import get_column_letter
wb = openpyxl.Workbook()
ws = wb.active
ws.title = "Revenue Model"
# ── Header row ────────────────────────────────────────────────────────────
HEADER_FILL = PatternFill("solid", fgColor="1A1A2E")
HEADER_FONT = Font(name="Arial", bold=True, color="FFFFFF", size=11)
headers = ["Period", "Revenue ($k)", "COGS ($k)", "Gross Profit ($k)", "Margin %"]
for col, header in enumerate(headers, 1):
cell = ws.cell(row=1, column=col, value=header)
cell.font = HEADER_FONT
cell.fill = HEADER_FILL
cell.alignment = Alignment(horizontal="center")
# ── Data rows ─────────────────────────────────────────────────────────────
INPUT_FONT = Font(name="Arial", color="000080", size=11) # blue = hardcoded input
FORMULA_FONT = Font(name="Arial", color="000000", size=11) # black = formula
data = [
("Q1 2025", 1200, 480),
("Q2 2025", 1380, 552),
("Q3 2025", 1520, 608),
("Q4 2025", 1700, 680),
]
for row_idx, (period, revenue, cogs) in enumerate(data, 2):
ws.cell(row=row_idx, column=1, value=period).font = Font(name="Arial", size=11)
# Input values — blue font (hardcoded)
rev_cell = ws.cell(row=row_idx, column=2, value=revenue)
rev_cell.font = INPUT_FONT
cogs_cell = ws.cell(row=row_idx, column=3, value=cogs)
cogs_cell.font = INPUT_FONT
# Formulas — black font
gp_col = get_column_letter(4)
rev_col = get_column_letter(2)
cog_col = get_column_letter(3)
gp_cell = ws.cell(row=row_idx, column=4,
value=f"={rev_col}{row_idx}-{cog_col}{row_idx}")
gp_cell.font = FORMULA_FONT
margin_cell = ws.cell(row=row_idx, column=5,
value=f"=IFERROR({gp_col}{row_idx}/{rev_col}{row_idx},0)")
margin_cell.font = FORMULA_FONT
margin_cell.number_format = "0.0%"
# ── Number formats ────────────────────────────────────────────────────────
for row in ws.iter_rows(min_row=2, min_col=2, max_col=4):
for cell in row:
cell.number_format = '#,##0' # thousands comma, no decimals
# ── Totals row ────────────────────────────────────────────────────────────
last_data_row = len(data) + 1
total_row = last_data_row + 1
ws.cell(row=total_row, column=1, value="TOTAL").font = Font(name="Arial", bold=True)
for col in range(2, 5):
col_letter = get_column_letter(col)
cell = ws.cell(row=total_row, column=col,
value=f"=SUM({col_letter}2:{col_letter}{last_data_row})")
cell.font = Font(name="Arial", bold=True)
cell.number_format = '#,##0'
# ── Column widths ─────────────────────────────────────────────────────────
ws.column_dimensions["A"].width = 12
for col in range(2, 6):
ws.column_dimensions[get_column_letter(col)].width = 18
wb.save("revenue_model.xlsx")
print("Saved revenue_model.xlsx")Bulk Data with pandas
import pandas as pd
# Create from dict
data = {
"Name": ["Alice", "Bob", "Carol"],
"Department": ["Engineering", "Product", "Design"],
"Salary": [120000, 110000, 105000],
"Start Date": pd.to_datetime(["2022-03-01", "2021-07-15", "2023-01-10"]),
}
df = pd.DataFrame(data)
# Write with formatting options
with pd.ExcelWriter("staff.xlsx", engine="openpyxl", datetime_format="YYYY-MM-DD") as writer:
df.to_excel(writer, sheet_name="Staff", index=False)
# Access workbook for formatting
wb = writer.book
ws = writer.sheets["Staff"]
# Auto-size columns
for col in ws.columns:
max_len = max(len(str(cell.value or "")) for cell in col)
ws.column_dimensions[col[0].column_letter].width = max_len + 4Formula Reference
Preferred Formulas (work universally)
=SUM(B2:B9) — sum a range
=AVERAGE(B2:B9) — average
=COUNT(B2:B9) — count numbers
=COUNTA(A2:A9) — count non-empty
=IFERROR(B2/C2, 0) — guard divide by zero
=IF(B2>100, "High", "Low") — conditional
=SUMIFS(D2:D9, A2:A9, "Q1") — conditional sum
=COUNTIFS(A2:A9, ">0", B2:B9, "<100") — conditional count
=INDEX(A2:A9, MATCH("Alice", B2:B9, 0)) — flexible lookup
=VLOOKUP(A2, Sheet2!A:C, 2, FALSE) — vertical lookup
=CONCATENATE(A2, " ", B2) — join text (legacy safe)Functions Requiring _xlfn. Prefix in openpyxl
# These must have _xlfn. prefix when written via openpyxl
ws["A1"] = "=_xlfn.TEXTJOIN(\", \", TRUE, A2:A10)"
ws["B1"] = "=_xlfn.IFS(A1>90,\"A\",A1>80,\"B\",TRUE,\"C\")"
ws["C1"] = "=_xlfn.MAXIFS(B2:B10, A2:A10, \"Q1\")"Never Use (breaks in LibreOffice recalc)
XLOOKUP, XMATCH, SORT, FILTER, UNIQUE, SEQUENCE
→ Use INDEX/MATCH for lookups
→ Sort and filter in Python before writingFinancial Model Conventions
When building financial models, apply these standards unless the existing file differs:
Color Coding
# Standard financial model color convention
COLORS = {
"hardcoded_input": "0000FF", # Blue — user enters this
"formula": "000000", # Black — calculated
"cross_sheet_link":"008000", # Green — links another sheet
"external_link": "FF0000", # Red — links external file
"key_assumption": "FFFF00", # Yellow fill — critical input cell
}Number Formats
FORMATS = {
"currency": '$#,##0;($#,##0);-', # negatives in parentheses
"currency_mm": '$#,##0.0;($#,##0.0);-', # millions with decimal
"percentage": '0.0%', # store as fraction (0.15 = 15%)
"multiple": '0.0x', # valuation multiples
"integer": '#,##0', # thousands separator
"year": '@', # text format — prevents comma
}Model Structure Rules
1. All assumptions in clearly labeled input section — never embedded in formulas
2. One row per time period, one column per variable — consistent structure
3. Formulas identical across all projection columns — no one-off edits
4. Denominator protection: =IFERROR(numerator/denominator, 0) on all divisions
5. Assumption cells referenced by name, not repeated values:
CORRECT: =B5*(1+$B$6) where $B$6 is the growth rate cell
WRONG: =B5*1.05 (what if growth rate changes?)Cleaning Messy Data
import pandas as pd
df = pd.read_excel("messy.xlsx", header=None)
# Find the actual header row (sometimes row 3 or 4)
header_row = df[df.iloc[:, 0].astype(str).str.contains("Name|ID|Date", na=False)].index[0]
df.columns = df.iloc[header_row]
df = df.iloc[header_row + 1:].reset_index(drop=True)
# Drop entirely empty rows and columns
df = df.dropna(how="all").dropna(axis=1, how="all")
# Strip whitespace from string columns
str_cols = df.select_dtypes(include="object").columns
df[str_cols] = df[str_cols].apply(lambda col: col.str.strip())
# Standardize date column
df["Date"] = pd.to_datetime(df["Date"], errors="coerce")
# Remove duplicate rows
df = df.drop_duplicates()
# Save cleaned version
df.to_excel("clean.xlsx", index=False)
print(f"Cleaned: {len(df)} rows, {len(df.columns)} columns")openpyxl Critical Gotchas
| Gotcha | What happens | Fix |
data_only=True then save | All formulas replaced with literal values permanently | Never save a data_only workbook |
data_only=True on freshly-written file | Returns None for all formula cells | Run recalc first, then load data_only |
| Writing to merged cell body | AttributeError — only top-left anchor is writable | Write only to the top-left cell of the merge |
.xlsm without keep_vba=True | All macros stripped on save | load_workbook("file.xlsm", keep_vba=True) |
| Sheet name with space in formula | #VALUE! error | Quote the name: ='My Sheet'!A1 |
| External link references | [1]Sheet!A1 — breaks on recalc | Extract cached values before resaving |
Recalculation (Required When File Has Formulas)
openpyxl writes formulas as strings with no cached values. Until recalculated, formula cells return None to anything reading the file.
# If recalc.py helper is available:
python scripts/recalc.py output.xlsx
# Manual LibreOffice recalc:
libreoffice --headless --calc \
--infilter="Calc MS Excel 2007 XML" \
--convert-to xlsx output.xlsxAfter recalc, verify with:
wb = openpyxl.load_workbook("output.xlsx", data_only=True)
ws = wb.active
# Spot-check key formula cells — they should now have numeric values, not None
print(ws["B10"].value) # should be a number, not NoneA clean recalc proves formulas evaluate — not that they are correct. Always spot-check 3–5 formula results against manually computed expected values.
Definition of Done — XLSX
- Correct tool used: openpyxl for formulas/formatting, pandas for bulk data
- Professional font applied throughout (Arial or Calibri)
- All formulas use cell references — no hardcoded computed values
- All formulas use safe, universally-supported functions
_xlfn.prefix applied to post-2007 functions (TEXTJOIN, IFS, MAXIFS, MINIFS)- XLOOKUP, XMATCH, SORT, FILTER, UNIQUE, SEQUENCE NOT used
- Zero divide-by-zero errors — all divisions wrapped in IFERROR
- Recalculation run — zero errors reported
- Key formula cells spot-checked against expected values
- All hardcoded numbers documented with source or comment
- Financial models: color coding applied (blue=input, black=formula)
- Column widths set — no truncated content
- Header row formatted (bold, fill, centered)
- File opens without errors in Excel and LibreOffice
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

