Skip to content

Import Skill Collection from GitHub

POST
/api/v3/organizations/{organisation}/ai/skills/import-collection
curl --request POST \
--url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/skills/import-collection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "namespace": "superpowers", "source": { "type": "github", "repo": "obra/superpowers", "path": "skills", "version": "main" }, "tags": [ "example" ], "installedBy": "example" }'

Discovers all skill directories under a given path in a GitHub repository * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. * * Namespace: Used for grouping and slash-command invocation (e.g., /superpowers:brainstorming). * * Idempotent: If a skill with the same namespace + name already exists, it is updated.

organisation
required
string

The organisation ID

Media typeapplication/json
object
namespace
required
string
/^[a-z0-9][a-z0-9-]{0,62}[a-z0-9]$/
Example
superpowers
source
required
object
type
required
string
Allowed values: github
repo
required
string
Example
obra/superpowers
path
string
Example
skills
version
string
Example
main
tags
Array<string>
installedBy
string

Collection imported successfully

Media typeapplication/json
object
namespace
string
imported
integer
failed
integer
skills
Array<object>
object
errors
Array<object>
object
Examplegenerated
{
"namespace": "example",
"imported": 1,
"failed": 1,
"skills": [
{}
],
"errors": [
{}
]
}

Invalid request parameters

Access denied

Failed to import collection

GitHub API error