Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · Anthropic

xlsx-author — Claude Code skill: generate Excel files headless

Skill to create .xlsx files on disk without a running Excel when an agent operates headless. Use it to deliver a finished workbook as a file artifact instead of editing live.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add anthropics/financial-services --skill xlsx-author -a claude-code
Open on GitHub

What xlsx-author does

xlsx-author produces Excel files by writing a Python script and running it with openpyxl. The agent writes the script, executes it, and the file saves to ./out/<name>.xlsx. It enforces a color scheme: blue for hardcoded inputs, black for formulas, green for links to other sheets. All constants live on an Inputs tab, calculations are formulas only, and a Checks tab validates balance.

Use this skill in headless mode (managed-agent sessions with no open Office app). If mcp__office__excel_* tools are available, prefer those — they edit the user's live workbook with review checkpoints. xlsx-author is the fallback for runs where live editing is not an option.

What it helps with

  • Generate an Excel model in a headless session with no open Excel
  • Create a .xlsx file with formulas and named ranges
  • Deliver a financial forecast as a file artifact

Example prompts for the agent

  • Build a DCF model in Excel with an Inputs sheet and a Calc sheet, save it to ./out/dcf.xlsx
  • Write a Python script for xlsx-author that creates a workbook with a balance check
  • Generate a financial template: Inputs with blue text for values, Calc with formulas, Checks with TRUE/FALSE

How to install xlsx-author

1Skills CLI (Vercel)

npx skills add anthropics/financial-services --skill xlsx-author -a claude-code

2Manually: put the files in place

~/.claude/skills/xlsx-author/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/xlsx-author/

From the same set25

The whole set →
earnings-analysis official anthropics Builds quarterly earnings update reports with beat/miss analysis, revised estimates, key metrics, charts, and the effect on the investment thesis. Claude Code CX Codex Cursor +1 3,300installs equity-research official anthropics Builds a stock snapshot from analyst consensus, financials, price history and macro data. Useful when you need to size up a company fast. Claude Code CX Codex Cursor +1 3,200installs competitive-analysis official anthropics A framework for building competitor analysis decks in PowerPoint or chat. It clarifies project scope, then builds verified slides once the outline is approved. Claude Code CX Codex Cursor +1 2,400installs pitch-deck official anthropics Fills an existing investment banking deck template with data from source files. Use it to move figures into established slide layouts, not to build a deck from scratch. Claude Code CX Codex Cursor +1 2,400installs dcf-model official anthropics Builds an institutional-grade DCF valuation model: pulls data from SEC filings and analyst reports, computes WACC and cash flows, and outputs an Excel model with sensitivity analysis. Claude Code CX Codex Cursor +1 2,400installs ppt-template-creator official anthropics A skill that converts PowerPoint templates into self-contained, reusable skills. Analyze your .pptx, extract all layouts and placeholders with exact coordinates, and package everything as a ready-to-use skill. Claude Code CX Codex Cursor +1 2,300installs macro-rates-monitor official anthropics Builds macro and rates dashboards by combining inflation breakevens, yield curves, and swap spreads into a single analysis. Claude Code CX Codex Cursor +1 2,300installs audit-xls official anthropics Audits Excel sheets for formula errors, hardcoded values, and logic breaks. It checks financial model integrity before sharing work with clients or review committees. Claude Code CX Codex Cursor +1 2,200installs

Similar

argent-react-native-app-workflow software-mansion Provides step-by-step procedures for building, running, and debugging React Native apps on iOS simulators or Android emulators. Helps resolve Metro issues and build crashes. Claude Code CX Codex Cursor +1 26,300installs argent-metro-debugger software-mansion A skill that connects a debugger to a JS runtime via CDP. Inspect React components, read console logs, and evaluate code live. Works with React Native (iOS, Android, Vega) and Chromium apps (Electron, browsers). Claude Code CX Codex Cursor +1 26,200installs ui-skills-root ibelick A UI task router that picks the right skill before interface work. Run npx ui-skills start to launch it and let the agent select just enough context to solve the problem. Claude Code CX Codex Cursor +1 7,100installs docx nexu-io Create, edit, and analyze Word documents with tracked changes, comments, and formatting. Use it for design briefs, copy docs, and materials ready for review. Claude Code CX Codex Cursor +1 3,000installs material-ui-nextjs mui A skill for wiring Material UI into Next.js: SSR, Emotion cache, next/font, CSS layers, Link, and useSearchParams. Use it when setting up or debugging MUI in a Next.js app. Claude Code CX Codex Cursor +1 725installs seo-dataforseo AgriciDaniel A skill that connects the DataForSEO MCP server to Claude Code and other AI code editors. Provides live search results, keyword metrics, backlinks, competitor analysis, and LLM mention tracking—all via commands. Claude Code CX Codex Cursor +1 6,100installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs

Questions about xlsx-author

How do I install xlsx-author in Claude Code?

Run npx skills add anthropics/financial-services --skill xlsx-author -a claude-code, then verify the skill loaded by opening ~/.claude/skills/xlsx-author/SKILL.md.

What does xlsx-author do?

It generates Excel files on disk via Python and openpyxl when an agent runs headless without access to a live workbook. Supports formulas, color conventions, and balance checks.

When should I use xlsx-author instead of mcp__office__excel_*?

Use mcp__office__excel_* if Cowork mode is active and Excel is open on the user's machine. Use xlsx-author for headless sessions when you only need to output a finished file.

Source text

SKILL.md · Apache-2.0
---
name: xlsx-author
description: Produce a .xlsx file on disk (headless) instead of driving a live Excel workbook — for managed-agent sessions with no open Office app.
---

# xlsx-author

Use this skill when running **headless** (managed-agent / CMA mode) and you need to deliver an Excel workbook as a **file artifact** rather than editing a live workbook via `mcp__office__excel_*`.

## Output contract

- Write to `./out/<name>.xlsx`. Create `./out/` if it does not exist.
- Return the relative path in your final message so the orchestration layer can collect it.

## How to build the workbook

Write a short Python script and run it with Bash. Use `openpyxl`:

```python
from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill

wb = Workbook()
ws = wb.active; ws.title = "Inputs"
ws["B2"] = "Revenue"; ws["C2"] = 1_250_000_000
ws["C2"].font = Font(color="0000FF")           # blue = hardcoded input
calc = wb.create_sheet("DCF")
calc["C5"] = "=Inputs!C2*(1+Inputs!C3)"        # black = formula
wb.save("./out/model.xlsx")
```

## Conventions (mirror `audit-xls`)

- **Blue / black / green.** Blue = hardcoded input, black = formula, green = link to another sheet/file.
- **No hardcodes in calc cells.** Every calculation cell is a formula; every input lives on an Inputs tab.
- **Named ranges** for any value referenced from a deck or memo.
- **Balance checks.** Include a Checks tab that ties (BS balances, CF ties to cash, etc.) and surfaces TRUE/FALSE.
- **One model per file.** Do not append to an existing workbook unless explicitly asked.

## When NOT to use

If `mcp__office__excel_*` tools are available (Cowork plugin mode), use those instead — they drive the user's live workbook with review checkpoints. This skill is the file-producing fallback for headless runs.

© anthropics · Apache-2.0 · anthropics/financial-services

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor