Prerequisites
- Anthropic API key
- Python 3.7+ or curl installed
- Basic familiarity with making API requests
What are Agent Skills?
Pre-built Agent Skills extend Claude’s capabilities with specialized expertise for tasks like creating documents, analyzing data, and processing files. Anthropic provides the following pre-built Agent Skills in the API:- PowerPoint (pptx): Create and edit presentations
- Excel (xlsx): Create and analyze spreadsheets
- Word (docx): Create and edit documents
- PDF (pdf): Generate PDF documents
Want to create custom Skills? See the Agent Skills Cookbook for examples of building your own Skills with domain-specific expertise.
Step 1: List available Skills
First, let’s see what Skills are available. We’ll use the Skills API to list all Anthropic-managed Skills:pptx
, xlsx
, docx
, and pdf
.
This API returns each Skill’s metadata: its name and description. Claude loads this metadata at startup to know what Skills are available. This is the first level of progressive disclosure, where Claude discovers Skills without loading their full instructions yet.
Step 2: Create a presentation
Now we’ll use the PowerPoint Skill to create a presentation about renewable energy. We specify Skills using thecontainer
parameter in the Messages API:
container.skills
: Specifies which Skills Claude can usetype: "anthropic"
: Indicates this is an Anthropic-managed Skillskill_id: "pptx"
: The PowerPoint Skill identifierversion: "20251013"
: The Skill version (format: YYYYMMDD)tools
: Enables code execution (required for Skills)- Beta headers:
code-execution-2025-08-25
andskills-2025-10-02
Step 3: Download the created file
The presentation was created in the code execution container and saved as a file. The response includes a file reference with a file ID. Extract the file ID and download it using the Files API:For complete details on working with generated files, see the code execution tool documentation.