Skip to main content
POST
/
skills
JavaScript
import Smithery from '@smithery/api';

const client = new Smithery({
  apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});

const skill = await client.skills.create({
  gitUrl: 'https://example.com',
  namespace: 'x',
  slug: 'slug',
});

console.log(skill.id);
{
  "id": "<string>",
  "namespace": "<string>",
  "slug": "<string>",
  "displayName": "<string>",
  "description": "<string>",
  "gitUrl": "<string>",
  "listed": true,
  "createdAt": "<string>"
}

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Body

application/json
namespace
string
required

The namespace to create the skill in.

Minimum string length: 1
slug
string
required

URL-friendly identifier for the skill.

Minimum string length: 1
gitUrl
string<uri>
required

GitHub URL pointing to a repository with SKILL.md

Response

Skill created successfully

id
string
required
namespace
string
required
slug
string
required
displayName
string
required
description
string
required
gitUrl
string
required
listed
boolean
required
createdAt
string
required