createRepoAgentSkillFile
Add a file to a skill. Its SKILL.md starts with frontmatter that names the skill and describes when to use it.
POST
/repos/{repo_id}/branches/{branch}/agent-skills/{skill_id}/filesPath parameters
Request body JSON required
Returns
201
AgentSkillFile
400
InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
BranchNotFound | AgentSkillNotFound | RepoNotFound
JSON
One of the following:
- BranchNotFoundEncoded
- AgentSkillNotFoundEncoded
- RepoNotFoundEncoded
413
WriteTooLarge | RequestBodyTooLarge
JSON
One of the following:
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
422
InvalidAgentSkillFile | WriteRefused
JSON
One of the following:
- InvalidAgentSkillFileEncoded
- WriteRefusedEncoded
503
RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded