Skip to main content

From Skill Folder

The folder must contain a SKILL.md file. The skill name and description are parsed from its YAML frontmatter.
create_from_directory zips the folder, uploads the archive via the Files API, and creates the skill in one call. It returns an AgentSkill with type="skill_reference". Pass it directly to any endpoint that accepts skills. The folder should follow the skill directory structure:
Use a skill folder for full control of instructions, schema, and execution configuration. Use a prompt to prototype.

From Prompt

The platform generates a SKILL.md from the prompt. It generates schema.json from the provided JSON schema.

From Chat Session

The platform analyzes the conversation. It extracts the task instructions and the expected output format.