Idempotent endpoint to create or sync a skill. If the skill does not exist, creates it. If it exists, updates displayName, description, and externalStars from GitHub.
PUT
/
skills
/
{namespace}
/
{slug}
JavaScript
Copy
Ask AI
import Smithery from '@smithery/api';const client = new Smithery({ apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted});const response = await client.skills.set('slug', { namespace: 'namespace', gitUrl: 'https://example.com',});console.log(response.id);
import Smithery from '@smithery/api';const client = new Smithery({ apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted});const response = await client.skills.set('slug', { namespace: 'namespace', gitUrl: 'https://example.com',});console.log(response.id);