Skills are reusable, filesystem-based resources that give your agent domain-specific expertise: workflows, context, and best practices that turn a general-purpose agent into a specialist. Unlike prompts (conversation-level instructions for one-off tasks), skills load on demand, only impacting the context window when needed.
You can attach two types of skill. Both work the same way: your agent invokes them automatically when they are relevant to the task.
To learn how to author custom skills, see Agent Skills and Skill authoring best practices. This page assumes you already have skills available in your workspace or are using Anthropic pre-built skills.
All Managed Agents API requests require the managed-agents-2026-04-01 beta header. The SDK sets the beta header automatically.
Attach skills when creating an agent. Each session supports up to 20 skills total, counted across every agent in the session (see Multiagent sessions).
Each entry in the skills array uses the following fields:
| Field | Description |
|---|---|
type | Either anthropic for pre-built skills or custom for workspace-authored skills. |
skill_id | The skill identifier. For Anthropic skills, use the short name (for example, xlsx). For custom skills, use the skill_* ID returned at creation. |
version | Custom skills only. Pin to a specific version or use latest. |
ant beta:agents create <<'YAML'
name: Financial Analyst
model: claude-opus-4-7
system: You are a financial analysis agent.
skills:
- type: anthropic
skill_id: xlsx
- type: custom
skill_id: skill_abc123
version: latest
YAMLWas this page helpful?