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

Function getCommandDescription

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

Source from the content-addressed store, hash-verified

41}
42
43function getCommandDescription(cmd: Command): string {
44 const desc = cmd.whenToUse
45 ? `${cmd.description} - ${cmd.whenToUse}`
46 : cmd.description
47 return desc.length > MAX_LISTING_DESC_CHARS
48 ? desc.slice(0, MAX_LISTING_DESC_CHARS - 1) + '\u2026'
49 : desc
50}
51
52function formatCommandDescription(cmd: Command): string {
53 // Debug: log if userFacingName differs from cmd.name for plugin skills

Callers 2

formatCommandDescriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected