MCPcopy
hub / github.com/codeaashu/claude-code / getSkillInfo

Function getSkillInfo

src/tools/SkillTool/prompt.ts:221–241  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

219}
220
221export async function getSkillInfo(cwd: string): Promise<{
222 totalSkills: number
223 includedSkills: number
224}> {
225 try {
226 const skills = await getSlashCommandToolSkills(cwd)
227
228 return {
229 totalSkills: skills.length,
230 includedSkills: skills.length,
231 }
232 } catch (error) {
233 logError(toError(error))
234
235 // Return zeros rather than throwing - let caller decide how to handle
236 return {
237 totalSkills: 0,
238 includedSkills: 0,
239 }
240 }
241}
242

Callers

nothing calls this directly

Calls 2

toErrorFunction · 0.85
logErrorFunction · 0.50

Tested by

no test coverage detected