MCPcopy
hub / github.com/claude-code-best/claude-code / getPromptForCommand

Function getPromptForCommand

src/skills/bundled/skillify.ts:180–196  ·  view source on GitHub ↗
(args, context)

Source from the content-addressed store, hash-verified

178 disableModelInvocation: true,
179 argumentHint: '[description of the process you want to capture]',
180 async getPromptForCommand(args, context) {
181 const sessionMemory =
182 (await getSessionMemoryContent()) ?? 'No session memory available.'
183 const userMessages = extractUserMessages(
184 getMessagesAfterCompactBoundary(context.messages),
185 )
186
187 const userDescriptionBlock = args
188 ? `The user described this process as: "${args}"`
189 : ''
190
191 const prompt = SKILLIFY_PROMPT.replace('{{sessionMemory}}', sessionMemory)
192 .replace('{{userMessages}}', userMessages.join('\n\n---\n\n'))
193 .replace('{{userDescriptionBlock}}', userDescriptionBlock)
194
195 return [{ type: 'text', text: prompt }]
196 },
197 })
198}

Callers

nothing calls this directly

Calls 3

getSessionMemoryContentFunction · 0.85
extractUserMessagesFunction · 0.85

Tested by

no test coverage detected