Skills are reusable instruction sets stored in a library and attached to agents. When you attach a skill to an agent, its content is appended to the agent’s system prompt as aDocumentation Index
Fetch the complete documentation index at: https://docs.litellm-agent-platform.ai/llms.txt
Use this file to discover all available pages before exploring further.
<!-- skill:<id> --> block. The same skill can be attached to multiple agents; updating the skill library entry does not retroactively update attached agents.
Endpoints
| Method | Path | Description |
|---|---|---|
POST | /api/v1/skills | Create a skill |
GET | /api/v1/skills | List all skills |
GET | /api/v1/skills/{skill_id} | Get a skill |
PATCH | /api/v1/skills/{skill_id} | Update a skill |
DELETE | /api/v1/skills/{skill_id} | Delete a skill |
POST | /api/v1/managed_agents/agents/{agent_id}/skill | Attach a skill to an agent |
DELETE | /api/v1/managed_agents/agents/{agent_id}/skill?skill_id={skill_id} | Detach a skill from an agent |
Create a skill
| Header | Value |
|---|---|
Authorization | Bearer <MASTER_KEY> |
Content-Type | application/json |
Body parameters
Display name for the skill.
Skill instructions in plain text or Markdown. This content is injected verbatim into the agent’s system prompt.
Optional short description shown in the web UI skill library.
201 Created with the new ApiSkill object.
List skills
{ data: ApiSkill[] } — all skills owned by the authenticated user, newest first.
Get a skill
ApiSkill object or 404 if not found.
Update a skill
New display name.
New description. Pass
null to clear it.New skill content. Does not retroactively update already-attached agents.
ApiSkill object.
Delete a skill
204 No Content. Does not remove the skill block from agent prompts that already have it attached.
Attach a skill to an agent
Attach by skill ID
ID of an existing skill in the library to attach.
Attach inline content
Skill instructions to inject. Unless
save_to_library is false, the content is also saved to the skill library and can be reattached to other agents.Name for the new library entry. Defaults to
Skill <ISO timestamp> if omitted.Description for the new library entry.
When
false, the content is attached ephemerally — no skill library entry is written, and the attachment cannot be looked up or reattached later.Response
Detach a skill from an agent
skill_id to strip all skill blocks at once.
Returns { "agent": { /* updated ApiAgent */ } }.
ApiSkill response fields
Unique skill ID.
Display name.
Optional description.
null if not set.Skill instructions injected into agent prompts.
ISO 8601 creation timestamp.