MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getPromptForCommand

Function getPromptForCommand

src/skills/bundled/keybindings.ts:300–325  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

298 userInvocable: false,
299 isEnabled: isKeybindingCustomizationEnabled,
300 async getPromptForCommand(args) {
301 // Generate reference tables dynamically from source-of-truth arrays
302 const contextsTable = generateContextsTable()
303 const actionsTable = generateActionsTable()
304 const reservedShortcuts = generateReservedShortcuts()
305
306 const sections = [
307 SECTION_INTRO,
308 SECTION_FILE_FORMAT,
309 SECTION_KEYSTROKE_SYNTAX,
310 SECTION_UNBINDING,
311 SECTION_INTERACTION,
312 SECTION_COMMON_PATTERNS,
313 SECTION_BEHAVIORAL_RULES,
314 SECTION_DOCTOR,
315 `## Reserved Shortcuts\n\n${reservedShortcuts}`,
316 `## Available Contexts\n\n${contextsTable}`,
317 `## Available Actions\n\n${actionsTable}`,
318 ]
319
320 if (args) {
321 sections.push(`## User Request\n\n${args}`)
322 }
323
324 return [{ type: 'text', text: sections.join('\n\n') }]
325 },
326 })
327}
328

Callers

nothing calls this directly

Calls 4

generateContextsTableFunction · 0.85
generateActionsTableFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected