Skip to main content
Skills can be created in three ways:

From Skill Folder

Upload a local skill folder directly. The folder must contain a SKILL.md file — the skill name and description are parsed from its YAML frontmatter automatically.
create_from_directory handles zipping the folder, uploading the archive via the Files API, and creating the skill in one call. It returns an AgentSkill with type="skill_reference" that you can pass directly to any endpoint that accepts skills. The folder should follow the skill directory structure:
Use the skill folder method when you need full control over the skill’s instructions, schema, and execution configuration. Use the prompt method for quick prototyping.

From Prompt

Generate a skill automatically from a text description and optional JSON schema:
The platform generates a SKILL.md with instructions derived from your prompt and a schema.json from the provided JSON schema.

From Chat Session

Generate a skill from an existing chat session’s conversation history:
The platform analyzes the conversation to extract the task instructions and expected output format.