File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ export const COMMAND_REGISTRY: CommandDefinition[] = [
491491
492492export function findCommand ( cmd : string ) : CommandDefinition | undefined {
493493 const lowerCmd = cmd . toLowerCase ( )
494-
494+
495495 // First check the static command registry
496496 const staticCommand = COMMAND_REGISTRY . find (
497497 ( def ) => def . name === lowerCmd || def . aliases . includes ( lowerCmd ) ,
@@ -541,9 +541,10 @@ function createSkillCommand(skillName: string): CommandDefinition {
541541${ skill . content }
542542</skill>`
543543
544- const userPrompt = args . trim ( )
545- ? `${ skillContext } \n\nUser request: ${ args . trim ( ) } `
546- : `${ skillContext } \n\nPlease use this skill to help me.`
544+ const userPrompt = `I invoke the following skill:\n\n${ skillContext } \n\n`
545+ + ( args . trim ( )
546+ ? `User request: ${ args . trim ( ) } `
547+ : '' )
547548
548549 // Check streaming/queue state
549550 if (
You can’t perform that action at this time.
0 commit comments