Skip to main content
The Claude API supports both Anthropic’s pre-built skills and custom skills uploaded via the API. This enables you to build applications that leverage specialized capabilities programmatically.

Quick start

The Skills API allows you to create, manage, and use skills in your API applications:
1

Create a skill

Upload a skill to your account:
2

Use the skill in a message

Reference the skill in your API calls:
For complete API documentation and examples, see the Skills API Quickstart in the Claude API documentation.

Using Anthropic’s pre-built skills

Anthropics provides production-grade skills that you can use directly in your API applications without uploading them yourself.

Available pre-built skills

  • xlsx: Excel spreadsheet creation and analysis
  • docx: Word document generation and editing
  • pptx: PowerPoint presentation building
  • pdf: PDF reading, extraction, manipulation, and form filling
These are the same skills that power Claude.ai’s document features.

Referencing pre-built skills

To use Anthropic’s pre-built skills, reference them by name:

Creating custom skills

Custom skills extend Claude with domain-specific knowledge and workflows tailored to your application.

Skill structure

A skill consists of a SKILL.md file with YAML frontmatter and markdown instructions:

Uploading skills via API

Managing skills

List all skills

Retrieve all skills in your account:

Get skill details

Retrieve information about a specific skill:

Update a skill

Modify an existing skill:

Delete a skill

Remove a skill from your account:

Advanced: Skills with bundled resources

Skills can include scripts, reference documents, and assets for complex workflows.

Directory structure

Uploading skills with resources

When uploading via API, package the entire skill directory:

Referencing bundled resources

In your SKILL.md, guide Claude to use bundled resources:

Keep SKILL.md focused

Aim for under 500 lines in the main file. Use progressive disclosure:
  1. Metadata (name + description): Always in context (~100 words)
  2. SKILL.md body: Loaded when skill triggers (<500 lines)
  3. Bundled resources: Loaded as needed (unlimited size)
For large reference material, split into separate files:

Test skills thoroughly

Create test cases covering different phrasings and edge cases:

Version your skills

Include version information in skill metadata:

Error handling

Handle common errors when working with the Skills API:

Rate limits and quotas

  • Skills API calls count toward your standard API rate limits
  • Each account has a quota for total stored skills (contact support for limits)
  • Skill content size is limited to 10MB per skill (including all bundled resources)

Additional resources