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

Function getPromptForCommand

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getSessionMemoryContentFunction · 0.85
extractUserMessagesFunction · 0.85

Tested by

no test coverage detected