Claude's Document Skills: Excel, PowerPoint, Word, and PDF
How Anthropic's pre-built document skills let Claude produce real .xlsx, .pptx, .docx, and PDF files — on claude.ai, the API, and in Claude Code.
Anthropic ships four pre-built skills — xlsx, pptx, docx, and pdf — that turn 'make me a spreadsheet' into an actual file, built by code execution with real formatting and structure. They're always active on claude.ai, attachable by skill_id on the API, and open source in the anthropics/skills repo. Better inputs (templates, brand rules, examples) get better documents.
Key takeaways
- The document skills are ordinary Agent Skills, authored by Anthropic: procedures that drive code execution and Python document libraries to build real files, not markdown approximations.
- On claude.ai they're always on — ask for a spreadsheet or deck and the right skill activates. No install, no toggle beyond code execution.
- On the API, attach them by literal skill_id (xlsx, pptx, docx, pdf) via the container parameter, and download the generated files through the Files API.
- The skills encode format craft the model wouldn't reliably apply on its own: workbook structure, slide layout discipline, document styles.
- Output quality tracks input quality: give a template file, brand rules, or a reference example and ask for a verification pass at the end.
- They're open source in anthropics/skills — the best worked examples to study before writing your own skill.
The most-used Claude skills are ones most people don't know are skills: ask claude.ai for a spreadsheet, a slide deck, a formatted Word document, or a filled PDF, and what answers isn't the base model winging it — it's one of four Anthropic-built document skills (xlsx, pptx, docx, pdf) loading and driving code execution to produce a real file. They're also the clearest demonstration of what the skills format is for.
What they actually do
Each document skill is a normal SKILL.md-plus-resources package that encodes format craft: how a workbook should be structured, what makes a slide layout hold up, how document styles and sections work. When one activates, Claude writes and runs code against the Python document stack in the execution sandbox — openpyxl for Excel, python-pptx for PowerPoint, python-docx for Word, PDF tooling for forms and extraction — following the skill's procedure instead of improvising.
The difference is visible in the output. Without the skill, "make me a budget spreadsheet" gets you a Markdown table. With it, you get an .xlsx with separate input and summary sheets, real formulas, and formatting — a file you open in Excel and keep using.
Where they're available
| Surface | Status |
|---|---|
| claude.ai (web/desktop) | Always active — nothing to install; code execution on |
| Claude API | Attach by skill_id via the container parameter |
| Managed Agents | Add to the agent's skills list ({"type": "anthropic", "skill_id": "xlsx"}) |
| Claude Code | Available in beta; also installable from the public anthropics/skills repo |
On the API, a request looks like this (both betas required):
response = client.beta.messages.create(
model="claude-opus-4-8",
max_tokens=16000,
betas=["code-execution-2025-08-25", "skills-2025-10-02"],
container={"skills": [{"type": "anthropic", "skill_id": "pptx", "version": "latest"}]},
tools=[{"type": "code_execution_20260521", "name": "code_execution"}],
messages=[{"role": "user", "content": "Create a 5-slide QBR deck from these notes: ..."}],
)The generated file lives in the container; the response carries its file ID, and you download it via the Files API. The full API mechanics — /v1/skills, limits, the no-network constraint — are in Skills on claude.ai and the API.
Getting good documents, not just documents
The skills handle format mechanics; content quality is still yours to specify. The patterns that consistently raise output quality:
- Provide the skeleton. A slide-by-slide brief, a column list with example rows, or the section outline. The skill turns structure into format; it can't invent your argument.
- Anchor to an existing file. Upload last quarter's deck or your report template and ask Claude to match it — the skills read existing documents with the same libraries they write with.
- State the format rules once. Brand colors, font, "no more than four bullets per slide", "currency to two decimals" — explicit constraints are followed reliably.
- Ask for a verification pass. "Before finishing, re-open the file and check every formula resolves and no cell shows an error" — the skill runs code, so it can actually check its own artifact.
- Iterate on the file, not from scratch. Follow-ups ("make sheet 2 a pivot by region") edit the existing artifact rather than regenerating.
Limits worth knowing
The execution container is sandboxed: no network access, so a document skill can't pull live data mid-build — provide the data in the conversation or as an uploaded file. On the API, uploads run through the Files API and requests carry at most 8 skills. And very large or intricate documents (hundred-tab workbooks, pixel-perfect design decks) still hit the ceiling of what code-built documents do well — the skills raise the floor dramatically; they don't replace a designer.
Why they matter beyond documents
The document skills are the reference implementation for the whole format. If you're writing your own skill, read the xlsx SKILL.md in anthropics/skills first: one job, a tight procedure, deterministic work pushed into code, and boundaries stated plainly. Our annotated examples walk the same patterns at smaller scale.
Frequently asked questions
- Can Claude create real Excel files?
- Yes. With the xlsx skill active — always on claude.ai, attached via container on the API — Claude builds actual .xlsx workbooks through code execution: multiple sheets, formulas, formatting. You download a working file, not a table pasted into chat.
- Can Claude edit a document I upload, or only create new ones?
- Both. Upload the file (claude.ai attachment, or Files API on the API side) and ask for the change — the skill reads the existing document with the same libraries it writes with. For substantial edits, describe the outcome rather than a cell-by-cell diff.
- How do I get the generated file via the API?
- The file is written inside the code-execution container and the response carries a file ID. Download it with the Files API (beta header files-api-2025-04-14). The request itself needs both the code-execution and skills betas plus the container skills list.
- Why do my decks come out generic?
- The skill controls format mechanics, not your content strategy. Feed it structure: the narrative in bullets, a slide budget, brand colors and fonts, or an existing deck to match. 'Make a deck about X' produces a template-ish deck; a one-paragraph brief per slide produces yours.
- Are the document skills open source?
- Yes — they live in Anthropic's public anthropics/skills repository. Reading the xlsx or pptx SKILL.md is the single best education in how a production-grade skill is written: procedure, bundled helpers, and boundaries.
Related
- What Are Claude Skills? The Complete GuideClaude Skills explained: what a SKILL.md is, how progressive disclosure keeps skills cheap, where they run, and how to install or write your own.
- Claude Skills on claude.ai and the APIHow Agent Skills work beyond Claude Code: uploading to claude.ai, the /v1/skills API with code execution, Managed Agents, and the Agent SDK.
- Claude Skills Examples: Annotated SKILL.md FilesReal SKILL.md examples you can copy — a minimal skill, a scoped-tools skill, a bundled-script skill — with the reasoning behind each line.
- How to Install Claude SkillsEvery way to install Claude skills: manual copy, the agentscamp CLI, GitHub repos, plugins, team distribution, and uploading to claude.ai.
- Multimodal Document ExtractorExtract structured data from documents and images with a vision-language model — define the target schema, prompt the VLM to fill it from the page (invoices, forms, receipts, statements, IDs), and verify critical fields against the source. Use when you need reliable structured output from messy, varied, or scanned documents that defeat template-based OCR.
- Claude Skills Use Cases: 20 Ideas Worth BuildingTwenty concrete Claude skills use cases — for engineers, writers, analysts, and ops — with the pattern behind each and links to installable versions.