Import Skill Collection from GitHub
POST
/api/v3/organizations/{organisation}/ai/skills/import-collection
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/skills/import-collection';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"namespace":"superpowers","source":{"type":"github","repo":"obra/superpowers","path":"skills","version":"main"},"tags":["example"],"installedBy":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organisation
required
string
The organisation ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
namespace
required
string
Example
superpowerssource
required
object
type
required
string
repo
required
string
Example
obra/superpowerspath
string
Example
skillsversion
string
Example
maintags
Array<string>
installedBy
string
Responses
Section titled “Responses”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
