MCPcopy Create free account
hub / github.com/Noumena-Network/code / formatCommandDescription

Function formatCommandDescription

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

getCommandDescriptionFunction · 0.85
logForDebuggingFunction · 0.70
getCommandNameFunction · 0.50

Tested by

no test coverage detected