Create a skill from a document
Creates a skill from a SKILL.md document and returns it. The document’s frontmatter supplies the skill’s name and description, which are validated against the Agent Skills standard: the name must be lowercase letters, digits, and single hyphens, and a description is required because it is the only signal the model has when deciding whether to use the skill. To create one from a zipped directory instead, use managedAgentsPublishSkillBundle. Do not automatically retry an ambiguous transport failure: list skills first, because this operation does not replay a prior response and another submission can create another skill.
Authorizations
Headers
Body
Request body for creating or updating a skill. The document is the source of truth: the skill's name and description come from its frontmatter. Publishing a new version of an existing skill goes through managedAgentsCreateSkillVersion, which mints one rather than editing the last.
Response
A reusable procedure an agent loads when it judges the procedure relevant. Its name is disclosed in every turn, and its description while the disclosure budget has room; the instructions enter the conversation only when the agent activates it. Updating a skill mints a new immutable SkillVersion.
A reusable procedure an agent loads when it judges the procedure relevant. Its name is disclosed in every turn, and its description while the disclosure budget has room; the instructions enter the conversation only when the agent activates it. Updating a skill mints a new immutable SkillVersion.
When to use this skill: the model routes on it, so write the condition under which the skill applies. It is disclosed to the model in every turn while the disclosure budget has room; past that budget the skills last in prompt order are listed by name only and are unlikely to be chosen.
Length in characters of the newest version's instructions, the body disclosed to the model when it activates the skill. Zero for a skill with no version yet. Instructions are truncated at 64000 bytes of UTF-8 when a session assembles them, which is fewer characters for non-ASCII text.
-9007199254740991 <= x <= 9007199254740991