MCPcopy
hub / github.com/antfu/skills / getExistingSkillNames

Function getExistingSkillNames

scripts/cli.ts:354–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352}
353
354function getExistingSkillNames(): string[] {
355 const skillsDir = join(root, 'skills')
356 if (!existsSync(skillsDir))
357 return []
358
359 return readdirSync(skillsDir, { withFileTypes: true })
360 .filter(entry => entry.isDirectory())
361 .map(entry => entry.name)
362}
363
364async function cleanup(skipPrompt = false) {
365 const spinner = p.spinner()

Callers 1

cleanupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected