Export Skills#
GET/v1/repos/{owner}/{repo}/export
Renders all skills in a repository as agent-platform-ready prompt snippets in XML, Markdown, or JSON format.
Path Parameters#
| Parameter | Type | Description |
|---|---|---|
| owner | string | GitHub username or organization |
| repo | string | Repository name |
Query Parameters#
| Parameter | Type | Description |
|---|---|---|
| format | "xml" | "markdown" | "json" | Output format (default: xml) |
Response#
Returns an object with owner, repo, format, skill_count, and content (the rendered string).
example response
{
"owner": "anthropics",
"repo": "claude-code",
"format": "xml",
"skill_count": 3,
"content": "<skills>\n <skill name=\"git-commit\">...</skill>\n</skills>"
}
Errors#
| Status | Cause |
|---|---|
| 404 | Repository or skill path not found |
| 429 | GitHub API rate limit reached |
Example#
bash
curl "https://api.skill-lab.dev/v1/repos/owner/repo/export?format=xml"javascript
const res = await fetch("https://api.skill-lab.dev/v1/repos/owner/repo/export?format=xml");
const data = await res.json();
// data.contentpython
import httpx
res = httpx.get("https://api.skill-lab.dev/v1/repos/owner/repo/export?format=xml")
data = res.json()
# data['content']