Skip to main content
POST
Imports directives from an external source. Supports GitHub repos (importing multiple skills at once via paths) and individual URLs. Optionally attach to repositories and publish in a single call. Required scope: context:write

Headers

string
required
Bearer token. Example: Bearer runtm_xxx
string
Scope to an organization.

Body

string
required
Source type: github_repo, github_url, or url.
string
required
Source URI. For github_repo: owner/repo. For URLs: full URL to a SKILL.md file.
string
Git ref for GitHub sources (branch, tag, or SHA).
object
Optional attachment config applied to each imported directive. Contains repo_full_names (array of owner/repo) and applies_to_all (boolean).
boolean
default:"false"
When true, publish each imported directive immediately.
array
For github_repo source: specific SKILL.md paths to import. If omitted, all discovered skills are imported.

Response

array
Array of imported directive resources.