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

Function formatCommandDescription

src/tools/SkillTool/prompt.ts:52–66  ·  view source on GitHub ↗
(cmd: Command)

Source from the content-addressed store, hash-verified

50}
51
52function formatCommandDescription(cmd: Command): string {
53 // Debug: log if userFacingName differs from cmd.name for plugin skills
54 const displayName = getCommandName(cmd)
55 if (
56 cmd.name !== displayName &&
57 cmd.type === 'prompt' &&
58 cmd.source === 'plugin'
59 ) {
60 logForDebugging(
61 `Skill prompt: showing "${cmd.name}" (userFacingName="${displayName}")`,
62 )
63 }
64
65 return `- ${cmd.name}: ${getCommandDescription(cmd)}`
66}
67
68const MIN_DESC_LENGTH = 20
69

Callers 1

Calls 3

logForDebuggingFunction · 0.85
getCommandDescriptionFunction · 0.85
getCommandNameFunction · 0.50

Tested by

no test coverage detected